@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Source+Sans+3:wght@400;500;600&display=swap");

:root {
  --canvas: #faf7f2;
  --paper: #fffcf8;
  --ink: #3d3a37;
  --muted: #7a736c;
  --sage: #a8c5a0;
  --sand: #e8d5b7;
  --terracotta: #e8a598;
  --lavender: #c5b4d6;
  --sky: #b8d4e8;
  --rose: #e39aaf;
  --gold: #d9b25a;
  --teal: #6cafa6;
  --stone: #b7b1a8;
  --leaf: #8fb37a;
  --site-header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  -webkit-tap-highlight-color: rgb(168 197 160 / 0.25);
}

html {
  scroll-padding-top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px) + 1rem);
}

body {
  padding-top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px));
}

body.nav-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
}

input,
select,
textarea {
  background: rgb(245 240 232 / 0.7);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237a736c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 L6 6 L10.5 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 2px rgb(168 197 160 / 0.35);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.leaflet-container img,
.leaflet-pane img,
.leaflet-marker-icon {
  max-width: none;
}

[x-cloak] {
  display: none !important;
}

@view-transition {
  navigation: auto;
}

:root {
  view-transition-name: none;
}

.site-header {
  view-transition-name: site-header;
}

.page-main,
.map-stage {
  view-transition-name: page-sheet;
}

::view-transition-group(site-header) {
  z-index: 100;
  animation: none;
}

::view-transition-old(site-header) {
  display: none;
}

::view-transition-new(site-header) {
  animation: none;
}

::view-transition-group(page-sheet) {
  overflow: visible;
  z-index: 1;
  animation: none;
}

::view-transition-old(page-sheet) {
  animation: 0.16s cubic-bezier(0.4, 0, 1, 1) both page-sheet-out;
}

::view-transition-new(page-sheet) {
  animation: 0.42s cubic-bezier(0.22, 1, 0.36, 1) both page-sheet-in;
  z-index: 2;
}

@keyframes page-sheet-in {
  from {
    transform: translate3d(100%, 0, 0);
    opacity: 0.72;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes page-sheet-out {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate3d(-4%, 0, 0) scale(0.99);
    opacity: 0;
  }
}

html.page-turn-in .page-main,
html.page-turn-in .map-stage {
  animation: 0.42s cubic-bezier(0.22, 1, 0.36, 1) both page-sheet-in;
}

html.page-turn-out .page-main,
html.page-turn-out .map-stage {
  animation: 0.16s cubic-bezier(0.4, 0, 1, 1) both page-sheet-out;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .site-header,
  .page-main,
  .map-stage {
    view-transition-name: none;
  }

  html.page-turn-in .page-main,
  html.page-turn-in .map-stage,
  html.page-turn-out .page-main,
  html.page-turn-out .map-stage {
    animation: none;
  }
}

.font-sans { font-family: "Source Sans 3", system-ui, sans-serif; }
.font-display { font-family: Fraunces, Georgia, serif; }
.font-medium { font-weight: 500; }
.antialiased { -webkit-font-smoothing: antialiased; }

.min-h-screen { min-height: 100vh; }
.min-h-\[7rem\] { min-height: 7rem; }
.min-h-\[4rem\] { min-height: 4rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-h-44 { max-height: 11rem; }
.p-8 { padding: 2rem; }
.max-h-\[90vh\] { max-height: 90vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-28 { width: 7rem; }
.w-36 { width: 9rem; }
.w-40 { width: 10rem; }
.w-11 { width: 2.75rem; }
.w-16 { width: 4rem; }
.min-w-\[8rem\] { min-width: 8rem; }
.min-w-\[12rem\] { min-width: 12rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-40 { height: 10rem; }
.h-56 { height: 14rem; }
.h-\[28rem\] { height: 28rem; }

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.hidden { display: none; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > :not(:last-child) { margin-bottom: 0.25rem; }
.space-y-2 > :not(:last-child) { margin-bottom: 0.5rem; }
.space-y-3 > :not(:last-child) { margin-bottom: 0.75rem; }
.space-y-6 > :not(:last-child) { margin-bottom: 1.5rem; }
.space-y-12 > :not(:last-child) { margin-bottom: 3rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-16 { padding-bottom: 4rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }
.text-paper { color: var(--paper); }
.text-terracotta { color: var(--terracotta); }
.text-left { text-align: left; }
.text-right { text-align: right; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 999px; }
.border-0 { border: 0; }
.border-t { border-top: 0; }
.border-canvas { border-color: transparent; }

.bg-paper { background: var(--paper); }
.bg-canvas { background: var(--canvas); }
.bg-sage { background: var(--sage); }
.bg-sand { background: var(--sand); }
.bg-terracotta { background: var(--terracotta); }
.bg-lavender { background: var(--lavender); }
.bg-sky { background: var(--sky); }
.bg-teal { background: var(--teal); }
.bg-gold { background: var(--gold); }
.bg-leaf { background: var(--leaf); }
.bg-rose { background: var(--rose); }
.bg-ink { background: var(--ink); }
.bg-sage\/40 { background: rgb(168 197 160 / 0.4); }
.bg-sage\/70 { background: rgb(168 197 160 / 0.7); }
.bg-terracotta\/30 { background: rgb(232 165 152 / 0.3); }
.bg-terracotta\/40 { background: rgb(232 165 152 / 0.4); }
.bg-lavender\/40 { background: rgb(197 180 214 / 0.4); }
.bg-sky\/40 { background: rgb(184 212 232 / 0.4); }
.bg-sand\/50 { background: rgb(232 213 183 / 0.5); }
.bg-leaf\/30 { background: rgb(143 179 122 / 0.3); }
.bg-rose\/20 { background: rgb(227 154 175 / 0.2); }
.bg-canvas\/80 { background: rgb(250 247 242 / 0.8); }
.bg-canvas\/60 { background: rgb(250 247 242 / 0.6); }

.shadow-sm { box-shadow: none; }
.shadow-md { box-shadow: 0 10px 30px rgb(61 58 55 / 0.08); }
.ring-2 { box-shadow: none; }
.ring-sand { box-shadow: none; }

.transition { transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.duration-200 { transition-duration: 0.2s; }
.hover\:shadow-md:hover { box-shadow: none; }
.hover\:bg-sage:hover { background: var(--sage); }
.hover\:bg-canvas:hover { background: var(--canvas); }

.cursor-pointer { cursor: pointer; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.opacity-70 { opacity: 0.7; }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.left-1 { left: 0.25rem; }
.right-1 { right: 0.25rem; }
.z-40 { z-index: 40; }
.z-60 { z-index: 60; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:w-40 { width: 10rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:text-5xl { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .map-sticky {
    position: sticky;
    top: calc(var(--site-header-h) + 1.25rem);
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:col-span-1 { grid-column: span 1 / span 1; }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--canvas);
  padding: 0.85rem 1.25rem 0.75rem;
  padding-top: max(0.85rem, env(safe-area-inset-top));
}

.site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-logo {
  display: none;
}

.site-header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.person-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--sage) !important;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1.1rem;
}

.nav-toggle-bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  font-style: normal;
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  flex-shrink: 0;
  text-decoration: none;
}

.settings-btn svg {
  width: 1.3rem;
  height: 1.3rem;
}

.settings-btn:hover,
.settings-btn.is-active {
  background: var(--sand);
  color: var(--ink);
}

.nav-backdrop {
  display: none;
}

.site-nav {
  display: none;
  max-width: 72rem;
  margin: 0 auto;
}

body.nav-open .nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgb(61 58 55 / 0.28);
  z-index: 45;
}

body.nav-open .site-nav {
  display: flex;
  position: relative;
  z-index: 46;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0 0.25rem;
}

.money-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.money-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  background: var(--paper);
  border-radius: 1.5rem;
  padding: 0.75rem;
}

.money-form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.money-form-amount {
  width: 7rem;
  flex: 0 0 7rem;
}

.money-form-text {
  flex: 1 1 8rem;
  min-width: 8rem;
}

.money-form-pot {
  flex: 1 1 8.5rem;
  min-width: 8.5rem;
  max-width: 12rem;
}

.money-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: auto;
}

.page-main {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-link {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1.15rem;
  background: var(--paper);
  color: var(--ink);
}

.nav-link:hover {
  color: var(--ink);
  background: rgb(255 252 248 / 0.7);
}

.nav-link.is-active {
  background: var(--sage);
  color: var(--ink);
}

@media (min-width: 900px) {
  :root {
    --site-header-h: 4.65rem;
  }

  body {
    padding-top: var(--site-header-h);
  }

  .site-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.15rem max(1.5rem, calc(50% - 36rem)) 0;
    border-bottom: 1px solid rgb(61 58 55 / 0.1);
    box-sizing: border-box;
  }

  .site-header-inner {
    order: 2;
    width: auto;
    max-width: none;
    margin: 0;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 0.5rem;
    flex: 0 0 auto;
  }

  .site-logo {
    font-size: 2.25rem;
  }

  .nav-toggle {
    display: none !important;
  }

  .settings-btn {
    width: 2.45rem;
    height: 2.45rem;
    margin-bottom: 0.15rem;
  }

  .nav-backdrop,
  body.nav-open .nav-backdrop {
    display: none !important;
  }

  .site-nav,
  body.nav-open .site-nav {
    display: flex;
    position: static;
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.28rem;
    padding: 0.35rem 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 0;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav .nav-link {
    position: relative;
    width: auto;
    flex: 0 0 auto;
    padding: 0.62rem 1.15rem 0.78rem;
    margin-bottom: -1px;
    border-radius: 1.15rem 1.15rem 0 0;
    border: 1px solid transparent;
    border-bottom: 0;
    background: rgb(255 252 248 / 0.42);
    color: var(--muted);
    font-weight: 500;
    transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  }

  .site-nav .nav-link:hover {
    color: var(--ink);
    background: rgb(255 252 248 / 0.88);
    transform: translateY(-3px);
  }

  .site-nav .nav-link.is-active {
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    border-color: rgb(61 58 55 / 0.08);
    box-shadow: 0 -8px 22px rgb(61 58 55 / 0.05);
    transform: translateY(0);
  }

  .site-nav .nav-link.is-active:hover {
    transform: translateY(0);
  }

  .site-nav .nav-link::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background-color 0.22s ease;
  }

  .site-nav .nav-link[data-page="overzicht"].is-active::before { background: var(--sage); }
  .site-nav .nav-link[data-page="huishoudboekje"].is-active::before { background: var(--sand); }
  .site-nav .nav-link[data-page="klussen"].is-active::before { background: var(--teal); }
  .site-nav .nav-link[data-page="tuin"].is-active::before { background: var(--leaf); }
  .site-nav .nav-link[data-page="dieren"].is-active::before { background: var(--rose); }
  .site-nav .nav-link[data-page="recepten"].is-active::before { background: var(--terracotta); }
  .site-nav .nav-link[data-page="kijken"].is-active::before { background: var(--lavender); }
  .site-nav .nav-link[data-page="plaatsen"].is-active::before { background: var(--sky); }
}

.person-pill {
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.person-pill.is-active {
  color: var(--ink);
}

.person-pill.color-sage.is-active { background: var(--sage); }
.person-pill.color-sand.is-active { background: var(--sand); }
.person-pill.color-terracotta.is-active { background: var(--terracotta); }
.person-pill.color-lavender.is-active { background: var(--lavender); }
.person-pill.color-sky.is-active { background: var(--sky); }
.person-pill.color-teal.is-active { background: var(--teal); }
.person-pill.color-gold.is-active { background: var(--gold); }
.person-pill.color-rose.is-active { background: var(--rose); }
.person-pill.color-leaf.is-active { background: var(--leaf); }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.badge-sage { background: rgb(168 197 160 / 0.55); }
.badge-leaf { background: rgb(143 179 122 / 0.55); }
.badge-sand { background: rgb(232 213 183 / 0.7); }
.badge-terracotta { background: rgb(232 165 152 / 0.55); }
.badge-lavender { background: rgb(197 180 214 / 0.55); }
.badge-sky { background: rgb(184 212 232 / 0.6); }
.badge-rose { background: rgb(227 154 175 / 0.65); }
.badge-gold { background: rgb(217 178 90 / 0.7); }
.badge-teal { background: rgb(108 175 166 / 0.6); }
.badge-stone { background: rgb(183 177 168 / 0.7); }

.toast-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--paper);
  color: var(--ink);
  border-radius: 1.25rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 30px rgb(61 58 55 / 0.08);
  animation: toast-in 0.2s ease;
}

.toast.is-error {
  background: #f3d6d0;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.25rem;
}

.watch-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.75rem;
}

.watch-tile.is-picked {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
}

.watch-poster {
  aspect-ratio: 2 / 3;
  background: rgb(197 180 214 / 0.35);
  overflow: hidden;
}

.watch-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

.watch-tile-body {
  padding: 0.9rem 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.watch-tile-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.cal-month {
  gap: 0.2rem;
  padding: 0.4rem;
  background: var(--paper);
  border-radius: 1.75rem;
  overflow: visible;
}

.cal-day {
  position: relative;
  min-height: 7.25rem;
  padding: 0;
  text-align: left;
  border-radius: 1.15rem;
  background: transparent;
  overflow: visible;
}

.cal-day-fly {
  min-height: 7.25rem;
  height: 100%;
  padding: 0.65rem 0.7rem;
  border-radius: 1.15rem;
}

.cal-day:hover:not(:disabled) {
  background: transparent;
}

.cal-day:disabled {
  opacity: 0.28;
}

.cal-day.is-today .cal-day-fly {
  background: rgb(232 213 183 / 0.42);
}

.cal-day-num {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cal-day-events {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cal-more {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.cal-event,
.cal-block {
  margin: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  text-align: left;
}

.cal-event.has-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  white-space: normal;
  border-radius: 0.8rem;
  padding: 0.28rem 0.5rem 0.3rem;
  line-height: 1.15;
}

.cal-event-time {
  display: block;
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.88;
}

.cal-event-title {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-event.is-extra {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cal-day:hover:not(:disabled) {
    z-index: 8;
  }

  .cal-day:hover:not(:disabled) .cal-day-fly {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max(100%, 16rem);
    min-height: 100%;
    height: auto;
    padding: 0.75rem 0.9rem 0.95rem;
    background: var(--paper);
    box-shadow: 0 18px 44px rgb(61 58 55 / 0.16);
    z-index: 9;
  }

  .cal-day.is-today:hover:not(:disabled) .cal-day-fly {
    background: var(--paper);
  }

  .cal-day:nth-child(7n):hover:not(:disabled) .cal-day-fly {
    left: auto;
    right: 0;
    transform: none;
  }

  .cal-day:nth-child(7n + 1):hover:not(:disabled) .cal-day-fly {
    left: 0;
    transform: none;
  }

  .cal-day:hover:not(:disabled) .cal-event-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .cal-day:hover:not(:disabled) .cal-event.is-extra {
    display: block;
  }

  .cal-day:hover:not(:disabled) .cal-event.is-extra.has-time {
    display: flex;
  }

  .cal-day:hover:not(:disabled) .cal-more {
    display: none;
  }
}

.event-peek-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.event-peek-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(250 247 242 / 0.78);
}

.event-peek {
  position: relative;
  width: min(32rem, 100%);
  max-height: min(90vh, 40rem);
  overflow: auto;
  border-radius: 2rem;
  background: var(--paper);
  box-shadow: 0 22px 60px rgb(61 58 55 / 0.14);
  padding: 1.15rem 1.25rem 1.2rem;
}

.event-peek-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.event-peek-step,
.event-peek-close {
  min-height: 2.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--canvas);
  font-size: 0.9rem;
}

.event-peek-step:first-child {
  justify-self: start;
}

.event-peek-close {
  justify-self: center;
  background: var(--sand);
}

.event-peek-step:last-child {
  justify-self: end;
}

.event-peek-step:disabled {
  opacity: 0.35;
}

.event-peek-body {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1.5rem;
  background: var(--canvas);
  border-left: 6px solid var(--sand);
}

.event-peek-body.is-sage { border-left-color: var(--sage); }
.event-peek-body.is-sand { border-left-color: var(--sand); }
.event-peek-body.is-terracotta { border-left-color: var(--terracotta); }
.event-peek-body.is-lavender { border-left-color: var(--lavender); }
.event-peek-body.is-sky { border-left-color: var(--sky); }
.event-peek-body.is-rose { border-left-color: var(--rose); }
.event-peek-body.is-gold { border-left-color: var(--gold); }
.event-peek-body.is-teal { border-left-color: var(--teal); }
.event-peek-body.is-leaf { border-left-color: var(--leaf); }
.event-peek-body.is-stone { border-left-color: var(--stone); }

.event-peek-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.event-peek-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.event-peek-when {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
}

.event-peek-note {
  margin: 1rem 0 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.event-peek-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.event-peek-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 1.15rem;
  background: var(--paper);
  color: inherit;
}

.event-peek-link img {
  width: 2.6rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 0.55rem;
}

.event-peek-link-kicker {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.event-peek-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.cal-block {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  white-space: nowrap;
}

.tone-sage { background: rgb(168 197 160 / 0.55); }
.tone-sand { background: rgb(232 213 183 / 0.75); }
.tone-terracotta { background: rgb(232 165 152 / 0.55); }
.tone-lavender { background: rgb(197 180 214 / 0.55); }
.tone-sky { background: rgb(184 212 232 / 0.65); }
.tone-rose { background: rgb(227 154 175 / 0.7); }
.tone-gold { background: rgb(217 178 90 / 0.75); }
.tone-teal { background: rgb(108 175 166 / 0.65); }
.tone-stone { background: rgb(183 177 168 / 0.75); }
.tone-leaf { background: rgb(143 179 122 / 0.65); }

.cal-week-head {
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 1.15rem;
}

.cal-week {
  display: grid;
  grid-template-columns: 3.5rem repeat(7, minmax(0, 1fr));
  gap: 0.15rem;
}

.cal-allday {
  min-height: 4rem;
  border-radius: 1rem;
  background: var(--paper);
}

.cal-hours {
  position: relative;
  min-height: 42rem;
  background: var(--paper);
  border-radius: 1.15rem;
  overflow: hidden;
}

.cal-hour {
  display: block;
  width: 100%;
  height: 4rem;
  background: transparent;
}

.cal-hour:nth-child(odd) {
  background: rgb(250 247 242 / 0.45);
}

.cal-week-head.is-today,
.cal-allday.is-today,
.cal-hours.is-today {
  background: rgb(232 213 183 / 0.42);
}

.account-card {
  border-radius: 1.5rem;
  background: var(--paper);
  padding: 1.35rem 1.5rem 1.45rem;
  margin-bottom: 2rem;
}

.account-card-label,
.pot-stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.account-card-value,
.pot-stat-value {
  margin: 0.2rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pot-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  border-radius: 1.5rem;
  background: var(--paper);
  padding: 1.25rem 1.35rem 1.35rem;
}

.pot-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pot-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

.pot-stat-remain {
  padding-top: 0.15rem;
}

.pot-stat-remain.is-over .pot-stat-value {
  color: var(--terracotta);
}

.pot-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.pot-card-meta .is-warn {
  color: var(--terracotta);
}

.pot-card-link {
  align-self: flex-start;
  margin-top: 0.15rem;
  border-radius: 1rem;
  padding: 0.45rem 0.95rem;
  background: rgb(245 240 232 / 0.85);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
}

.progress-track {
  height: 0.4rem;
  border-radius: 999px;
  background: rgb(232 213 183 / 0.4);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fill-sage { background: var(--sage); }
.fill-sand { background: var(--sand); }
.fill-terracotta { background: var(--terracotta); }
.fill-lavender { background: var(--lavender); }
.fill-sky { background: var(--sky); }

.map-stage {
  max-width: 90rem;
  margin: 0 auto 0.5rem;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

.map-full {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(34rem, 100%);
  aspect-ratio: 1 / 1;
  flex: 0 0 min(34rem, 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--paper);
}

.map-form {
  flex: 1 1 18rem;
  min-width: min(18rem, 100%);
  max-width: 40rem;
}

.map-full .map-wrap,
.map-full .leaflet-container {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  border-radius: 1.5rem;
  cursor: crosshair;
}

.map-wrap {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
}

.leaflet-marker-icon.map-pin {
  background: none;
  border: 0;
}

.leaflet-marker-icon.map-pin i {
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px auto 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgb(61 58 55 / 0.4);
}

.leaflet-marker-icon.map-pin.is-stay i {
  background: #4f8fc4;
}

.leaflet-marker-icon.map-pin.is-person i {
  background: #9b7eb8;
}

.stay-catalog {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.stay-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
}

.stay-tile {
  width: 100%;
  text-align: left;
  background: var(--paper);
  border-radius: 1.35rem;
  padding: 1.1rem 1.15rem;
}

.stay-tile.is-active {
  background: rgb(184 212 232 / 0.45);
}

.stay-tile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.leaflet-container {
  font-family: "Source Sans 3", system-ui, sans-serif;
  border: 0;
}

.leaflet-bar,
.leaflet-control-zoom a {
  border: 0 !important;
  box-shadow: none !important;
}

#agenda {
  scroll-margin-top: calc(var(--site-header-h) + 0.75rem);
}

.overview-side {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
}

.overview-pots-block {
  order: 1;
}

.overview-ideas-block {
  order: 2;
}

.overview-side,
.overview-pots-block,
.overview-ideas-block {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.overview-side::-webkit-scrollbar,
.overview-pots-block::-webkit-scrollbar,
.overview-ideas-block::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (min-width: 1500px) {
  .is-overview .page-overview {
    max-width: 96rem;
  }

  .overview-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr) minmax(18rem, 21rem);
    grid-template-areas: "ideas agenda pots";
    gap: 1.75rem;
    align-items: start;
  }

  .overview-agenda {
    grid-area: agenda;
  }

  .overview-side,
  .overview-side-body {
    display: contents;
  }

  .overview-ideas-block {
    grid-area: ideas;
    order: 0;
  }

  .overview-pots-block {
    grid-area: pots;
    order: 0;
  }

  .overview-side-loading {
    grid-area: ideas;
  }

  .overview-pots-block,
  .overview-ideas-block {
    margin-top: 1.5rem;
    position: sticky;
    top: calc(var(--site-header-h) + 0.75rem);
    max-height: calc(100vh - var(--site-header-h) - 1.5rem);
    overflow-y: auto;
  }

  .overview-pots,
  .overview-ideas {
    grid-template-columns: 1fr;
  }

  .overview-pots {
    margin-bottom: 0;
  }

  .overview-side .font-display.text-3xl,
  .overview-ideas-block .font-display.text-3xl,
  .overview-pots-block .font-display.text-3xl {
    font-size: 1.7rem;
  }

  .overview-side .font-display.text-4xl,
  .overview-pots-block .font-display.text-4xl {
    font-size: 2.05rem;
  }

  .overview-ideas-block .idea-card,
  .overview-side .idea-card {
    min-height: 0;
    padding: 0.85rem 1rem;
  }

  .overview-ideas-block .idea-card-img,
  .overview-side .idea-card-img {
    width: 3.6rem;
    height: 5rem;
  }

  .overview-ideas-block .idea-card-img.is-wide,
  .overview-side .idea-card-img.is-wide {
    width: 5rem;
    height: 5rem;
  }

  .overview-ideas-block h3.font-display.text-2xl,
  .overview-side h3.font-display.text-2xl {
    font-size: 1.25rem;
  }
}

@media (min-width: 1800px) {
  .is-overview .page-overview {
    max-width: 112rem;
  }

  .overview-layout {
    grid-template-columns: 24.5rem minmax(0, 1fr) 20rem;
  }
}

.event-sheet {
  width: 100%;
  max-width: 56rem;
  border-radius: 2rem;
  background: var(--paper);
  padding: 2rem 2.1rem 1.75rem;
  box-shadow: 0 18px 50px rgb(61 58 55 / 0.1);
}

.event-sheet-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .event-sheet {
    border-radius: 2rem;
    padding: 2rem 2.1rem 1.75rem;
  }

  .event-sheet-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.event-sheet-field {
  display: block;
  margin-bottom: 1.15rem;
  font-size: 0.875rem;
}

.event-sheet-field input,
.event-sheet-field textarea {
  margin-top: 0.4rem;
  width: 100%;
  border-radius: 1.25rem;
  background: var(--canvas);
  padding: 0.85rem 1.1rem;
}

.event-sheet-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.event-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.event-pill {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: var(--canvas);
  font-size: 0.875rem;
  cursor: pointer;
  border: 0;
}

.event-pill.is-on {
  background: var(--sand);
}

.event-pill.is-on.badge-sage { background: var(--sage); }
.event-pill.is-on.badge-leaf { background: var(--leaf); }
.event-pill.is-on.badge-sand { background: var(--sand); }
.event-pill.is-on.badge-terracotta { background: var(--terracotta); }
.event-pill.is-on.badge-lavender { background: var(--lavender); }
.event-pill.is-on.badge-sky { background: var(--sky); }
.event-pill.is-on.badge-rose { background: var(--rose); }
.event-pill.is-on.badge-gold { background: var(--gold); }
.event-pill.is-on.badge-teal { background: var(--teal); }
.event-pill.is-on.badge-stone { background: var(--stone); }

.link-card {
  background: var(--canvas);
  border-radius: 1.5rem;
  padding: 1rem 1.1rem 1.05rem;
  margin-bottom: 0.7rem;
}

.link-card-label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.link-search {
  width: 100%;
  margin-top: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
  max-height: 11rem;
  overflow-y: auto;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: var(--paper);
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.25;
}

.link-chip.is-media {
  border-radius: 1.15rem;
  padding: 0.28rem 0.8rem 0.28rem 0.28rem;
}

.link-chip.is-on {
  background: var(--sand);
}

.link-chip-poster {
  width: 1.7rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  object-fit: cover;
  background: rgb(197 180 214 / 0.35);
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.share-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgb(168 197 160 / 0.55);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.share-wa:hover {
  background: var(--sage);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.agenda-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgb(232 213 183 / 0.85);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.agenda-add:hover {
  background: var(--sand);
}

.file-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  padding: 0.7rem 1.25rem;
  background: var(--terracotta);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.file-pick:hover {
  background: #f0b5a8;
}

.file-pick-leaf {
  background: var(--leaf);
}

.file-pick-leaf:hover {
  background: #9fc28a;
}

.garden-plan-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .garden-plan-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }
}

.garden-tips {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--muted);
}

.garden-task {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--canvas);
  border-radius: 1.25rem;
  padding: 0.85rem 1rem;
}

.pet-card {
  position: relative;
  border-top: 6px solid var(--rose);
}

.pet-died-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgb(255 252 248 / 0.92);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.pet-died-btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.pet-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.pet-care-edit {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--canvas);
  border-radius: 1.25rem;
  padding: 0.9rem 1rem;
}

.pet-care-edit input[type="number"] {
  width: 4.5rem;
  -webkit-appearance: auto;
  appearance: auto;
}

.repeat-n {
  width: 4.5rem;
  border-radius: 1rem;
  padding: 0.45rem 0.7rem;
  background: var(--canvas);
  -webkit-appearance: auto;
  appearance: auto;
}

.garden-hit {
  display: flex;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  background: var(--canvas);
  border-radius: 1.25rem;
  padding: 0.75rem;
}

.garden-hit-img {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: cover;
  border-radius: 0.9rem;
  flex-shrink: 0;
  background: rgb(143 179 122 / 0.25);
}

.care-block {
  background: var(--canvas);
  border-radius: 1.35rem;
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 0.85rem;
}

.care-block input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--leaf);
}

.idea-card {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  min-height: 7rem;
  background: var(--paper);
  border-radius: 1.5rem;
  padding: 1rem 1.15rem;
}

.idea-card-img {
  width: 4.4rem;
  height: 6.1rem;
  border-radius: 1rem;
  object-fit: cover;
  background: rgb(197 180 214 / 0.35);
  flex-shrink: 0;
}

.idea-card-img.is-wide {
  width: 6.1rem;
  height: 6.1rem;
}

.job-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.job-thumb-wrap {
  position: relative;
}

.job-thumb {
  display: block;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 0.95rem;
  object-fit: cover;
  background: var(--canvas);
}

.job-thumb-remove {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.12);
}

