:root {
  color-scheme: light;
  --ink: #18302d;
  --muted: #68736e;
  --paper: #f4f2ec;
  --panel: #fbfaf7;
  --line: #d6d9d1;
  --moss: #526b56;
  --moss-dark: #355044;
  --sage: #a9b7a4;
  --fig: #755264;
  --clay: #a5684f;
  --gold: #b38a3e;
  --blue: #4f7481;
  --shadow: 0 18px 55px rgba(42, 53, 46, 0.12);
  --topbar-height: 84px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(82, 107, 86, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 107, 86, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  overflow-x: clip;
}

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

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(79, 116, 129, 0.32);
  outline-offset: 2px;
}

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

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 3vw, 46px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: 0;
}

.brand-copy > span {
  margin-top: 5px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.view-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e9e9e3;
  border-radius: 8px;
}

.view-tab {
  min-height: 38px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
}

.view-tab.active {
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 1px 5px rgba(42, 53, 46, 0.11);
}

.primary-command {
  justify-self: end;
  min-height: 42px;
  padding: 0 17px;
  color: #fff;
  background: var(--moss-dark);
  border: 1px solid var(--moss-dark);
  border-radius: 7px;
  font-weight: 750;
  font-size: 13px;
}

.primary-command:hover {
  background: #273f36;
}

.primary-command span {
  display: inline-block;
  margin-right: 5px;
  font-size: 20px;
  line-height: 0;
  transform: translateY(1px);
}

.control-band {
  display: grid;
  grid-template-columns: minmax(210px, 360px) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 3vw, 46px);
  background: rgba(244, 242, 236, 0.95);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.search-control input,
.thing-dialog input,
.thing-dialog select,
.thing-dialog textarea,
.control-actions select {
  width: 100%;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #c9cec6;
  border-radius: 7px;
}

.search-control input {
  height: 42px;
  padding: 0 14px;
}

