.care-tool-page {
  --tool-lilac: #e7dff7;
  --tool-lilac-deep: #735ba3;
  --tool-sky: #dff4f6;
  --tool-card: #fffefb;
  --tool-warm: #fbf3d3;
  --tool-green: #d8ebac;
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 217, 93, 0.18), transparent 24rem),
    radial-gradient(circle at 92% 6%, rgba(117, 223, 229, 0.18), transparent 27rem),
    var(--paper);
}

.care-tool-page--handoff {
  background:
    radial-gradient(circle at 9% 11%, rgba(231, 223, 247, 0.65), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(117, 223, 229, 0.14), transparent 27rem),
    var(--paper);
}

.tool-breadcrumb {
  padding-top: 26px;
}

.tool-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 650;
  list-style: none;
}

.tool-breadcrumb li + li::before {
  content: "/";
  padding-right: 8px;
  color: rgba(38, 52, 64, 0.35);
}

.tool-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.tool-breadcrumb a:hover {
  color: var(--aqua-deep);
}

.tool-hero {
  padding: 54px 0 70px;
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
}

.tool-hero-copy {
  max-width: 790px;
}

.tool-kicker {
  margin-bottom: 14px;
  color: var(--aqua-deep);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.care-tool-page--handoff .tool-kicker {
  color: var(--tool-lilac-deep);
}

.tool-hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 4.9vw, 4.2rem);
}

.tool-underline {
  position: relative;
  display: inline;
  z-index: 0;
}

.tool-underline::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.04em;
  left: -0.04em;
  height: 0.22em;
  border-radius: 999px 72px 999px 80px;
  background: var(--sun);
  transform: rotate(-1.2deg);
}

.care-tool-page--handoff .tool-underline::after {
  background: var(--tool-lilac);
}

.tool-lede {
  max-width: 720px;
  margin-bottom: 28px;
  color: #50605f;
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}

.tool-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-hero-points span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--ink);
  font-size: 0.81rem;
  font-weight: 690;
}

.tool-hero-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(117, 223, 229, 0.16);
}

.care-tool-page--handoff .tool-hero-points span::before {
  background: #b9a9dc;
  box-shadow: 0 0 0 4px rgba(185, 169, 220, 0.16);
}

.tool-local-note {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid rgba(38, 52, 64, 0.11);
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow-sm);
}

.tool-local-note::after {
  content: "";
  position: absolute;
  right: -31px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border-radius: 40% 60% 65% 35%;
  background: rgba(117, 223, 229, 0.22);
  transform: rotate(18deg);
}

.care-tool-page--handoff .tool-local-note::after {
  background: rgba(185, 169, 220, 0.22);
}

.tool-local-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-blue);
  color: var(--aqua-deep);
  font-size: 1.2rem;
  font-weight: 800;
}

.care-tool-page--handoff .tool-local-icon {
  background: #f1ecfa;
  color: var(--tool-lilac-deep);
}

.tool-local-note h2 {
  margin: 1px 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.tool-local-note p {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.text-button {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--aqua-deep);
  font-size: 0.8rem;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.care-tool-page--handoff .text-button {
  color: var(--tool-lilac-deep);
}

.tool-workspace-section {
  padding: 76px 0 96px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(38, 52, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 52, 64, 0.045) 1px, transparent 1px),
    #f8f6f0;
  background-size: 32px 32px;
}

.care-tool-page--handoff .tool-workspace-section {
  background:
    linear-gradient(rgba(115, 91, 163, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 91, 163, 0.045) 1px, transparent 1px),
    #f8f6f0;
  background-size: 32px 32px;
}

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

.tool-section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tool-print-button {
  flex: 0 0 auto;
}

.tool-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 26px;
  align-items: start;
}

.tool-editor,
.handoff-editor {
  display: grid;
  gap: 20px;
}

.tool-panel {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(38, 52, 64, 0.12);
  border-radius: 28px;
  background: rgba(255, 254, 251, 0.96);
  box-shadow: 0 18px 44px rgba(29, 43, 52, 0.075);
}

.tool-panel--people {
  background:
    linear-gradient(135deg, rgba(223, 244, 246, 0.62), transparent 72%),
    var(--tool-card);
}