.job-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.job-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: var(--canvas);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-avatar {
  width: 4.1rem;
  height: 4.1rem;
  border-radius: 1.1rem;
  object-fit: cover;
  background: var(--canvas);
  flex-shrink: 0;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  border: 0;
  background: var(--terracotta);
  color: var(--ink);
  border-radius: 1rem;
  padding: 0.65rem 1.2rem;
  margin-right: 0.85rem;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.chart-months {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 14rem;
}

.chart-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-pair {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
}

.chart-bar {
  width: 42%;
  max-width: 1.4rem;
  min-height: 0.3rem;
  border-radius: 0.7rem 0.7rem 0.35rem 0.35rem;
}

.chart-bar-solo {
  width: 70%;
  max-width: 1.6rem;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.history-table th,
.history-table td {
  padding: 0.7rem 0.75rem;
  text-align: right;
  white-space: nowrap;
}

.history-table th:first-child,
.history-table td:first-child {
  text-align: left;
}

.history-table tbody tr + tr td {
  border-top: 1px solid rgb(61 58 55 / 0.08);
}

.nice-pick {
  position: relative;
}

.nice-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 500;
  white-space: nowrap;
}

.nice-pick-btn.is-soft {
  background: rgb(245 240 232 / 0.85);
}

.nice-pick-btn::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  margin-top: -0.15rem;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
}