.filter-row {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row[hidden] {
  display: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.quiet-button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid #c9cec6;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.filter-chip.active,
.quiet-button[aria-pressed="true"] {
  color: #fff;
  background: var(--moss);
  border-color: var(--moss);
}

.control-actions {
  display: flex;
  gap: 8px;
}

.control-actions select {
  height: 38px;
  min-width: 150px;
  padding: 0 30px 0 10px;
  font-size: 13px;
  font-weight: 700;
}

main {
  width: min(1560px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 58px) clamp(18px, 3vw, 46px) 80px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 34px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.collection-summary {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.care-card {
  position: relative;
  min-width: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(42, 53, 46, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card-open-button {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.care-card:hover {
  transform: translateY(-2px);
  border-color: #afb8ad;
  box-shadow: 0 14px 36px rgba(42, 53, 46, 0.11);
}

.care-portrait {
  position: relative;
  height: 142px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--portrait);
  border-bottom: 1px solid rgba(24, 48, 45, 0.1);
}

.care-portrait.has-image,
.drawer-portrait.has-image {
  background-color: var(--portrait);
  background-image:
    linear-gradient(to bottom, rgba(24, 48, 45, 0.02), rgba(24, 48, 45, 0.24)),
    var(--portrait-image);
  background-position: center;
  background-size: cover;
}

.care-portrait.has-image {
  place-items: end start;
  padding: 10px;
}

.care-portrait.has-image::before,
.care-portrait.has-image::after {
  display: none;
}

.care-portrait.has-image .care-mark,
.drawer-portrait.has-image .care-mark {
  display: none;
}

.care-portrait::before,
.care-portrait::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.care-portrait::before {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: -32px;
  bottom: -72px;
}

.care-portrait::after {
  width: 86px;
  height: 86px;
  border-radius: 3px;
  left: -28px;
  top: -33px;
  transform: rotate(24deg);
}

.care-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.care-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.category-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.status-good {
  color: #3f6c50;
  background: #e3eee3;
}

.status-soon {
  color: #856421;
  background: #f4ead0;
}

.status-watch {
  color: #5c627e;
  background: #e8e8ef;
}

.status-attention {
  color: #8c4d3f;
  background: #f2dfd8;
}

.care-card h2 {
  margin: 13px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.care-summary {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.next-care {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #e0e2dc;
}

.next-care.has-task-image {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 11px;
}

.next-care-image {
  width: 58px;
  height: 58px;
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  object-fit: cover;
  background: #f7f0df;
  border-radius: 7px;
}

.next-care.has-task-image > span,
.next-care.has-task-image > strong,
.next-care.has-task-image > small {
  grid-column: 2;
}

.next-care > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-care strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.next-care small {
  display: block;
  margin-top: 5px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 750;
}

.mini-calendar-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(24, 32, 29, 0.07);
}

.mini-calendar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mini-calendar-heading .eyebrow {
  margin: 0 0 5px;
}

.mini-calendar-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.mini-calendar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-calendar-nav > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--moss-dark);
  background: #f1f3ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.mini-calendar-nav > button:hover,
.mini-calendar-nav > button:focus-visible {
  background: #e8ece6;
}

.mini-calendar-nav .mini-calendar-today {
  width: auto;
  display: flex;
  padding: 0 5px 0 8px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  font-size: 10px;
}

.mini-calendar-today strong {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-left: 6px;
  color: #fff;
  background: var(--moss-dark);
  border-radius: 50%;
  font-size: 11px;
}

.mini-calendar-weekdays,
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mini-calendar-weekdays span {
  padding: 5px 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.mini-calendar-weekdays span:first-child,
.mini-calendar-weekdays span:last-child,
.mini-calendar-day:nth-child(7n + 1),
.mini-calendar-day:nth-child(7n) {
  background: #f3f4f2;
}

.mini-calendar-day {
  position: relative;
  min-width: 0;
  min-height: min(36px, 6vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
}

.mini-calendar-day:hover,
.mini-calendar-day:focus-visible {
  background: #eef1ed;
}

.mini-calendar-day.selected {
  box-shadow: inset 0 0 0 1px var(--moss-dark);
}

.mini-calendar-day.outside {
  color: #a4aaa6;
}

.mini-calendar-day.today > .mini-calendar-date-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--moss-dark);
  border-radius: 50%;
}

.mini-calendar-indicators {
  min-height: 4px;
  display: flex;
  justify-content: center;
  gap: 2px;
  font-style: normal;
}

.mini-calendar-indicators b {
  width: 4px;
  height: 4px;
  background: #718077;
  border-radius: 50%;
}

.mini-calendar-indicators .history {
  background: var(--blue);
}

.mini-calendar-indicators .status-attention {
  background: #9a5748;
}

.mini-calendar-indicators .status-soon {
  background: #a37b2f;
}

.mini-calendar-indicators .status-watch {
  background: #666d88;
}

.mini-calendar-indicators .status-good {
  background: #477158;
}

.mini-calendar-tooltip {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 7px);
  width: 220px;
  max-width: calc(100vw - 36px);
  display: block;
  padding: 10px 11px;
  color: #fff;
  text-align: left;
  background: #26352f;
  border: 1px solid #40524a;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(24, 32, 29, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

.mini-calendar-day:hover .mini-calendar-tooltip,
.mini-calendar-day:focus-visible .mini-calendar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mini-calendar-day:nth-child(7n + 1) .mini-calendar-tooltip {
  left: 0;
  transform: translate(0, 3px);
}

.mini-calendar-day:nth-child(7n + 1):hover .mini-calendar-tooltip,
.mini-calendar-day:nth-child(7n + 1):focus-visible .mini-calendar-tooltip {
  transform: translate(0, 0);
}

.mini-calendar-day:nth-child(7n) .mini-calendar-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 3px);
}

.mini-calendar-day:nth-child(7n):hover .mini-calendar-tooltip,
.mini-calendar-day:nth-child(7n):focus-visible .mini-calendar-tooltip {
  transform: translate(0, 0);
}

.mini-calendar-tooltip > strong,
.mini-calendar-tooltip > span,
.mini-calendar-tooltip b,
.mini-calendar-tooltip small {
  display: block;
}

.mini-calendar-tooltip > strong {
  margin-bottom: 5px;
  color: #c9d4ce;
  font-size: 9px;
  text-transform: uppercase;
}

.mini-calendar-tooltip > span {
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.mini-calendar-tooltip > span:first-of-type {
  border-top: 0;
}

.mini-calendar-tooltip b {
  font-size: 11px;
  line-height: 1.25;
}

.mini-calendar-tooltip small {
  margin-top: 2px;
  color: #d8dfdb;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

.mini-calendar-tooltip em {
  display: block;
  margin-top: 4px;
  color: #c9d4ce;
  font-size: 9px;
  font-style: normal;
}

.text-command {
  margin-top: 16px;
  padding: 0 0 4px;
  color: var(--moss-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.mini-calendar-panel > .text-command {
  display: block;
  margin-left: auto;
  padding-bottom: 0;
  border-bottom: 0;
}

.task-date-filter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 20px;
  padding: 8px 2px 14px;
}

.task-date-filter .eyebrow {
  margin: 0 0 4px;
}

.task-date-filter h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.task-date-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.task-date-filter button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--moss-dark);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.task-date-filter button:hover,
.task-date-filter button:focus-visible {
  background: #eef1ed;
}

@media (max-width: 560px) {
  .task-date-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-date-filter-actions {
    justify-content: flex-start;
  }
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
  background: var(--panel);
  border: 1px dashed #bfc5bc;
  border-radius: 8px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.empty-state-first-homebook {
  min-height: 400px;
  background:
    radial-gradient(circle at 50% 45%, rgba(238, 207, 177, 0.3), transparent 34%),
    var(--panel);
  border-color: rgba(74, 105, 81, 0.36);
}

.empty-state-first-homebook > div {
  width: 100%;
  display: grid;
  justify-items: center;
}

.empty-state-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--moss-dark);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

.empty-state-first-homebook .eyebrow {
  margin-bottom: 8px;
  color: var(--moss);
}

.empty-state-first-homebook h2 {
  margin-bottom: 10px;
  font-size: 34px;
}

.empty-state-categories {
  width: min(580px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.empty-state-category {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(41, 57, 47, 0.05);
  cursor: pointer;
}

.empty-state-category:hover,
.empty-state-category:focus-visible,
.empty-state-category[aria-pressed="true"] {
  background: #eef3eb;
  border-color: rgba(53, 87, 70, 0.5);
  transform: translateY(-1px);
}

.empty-state-category:focus-visible {
  outline: 3px solid rgba(84, 119, 139, 0.24);
  outline-offset: 2px;
}

.empty-state-category-thumb {
  width: 54px;
  height: 42px;
  display: block;
  overflow: hidden;
  background: #f6f3ea;
  border-radius: 6px;
}

.empty-state-category-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.empty-state-category strong {
  font-size: 13px;
  font-weight: 850;
}

.first-homebook-form-host {
  width: 100%;
}

.first-homebook-form-host:not(:empty) {
  margin-top: 12px;
}

.thing-dialog.is-first-homebook-embedded {
  width: 100%;
  height: auto !important;
  min-height: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.thing-dialog.is-first-homebook-embedded[data-homebook-step="1"] {
  width: min(580px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.thing-dialog.is-first-homebook-embedded
  .homebook-cover-options {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  flex: none !important;
  max-height: none;
  overflow: visible;
}

.thing-dialog.is-embedded.is-first-homebook-embedded form {
  height: auto !important;
  min-height: 0 !important;
  padding: 0;
}

.thing-dialog.is-embedded.is-first-homebook-embedded #thingCoverField {
  flex: none !important;
  overflow: visible !important;
}

.thing-dialog.is-first-homebook-embedded .dialog-heading {
  display: none;
}

.thing-dialog.is-first-homebook-embedded #homebookSetupFields {
  display: block;
}

.thing-dialog.is-first-homebook-embedded #thingCategoryLabel {
  display: none !important;
}

.thing-dialog.is-first-homebook-embedded #thingKindLabel,
.thing-dialog.is-first-homebook-embedded #thingKindPicker,
.thing-dialog.is-first-homebook-embedded #thingKindPickerButton {
  width: 100%;
}

.thing-dialog.is-first-homebook-embedded #thingKindLabel > span:first-child {
  display: none;
}

.thing-dialog.is-first-homebook-embedded[data-first-homebook-has-subject="false"]
  #thingNameLabel,
.thing-dialog.is-first-homebook-embedded[data-first-homebook-has-subject="false"]
  #thingSummaryLabel,
.thing-dialog.is-first-homebook-embedded[data-first-homebook-has-subject="false"]
  .dialog-actions {
  display: none;
}

.thing-dialog.is-embedded.is-first-homebook-embedded .dialog-actions {
  position: static;
  margin: 8px 0 0;
  padding: 16px 0 0;
  background: transparent;
  border-top: 0;
  box-shadow: none;
}

.thing-dialog.is-first-homebook-embedded[data-homebook-step="1"]
  #homebookWizardPrevious {
  display: none;
}

.empty-state-first-homebook:has(
    .thing-dialog.is-first-homebook-embedded:not([data-homebook-step="1"])
  )
  .empty-state-categories,
.empty-state-first-homebook:has(
    .thing-dialog.is-first-homebook-embedded:not([data-homebook-step="1"])
  )
  .empty-state-mark,
.empty-state-first-homebook:has(
    .thing-dialog.is-first-homebook-embedded:not([data-homebook-step="1"])
  )
  > div
  > .eyebrow,
.empty-state-first-homebook:has(
    .thing-dialog.is-first-homebook-embedded:not([data-homebook-step="1"])
  )
  > div
  > h2,
.empty-state-first-homebook:has(
    .thing-dialog.is-first-homebook-embedded:not([data-homebook-step="1"])
  )
  > div
  > p {
  display: none;
}

.empty-state-first-homebook:has(
    .thing-dialog.is-first-homebook-embedded:not([data-homebook-step="1"])
  ) {
  place-items: start stretch;
}

@media (max-width: 620px) {
  .empty-state-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .empty-state-category {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .empty-state-category-thumb {
    width: 46px;
    height: 38px;
  }
}

.month-board {
  max-width: 1400px;
  margin: 0 auto;
}

.calendar-toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 14px;
}

.calendar-month-navigation {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calendar-month-navigation > div {
  min-width: 190px;
  text-align: center;
}

.calendar-month-navigation .eyebrow {
  margin-bottom: 3px;
}

.calendar-month-navigation h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.calendar-nav-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 18px;
}

.calendar-nav-button:hover {
  background: #edf0eb;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #eef1ed;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.calendar-weekdays span {
  padding: 9px 10px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-weekdays span:first-child {
  border-left: 0;
}

.calendar-weekdays span:first-child,
.calendar-weekdays span:last-child {
  background: #e6e9e5;
}

.calendar-weekdays b {
  display: none;
}

.calendar-weekdays em {
  font-style: normal;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(24, 32, 29, 0.07);
}

.calendar-day {
  min-width: 0;
  min-height: 108px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-day:nth-child(7n + 1),
.calendar-day:nth-child(7n) {
  background: #f3e7dd;
}

.calendar-day.selected {
  box-shadow: inset 0 0 0 2px rgba(79, 116, 129, 0.38);
}

.calendar-day.outside-month {
  background: #f3f4f1;
}

.calendar-day.outside-month .calendar-date-button {
  color: #9aa29d;
}

.calendar-day.outside-month .calendar-task {
  opacity: 0.66;
}

.calendar-date-button {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  padding: 0 7px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}

.calendar-date-button small {
  font-size: 8px;
  text-transform: uppercase;
}

.calendar-day.today {
  background: #f4f7f2;
}

.calendar-day.today .calendar-date-button {
  color: #fff;
  background: var(--moss-dark);
}

.calendar-day-items {
  min-width: 0;
  max-height: 82px;
  display: grid;
  gap: 3px;
  margin-top: 5px;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b8c2ba transparent;
  scrollbar-width: thin;
}

.calendar-day-items::-webkit-scrollbar {
  width: 5px;
}

.calendar-day-items::-webkit-scrollbar-thumb {
  background: #b8c2ba;
  border-radius: 999px;
}

.calendar-task {
  width: 100%;
  min-width: 0;
  display: block;
  padding: 5px 7px;
  color: var(--ink);
  text-align: left;
  background: #f4f5f2;
  border: 0;
  border-left: 3px solid #718077;
  border-radius: 4px;
}

.calendar-task:hover,
.calendar-agenda-task:hover,
.calendar-flexible-task:hover {
  background: #ecefe9;
}

.calendar-status-attention {
  border-left-color: #9a5748;
}

.calendar-status-soon {
  border-left-color: #a37b2f;
}

.calendar-status-watch {
  border-left-color: #666d88;
}

.calendar-status-good {
  border-left-color: #477158;
}

.calendar-task-history {
  background: #edf2f3;
  border-left-color: var(--blue);
}

.calendar-task-history .calendar-task-name::before {
  content: "✓";
  margin-right: 4px;
  color: var(--blue);
  font-weight: 900;
}

.calendar-task-name,
.calendar-task-action {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-task-name {
  font-size: 10px;
  font-weight: 850;
}

.calendar-task-action {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.calendar-more {
  padding: 2px 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.calendar-agenda {
  display: none;
}

.calendar-flexible {
  margin-top: 24px;
  padding: 20px;
  background: rgba(251, 250, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.calendar-section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.calendar-section-heading > span {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #edf0eb;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
}

.calendar-flexible-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.calendar-flexible-task {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 2px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
}

.calendar-flexible-task span,
.calendar-flexible-task strong,
.calendar-flexible-task small {
  min-width: 0;
  display: block;
}

.calendar-flexible-task strong {
  font-size: 12px;
}

.calendar-flexible-task small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-flexible-task em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.recent-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.recent-insights {
  display: grid;
  gap: 18px;
}

.recent-overview,
.care-coverage,
.care-log {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recent-overview {
  padding: 25px;
  color: #fff;
  background: var(--moss-dark);
  border-color: var(--moss-dark);
}

.recent-overview .eyebrow {
  color: #bfd0c1;
}

.recent-overview h2,
.recent-panel-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.recent-overview h2 {
  font-size: 34px;
}

.recent-overview-copy {
  min-height: 66px;
  margin: 12px 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.recent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-stats > div {
  min-width: 0;
  padding: 16px 10px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.recent-stats span,
.recent-stats strong {
  display: block;
}

.recent-stats span {
  min-height: 30px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
}

.recent-stats strong {
  margin-top: 6px;
  font-size: 17px;
}

.care-coverage,
.care-log {
  background: rgba(251, 250, 247, 0.92);
}

.care-coverage {
  padding: 22px;
}

.recent-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.recent-panel-heading h2 {
  font-size: 24px;
}

.coverage-list {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.coverage-row {
  width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
}

.coverage-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.coverage-label strong {
  font-size: 13px;
}

.coverage-label small,
.coverage-empty {
  color: var(--muted);
  font-size: 11px;
}

.coverage-track {
  display: block;
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  background: #e5e8e1;
  border-radius: 4px;
}

.coverage-track i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.care-log {
  min-width: 0;
  padding: 24px;
}

.care-log-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.recent-range {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #e9e9e3;
  border-radius: 7px;
}

.recent-range button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 750;
}

.recent-range button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(24, 48, 45, 0.12);
}

.recent-timeline {
  min-width: 0;
}

.care-log-month {
  margin: 26px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.care-log-row {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr) minmax(150px, 0.72fr);
  align-items: center;
  gap: 16px;
  padding: 15px 2px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
}

.care-log-row:hover {
  background: rgba(82, 107, 86, 0.045);
}

.care-log-thumb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--portrait);
  background-image: var(--portrait-image, var(--portrait));
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(82, 107, 86, 0.2);
  border-radius: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.care-log-copy,
.care-log-next {
  min-width: 0;
}

.care-log-copy > strong,
.care-log-copy > span,
.care-log-next > strong,
.care-log-next > span,
.care-log-next > small {
  display: block;
}

.care-log-meta {
  display: flex !important;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.care-log-meta span::before {
  content: "·";
  margin-right: 8px;
}

.care-log-copy > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.care-log-copy > span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.care-log-next {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.care-log-next small {
  color: var(--moss);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.care-log-next strong {
  margin-top: 3px;
  font-size: 13px;
}

.care-log-next span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.recent-empty {
  padding: 70px 20px;
  text-align: center;
}

.recent-empty h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.recent-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.scrim {
  position: fixed;
  z-index: 1300;
  inset: 0;
  background: rgba(24, 35, 31, 0.82);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  z-index: 1400;
  top: 50%;
  left: 50%;
  width: 61.8vw;
  min-width: min(1100px, 100vw);
  max-width: 100vw;
  height: 100%;
  max-height: 1460px;
  overflow: hidden;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(24, 35, 31, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer #drawerContent {
  height: 100%;
  display: grid;
  grid-template-columns: 38.2% 61.8%;
  min-height: 0;
}

.drawer-aside {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(200px, 38.2%) minmax(280px, 61.8%);
  overflow: hidden;
  background: #f5f1e5;
}

.close-button {
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  background: rgba(251, 250, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
}

.drawer > .close-button {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
}

.drawer-portrait {
  min-width: 0;
  min-height: 100%;
  display: grid;
  place-items: center;
  background: var(--portrait);
}

.drawer-portrait.has-image {
  place-items: end start;
  padding: 18px;
}

.drawer-portrait .care-mark {
  width: 102px;
  height: 102px;
  font-size: 54px;
}

.drawer-notepad {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  background:
    linear-gradient(90deg, transparent 0 34px, rgba(177, 92, 75, 0.18) 34px 35px, transparent 35px),
    #fbf8ed;
  border-top: 1px solid #ddd5c2;
}

.drawer-notepad-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px 22px;
  color: var(--moss-dark);
}

.drawer-notepad-heading strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

.drawer-notepad-heading small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.drawer-notepad textarea {
  flex: 1;
  min-height: 0;
  padding: 1px 8px 1px 22px;
  resize: none;
  color: #314039;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      rgba(82, 107, 86, 0.16) 27px,
      rgba(82, 107, 86, 0.16) 28px
    );
  background-color: #fbf8ed;
  background-attachment: local;
  border: 0;
  border-radius: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 28px;
}

.drawer-notepad textarea:focus-visible {
  outline: 2px solid rgba(82, 107, 86, 0.5);
  outline-offset: 3px;
}

.drawer-body {
  min-width: 0;
  overflow-y: auto;
  padding: 28px clamp(22px, 5vw, 42px) 48px;
}

.drawer-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-right: 36px;
}

.drawer-title-copy {
  min-width: 0;
}

.drawer-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-name-row h2 {
  margin: 5px 0px 0px 0px;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.drawer-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.drawer-title-edit {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  place-items: center;
  color: var(--moss);
  background: transparent;
  border-color: transparent;
  border-radius: 50%;
  box-shadow: none;
}

.drawer-title-edit:hover {
  background: #eef1eb;
  border-color: transparent;
}

.drawer-title-edit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.care-callout {
  position: relative;
  margin: 26px 0;
  padding: 20px;
  background: #e8ece3;
  border-left: 4px solid var(--moss);
  border-radius: 4px;
}

.care-callout[data-collapse-drawer-task] {
  cursor: pointer;
  transition: box-shadow 150ms ease;
}

.care-callout[data-collapse-drawer-task]:hover {
  box-shadow: 0 8px 22px rgba(42, 53, 46, 0.12);
}

.care-callout[data-collapse-drawer-task]:focus-visible {
  outline: 2px solid rgba(53, 87, 70, 0.5);
  outline-offset: 2px;
}

.care-callout.has-task-image {
  display: grid;
  grid-template-columns: 31.2% 68.8%;
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  border-left: 0;
}

.care-callout-image {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.care-callout-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.care-callout.has-task-image .care-callout-copy {
  padding: 20px;
  border-left: 3px solid var(--moss);
}

.care-callout-copy > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.care-callout h3 {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.care-callout p {
  margin: 0 0;
  color: var(--muted);
  font-size: 13px;
}

.care-callout-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.care-callout-actions .tended-button,
.care-callout-actions .task-edit-button {
  height: 46px;
  min-height: 46px;
}

.care-callout-actions .tended-button {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.care-callout-actions .task-edit-button {
  padding: 0 18px;
  color: var(--moss-dark);
  background: #cad7e3;
  border-color: var(--moss);
}

.tended-button {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 7px;
  color: var(--moss-dark);
  background: #f7faf3;
  border: 1px solid var(--moss-dark);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transform: translateY(0);
  transition:
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.tended-check-box {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  overflow: hidden;
  color: transparent;
  background: #fff;
  border: 2px solid var(--moss);
  border-radius: 9px;
  box-shadow: inset 0 2px 4px rgba(31, 58, 46, 0.12);
  font-size: 21px;
  line-height: 1;
  transform: scale(1);
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.tended-button:hover {
  background: #fff;
  box-shadow: 0 6px 0 #29483a, 0 12px 22px rgba(42, 72, 58, 0.2);
  transform: translateY(-1px);
}

.tended-button:hover .tended-check-box {
  color: rgba(53, 87, 70, 0.28);
  transform: scale(1.06) rotate(-2deg);
}

.tended-button:active {
  box-shadow: 0 2px 0 #29483a, 0 5px 10px rgba(42, 72, 58, 0.14);
  transform: translateY(3px);
}

.tended-button.is-checked {
  color: #fff;
  background: var(--moss-dark);
  box-shadow: 0 2px 0 #29483a, 0 8px 18px rgba(42, 72, 58, 0.2);
  transform: translateY(3px);
}

.tended-button.is-checked .tended-check-box {
  color: var(--moss-dark);
  background: #f4e6a6;
  border-color: #f4e6a6;
  box-shadow: 0 0 0 4px rgba(244, 230, 166, 0.22);
  animation: tended-check-pop 360ms cubic-bezier(0.2, 1.65, 0.4, 1);
}

.tended-button.is-checked:hover {
  background: #29483a;
}

.tended-button.is-checked:hover .tended-check-box {
  color: var(--moss-dark);
  transform: scale(1.06) rotate(2deg);
}

.tended-button.is-unchecking .tended-check-box {
  color: transparent;
  background: #fff;
  border-color: var(--moss);
  box-shadow: inset 0 2px 4px rgba(31, 58, 46, 0.12);
  animation: tended-uncheck-pop 220ms ease-out;
}

.tended-button:focus-visible {
  outline: 3px solid rgba(53, 87, 70, 0.34);
  outline-offset: 4px;
}

.tended-button:disabled {
  opacity: 1;
  cursor: default;
}

.care-callout-actions .tended-button.is-checked {
  box-shadow: none;
  transform: none;
}

@keyframes tended-check-pop {
  0% {
    transform: scale(0.65) rotate(-12deg);
  }
  65% {
    transform: scale(1.18) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes tended-uncheck-pop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(0.78) rotate(-4deg);
  }
  100% {
    transform: scale(1);
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-group(*) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.22, 0.8, 0.3, 1);
}

::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 220ms;
  mix-blend-mode: normal;
}

.task-row-entering {
  animation: task-row-enter 220ms cubic-bezier(0.22, 0.8, 0.3, 1);
  transform-origin: top left;
}

@keyframes task-row-enter {
  from {
    opacity: 0.72;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.drawer-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.task-list-section {
  margin-top: 16px;
  container-type: inline-size;
}

@container (max-width: 560px) {
  .care-callout.has-task-image {
    grid-template-columns: 1fr;
  }

  .care-callout.has-task-image .care-callout-copy {
    border-right: 0;
    border-bottom: 4px solid var(--moss);
  }

  .care-callout.has-task-image .care-callout-image {
    height: auto;
    min-height: 0;
    display: block;
    aspect-ratio: 16 / 9;
  }
}

.drawer-add-task {
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: var(--moss-dark);
  border-color: rgba(53, 87, 70, 0.35);
}

.drawer-add-task span {
  display: inline-block;
  margin-right: 4px;
  font-size: 18px;
  line-height: 0;
  transform: translateY(1px);
}
  
.drawer-add-task:hover {
  color: #000;
  background: #eef3eb;
  border-color: rgba(53, 87, 70, 0.55);
}

.drawer-header-add-task {
  flex: 0 0 auto;
  margin-left: auto;
}

.drawer-section h3 {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer-section .care-callout h3 {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

.care-rhythm-list,
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.care-rhythm-list li {
  border-top: 0px;
}

.care-rhythm-list > .task-list-group + .task-list-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(67, 91, 76, 0.2);
}

.task-list-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 6px;
  color: var(--moss);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  text-transform: capitalize;
  cursor: pointer;
}

.task-list-group-toggle:hover,
.task-list-group-toggle:focus-visible {
  color: var(--moss-dark);
}

.task-list-group-toggle:focus-visible {
  outline: 2px solid rgba(53, 87, 70, 0.38);
  outline-offset: 3px;
}

.task-list-group-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #eef1ed;
  border: 1px solid #d8ded6;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0;
}

.task-list-group-items {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.task-list-group-items[hidden] {
  display: none;
}

.task-list-group-items > li {
  border-top: 0;
}

.task-list-group-items > li.task-list-expanded:first-child {
  padding-top: 6px;
}

.task-list-item-group {
  list-style: none;
  padding-top: 8px;
}

.task-list-item-group + .task-list-item-group {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(67, 91, 76, 0.14);
}

.task-list-item-group > h4 {
  margin: 0;
  padding: 0 8px 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: capitalize;
}

.task-list-item-group > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.care-rhythm-list li.task-list-expanded {
  padding: 14px 0;
}

.care-rhythm-list li.task-list-expanded:first-child {
  padding-top: 0;
}

.task-list-expanded .care-callout {
  margin: 0;
}

.care-rhythm-task {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.care-rhythm-task.has-task-image {
  grid-template-columns: 68px minmax(0, 1fr) auto;
}

.care-rhythm-list li:first-child {
  border-top: 0;
}

.care-rhythm-task:hover {
  background: #f2f5ef;
  transform: translateX(3px);
}

.care-rhythm-task.needs-attention,
.care-callout.needs-attention {
  color: #8f3028;
  background: #fff1ee;
  box-shadow: inset 3px 0 #b7463b;
}

.care-rhythm-task.needs-attention:hover,
.care-rhythm-task.needs-attention:focus-visible,
.care-callout.needs-attention:hover,
.care-callout.needs-attention:focus-visible {
  background: #fce5e0;
}

.care-rhythm-task.needs-attention .care-rhythm-due {
  color: #a3372e;
  font-weight: 800;
}

.care-rhythm-task.coming-soon,
.care-callout.coming-soon {
  color: #8a5610;
  background: #fff5e3;
  box-shadow: inset 3px 0 #dc8421;
}

.care-rhythm-task.coming-soon:hover,
.care-rhythm-task.coming-soon:focus-visible,
.care-callout.coming-soon:hover,
.care-callout.coming-soon:focus-visible {
  background: #ffebc8;
}

.care-rhythm-task.coming-soon .care-rhythm-due {
  color: #a8600f;
  font-weight: 800;
}

.care-callout.has-task-image.needs-attention .care-callout-copy {
  border-left-color: #b7463b;
}

.care-callout.has-task-image.coming-soon .care-callout-copy {
  border-left-color: #dc8421;
}

.care-callout.neutral-priority {
  color: var(--ink);
  background: #fff;
  border-left-color: #d8ddd5;
  box-shadow: inset 0 0 0 1px #dfe3dc;
}

.care-callout.neutral-priority:hover,
.care-callout.neutral-priority:focus-visible {
  background: #f7f8f5;
}

.care-callout.has-task-image.neutral-priority .care-callout-copy {
  border-left-color: #d8ddd5;
}

.care-rhythm-task:focus-visible {
  outline: 2px solid rgba(53, 87, 70, 0.5);
  outline-offset: 2px;
}

.care-rhythm-image {
  width: 68px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #d8ddd5;
  border-radius: 6px;
  box-shadow: 0 3px 9px rgba(42, 53, 46, 0.09);
}

.care-rhythm-copy {
  min-width: 0;
}

.care-rhythm-list .care-rhythm-copy strong,
.care-rhythm-list .care-rhythm-copy small {
  display: block;
}

.care-rhythm-list .care-rhythm-copy strong {
  font-size: 14px;
}

.care-rhythm-list .care-rhythm-due {
  color: var(--moss);
  font-size: 12px;
  font-weight: 750;
}

.care-rhythm-list .care-rhythm-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.history-list li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 10px 10px;
  color: var(--muted);
  background: hsl(var(--history-month-hue, 105) 42% 95%);
  font-size: 13px;
}

.history-list .history-month-1 { --history-month-hue: 210; }
.history-list .history-month-2 { --history-month-hue: 335; }
.history-list .history-month-3 { --history-month-hue: 120; }
.history-list .history-month-4 { --history-month-hue: 80; }
.history-list .history-month-5 { --history-month-hue: 145; }
.history-list .history-month-6 { --history-month-hue: 55; }
.history-list .history-month-7 { --history-month-hue: 28; }
.history-list .history-month-8 { --history-month-hue: 12; }
.history-list .history-month-9 { --history-month-hue: 42; }
.history-list .history-month-10 { --history-month-hue: 20; }
.history-list .history-month-11 { --history-month-hue: 32; }
.history-list .history-month-12 { --history-month-hue: 260; }

.history-list time {
  color: var(--ink);
  font-weight: 750;
}

.history-list li.history-empty {
  display: block;
  padding-top: 12px;
  color: var(--muted);
  background: transparent;
}

.guide-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  color: var(--ink);
  background: #edf0e9;
  border: 1px solid #d6dbd1;
  border-radius: 6px;
  text-decoration: none;
}

.guide-link strong,
.guide-link small {
  display: block;
}

.guide-link small {
  margin-top: 4px;
  color: var(--muted);
}

.guide-link > span:last-child {
  align-self: center;
  color: var(--moss);
  font-size: 18px;
}

.thing-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 64px);
  margin: 24px auto auto;
  padding: 0;
  overflow-y: auto;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thing-dialog::backdrop {
  background: rgba(24, 35, 31, 0.82);
  backdrop-filter: blur(2px);
}

.thing-dialog.is-embedded {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: visible;
  border-color: #d8ded6;
  box-shadow: none;
}

.thing-dialog.is-embedded::backdrop {
  display: none;
}

.thing-dialog.is-embedded form {
  padding: 22px;
}

.thing-dialog.is-embedded .dialog-heading {
  margin-bottom: 0;
}

.thing-dialog.is-embedded .dialog-heading .eyebrow,
.thing-dialog.is-embedded .dialog-close,
.thing-dialog.is-embedded [data-dialog-close] {
  display: none;
}

.thing-dialog.is-embedded .dialog-heading h2 {
  font-size: 28px;
}

.thing-dialog.is-embedded.task-entry-mode .dialog-actions {
  position: static;
  margin: 6px 0 0;
  padding: 16px 0 0;
  background: transparent;
  border-top: 1px solid var(--line);
  box-shadow: none;
}

.care-rhythm-list li.embedded-task-form-row {
  padding: 0;
  border-top: 0;
}

.thing-dialog form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.thing-dialog.homebook-create-mode {
  height: fit-content;
}

.thing-dialog.task-entry-wizard-mode {
  width: min(980px, calc(100vw - 28px));
}

.thing-dialog.homebook-create-mode[data-homebook-step="3"],
.thing-dialog.homebook-create-mode[data-homebook-step="4"] {
  height: calc(100vh - 64px);
}

.thing-dialog.homebook-create-mode[data-homebook-step="2"]:has(
    #thingCoverOptions > .homebook-cover-option:nth-child(7)
  ) {
  height: calc(100vh - 64px);
}

.thing-dialog.homebook-create-mode form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.thing-dialog.homebook-create-mode[data-homebook-step="3"] form,
.thing-dialog.homebook-create-mode[data-homebook-step="4"] form {
  min-height: 100%;
}

.thing-dialog.homebook-create-mode[data-homebook-step="2"]:has(
    #thingCoverOptions > .homebook-cover-option:nth-child(7)
  )
  form {
  height: 100%;
}

.thing-dialog.homebook-create-mode[data-homebook-step="2"]:has(
    #thingCoverOptions > .homebook-cover-option:nth-child(7)
  )
  #thingCoverField {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.thing-dialog.homebook-create-mode[data-homebook-step="2"]
  .homebook-cover-options {
  align-content: start;
  grid-auto-rows: max-content;
}

.thing-dialog.homebook-create-mode[data-homebook-step="2"]:has(
    #thingCoverOptions > .homebook-cover-option:nth-child(7)
  )
  .homebook-cover-options {
  min-height: 0;
  max-height: none;
  flex: 1;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 4px;
}

.dialog-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0;
}

.homebook-wizard-progress {
  display: none;
  margin: 7px 0 0;
  color: var(--moss);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.thing-dialog.homebook-create-mode .homebook-wizard-progress {
  display: block;
}

.house-features-picker {
  display: grid;
  gap: 20px;
}

.house-features-heading h3,
.house-features-heading p,
.house-feature-group h4 {
  margin: 0;
}

.house-features-heading {
  display: grid;
  gap: 6px;
}

.house-features-heading h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
}

.house-features-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.house-feature-groups,
.house-feature-group {
  display: grid;
  gap: 12px;
}

.house-feature-group {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.house-feature-group h4 {
  color: var(--moss);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.house-feature-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.thing-dialog .house-feature-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 42px 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.thing-dialog .house-feature-option:hover {
  border-color: rgba(53, 87, 70, 0.55);
  background: #fafbf8;
}

.thing-dialog .house-feature-option:has(input:checked) {
  border-color: var(--moss);
  background: #f2f6ef;
  box-shadow: inset 0 0 0 1px var(--moss);
}

.house-feature-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.house-feature-option span {
  font-size: 13px;
  font-weight: 800;
}

.house-feature-option span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  translate: 0 -50%;
  color: #fff;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.house-feature-option:has(input:checked) span::after {
  content: "✓";
  background: var(--moss);
  border-color: var(--moss);
  font-size: 12px;
  font-weight: 900;
}

.house-feature-option:has(input:focus-visible) {
  outline: 3px solid rgba(84, 119, 139, 0.3);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .house-feature-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .house-feature-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

.homebook-destination-tiles {
  display: none;
}

.thing-dialog.task-entry-wizard-mode .homebook-destination-tiles {
  display: grid;
  gap: 22px;
}

.thing-dialog.task-entry-wizard-mode #thingDestinationPicker {
  display: none;
}

.homebook-destination-category {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.homebook-destination-category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.homebook-destination-category-heading h3 {
  margin: 0;
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 600;
}

.homebook-destination-category-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.homebook-destination-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.homebook-destination-tile {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 8px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.homebook-destination-tile:hover {
  border-color: rgba(53, 87, 70, 0.6);
  background: #fafbf8;
}

.homebook-destination-tile[aria-checked="true"] {
  border-color: var(--moss);
  box-shadow: inset 0 0 0 2px var(--moss);
}

.homebook-destination-tile:focus-visible {
  outline: 3px solid rgba(84, 119, 139, 0.3);
  outline-offset: 2px;
}

.homebook-destination-tile-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--moss-dark);
  background: #edf1e9;
  border-radius: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.homebook-destination-tile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.homebook-destination-tile-copy {
  min-width: 0;
  display: block;
  padding: 0 3px 3px;
}

.homebook-destination-tile-copy strong,
.homebook-destination-tile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homebook-destination-tile-copy strong {
  font-size: 13px;
  font-weight: 850;
}

.homebook-destination-tile-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.homebook-destination-tile-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  display: none;
  place-items: center;
  color: #fff;
  background: var(--moss);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.homebook-destination-tile[aria-checked="true"]
  .homebook-destination-tile-check {
  display: grid;
}

.homebook-destination-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: #f6f7f3;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.thing-dialog.task-entry-wizard-mode .homebook-wizard-progress {
  display: block;
}

.thing-dialog.task-entry-wizard-mode[data-task-step="1"] #thingItemLabel,
.thing-dialog.task-entry-wizard-mode[data-task-step="1"] #thingTaskLabel,
.thing-dialog.task-entry-wizard-mode[data-task-step="1"] #thingNextCareLabel,
.thing-dialog.task-entry-wizard-mode[data-task-step="1"] #thingScheduleFields,
.thing-dialog.task-entry-wizard-mode[data-task-step="1"] #thingNoteLabel,
.thing-dialog.task-entry-wizard-mode[data-task-step="1"] #thingTaskImage,
.thing-dialog.task-entry-wizard-mode[data-task-step="1"]
  #taskEntryCommonTasksAction,
.thing-dialog.task-entry-wizard-mode[data-task-step="2"]
  #thingDestinationLabel {
  display: none !important;
}

.task-entry-common-tasks-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.task-entry-common-tasks-action .quiet-button {
  min-height: 40px;
  color: var(--moss-dark);
  border-color: rgba(53, 87, 70, 0.34);
  background: #eef3eb;
}

.task-entry-common-tasks-action .quiet-button:hover {
  background: #e3eadf;
}

.thing-dialog.task-entry-common-mode #thingStarterField {
  display: block;
}

.thing-dialog.homebook-create-mode[data-homebook-step="1"] #thingCoverField,
.thing-dialog.homebook-create-mode[data-homebook-step="1"] #thingStarterField,
.thing-dialog.homebook-create-mode[data-homebook-step="1"] #thingHouseFeaturesField,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="2"]
  #thingNameLabel,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="2"]
  #thingSummaryLabel,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="2"]
  #homebookSetupFields,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="2"]
  #thingStarterField,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="2"]
  #thingHouseFeaturesField,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="3"]
  #thingNameLabel,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="3"]
  #thingSummaryLabel,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="3"]
  #homebookSetupFields,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="3"]
  #thingCoverField,
.thing-dialog.homebook-create-mode:not([data-homebook-has-features="true"])[data-homebook-step="3"]
  #thingHouseFeaturesField,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="2"]
  #thingNameLabel,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="2"]
  #thingSummaryLabel,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="2"]
  #homebookSetupFields,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="2"]
  #thingStarterField,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="2"]
  #thingHouseFeaturesField,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="3"]
  #thingNameLabel,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="3"]
  #thingSummaryLabel,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="3"]
  #homebookSetupFields,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="3"]
  #thingCoverField,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="3"]
  #thingStarterField,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="4"]
  #thingNameLabel,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="4"]
  #thingSummaryLabel,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="4"]
  #homebookSetupFields,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="4"]
  #thingCoverField,
.thing-dialog.homebook-create-mode[data-homebook-has-features="true"][data-homebook-step="4"]
  #thingHouseFeaturesField {
  display: none !important;
}

.dialog-close {
  flex: 0 0 auto;
}

.task-edit-image {
  width: 100%;
  height: 150px;
  margin: 0;
  overflow: hidden;
  background: #f8f3e7;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.task-edit-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thing-dialog label,
.item-picker-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.thing-dialog label small {
  font-weight: 500;
}

.thing-dialog [hidden] {
  display: none;
}

.thing-dialog input,
.thing-dialog select,
.thing-dialog textarea {
  min-height: 43px;
  padding: 10px 12px;
  resize: vertical;
}

.item-picker {
  position: relative;
}

.item-picker-button {
  width: 100%;
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 8px;
  color: var(--ink);
  text-align: left;
  background: var(--panel);
  border: 1px solid #c9cec6;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
}

.item-picker-button:hover:not(:disabled),
.item-picker-button[aria-expanded="true"] {
  border-color: rgba(53, 87, 70, 0.6);
}

.item-picker-button:focus-visible,
.item-picker-button[aria-invalid="true"] {
  outline: 3px solid rgba(84, 119, 139, 0.3);
  outline-offset: 2px;
}

.item-picker-button:disabled {
  color: #8c938d;
  background: #f3f3ef;
  cursor: not-allowed;
}

.item-picker-thumb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--moss-dark);
  background: #edf1e9;
  border-radius: 6px;
  font-size: 17px;
}

.item-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-picker-thumb.is-placeholder {
  color: #879088;
  background: #f3f4f0;
}

.item-picker-thumb.is-category-icon,
.item-picker-thumb.is-subject-icon {
  color: var(--moss-dark);
  background: #f1f3ee;
  border-color: rgba(53, 87, 70, 0.12);
}

.homebook-category-icon,
.homebook-subject-icon {
  width: 22px;
  height: 22px;
}

.homebook-subject-icon-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.homebook-subject-icon-image[data-subject-icon="truck"] {
  transform: scale(1.24);
}

.item-picker-caret {
  color: var(--muted);
  font-size: 18px;
  transition: transform 140ms ease;
}

.item-picker-button[aria-expanded="true"] .item-picker-caret {
  transform: rotate(180deg);
}

.item-picker-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: var(--picker-menu-max-height, min(420px, calc(100vh - 300px)));
  overflow-y: auto;
  padding: 5px;
  background: var(--panel);
  border: 1px solid #c9cec6;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(42, 53, 46, 0.18);
}

.item-picker-menu.opens-upward {
  top: auto;
  bottom: calc(100% + 6px);
}

.item-picker-group + .item-picker-group {
  margin-top: 4px;
}

.item-picker-group-label {
  position: sticky;
  top: -5px;
  z-index: 1;
  padding: 9px 7px 5px;
  color: var(--moss);
  background: var(--panel);
  border-bottom: 1px solid rgba(67, 91, 76, 0.16);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.item-picker-option {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 6px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.item-picker-option:hover,
.item-picker-option:focus-visible,
.item-picker-option[aria-selected="true"] {
  background: rgba(57, 92, 76, 0.08);
}

.item-picker-option:focus-visible {
  outline: 2px solid rgba(53, 87, 70, 0.32);
  outline-offset: -2px;
}

.item-picker-option-check {
  color: var(--moss);
  font-size: 15px;
  text-align: center;
}

.thing-dialog select.item-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

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

#homebookSetupFields:has(#thingKindLabel[hidden]) {
  grid-template-columns: 1fr;
}

.starter-care-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.starter-care-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 3px 2px;
}

.starter-care-header h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.starter-care-summary {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.starter-care-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.starter-care-level {
  width: min(220px, 46%);
  flex: 0 1 220px;
  margin: 0;
  padding: 0;
}

.starter-care-level-heading,
.starter-care-level-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.starter-care-level-heading {
  display: none;
}

.thing-dialog #thingStarterLevel {
  width: 100%;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--moss);
  background: transparent;
  border: 0;
  resize: none;
}

.starter-care-level-labels {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.starter-care-level-labels {
  margin-right: 8px;
  margin-left: 8px;
}

.starter-care-level-labels span {
  width: 0;
  flex: 0 0 0;
  display: flex;
  justify-content: center;
  white-space: nowrap;
}

.starter-care-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px 3px 3px;
  overflow: visible;
}

.starter-care-options:has(> .starter-care-group) {
  gap: 14px;
}

.starter-care-group-items {
  min-width: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 760px) {
  .thing-dialog.is-first-homebook-embedded .starter-care-options:not(:has(> .starter-care-group)),
  .thing-dialog.is-first-homebook-embedded .starter-care-group-items {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  }
}

.starter-care-group {
  min-width: 0;
  display: grid;
  gap: 0;
}

.thing-dialog .starter-care-group-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 2px 8px;
  padding: 11px 12px;
  color: var(--moss);
  background: #f3f5f0;
  border: 1px solid rgba(67, 91, 76, 0.14);
  border-radius: 8px;
  text-align: left;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.thing-dialog .starter-care-group-toggle:hover {
  background: #edf1ea;
}

.thing-dialog .starter-care-group-toggle[aria-expanded="true"] {
  color: #fff;
  background: var(--moss);
  border-color: var(--moss);
  border-radius: 8px 8px 0 0;
}

.thing-dialog .starter-care-group-toggle:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(84, 119, 139, 0.3);
  outline-offset: -3px;
}

.thing-dialog .starter-care-group-toggle small {
  grid-column: 1;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.thing-dialog
  .starter-care-group-toggle[aria-expanded="true"]
  small,
.thing-dialog
  .starter-care-group-toggle[aria-expanded="true"]
  .starter-care-group-chevron {
  color: rgba(255, 255, 255, 0.78);
}

.starter-care-group-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  transition: transform 160ms ease;
}

.starter-care-group-toggle[aria-expanded="true"]
  .starter-care-group-chevron {
  transform: rotate(180deg);
}

.starter-care-group-items {
  padding: 10px;
  background: #f3f5f0;
  border: 1px solid rgba(67, 91, 76, 0.14);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.starter-care-group-items[hidden] {
  display: none;
}

.starter-care-item {
  min-width: 0;
  overflow: hidden;
  background: #f8f8f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.family-starter-care-item .starter-care-task-list label:first-child {
  border-top: 0;
}

.thing-dialog .starter-care-item-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--ink);
  background: #f9edd9;
}

.thing-dialog .starter-care-item-heading .item-picker-thumb {
  width: 54px;
  height: 54px;
}

.thing-dialog .starter-care-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  align-self: start;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.thing-dialog .starter-care-remove:hover,
.thing-dialog .starter-care-remove:focus-visible {
  color: var(--ink);
  background: rgba(53, 87, 70, 0.08);
  border-color: rgba(53, 87, 70, 0.18);
}

.thing-dialog .starter-care-remove:focus-visible {
  outline: 3px solid rgba(84, 119, 139, 0.3);
  outline-offset: 2px;
}

.thing-dialog .starter-care-item input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--moss);
}

.starter-care-item-heading > span:last-child,
.starter-care-task-list label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.starter-care-item-heading strong,
.starter-care-task-list strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  font-weight: bold;
}

.starter-care-item-heading strong {
  text-transform: capitalize;
}

.starter-care-item-heading small,
.starter-care-task-list small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.thing-dialog.is-first-homebook-embedded
  .starter-care-item-heading
  [data-starter-item-count] {
  display: none;
}

.starter-care-task-list {
  display: grid;
}

.thing-dialog .starter-care-task-list label {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.thing-dialog .starter-care-task-list label:hover {
  background: #fff;
}

.thing-dialog .family-starter-care-item .starter-care-task-list label {
  grid-template-columns: 18px 60px minmax(0, 1fr);
  align-items: center;
  padding: 9px;
}

.starter-family-task-image {
  width: 60px;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  background: #f5efe3;
  border: 1px solid rgba(67, 91, 76, 0.14);
  border-radius: 5px;
}

.homebook-cover-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.homebook-cover-picker legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.homebook-cover-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 366px;
  padding: 3px;
  overflow-y: auto;
  scrollbar-color: #aeb9af transparent;
}

.thing-dialog .homebook-cover-option {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 6px 6px 9px;
  color: var(--muted);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.thing-dialog .family-homebook-cover-option {
  gap: 0;
  padding: 6px;
}

.thing-dialog .homebook-cover-option:hover {
  border-color: #8da092;
  transform: translateY(-1px);
}

.thing-dialog .homebook-cover-option:has(input:checked) {
  color: var(--moss);
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(53, 87, 70, 0.13);
  background: #c9d7c3;
}

.thing-dialog .homebook-cover-option input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.thing-dialog .homebook-cover-option:has(input:focus-visible) {
  outline: 3px solid rgba(53, 87, 70, 0.26);
  outline-offset: 2px;
}

.homebook-cover-preview {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-position: center;
  background-size: cover;
  border-radius: 5px;
}

.thing-dialog .homebook-cover-option > span:last-child {
  padding: 0 3px;
  font-size: 11px;
  font-weight: 800;
}

.when-control,
.rhythm-control {
  display: grid;
  align-content: start;
  gap: 8px;
}

.task-picker {
  display: grid;
  gap: 8px;
}

.task-picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.task-picker-heading small {
  color: var(--muted);
  font-weight: 500;
}

.task-option-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4ebd8;
}

.thing-dialog[data-task-item-mode="all"] .task-option-list {
  display: grid;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#thingCustomTask:empty {
  display: none;
}

.custom-task-panel {
  min-width: 0;
}

.custom-task-panel .task-option.task-option-custom {
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 12px;
  border: 1px solid #dfd1b2;
  border-radius: 8px;
  background: #f5ecd8;
}

.custom-task-panel .task-option.task-option-custom:hover {
  background: #f5ecd8;
}

.custom-task-panel .custom-task-fields {
  grid-column: 2;
}

.custom-task-panel .task-option.task-option-custom.custom-task-auto-select {
  grid-template-columns: minmax(0, 1fr);
}

.custom-task-panel .custom-task-auto-select .custom-task-fields {
  grid-column: 1;
}

.custom-task-panel .custom-task-auto-select > #thingCustomTaskToggle {
  display: none;
}

.custom-task-fields-single {
  grid-template-columns: 1fr;
}

.task-library-heading {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.task-item-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eeebe6;
}

.task-item-group-heading {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: rgb(245 236 216);
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.task-item-group-heading:hover {
  background: rgb(230, 216, 187);
}

.task-item-group-heading:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: -3px;
}

.task-item-group-heading .item-picker-thumb {
  width: 42px;
  height: 42px;
}

.task-item-group-heading strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
}

.task-item-group-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.task-item-group-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-item-group-caret {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  transition: transform 160ms ease;
}

.task-item-group-heading[aria-expanded="false"] {
  border-bottom-color: transparent;
}

.task-item-group-heading[aria-expanded="false"] .task-item-group-caret {
  transform: rotate(180deg);
}

.task-item-group-options .task-option:last-child {
  border-bottom: 0;
}

.task-option {
  min-height: 62px;
  display: grid;
  grid-template-columns: 20px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  cursor: default;
}

.task-option:last-child {
  border-bottom: 0;
}

.task-option:hover {
  background: rgba(57, 92, 76, 0.06);
}

.task-option input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--moss);
}

.task-option span {
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.task-option .task-option-image {
  width: 46px;
  height: 46px;
  display: block;
  overflow: hidden;
  background: rgba(251, 248, 237, 0.72);
  border-radius: 6px;
  cursor: pointer;
}

.task-option-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.thing-dialog .task-option-name {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.task-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.task-option-schedule {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(53, 87, 70, 0.14);
  border-radius: 6px;
}

.task-option .task-option-schedule {
  font-size: 12px;
  font-weight: 800;
}

.inline-task-field {
  min-width: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  color: var(--muted);
}

.thing-dialog .inline-task-field select,
.thing-dialog .inline-task-field input,
.thing-dialog .inline-task-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
}

.inline-task-note-field {
  grid-column: 1 / -1;
}

.thing-dialog .inline-task-note-field textarea {
  min-height: 64px;
  resize: vertical;
}

.inline-task-note-field small {
  font-size: inherit;
  font-weight: 500;
}

.task-option.task-option-custom {
  grid-template-columns: 20px auto minmax(150px, 1fr);
  cursor: default;
}

.task-item-group-custom .task-option.task-option-custom {
  grid-template-columns: 20px minmax(0, 1fr);
}

.task-item-group-custom .custom-task-fields {
  grid-column: 2;
}

.custom-task-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(180px, 1fr);
  gap: 8px;
}

.task-option-custom label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.thing-dialog .task-option-custom input[data-custom-task-name] {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
  resize: none;
}

.thing-dialog .task-option-custom input[data-custom-item-name] {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

.custom-task-image-picker {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(53, 87, 70, 0.14);
  border-radius: 6px;
}

.custom-task-image-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.custom-task-image-heading small {
  font-weight: 500;
}

.custom-task-image-heading button {
  min-height: 0;
  padding: 0;
  color: var(--moss);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.thing-dialog .custom-task-image-picker input[type="search"] {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  font-size: 12px;
}

.custom-task-image-results {
  max-height: 236px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 112px;
  gap: 8px;
  overflow: auto;
  padding: 2px;
}

.custom-task-image-option {
  min-width: 0;
  display: block;
  padding: 5px;
  color: var(--muted);
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.custom-task-image-option:hover {
  border-color: var(--moss);
}

.custom-task-image-option[aria-pressed="true"] {
  color: var(--ink);
  background: var(--moss-wash);
  border-color: var(--moss);
  box-shadow: 0 0 0 2px rgba(57, 92, 76, 0.18);
}

.custom-task-image-option img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

.custom-task-image-empty {
  margin: 0;
  padding: 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.task-picker-empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.homebook-wizard-command {
  display: none;
}

.thing-dialog.homebook-create-mode .dialog-actions {
  position: sticky;
  z-index: 6;
  bottom: 0;
  margin: auto -26px -26px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(42, 53, 46, 0.06);
}

.thing-dialog.task-entry-mode .dialog-actions {
  position: sticky;
  z-index: 6;
  bottom: 0;
  margin: auto -26px -26px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(42, 53, 46, 0.06);
}

.thing-dialog.homebook-create-mode .homebook-wizard-command,
.thing-dialog.task-entry-wizard-mode .homebook-wizard-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.thing-dialog.homebook-create-mode[data-homebook-step="1"] #homebookWizardPrevious,
.thing-dialog.task-entry-wizard-mode[data-task-step="1"] #homebookWizardPrevious {
  opacity: 0.5;
}

.thing-dialog.homebook-create-mode:not(.homebook-final-step) #thingSubmitButton,
.thing-dialog.homebook-create-mode.homebook-final-step #homebookWizardNext,
.thing-dialog.task-entry-wizard-mode[data-task-step="1"] #thingSubmitButton,
.thing-dialog.task-entry-wizard-mode[data-task-step="2"] #homebookWizardNext {
  display: none;
}

.add-homebook-command {
  margin-right: auto;
  color: var(--moss-dark);
  border-color: rgba(53, 87, 70, 0.35);
  background: #edc8af;
}

.add-homebook-command:hover {
  background: #dcb397;
  border-color: rgba(53, 87, 70, 0.55);
}

.add-homebook-command span {
  display: inline-block;
  margin-right: 3px;
  font-size: 17px;
  line-height: 0;
  transform: translateY(1px);
}

.danger-command {
  min-height: 42px;
  margin-right: auto;
  padding: 0 14px;
  color: #8d3f35;
  background: #fff8f6;
  border: 1px solid #d9aaa3;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.danger-command:hover {
  color: #fff;
  background: #9a4a3f;
  border-color: #9a4a3f;
}

.danger-command:focus-visible {
  outline: 3px solid rgba(154, 74, 63, 0.25);
  outline-offset: 3px;
}

.delete-dialog {
  width: min(460px, calc(100vw - 28px));
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(24, 35, 31, 0.3);
}

.delete-dialog::backdrop {
  background: rgba(24, 35, 31, 0.5);
  backdrop-filter: blur(3px);
}

.delete-dialog-content {
  padding: 30px;
}

.delete-dialog-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #8d3f35;
  background: #f9e8e4;
  border: 1px solid #e6bbb4;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
}

.delete-dialog h2 {
  margin: 7px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.delete-dialog-message {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.delete-dialog-actions {
  display: flex;
  justify-content: end;
  gap: 9px;
  margin-top: 26px;
}

.danger-primary {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: #93463c;
  border: 1px solid #93463c;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.danger-primary:hover {
  background: #7f392f;
  border-color: #7f392f;
}

.danger-primary:focus-visible {
  outline: 3px solid rgba(147, 70, 60, 0.25);
  outline-offset: 3px;
}

body.drawer-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-band {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  }

  .control-actions {
    grid-column: 1 / -1;
    justify-content: end;
  }
}

@media (max-width: 900px) {
  .drawer {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    transform: none;
  }

  .drawer #drawerContent {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
  }

  .drawer-aside {
    display: contents;
  }

  .drawer-portrait {
    order: 1;
    min-height: 240px;
  }

  .drawer-body {
    order: 2;
    overflow-y: visible;
  }

  .drawer-notepad {
    order: 3;
    padding-right: 0;
    padding-left: 0;
    background-color: #fbf8ed;
  }

  .drawer-notepad-heading {
    margin-bottom: 0;
    margin-right: 20px;
    margin-left: 42px;
  }

  .drawer-notepad textarea {
    min-height: 180px;
    padding-right: 28px;
    padding-left: 42px;
  }

  :root {
    --topbar-height: 76px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .view-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .view-tab {
    flex: 1;
  }

  .control-band {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .control-actions {
    grid-column: auto;
    justify-content: start;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .mini-calendar-panel {
    position: static;
    grid-row: 1;
    min-height: 0;
  }

  .calendar-day {
    min-height: 88px;
  }

  .calendar-task-action {
    display: none;
  }

  .calendar-flexible-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --topbar-height: 66px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .primary-command {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .view-tabs {
    margin: 0 -14px -10px;
    width: calc(100% + 28px);
    padding: 4px 14px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }

  .view-tab {
    padding: 0 10px;
  }

  .control-band {
    padding: 12px 14px;
  }

  .control-actions select {
    min-width: 0;
    flex: 1;
  }

  main {
    padding: 28px 14px 60px;
  }

  .collection-heading {
    display: block;
    margin-bottom: 22px;
  }

  h1 {
    font-size: 40px;
  }

  .collection-summary {
    margin-top: 14px;
    text-align: left;
  }

  .calendar-toolbar {
    min-height: 56px;
  }

  .calendar-month-navigation {
    gap: 6px;
  }

  .calendar-month-navigation > div {
    min-width: 125px;
  }

  .calendar-month-navigation h1 {
    font-size: 24px;
  }

  .calendar-nav-button {
    width: 34px;
    height: 34px;
  }

  .calendar-weekdays span {
    padding: 7px 2px;
    text-align: center;
  }

  .calendar-weekdays b {
    display: inline;
  }

  .calendar-weekdays em {
    display: none;
  }

  .calendar-day {
    min-height: 62px;
    padding: 4px;
  }

  .calendar-date-button {
    min-width: 25px;
    height: 25px;
    padding: 0 5px;
    font-size: 10px;
  }

  .calendar-date-button small {
    display: none;
  }

  .calendar-day-items {
    max-height: 21px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
    padding-right: 1px;
  }

  .calendar-task {
    width: 8px;
    height: 8px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #718077;
    border: 0;
    border-radius: 50%;
  }

  .calendar-task.calendar-status-attention {
    background: #9a5748;
  }

  .calendar-task.calendar-status-soon {
    background: #a37b2f;
  }

  .calendar-task.calendar-status-watch {
    background: #666d88;
  }

  .calendar-task.calendar-status-good {
    background: #477158;
  }

  .calendar-task.calendar-task-history {
    background: var(--blue);
  }

  .calendar-task-name,
  .calendar-task-action {
    display: none;
  }

  .calendar-more {
    padding: 0;
    font-size: 8px;
  }

  .calendar-agenda {
    display: block;
    margin-top: 18px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .calendar-agenda-items {
    display: grid;
  }

  .calendar-agenda-items > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
  }

  .calendar-agenda-task {
    width: 100%;
    display: block;
    padding: 11px 2px;
    color: var(--ink);
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .calendar-agenda-task .calendar-task-name,
  .calendar-agenda-task .calendar-task-action {
    display: block;
  }

  .calendar-agenda-task .calendar-task-name {
    font-size: 12px;
    font-weight: 850;
  }

  .calendar-agenda-task .calendar-task-action {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
  }

  .calendar-flexible {
    padding: 18px;
  }

  .calendar-flexible-task {
    gap: 10px;
  }

  .care-grid {
    grid-template-columns: 1fr;
  }

  .care-card {
    min-height: 322px;
  }

  .care-portrait {
    height: 126px;
  }

  .mini-calendar-panel {
    padding: 20px;
  }

  .drawer {
    width: 100%;
  }

  .drawer-portrait {
    min-height: 185px;
  }

  .timeline-row {
    grid-template-columns: 74px 32px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-date {
    font-size: 11px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .task-option {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .task-option small {
    grid-column: 2;
    white-space: normal;
  }

  .task-option:not(.task-option-custom) {
    grid-template-columns: 20px 40px minmax(0, 1fr);
  }

  .task-option:not(.task-option-custom) .task-option-image {
    width: 40px;
    height: 40px;
  }

  .task-option:not(.task-option-custom) small {
    grid-column: 3;
  }

  .task-option-schedule {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .task-item-group-heading {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .task-item-group-summary {
    grid-column: 2;
    justify-content: space-between;
  }

  .task-item-group-heading small {
    white-space: normal;
  }

  .custom-task-fields {
    grid-template-columns: 1fr;
  }

  .thing-dialog form {
    padding: 20px;
  }
}

@media (max-width: 980px) {
  .recent-workspace {
    grid-template-columns: 1fr;
  }

  .recent-insights {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 650px) {
  .template-aligned #monthView {
    padding: 26px 10px 55px;
  }

  .template-aligned #recentView {
    padding: 26px 14px 55px;
  }

  .recent-insights {
    grid-template-columns: 1fr;
  }

  .recent-overview,
  .care-coverage,
  .care-log {
    padding: 18px;
  }

  .recent-overview h2 {
    font-size: 29px;
  }

  .care-log-heading {
    display: block;
  }

  .recent-range {
    width: 100%;
    margin-top: 16px;
  }

  .recent-range button {
    flex: 1;
  }

  .care-log-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .care-log-thumb {
    width: 54px;
    height: 54px;
  }

  .care-log-next {
    grid-column: 2;
    padding: 9px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .care-log-next span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tended-button,
  .tended-check-box {
    transition: none;
  }

  .tended-button.is-checked .tended-check-box {
    animation: none;
  }

  .tended-button.is-unchecking .tended-check-box {
    animation: none;
  }

  .task-row-entering {
    animation: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.01ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Homebook follows the shared Zapappy template shell. */
.template-aligned {
  --bg: #f7f8f5;
  --panel: #ffffff;
  --ink: #18201d;
  --muted: #637069;
  --line: #dfe5dc;
  --brand: #526b56;
  --brand-dark: #18302d;
  --toolbar-bg: rgba(255, 255, 255, 0.76);
  --field-bg: rgba(255, 255, 255, 0.96);
  --card-min: 286px;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.template-aligned .topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(200px, max-content) minmax(0, 1fr) minmax(500px, 520px);
  align-items: start;
  gap: 6px 16px;
  min-height: 0;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(16, 44, 45, 0.16);
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 32, 29, 0.08);
  backdrop-filter: none;
}

.template-aligned .brand-block {
  position: relative;
  display: grid;
  grid-template-columns: max-content;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.template-aligned .brand-left {
  justify-self: start;
  min-width: 0;
}

.template-aligned .brand-right {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}

.template-aligned .partner-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: min(100%, 240px);
  margin: 0;
  padding: 3px 8px;
  border: 1px solid rgba(16, 44, 45, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #a94b34;
  box-shadow: 0 4px 12px rgba(24, 32, 29, 0.08);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

.template-aligned .partner-line[hidden],
.template-aligned .partner-line:empty {
  display: none;
}

.template-aligned .partner-line a {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.template-aligned .partner-line:hover,
.template-aligned .partner-line:focus,
.template-aligned .partner-line:focus-visible,
.template-aligned .partner-line:focus-within {
  color: #813522;
  background: #fff7ed;
  border-color: rgba(169, 75, 52, 0.52);
  box-shadow: 0 0 0 3px rgba(169, 75, 52, 0.1), 0 8px 20px rgba(24, 32, 29, 0.1);
  outline: 0;
  transform: translateY(1px);
}

.template-aligned .brand-lockup {
  justify-self: auto;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.template-aligned .brand-lockup-text {
  display: grid;
  gap: 4px;
  min-width: 0;
  line-height: 1;
}

.template-aligned .brand-wordmark {
  margin: 0;
  color: #102c2d;
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 1.35vw, 42px);
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.template-aligned .brand-tagline {
  margin: 0;
  color: var(--moss);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(9px, 0.82vw, 11px);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.template-aligned .toolbar {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(223, 229, 220, 0.88);
  border-radius: 8px;
  background: var(--toolbar-bg);
  box-shadow: 0 6px 16px rgba(24, 32, 29, 0.05);
  padding: 7px;
}

.template-aligned .filter-panel {
  grid-column: 2 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 520px);
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.template-aligned .filter-panel .search-field {
  grid-column: 1;
}

.template-aligned .filter-options-panel {
  grid-column: 1 / -1;
  position: static;
  display: block;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.template-aligned .filter-options-panel:has(.filter-row[hidden]) {
  display: none;
}

.template-aligned .field {
  display: grid;
  align-content: end;
  gap: 3px;
  min-width: 0;
}

.template-aligned .field > span {
  display: none;
}

.template-aligned .field input,
.template-aligned .field select {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 10px;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid #d3dbd1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 720;
}

.template-aligned .filter-row {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 5px;
  overflow: visible;
}

.template-aligned .filter-chip {
  flex: 0 0 auto;
  min-height: 26px;
  height: 26px;
  padding: 0 9px;
  color: #55615b;
  background: #eef0ed;
  border: 1px solid #c9cec8;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}

.template-aligned .filter-chip[data-homebook-reorderable] {
  cursor: grab;
  user-select: none;
}

.template-aligned .filter-chip[data-homebook-reorderable]:active {
  cursor: grabbing;
}

.template-aligned .filter-chip.is-dragging {
  opacity: 0.78;
  background: #acc3a0;
  box-shadow: 0 4px 12px rgba(24, 48, 45, 0.16);
}

.template-aligned .filter-chip.active {
  color: #fff;
  background: var(--moss);
  border-color: var(--moss);
}

.template-aligned .filter-chip.add-homebook-filter {
  color: var(--moss-dark);
  background: #edc8af;
  border-color: #dcb397;
}

.template-aligned .filter-chip.add-homebook-filter:hover,
.template-aligned .filter-chip.add-homebook-filter:focus-visible {
  background: #e3b998;
  border-color: #cfa47f;
}

.template-aligned .toolbar-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #53635c;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d3dbd1;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.template-aligned .filter-panel > .toolbar-icon-button {
  display: none;
}

.filter-lines {
  width: 18px;
  display: grid;
  gap: 3px;
}

.filter-lines i {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.filter-lines i:nth-child(2) {
  width: 12px;
  justify-self: center;
}

.filter-lines i:nth-child(3) {
  width: 6px;
  justify-self: center;
}

.template-aligned .display-panel {
  z-index: 1;
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 7px;
  width: 100%;
  padding: 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.template-aligned .view-tabs {
  width: 100%;
  height: 36px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: auto;
  grid-row: auto;
  gap: 5px;
  margin: 0;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #e9e9e3;
  border: 0;
  border-radius: 6px;
}

.template-aligned .view-tab {
  min-width: 0;
  min-height: 30px;
  padding: 0 8px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.template-aligned .action-field {
  justify-items: center;
}

.template-aligned .add-thing-button {
  width: auto;
  min-width: 94px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: #fff;
  background: var(--moss-dark);
  border-color: var(--moss-dark);
  font-size: 11px;
  white-space: nowrap;
}

.template-aligned .app-shell {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.template-aligned .app-view {
  display: none;
}

.template-aligned .app-view.active {
  display: block;
}

.template-aligned #thingsView.active {
  display: grid;
}

.template-aligned .main-layout {
  grid-template-columns: minmax(0, 1fr) 8px minmax(300px, 34vw);
  gap: 0;
  height: 100%;
  min-height: 0;
  padding: 16px clamp(10px, 1.4vw, 22px);
}

.template-aligned .listing-pane {
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding-right: 10px;
}

.template-aligned .split-handle {
  position: relative;
  width: 8px;
  cursor: col-resize;
}

.template-aligned .split-handle::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 1px;
  background: #d8ded6;
}

.template-aligned .main-map-pane {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 14px;
  padding-left: 10px;
  overflow: auto;
}

.template-aligned .care-overview {
  grid-row: 1;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(24, 32, 29, 0.07);
}

.template-aligned .care-overview.is-empty-illustration {
  grid-row: 2;
  padding: 0;
  overflow: hidden;
  background: #fbf8ed;
}

.template-aligned .main-map-pane:has(.care-overview.is-empty-illustration)
  .mini-calendar-panel {
  grid-row: 1;
}

.homebook-empty-illustration {
  margin: 0;
}

.homebook-empty-illustration img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.template-aligned .overview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
}

.template-aligned .overview-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.template-aligned .overview-heading > div > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.template-aligned .care-donut {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--moss) var(--care-percent), #e2e6df 0);
  border-radius: 50%;
}

.template-aligned .care-donut::before {
  content: "";
  grid-area: 1 / 1;
  width: 58px;
  height: 58px;
  background: #fff;
  border-radius: 50%;
}

.template-aligned .care-donut span {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.template-aligned .overview-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.template-aligned .overview-category {
  --overview-bg: #f7f8f5;
  --overview-bg-hover: #eef1eb;
  --overview-border: #dfe5dc;
  --overview-border-hover: #b8c2b5;
  --overview-accent: var(--moss);
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 4px;
  padding: 11px;
  text-align: left;
  color: var(--ink);
  background: var(--overview-bg);
  border: 1px solid var(--overview-border);
  border-radius: 7px;
}

.template-aligned .overview-category:hover,
.template-aligned .overview-category:focus-visible {
  background: var(--overview-bg-hover);
  border-color: var(--overview-border-hover);
}

.template-aligned .overview-category-attention {
  --overview-bg: #fbefeb;
  --overview-bg-hover: #f7e5de;
  --overview-border: #e4c5ba;
  --overview-border-hover: #c99686;
  --overview-accent: #9a5748;
}

.template-aligned .overview-category-soon {
  --overview-bg: #fbf5e6;
  --overview-bg-hover: #f6edda;
  --overview-border: #e7d5a8;
  --overview-border-hover: #c8aa66;
  --overview-accent: #a37b2f;
}

.template-aligned .overview-category-watch {
  --overview-bg: #f2f2f7;
  --overview-bg-hover: #e9e9f1;
  --overview-border: #d4d5e1;
  --overview-border-hover: #a9acbf;
  --overview-accent: #666d88;
}

.template-aligned .overview-category-good {
  --overview-bg: #edf5ee;
  --overview-bg-hover: #e4efe6;
  --overview-border: #c8ddcc;
  --overview-border-hover: #93b39b;
  --overview-accent: #477158;
}

.template-aligned .overview-category strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-aligned .overview-category small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-aligned .cards {
  display: block;
  min-height: 100%;
  padding: 6px;
}

.template-aligned .cards:has(> .empty-state-first-homebook) {
  height: 100%;
}

.template-aligned .cards > .empty-state-first-homebook {
  min-height: 100%;
}

.template-aligned .selected-homebook-tasks {
  width: 100%;
  display: grid;
  gap: 32px;
  padding: 2px 0;
}

.template-aligned .selected-homebook-tasks .all-task-row.needs-attention {
  color: #8f3028;
  background: #fff1ee;
  box-shadow: inset 3px 0 #b7463b;
}

.template-aligned .selected-homebook-tasks .all-task-row.needs-attention:hover,
.template-aligned .selected-homebook-tasks .all-task-row.needs-attention:focus-within {
  background: #fce5e0;
}

.template-aligned .selected-homebook-tasks .all-task-row.needs-attention .all-task-due {
  color: #a3372e;
  font-weight: 800;
}

.template-aligned .selected-homebook-tasks .all-task-row.coming-soon {
  color: #8a5610;
  background: #fff5e3;
  box-shadow: inset 3px 0 #dc8421;
}

.template-aligned .selected-homebook-tasks .all-task-row.coming-soon:hover,
.template-aligned .selected-homebook-tasks .all-task-row.coming-soon:focus-within {
  background: #ffebc8;
}

.template-aligned .selected-homebook-tasks .all-task-row.coming-soon .all-task-due {
  color: #a8600f;
  font-weight: 800;
}

.template-aligned .selected-homebook-tasks .all-task-row.is-tended {
  color: #405749;
  background: #edf1ed;
  box-shadow: inset 3px 0 #58745f;
}

.template-aligned .selected-homebook-tasks .all-task-row.is-tended:hover,
.template-aligned .selected-homebook-tasks .all-task-row.is-tended:focus-within {
  background: #e4ebe5;
}

.template-aligned .selected-homebook-tasks .all-task-row.is-tended .all-task-due {
  color: #4f6d58;
  font-weight: 800;
}

.template-aligned .selected-homebook-tasks .all-task-row.is-tended .all-task-copy small {
  color: #607065;
}

.template-aligned .care-section + .care-section {
  margin-top: 28px;
}

.template-aligned .care-section-heading {
  width: calc(100% - 4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
  padding-bottom: 10px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d9dfd7;
  cursor: pointer;
}

.template-aligned .care-section-heading:hover h2,
.template-aligned .care-section-heading:focus-visible h2 {
  color: var(--moss);
}

.template-aligned .care-section-heading > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px max-content;
  align-items: baseline;
  gap: 7px 10px;
}

.template-aligned .care-section-signal {
  width: 9px;
  height: 9px;
  background: #718077;
  border-radius: 50%;
}

.template-aligned [data-care-section="attention"] .care-section-signal {
  background: #9a5748;
}

.template-aligned [data-care-section="soon"] .care-section-signal {
  background: #a37b2f;
}

.template-aligned [data-care-section="watch"] .care-section-signal {
  background: #666d88;
}

.template-aligned [data-care-section="good"] .care-section-signal {
  background: #477158;
}

.template-aligned .care-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
}

.template-aligned .care-section-count {
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #56645d;
  background: #eef1ed;
  border: 1px solid #d8ded6;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.template-aligned .care-section-heading-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.template-aligned .care-section.is-collapsed .care-section-heading {
  margin-bottom: 0;
}

.template-aligned .care-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr));
  align-items: stretch;
  gap: 18px;
}

.template-aligned .care-section-grid[hidden] {
  display: none;
}

.template-aligned .care-card {
  container-type: inline-size;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(24, 32, 29, 0.07);
  transform: none;
}

.template-aligned .care-card:hover {
  transform: none;
  border-color: rgba(82, 107, 86, 0.48);
  box-shadow: 0 12px 34px rgba(24, 32, 29, 0.11);
}

.template-aligned .care-portrait {
  height: clamp(190px, 55cqw, 250px);
}

.template-aligned .care-mark {
  width: 66px;
  height: 66px;
  font-size: 35px;
}

.template-aligned .care-card-body {
  padding: 14px;
}

.template-aligned .care-card h2 {
  margin: 11px 0 4px;
  font-size: clamp(21px, 7cqw, 27px);
}

.template-aligned .care-summary {
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
}

.template-aligned .next-care {
  margin-top: auto;
  height: 96px;
  box-sizing: border-box;
  padding: 12px;
  background: #faf0de;
}

.template-aligned .mini-calendar-panel {
  grid-row: 2;
  position: relative;
  top: auto;
  height: max-content;
  min-height: max-content;
  align-self: start;
}

.template-aligned #monthView,
.template-aligned #tasksView,
.template-aligned #recentView {
  height: 100%;
  overflow: auto;
  padding: 18px 34px clamp(18px, 4vw, 56px) 70px;
}

.template-aligned #tasksView {
  padding-top: 20px;
}

.tasks-board {
  width: min(1380px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 32px 46px;
  margin: 0 auto;
}

.tasks-category-section {
  display: grid;
  gap: 10px;
}

.tasks-category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 2px 7px;
  border-top: 2px solid rgba(82, 107, 86, 0.32);
}

.tasks-category-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 850;
}

.tasks-category-heading > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tasks-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 32px;
}

.tasks-homebook-group {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(24, 32, 29, 0.06);
}

.tasks-homebook-heading {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  color: var(--ink);
  background: #ced3c9;
  border-bottom: 1px solid var(--line);
}

.tasks-homebook-title:focus-visible,
.tasks-homebook-collapse-zone:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(53, 87, 70, 0.38);
  outline-offset: -3px;
}

.tasks-homebook-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.tasks-homebook-title > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tasks-homebook-title small {
  color: #526159;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tasks-homebook-title strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tasks-homebook-thumb {
  width: 88px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--portrait);
  border: 1px solid #d5ddd3;
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.tasks-homebook-thumb.has-image {
  background-image: var(--portrait-image);
  background-position: center;
  background-size: cover;
}

.tasks-homebook-thumb.has-image > span {
  display: none;
}

.tasks-homebook-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tasks-homebook-collapse-zone {
  min-width: 80px;
  align-self: stretch;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.tasks-homebook-group:has(
    .tasks-homebook-collapse-zone[aria-expanded="false"]
  )
  .tasks-homebook-heading {
  border-bottom-color: transparent;
}

.all-tasks-list {
  display: grid;
}

.all-tasks-list[hidden] {
  display: none;
}

.all-tasks-group-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 8px;
  color: var(--moss);
  background: #f1f4ee;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 1px solid rgba(67, 91, 76, 0.16);
  border-left: 0;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  text-transform: capitalize;
  cursor: pointer;
}

.all-tasks-group:first-child .all-tasks-group-heading {
  border-top: 0;
}

.all-tasks-group-heading:hover,
.all-tasks-group-heading:focus-visible {
  color: var(--moss-dark);
  background: #edf1ea;
}

.all-tasks-group-heading:focus-visible {
  outline: 2px solid rgba(53, 87, 70, 0.38);
  outline-offset: -3px;
}

.all-tasks-group-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f8faf6;
  border: 1px solid #d8ded6;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0;
}

.all-tasks-group-items {
  display: grid;
}

.all-tasks-group-items[hidden] {
  display: none;
}

.all-tasks-item-group + .all-tasks-item-group {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(67, 91, 76, 0.14);
}

.all-tasks-item-group > h4 {
  margin: 0;
  padding: 8px 14px 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: capitalize;
}

.all-task-row {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: transparent;
}

.all-task-row:last-child {
  border-bottom: 0;
}

.all-task-row:hover,
.all-task-row:focus-within {
  background: #f7f8f5;
}

.all-task-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 7px 8px 13px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.all-task-open > img,
.all-task-placeholder {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: var(--moss);
  background: #f7f0df;
  border: 1px solid #dfe3dc;
  border-radius: 8px;
  font-weight: 850;
}

.all-task-tended {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-right: 12px;
  color: transparent;
  background: #fff;
  border: 1px solid var(--moss);
  border-radius: 7px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.all-task-tended:hover,
.all-task-tended:focus-visible {
  background: #eef3eb;
  box-shadow: 0 0 0 3px rgba(82, 107, 86, 0.12);
}

.all-task-tended.is-checked {
  color: #fff;
  background: var(--moss);
}

.all-task-tended.is-unchecking {
  color: transparent;
  background: #fff;
}

.all-task-tended:disabled {
  opacity: 1;
}

.all-task-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.all-task-copy strong {
  font-size: 15px;
  line-height: 1.3;
}

.all-task-copy small {
  overflow: hidden;
  color: #59675f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-task-due {
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.all-tasks-empty {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.tasks-view-empty {
  min-height: 320px;
  display: grid;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.tasks-view-empty h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.tasks-view-empty p {
  margin: 0;
}

@media (max-width: 1360px) {
  .template-aligned .topbar {
    grid-template-columns: minmax(150px, max-content) minmax(0, 1fr) 500px;
    gap: 8px 14px;
  }

  .template-aligned .brand-icon {
    width: 42px;
    height: 42px;
  }

  .template-aligned .filter-panel {
    grid-template-columns: minmax(0, 1fr) 500px;
  }

  .template-aligned .filter-options-panel {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .template-aligned .search-field > span,
  .template-aligned .display-panel .field > span {
    display: none;
  }

  .template-aligned .display-panel {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
}

@media (max-width: 762px) {
  .template-aligned {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    display: block;
  }

  .template-aligned .topbar {
    grid-template-columns: 1fr;
  }

  .template-aligned .brand-block {
    grid-column: 1;
    grid-row: 1;
  }

  .template-aligned .filter-panel {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .template-aligned .display-panel {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .template-aligned .app-shell {
    min-height: 0;
  }

  .template-aligned #monthView,
  .template-aligned #tasksView {
    height: auto;
    overflow: visible;
    padding: 26px 10px 55px;
  }

  .tasks-board {
    grid-template-columns: 1fr;
  }

  .template-aligned #thingsView.active {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px;
  }

  .template-aligned .listing-pane {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .template-aligned .split-handle {
    display: none;
  }

  .template-aligned .main-map-pane {
    height: auto;
    padding: 10px 0 0;
    overflow: visible;
  }

  .template-aligned .cards {
    display: block;
  }

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

  .template-aligned .mini-calendar-panel {
    height: max-content;
    min-height: max-content;
  }

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

@media (max-width: 560px) {
  .template-aligned .topbar {
    padding-inline: 12px;
  }

  .template-aligned .filter-options-panel {
    right: auto;
    left: auto;
    width: auto;
    transform: none;
  }

  .mini-calendar-panel {
    padding: 16px;
  }

  .mini-calendar-heading h2 {
    font-size: 23px;
  }

  .template-aligned .cards {
    display: block;
  }

  .template-aligned .care-section-grid {
    grid-template-columns: 1fr;
  }

  .template-aligned .overview-categories {
    grid-template-columns: 1fr;
  }

  .template-aligned .care-portrait {
    height: 220px;
  }

  .tasks-homebook-heading {
    padding: 8px 10px;
  }

  .tasks-homebook-thumb {
    width: 56px;
    height: 56px;
  }

  .tasks-homebook-title strong {
    font-size: 21px;
  }

  .all-task-open {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
    padding: 7px 10px;
  }

  .all-task-open > img,
  .all-task-placeholder {
    width: 42px;
    height: 42px;
  }

  .all-task-due {
    grid-column: 2;
  }

  .all-task-tended {
    margin-right: 10px;
  }
}

/* About page */
.template-aligned .display-panel {
  grid-template-columns: minmax(260px, 1fr) max-content max-content max-content;
}

.template-aligned .account-field,
.template-aligned .about-field {
  justify-items: center;
}

.template-aligned .account-button,
.template-aligned .about-button {
  color: var(--moss-dark);
}

.template-aligned .account-button svg,
.template-aligned .about-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.template-aligned .account-button {
  position: relative;
  overflow: hidden;
}

.template-aligned .about-button .about-info-dot {
  fill: currentColor;
  stroke: none;
}

.template-aligned .about-button:hover,
.template-aligned .about-button:focus-visible {
  background: #eef2eb;
  border-color: #a9b8aa;
}

.template-aligned .account-button:hover,
.template-aligned .account-button:focus-visible {
  background: #eef2eb;
  border-color: #a9b8aa;
}

.account-modal {
  position: fixed;
  z-index: 2200;
  top: 50%;
  left: 50%;
  width: min(926px, calc(100vw - 34px));
  height: 100dvh;
  max-height: 100dvh;
  overflow: auto;
  border: 1px solid rgba(205, 213, 202, 0.96);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(24, 32, 29, 0.28);
  transform: translate(-50%, -50%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.account-modal[hidden] {
  display: none;
}

.account-close-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd2c9;
  border-radius: 50%;
  background: rgba(251, 250, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 5px 20px rgba(24, 32, 29, 0.09);
  font-size: 27px;
  line-height: 1;
}

.account-modal-inner {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3.4vw, 30px);
}

.account-modal-heading {
  padding-right: 42px;
}

.account-modal-heading h2 {
  max-width: calc(100% - 70px);
  margin: 10px 0 12px;
  font-family: inherit;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: normal;
}

.account-modal-heading > p:last-child,
.account-user-card p,
.account-user-card small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.account-modal-heading > p:last-child {
  font-size: 15px;
  line-height: 1.48;
}

.account-status {
  min-height: 22px;
  margin: 0;
  color: var(--moss-dark);
  font-size: 13px;
  font-weight: 700;
}

.account-status.is-error {
  color: #913e35;
}

.account-signed-out,
.account-signed-in {
  display: grid;
  gap: 14px;
}

.account-signed-out[hidden],
.account-signed-in[hidden] {
  display: none;
}

.account-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.account-user-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.account-user-card img {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #fff;
  background: var(--moss-dark);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.account-user-card h3 {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 850;
}

.account-user-card h3 {
  line-height: 1.12;
}

.account-user-card p,
.account-user-card small {
  display: block;
  margin: 0;
}

.account-user-card p,
.account-user-card small {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.account-signed-out .account-actions {
  justify-content: flex-start;
  gap: 12px;
}

.account-signed-out .about-primary-button,
.account-signed-out .about-secondary-button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
}

.account-signed-out [data-account-sign-up] {
  border-color: #d96f35;
  background: #d96f35;
  color: #fff;
}

.account-signed-out [data-account-sign-up]:hover,
.account-signed-out [data-account-sign-up]:focus-visible {
  border-color: #bd5a26;
  background: #bd5a26;
  box-shadow: 0 0 0 3px rgba(217, 111, 53, 0.18);
}

.account-sign-out-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #bb4b42;
  border-radius: 8px;
  background: #c94b40;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.account-profile-form {
  display: grid;
  gap: 13px;
  padding: 20px;
  border: 1px solid #d2d6cc;
  border-radius: 10px;
  background: #dcdbd0;
}

.account-profile-heading {
  display: grid;
  gap: 4px;
}

.account-profile-heading h3,
.account-profile-heading p {
  margin: 0;
}

.account-profile-heading h3 {
  font-size: 18px;
  font-weight: 950;
}

.account-profile-heading p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.account-profile-form label {
  display: grid;
  gap: 6px;
  color: #52615a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-profile-form input,
.account-profile-form textarea {
  width: 100%;
  border: 1px solid #cfd6cc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0;
  padding: 12px 13px;
  text-transform: none;
}

.account-profile-form textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.4;
}

.account-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-profile-actions p {
  min-height: 18px;
  margin: 0;
  color: #52615a;
  font-size: 13px;
  font-weight: 800;
}

.account-dashboard {
  display: grid;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.account-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.account-section-heading h3 {
  margin: 4px 0 0;
  font-family: inherit;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
}

.account-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--moss-dark);
  font-size: 13px;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-stats button {
  min-width: 0;
  padding: 17px;
  border: 1px solid #d7ddd4;
  border-radius: 10px;
  background: #f5f6f2;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.account-stats button:hover,
.account-stats button:focus-visible {
  border-color: #9eafa1;
  background: #edf3ee;
  box-shadow: 0 0 0 3px rgba(82, 107, 86, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.account-stats strong {
  display: block;
  color: var(--moss-dark);
  font-family: inherit;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.account-stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-next-care,
.account-storage-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d7ddd4;
  border-radius: 10px;
}

.account-next-care {
  background: #fbf0d9;
}

.account-storage-card {
  background: #eef3ed;
}

.account-summary-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--moss-dark);
  color: #fff;
  font-size: 21px;
  font-weight: 850;
}

.account-summary-grid h4 {
  margin: 4px 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.account-summary-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-quick-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.account-quick-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #c8d0c6;
  border-radius: 8px;
  background: #fff;
  color: var(--moss-dark);
  font-size: 13px;
  font-weight: 850;
}

.account-quick-actions button:last-child {
  margin-left: auto;
  border-color: var(--moss-dark);
  background: var(--moss-dark);
  color: #fff;
}

.account-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.account-modal-footer nav {
  display: flex;
  gap: 8px;
}

.account-modal-footer a {
  color: var(--moss-dark);
}

.about-modal {
  position: fixed;
  z-index: 2200;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(1360px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid rgba(205, 213, 202, 0.96);
  border-radius: 12px;
  background: #fbfaf7;
  box-shadow: 0 34px 100px rgba(24, 32, 29, 0.3);
  transform: translate(-50%, -50%);
}

.about-modal[hidden] {
  display: none;
}

.about-close-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid #cbd2c9;
  border-radius: 50%;
  background: rgba(251, 250, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 5px 20px rgba(24, 32, 29, 0.09);
  font-size: 27px;
  line-height: 1;
}

.about-modal-inner {
  display: grid;
  gap: 38px;
  width: min(1160px, calc(100% - 52px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.about-modal-hero {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: 8px 52px 38px 4px;
  border-bottom: 1px solid var(--line);
}

.about-modal-showcase {
  display: grid;
  gap: 22px;
}

.about-modal-brand {
  justify-self: start;
}

.about-modal-brand .brand-icon {
  width: 58px;
  height: 58px;
}

.about-homebook-stack {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 20px 9px 18px;
}

.about-homebook-stack::before {
  content: "";
  position: absolute;
  inset: 0 20px 0 0;
  border: 1px solid rgba(82, 107, 86, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 8%, rgba(237, 200, 175, 0.48), transparent 36%),
    #f0f2ec;
  transform: rotate(-2deg);
}

.about-homebook-stack article {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 70px;
  border: 1px solid #d1d8cf;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(24, 48, 45, 0.08);
  padding: 8px 12px 8px 8px;
}

.about-homebook-stack article:nth-child(2) {
  margin-left: 12px;
}

.about-homebook-stack article:nth-child(3) {
  margin-left: 24px;
}

.about-homebook-stack img {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
}

.about-homebook-stack span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.about-homebook-stack strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.about-homebook-stack small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-modal-title {
  display: grid;
  gap: 14px;
}

.about-eyebrow {
  margin: 0;
  color: var(--moss);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-modal-title h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 66px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.about-modal-title > p:not(.about-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #53615a;
  font-size: 17px;
  font-weight: 620;
  line-height: 1.56;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.about-primary-button,
.about-secondary-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.about-primary-button {
  border: 1px solid var(--moss-dark);
  background: var(--moss-dark);
  color: #fff;
}

.about-secondary-button {
  border: 1px solid #aeb9ad;
  background: #fff;
  color: var(--moss-dark);
}

.about-primary-button:hover,
.about-primary-button:focus-visible,
.about-secondary-button:hover,
.about-secondary-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(82, 107, 86, 0.14);
  outline: 0;
}

.about-feature-section {
  display: grid;
  gap: 28px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.about-feature-heading {
  display: grid;
  gap: 7px;
  max-width: 720px;
}

.about-feature-heading h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.08;
}

.about-feature-grid {
  position: relative;
  display: grid;
  gap: 44px;
}

.about-feature-grid::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(82, 107, 86, 0.12), rgba(82, 107, 86, 0.48), rgba(165, 104, 79, 0.42), rgba(82, 107, 86, 0.16));
  transform: translateX(-50%);
}

.about-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  gap: 8px 24px;
  align-items: center;
}

.about-feature-card::before {
  content: "";
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / -1;
  justify-self: center;
  width: 34px;
  height: 34px;
  border: 7px solid #fbfaf7;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 1px rgba(165, 104, 79, 0.34), 0 12px 26px rgba(165, 104, 79, 0.18);
}

.about-feature-card:nth-child(odd) .about-feature-visual {
  grid-column: 1;
}

.about-feature-card:nth-child(odd) .about-feature-copy {
  grid-column: 3;
}

.about-feature-card:nth-child(even) .about-feature-visual {
  grid-column: 3;
}

.about-feature-card:nth-child(even) .about-feature-copy {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.about-feature-visual {
  grid-row: 1 / -1;
  min-width: 0;
  min-height: 245px;
  overflow: hidden;
  border: 1px solid #cdd7cc;
  border-radius: 9px;
  background: #eef0ea;
  box-shadow: 0 12px 28px rgba(24, 48, 45, 0.07);
}

.about-feature-copy {
  display: grid;
  gap: 10px;
  max-width: 38ch;
}

.about-feature-copy h4 {
  margin: 0;
  color: var(--moss-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 500;
  line-height: 1.06;
}

.about-feature-copy p {
  margin: 0;
  color: #58655e;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.about-homebooks-visual {
  display: grid;
  grid-template-rows: 44px 1fr;
  background: #f4f2ec;
}

.about-mini-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #d5dad2;
  padding: 0 14px;
  background: #fbfaf7;
}

.about-mini-toolbar i {
  width: 34px;
  height: 9px;
  border-radius: 3px;
  background: #dce2da;
}

.about-mini-toolbar i:first-child {
  width: 72px;
  background: #71846f;
}

.about-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
  padding: 18px 14px;
}

.about-mini-cards span {
  display: grid;
  gap: 8px;
  border: 1px solid #d4d9d1;
  border-radius: 7px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 6px 13px rgba(24, 48, 45, 0.06);
}

.about-mini-cards img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: cover;
}

.about-mini-cards b {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.about-tasks-visual {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.about-tasks-visual > div {
  display: grid;
  gap: 3px;
  border-left: 5px solid var(--moss);
  border-radius: 5px;
  background: #fff;
  padding: 11px 13px;
  box-shadow: 0 5px 14px rgba(24, 48, 45, 0.05);
  text-align: left;
}

.about-tasks-visual > div:nth-child(2) {
  border-color: var(--gold);
}

.about-tasks-visual > div:nth-child(3) {
  border-color: var(--sage);
}

.about-tasks-visual small {
  color: var(--clay);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-tasks-visual strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.about-tasks-visual span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.about-calendar-visual {
  padding: 17px;
  background: #fbfaf7;
}

.about-calendar-visual header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.about-calendar-visual header strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.about-calendar-visual header button {
  border: 0;
  background: transparent;
  color: var(--moss);
  font-size: 22px;
}

.about-weekdays,
.about-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.about-weekdays b {
  color: var(--muted);
  font-size: 9px;
}

.about-days {
  margin-top: 7px;
}

.about-days i {
  display: grid;
  min-height: 33px;
  place-items: center;
  border-radius: 5px;
  color: #4e5d55;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.about-days .has-care {
  background: var(--moss);
  color: #fff;
  box-shadow: 0 4px 10px rgba(82, 107, 86, 0.23);
}

.about-note-visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 11px;
  padding: 36px 42px;
  background:
    repeating-linear-gradient(#f3eacb 0 25px, #d7cfae 26px),
    #f3eacb;
  text-align: left;
  transform: rotate(0);
}

.about-note-tape {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 86px;
  height: 22px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%) rotate(-2deg);
}

.about-note-visual small {
  color: var(--clay);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.about-note-visual p {
  margin: 0;
  color: #35483f;
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 17px;
  line-height: 1.55;
}

.about-note-visual div {
  display: flex;
  gap: 8px;
}

.about-note-visual i {
  width: 34px;
  height: 7px;
  border-radius: 99px;
  background: rgba(82, 107, 86, 0.28);
}

.about-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-info-grid > section {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid #d1d7ce;
  border-radius: 8px;
  background: #e7e7e2;
  padding: 18px;
}

.about-info-grid h3,
.about-info-grid h4 {
  margin: 0;
  color: var(--moss-dark);
}

.about-info-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.about-info-grid h4 {
  font-size: 14px;
  font-weight: 900;
}

.about-info-grid p {
  margin: 0;
  color: #59665f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.about-info-grid a:not(.about-primary-button) {
  color: var(--moss-dark);
  font-weight: 850;
}

.about-info-grid .about-faq-section {
  grid-column: 1 / -1;
  gap: 14px;
}

.about-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-faq-list article {
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(82, 107, 86, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.52);
  padding: 13px;
}

.about-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.about-modal-footer nav {
  display: flex;
  gap: 8px;
}

.about-modal-footer a {
  color: #59665f;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  display: grid;
  gap: 5px;
  color: #52615a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cdd6cc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.4;
  padding: 10px 11px;
  text-transform: none;
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(82, 107, 86, 0.55);
  box-shadow: 0 0 0 3px rgba(82, 107, 86, 0.12);
  outline: 0;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.contact-form-status {
  min-width: min(220px, 100%);
  color: #65746d;
  font-size: 13px;
  font-weight: 800;
}

.about-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

body.about-open,
body.account-open {
  overflow: hidden;
}

@media (max-width: 1360px) {
  .template-aligned .display-panel {
    grid-template-columns: minmax(260px, 1fr) max-content max-content max-content;
  }
}

@media (max-width: 980px) {
  .account-modal {
    width: calc(100vw - 18px);
    height: auto;
    max-height: calc(100dvh - 18px);
    border-radius: 10px;
  }

  .account-modal-inner {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .template-aligned .display-panel {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
  }

  .template-aligned .view-tabs {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 50px;
  }

  .template-aligned .view-tab {
    min-height: 44px;
    font-size: 12px;
  }

  .template-aligned .action-field {
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
  }

  .template-aligned .about-field {
    grid-column: 2;
    grid-row: 2;
  }

  .template-aligned .account-field {
    grid-column: 3;
    grid-row: 2;
  }

  .template-aligned .toolbar-icon-button,
  .template-aligned .add-thing-button {
    height: 44px;
  }

  .template-aligned .toolbar-icon-button {
    width: 44px;
  }

  .template-aligned .add-thing-button {
    min-width: 104px;
    font-size: 12px;
  }

  .template-aligned .field input,
  .template-aligned .field select {
    height: 44px;
  }

  .account-modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 10px;
  }

  .account-modal-inner {
    padding: 18px;
    padding-top: 60px;
  }

  .account-user-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .account-identity-row {
    align-items: flex-start;
  }

  .account-user-card img {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }

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

  .account-quick-actions button:last-child {
    margin-left: 0;
  }

  .about-modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 10px;
  }

  .about-close-button {
    top: 10px;
    right: 10px;
  }

  .about-modal-inner {
    width: min(100% - 30px, 620px);
    gap: 30px;
    padding-top: 66px;
  }

  .about-modal-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 0 32px;
  }

  .about-modal-showcase {
    max-width: 390px;
    justify-self: center;
  }

  .about-modal-title h2 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .about-feature-grid {
    gap: 28px;
  }

  .about-feature-grid::before,
  .about-feature-card::before {
    display: none;
  }

  .about-feature-card {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .about-feature-card:nth-child(n) .about-feature-visual,
  .about-feature-card:nth-child(n) .about-feature-copy {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    text-align: left;
  }

  .about-feature-card:nth-child(n) .about-feature-visual {
    grid-row: 1;
  }

  .about-feature-card:nth-child(n) .about-feature-copy {
    grid-row: 2;
  }

  .about-info-grid,
  .about-faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .template-aligned .add-thing-button {
    min-width: 74px;
    padding-inline: 9px;
  }

  .about-modal-inner {
    width: calc(100% - 22px);
  }

  .account-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .account-identity-row,
  .account-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-identity-row .account-actions {
    justify-content: stretch;
  }

  .account-identity-row .account-actions button {
    flex: 1;
  }

  .account-summary-grid {
    grid-template-columns: 1fr;
  }

  .about-homebook-stack article:nth-child(n) {
    margin-left: 0;
  }

  .about-feature-visual {
    min-height: 220px;
  }
}

@media (max-width: 720px) {
  .custom-task-fields {
    grid-template-columns: 1fr;
  }

  .custom-task-image-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