.tool-panel--medication {
  background:
    linear-gradient(135deg, rgba(251, 243, 211, 0.58), transparent 68%),
    var(--tool-card);
}

.tool-panel-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.tool-panel-heading h3 {
  margin: 0 0 5px;
  font-size: 1.35rem;
}

.tool-panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tool-step {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink-strong);
  color: white;
  font-size: 0.69rem;
  font-weight: 790;
  letter-spacing: 0.06em;
}

.care-tool-page--handoff .tool-step {
  background: var(--tool-lilac-deep);
}

.entity-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.entity-columns h4 {
  margin: 0 0 9px;
  color: var(--ink-strong);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inline-add-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.inline-add-form input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(38, 52, 64, 0.18);
  border-radius: 13px;
  background: white;
  color: var(--ink-strong);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-field textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.5;
}

.inline-add-form input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--aqua-deep);
  box-shadow: 0 0 0 4px rgba(15, 116, 130, 0.11);
}

.care-tool-page--handoff .form-field input:focus,
.care-tool-page--handoff .form-field select:focus,
.care-tool-page--handoff .form-field textarea:focus {
  border-color: var(--tool-lilac-deep);
  box-shadow: 0 0 0 4px rgba(115, 91, 163, 0.11);
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.inline-add-form input::placeholder {
  color: #929b97;
  opacity: 1;
}

.inline-add-form button {
  min-width: 58px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: var(--ink-strong);
  color: white;
  font-size: 0.78rem;
  font-weight: 740;
  cursor: pointer;
}

.entity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 11px 0 0;
  list-style: none;
}

.entity-list li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 5px 4px 11px;
  border: 1px solid rgba(38, 52, 64, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 680;
}

.entity-list li span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.entity-list li span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
}

.entity-list button {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}

.entity-list button:hover {
  background: rgba(245, 138, 103, 0.14);
  color: #a53b2d;
}

.entity-list--roomy {
  display: grid;
}

.entity-list--roomy li {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  padding-left: 15px;
  border-radius: 14px;
}

.entity-list--roomy li span::before {
  background: #b9a9dc;
}

.task-form,
.handoff-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 14px;
}

.task-form--compact {
  grid-template-columns: repeat(2, 1fr);
}

.form-field {
  min-width: 0;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
}

.form-field label span {
  color: var(--muted);
  font-weight: 560;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.form-guidance {
  grid-column: 1 / -1;
  padding: 13px 15px;
  margin: 0;
  border-left: 4px solid var(--sun);
  border-radius: 4px 12px 12px 4px;
  background: #fffbdf;
  color: #5f5a3d;
  font-size: 0.79rem;
  line-height: 1.55;
}

.form-message {
  min-height: 1.35em;
  margin: 0;
  color: var(--aqua-deep);
  font-size: 0.78rem;
  font-weight: 670;
}

.form-message.is-error {
  color: #a53b2d;
}

.tool-preview,
.handoff-preview-sticky {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(38, 52, 64, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(117, 223, 229, 0.23), transparent 19rem),
    #fffefb;
  box-shadow: 0 24px 65px rgba(29, 43, 52, 0.1);
}

.tool-preview {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.preview-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.preview-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.count-badge {
  min-height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink-strong);
  color: white;
  font-size: 0.71rem;
  font-weight: 740;
}

.week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 20px;
}

.day-card {
  min-height: 136px;
  padding: 16px;
  border: 1px solid rgba(38, 52, 64, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.day-card:first-child {
  grid-column: 1 / -1;
}

.day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.day-card h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.day-card-header span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.day-empty,
.preview-empty {
  margin: 0;
  color: #8b9490;
  font-size: 0.75rem;
}

.preview-empty {
  padding: 36px 10px;
  text-align: center;
}

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

.day-task {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 9px 8px 9px 12px;
  border-radius: 12px;
  background: #f6f7f5;
}

.day-task::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--category-color, var(--aqua));
}

.day-task time {
  color: var(--ink-strong);
  font-size: 0.7rem;
  font-weight: 790;
  line-height: 1.4;
}