.nice-pick.is-open .nice-pick-btn {
  background: var(--sage);
}

.nice-pick.is-open .nice-pick-btn::after {
  margin-top: 0.15rem;
  transform: rotate(-135deg);
}

.nice-pick-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 11rem;
  max-height: 17rem;
  overflow: auto;
  padding: 0.45rem;
  border-radius: 1.4rem;
  background: var(--paper);
  box-shadow: 0 16px 40px rgb(61 58 55 / 0.14);
  scrollbar-width: none;
}

.nice-pick-menu::-webkit-scrollbar {
  display: none;
}

.nice-pick-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: transparent;
}

.nice-pick-option:hover {
  background: rgb(168 197 160 / 0.35);
}

.nice-pick-option.is-active {
  background: var(--sage);
}

.cal-week-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.cal-week-scroll .cal-week {
  min-width: 44rem;
}

input,
select,
textarea {
  font-size: 1rem;
}

.event-sheet-field input[type="date"],
.event-sheet-field input[type="datetime-local"] {
  min-height: 2.85rem;
}

.time-entry-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .time-entry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.time-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.time-hour-pick {
  position: relative;
}

.time-hour-btn {
  min-width: 3.5rem;
  min-height: 2.5rem;
  justify-content: center;
  padding: 0.4rem 0.85rem 0.4rem 1rem;
  background: rgb(245 240 232 / 0.85);
}

