/* Final, bounded paper-and-ink refinements. All rules belong to named pages;
   passport, print, galleries, calculator and shared mobile behavior are untouched. */

/* User-entered text must use the available column rather than widen the page. */
.public-profile { min-width: 0; overflow-wrap: anywhere; }
.public-profile .page-head h1 { max-width: 100%; line-height: 1.13; }
.public-profile .page-head > .lead { margin-block: 16px; }
.public-profile .profile-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 20px;
  border-inline-start: 3px solid #b8cdbb;
  border-radius: 0 12px 12px 0;
  background: #f5f6ee;
  color: #526354;
  line-height: 1.65;
}
.owner-dashboard .dashboard-care-list,
.owner-dashboard .dashboard-care-list li { min-width: 0; overflow-wrap: anywhere; }

/* Decision labels carry meaning: keep the existing words and category colors. */
.cg-shell .cg-badge { font-size: 13px; line-height: 1.45; padding: 5px 10px; }
.cg-shell .cg-category { font-size: 12px; line-height: 1.6; }
.cg-shell .cg-card-top { align-items: center; gap: 8px 10px; }

/* One quiet notebook in the empty list, rather than decoration on every task. */
.owner-tool .care-task-empty { display: flex; align-items: flex-start; gap: 18px; background: #f7f8ef; }
.care-task-empty-mark { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 48px; color: #386954; }
.care-task-empty-mark svg { width: 36px; height: 36px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.owner-tool .care-task-empty h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.25; }
.owner-tool .care-task-empty p { margin: 0; max-width: 48ch; line-height: 1.7; }

/* The operator shell is independent from the public shell. */
.cp-top { gap: 18px; }
.cp-top > span, .cp-top > div, .cp-top > div > span { min-width: 0; }
.cp-top > div { max-width: 100%; }
.cp-top > div > span { overflow-wrap: anywhere; }
.cp-top > div > form { flex-shrink: 0; }

@media (max-width: 600px) {
  .public-profile .page-head h1 { max-width: 100%; font-size: clamp(32px, 8.5vw, 44px); }
  .public-profile .profile-empty { padding: 16px; }
  .owner-tool .care-task-empty { gap: 12px; padding: 20px 16px; }
  .care-task-empty-mark { flex-basis: 30px; width: 30px; height: 36px; }
  .care-task-empty-mark svg { width: 30px; height: 30px; }
  .owner-tool .care-task-empty h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: no-preference) {
  .care-task-empty-mark svg { animation: finish-note-settle 380ms ease-out 1; }
}
@keyframes finish-note-settle {
  from { transform: translateY(3px) rotate(-3deg); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .care-task-empty-mark svg { animation: none; transform: none; }
}
@media (forced-colors: active) {
  .public-profile .profile-empty, .owner-tool .care-task-empty { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .care-task-empty-mark { color: CanvasText; }
  .cg-shell .cg-badge { border: 1px solid CanvasText; }
}
@media print { .care-task-empty-mark { display: none; } }