.day-task-copy {
  min-width: 0;
}

.day-task-copy strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 0.74rem;
  line-height: 1.35;
}

.day-task-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

.day-task-actions {
  display: flex;
  gap: 2px;
}

.day-task-actions button,
.compact-item-actions button {
  min-width: 30px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
}

.day-task-actions button:hover,
.compact-item-actions button:hover {
  background: white;
  color: var(--ink-strong);
  box-shadow: 0 4px 10px rgba(29, 43, 52, 0.08);
}

.category-feeding { --category-color: #f0cb4e; }
.category-walk { --category-color: #75dfe5; }
.category-medication { --category-color: #f58a67; }
.category-cleaning { --category-color: #b9a9dc; }
.category-grooming { --category-color: #bedc72; }
.category-enrichment { --category-color: #efac64; }
.category-appointment { --category-color: #7aa4c5; }
.category-other { --category-color: #9ba49e; }

.tool-info-section {
  padding: 96px 0;
}

.tool-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}

.tool-info-grid article {
  max-width: 720px;
}

.tool-info-grid h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.tool-info-grid article p:not(.tool-kicker) {
  color: #56635f;
  line-height: 1.75;
}

.tool-next-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--tool-warm);
  box-shadow: var(--shadow-sm);
}

.care-tool-page--handoff .tool-next-card {
  background: #eee8f8;
}

.tool-next-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--ink-strong);
  color: white;
}

.tool-next-card h3 {
  font-size: 1.45rem;
}

.tool-next-card p {
  margin-bottom: 22px;
  color: #5c665e;
  font-size: 0.9rem;
}

.handoff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.76fr);
  gap: 26px;
  align-items: start;
}

.pet-detail-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.medical-safety-note {
  display: grid;
  gap: 3px;
  padding: 15px 17px;
  margin-bottom: 20px;
  border: 1px solid rgba(180, 124, 35, 0.2);
  border-radius: 15px;
  background: rgba(255, 251, 223, 0.9);
  color: #5f593b;
  font-size: 0.79rem;
  line-height: 1.55;
}

.medical-safety-note strong {
  color: #413d29;
}

.compact-item-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.compact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(38, 52, 64, 0.1);
  border-radius: 14px;
  background: #f7f7f4;
}

.compact-item strong,
.compact-item span {
  overflow-wrap: anywhere;
}

.compact-item strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.82rem;
}

.compact-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

.compact-item-actions {
  display: flex;
}

.checklist-fieldset {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 24px 0 0;
  border: 0;
}

.checklist-fieldset legend {
  padding: 0;
  margin-bottom: 12px;
  color: var(--ink-strong);
  font-size: 0.88rem;
  font-weight: 740;
}

.checklist-fieldset label {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid rgba(38, 52, 64, 0.11);
  border-radius: 13px;
  background: #f8f8f6;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 620;
  cursor: pointer;
}

.checklist-fieldset input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--tool-lilac-deep);
}

.handoff-preview-sticky {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background:
    radial-gradient(circle at 100% 0, rgba(185, 169, 220, 0.26), transparent 19rem),
    #fffefb;
}

.handoff-summary {
  display: grid;
  gap: 14px;
  padding-top: 20px;
}

.summary-intro {
  padding: 18px;
  border-radius: 17px;
  background: #f2edf9;
}

.summary-intro strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-strong);
  font-size: 1.08rem;
}

.summary-intro span {
  color: var(--muted);
  font-size: 0.75rem;
}

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