.time-hour-menu {
  left: 0;
  right: auto;
  top: calc(100% + 0.4rem);
  min-width: 16.5rem;
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.6rem;
  z-index: 70;
}

.time-hour-opt {
  height: 2.2rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.time-hour-opt:hover {
  background: rgb(168 197 160 / 0.35);
}

.time-hour-opt.is-active {
  background: var(--sand);
  font-weight: 600;
}

.time-hour-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.time-mins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.time-min {
  min-width: 2.45rem;
  height: 2.35rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgb(245 240 232 / 0.7);
  font-size: 0.9rem;
}

.time-min.is-on {
  background: var(--sand);
  font-weight: 600;
}

@media (max-width: 899px) {
  .page-main {
    padding: 1rem 1rem 4rem;
  }

  h1.font-display.text-4xl {
    font-size: 1.85rem;
  }

  .cal-day {
    min-height: 5.1rem;
  }

  .cal-day-fly {
    min-height: 5.1rem;
    padding: 0.4rem 0.3rem;
  }

  .cal-event,
  .cal-block {
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
  }

  .cal-event.has-time {
    padding: 0.2rem 0.35rem 0.22rem;
    border-radius: 0.65rem;
  }

  .watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .map-stage {
    padding: 0 1rem 1.25rem;
  }

  .map-full {
    width: 100%;
    flex: 1 1 100%;
  }

  .event-sheet {
    padding: 1.25rem 1.1rem 1.15rem;
    border-radius: 1.5rem;
  }

  .toast-stack {
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

.page-settings {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 1.25rem;
  padding: 0.65rem 1.15rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.page-settings svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.page-settings.is-pill {
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.settings-section {
  scroll-margin-top: calc(var(--site-header-h) + env(safe-area-inset-top, 0px) + 1rem);
  transition: box-shadow 0.4s ease;
}

.settings-section.is-hash-target {
  box-shadow: 0 0 0 4px rgb(232 213 183 / 0.9);
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgb(61 58 55 / 0.08);
}

.settings-row-add {
  border-bottom: 0;
  padding-top: 1rem;
}

.settings-row input[type="text"] {
  flex: 1 1 11rem;
  min-width: 9rem;
}

.settings-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.color-pick {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgb(61 58 55 / 0.16);
  cursor: pointer;
  background: var(--paper);
}

.color-pick:focus-within {
  box-shadow: 0 0 0 2px rgb(168 197 160 / 0.55);
}

.color-pick input[type="color"] {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.color-pick input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-pick input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}

.color-pick input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 999px;
}

.recipe-filter {
  margin-bottom: 2rem;
}

.recipe-filter-search {
  width: 100%;
  border-radius: 1.25rem;
  background: var(--paper);
  padding: 0.9rem 1.15rem;
  margin-bottom: 0.75rem;
}

.recipe-filter-trigger {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  border-radius: 1.25rem;
  background: var(--paper);
  padding: 0.85rem 1.1rem;
  text-align: left;
  box-shadow: 0 10px 28px rgb(61 58 55 / 0.05);
}

.recipe-filter-trigger-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgb(232 165 152 / 0.45);
  color: var(--ink);
}

.recipe-filter-trigger-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.recipe-filter-trigger-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.recipe-filter-trigger-summary {
  display: block;
  margin-top: 0.12rem;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-filter-count {
  display: grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 600;
}

.recipe-filter-chevron {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -0.25rem;
  opacity: 0.7;
}

.recipe-filter-active {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.recipe-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.85rem;
  background: var(--paper);
  font-size: 0.82rem;
}

.recipe-filter-chip-x {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: rgb(61 58 55 / 0.08);
  font-size: 0.85rem;
  line-height: 1;
  color: var(--muted);
}

.recipe-filter-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.recipe-filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(250 247 242 / 0.78);
}

.recipe-filter-panel {
  position: relative;
  width: 100%;
  max-height: min(88vh, 42rem);
  overflow: auto;
  border-radius: 1.75rem 1.75rem 0 0;
  background: var(--paper);
  padding: 0.35rem 1.25rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 50px rgb(61 58 55 / 0.12);
}

.recipe-filter-handle {
  width: 2.6rem;
  height: 0.28rem;
  margin: 0.45rem auto 0.85rem;
  border-radius: 999px;
  background: rgb(61 58 55 / 0.16);
}

.recipe-filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.recipe-filter-head h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
}

.recipe-filter-section {
  margin-bottom: 1.25rem;
}

.recipe-filter-section h4 {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.recipe-filter-hint {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.recipe-filter-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.recipe-filter-actions .is-primary {
  flex: 1 1 auto;
}

.fold-desktop {
  display: none;
}

@media (min-width: 720px) {
  .recipe-filter-layer {
    align-items: center;
    padding: 1.5rem;
  }

  .recipe-filter-panel {
    max-width: 28rem;
    border-radius: 2rem;
    padding: 1.4rem 1.55rem 1.35rem;
  }

  .recipe-filter-handle {
    display: none;
  }

  .fold-desktop {
    display: flex;
  }

  .fold-mobile {
    display: none !important;
  }
}

.recipe-filter-trigger.is-sand .recipe-filter-trigger-icon {
  background: rgb(232 213 183 / 0.75);
}

.recipe-filter-trigger.is-lavender .recipe-filter-trigger-icon {
  background: rgb(197 180 214 / 0.6);
}

.recipe-filter-trigger.is-sky .recipe-filter-trigger-icon {
  background: rgb(184 212 232 / 0.75);
}

.recipe-filter-trigger.is-rose .recipe-filter-trigger-icon {
  background: rgb(227 154 175 / 0.55);
}

.recipe-filter-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 0.9rem;
}

.recipe-filter-bars i {
  display: block;
  height: 1.6px;
  background: currentColor;
  border-radius: 99px;
}

.recipe-filter-bars i:nth-child(1) { width: 100%; }
.recipe-filter-bars i:nth-child(2) { width: 72%; }
.recipe-filter-bars i:nth-child(3) { width: 42%; }

@media (max-width: 719px) {
  .month-pills,
  .choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-pills .event-pill,
  .choice-grid .event-pill {
    text-align: center;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
}

body.is-public {
  padding-top: 0;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: min(28rem, 100%);
  background: var(--paper);
  border-radius: 1.75rem;
  padding: 2rem 1.6rem 1.7rem;
  box-shadow: 0 18px 40px rgb(61 58 55 / 0.08);
}

.auth-card h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.1rem;
  margin: 0 0 0.35rem;
}

.auth-card p.lead {
  color: var(--muted);
  margin: 0 0 1.4rem;
  line-height: 1.45;
}

.auth-card label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.auth-card input {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  background: var(--canvas);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
}

.auth-actions button {
  border-radius: 1rem;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
}

.auth-card a {
  color: var(--muted);
  text-decoration: underline;
}

.account-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.account-menu button,
.account-menu a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.account-menu a.admin-link {
  background: var(--sand);
  color: var(--ink);
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgb(61 58 55 / 0.08);
  vertical-align: middle;
}

.admin-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