.summary-section h3 {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

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

.summary-list li {
  padding: 10px 11px;
  border-radius: 11px;
  background: #f7f7f4;
  color: var(--ink);
  font-size: 0.73rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.summary-list li strong {
  color: var(--ink-strong);
}

.summary-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.summary-contact {
  padding: 10px 11px;
  border-radius: 11px;
  background: #f7f7f4;
}

.summary-contact small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-contact strong,
.summary-contact span {
  display: block;
  overflow-wrap: anywhere;
}

.summary-contact strong {
  margin-top: 3px;
  color: var(--ink-strong);
  font-size: 0.72rem;
}

.summary-contact span {
  color: var(--muted);
  font-size: 0.67rem;
}

.summary-note {
  margin: 0;
  padding: 11px;
  border-radius: 11px;
  background: #f7f7f4;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.summary-checks li {
  position: relative;
  padding-left: 34px;
}

.summary-checks li::before {
  content: "○";
  position: absolute;
  left: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-checks li.is-checked::before {
  content: "✓";
  color: #52702b;
  font-weight: 800;
}

.summary-disclaimer {
  padding: 12px 13px;
  border-radius: 11px;
  background: #fff9dd;
  color: #615c3e;
  font-size: 0.65rem;
  line-height: 1.5;
}

@media (max-width: 1040px) {
  .tool-workspace,
  .handoff-layout {
    grid-template-columns: 1fr;
  }

  .tool-preview,
  .handoff-preview-sticky {
    position: static;
  }

  .week-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .day-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .tool-hero-grid,
  .tool-info-grid {
    grid-template-columns: 1fr;
  }

  .tool-hero {
    padding-top: 42px;
  }

  .tool-local-note {
    max-width: 560px;
  }

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

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

  .pet-detail-form .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .tool-breadcrumb {
    padding-top: 18px;
  }

  .tool-hero {
    padding: 36px 0 52px;
  }

  .tool-hero h1 {
    font-size: clamp(2.3rem, 11.5vw, 3.15rem);
  }

  .tool-workspace-section,
  .tool-info-section {
    padding: 62px 0;
  }

  .tool-section-heading {
    display: grid;
    align-items: start;
  }

  .tool-print-button {
    justify-self: start;
  }

  .tool-panel,
  .tool-preview,
  .handoff-preview-sticky {
    padding: 20px;
    border-radius: 22px;
  }

  .entity-columns,
  .task-form,
  .task-form--compact,
  .handoff-fields,
  .pet-detail-form {
    grid-template-columns: 1fr;
  }

  .form-field--wide,
  .pet-detail-form .button {
    grid-column: auto;
  }

  .week-grid,
  .summary-contact-grid {
    grid-template-columns: 1fr;
  }

  .day-card {
    min-height: 0;
  }

  .day-task {
    grid-template-columns: 43px 1fr;
  }

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

  .form-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .care-tool-page *,
  .care-tool-page *::before,
  .care-tool-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  @page {
    size: auto;
    margin: 12mm;
  }

  .care-tool-page {
    background: white !important;
    color: #17232b;
    font-size: 10pt;
  }

  .care-tool-page .site-header,
  .care-tool-page .site-footer,
  .tool-breadcrumb,
  .tool-hero,
  .tool-section-heading,
  .tool-editor,
  .handoff-editor,
  .tool-info-section {
    display: none !important;
  }

  .tool-workspace-section {
    padding: 0;
    border: 0;
    background: white !important;
  }

  .tool-workspace-section .container {
    width: 100%;
  }

  .tool-workspace,
  .handoff-layout {
    display: block;
  }

  .tool-preview,
  .handoff-preview-sticky {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: white !important;
    box-shadow: none;
  }

  .preview-heading {
    padding-bottom: 12px;
    border-bottom: 2px solid #17232b;
  }

  .preview-heading h2 {
    font-size: 22pt;
  }

  .preview-heading .tool-kicker {
    color: #17232b;
  }

  .count-badge {
    border: 1px solid #17232b;
    background: white;
    color: #17232b;
  }

  .week-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
  }

  .day-card,
  .summary-section,
  .summary-intro,
  .summary-contact,
  .summary-list li,
  .summary-note,
  .summary-disclaimer {
    break-inside: avoid;
  }

  .day-card {
    min-height: 0;
    padding: 10px;
    border: 1px solid #b9c0bc;
    background: white;
  }

  .day-card:first-child {
    grid-column: auto;
  }

  .day-task {
    grid-template-columns: 42px 1fr;
    padding: 6px 5px 6px 10px;
    background: #f2f2f0;
  }

  .day-task-actions {
    display: none;
  }

  .handoff-summary {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .summary-intro,
  .summary-disclaimer {
    grid-column: 1 / -1;
  }

  .summary-section {
    padding-top: 10px;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
