.crm-followup-schedule { min-width: 0; container-type: inline-size; }
.layer-crm-task-panel > .layer-crm-command-head { margin-bottom: 16px; }
#layer-crm-task-list:has(.crm-followup-calendar) { max-height: none; overflow: visible; }
#layer-crm-task-list:has(#cockpit-followup-schedule) { max-height: none; overflow: visible; }
#cockpit-followup-schedule .crm-day-group + .crm-day-group { margin-top: 20px; }
#cockpit-followup-schedule .crm-day-group h5 { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 8px; }
#cockpit-followup-schedule .crm-day-followup + .crm-day-followup { margin-top: 8px; }
.crm-day-followup > .crm-task-controls { grid-column: 3; grid-row: 1; }
@media (max-width: 760px) {
  #cockpit-followup-schedule .crm-day-followup > .crm-day-latest { grid-column: 1; grid-row: 3; }
  #cockpit-followup-schedule .crm-day-followup > .crm-task-controls { grid-column: 1; grid-row: 4; }
}
.crm-followup-view { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; width: fit-content; max-width: 100%; padding: 3px; gap: 2px; border: 1px solid var(--yma-line); border-radius: 30px; background: var(--card); }
.yma-dashboard-ui .crm-followup-view button { min-height: 40px; padding: 7px 12px; border: 0; border-radius: 24px; background: transparent; color: var(--yma-ink-muted); box-shadow: none; font-size: 13px; white-space: nowrap; }
.yma-dashboard-ui .crm-followup-view button[aria-pressed=true] { background: #111; color: #fff; }
html[data-theme=dark] .yma-dashboard-ui .crm-followup-view button[aria-pressed=true] { background: var(--yma-accent-soft, #eee6fa); color: #191324; }
.crm-followup-counts { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding-block: 6px; color: var(--yma-ink-muted); font-size: 12px; }
.yma-dashboard-ui .crm-followup-counts button { min-height: 36px; padding: 4px 0; border: 0; background: transparent; color: inherit; box-shadow: none; font-size: inherit; text-decoration: underline; }
.crm-followup-counts button[aria-pressed=true] { font-weight: 700; }
.crm-followup-calendar { max-width: 420px; padding-block: 8px; }
.crm-followup-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.yma-dashboard-ui .crm-followup-month button { min-width: 40px; min-height: 40px; padding: 0; border: 1px solid var(--yma-line); border-radius: 8px; background: var(--card); color: var(--black); box-shadow: none; }
.crm-followup-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.crm-followup-weekday { text-align: center; color: var(--yma-ink-muted); padding: 4px 0; font-size: 11px; }
.yma-dashboard-ui .crm-followup-days button { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; min-height: 44px; padding: 3px 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--black); box-shadow: none; font-size: 13px; line-height: 1.2; }
.crm-followup-days button small { font-size: 10px; font-weight: 700; line-height: 1.2; }
.yma-dashboard-ui .crm-followup-days button[aria-current=date] { border-color: var(--yma-ink-muted); }
.yma-dashboard-ui .crm-followup-days button[aria-pressed=true] { background: #111; color: white; }
html[data-theme=dark] .yma-dashboard-ui .crm-followup-days button[aria-pressed=true] { background: var(--yma-accent-soft, #eee6fa); color: #191324; }
.crm-followup-agenda { margin: 8px 0; font-size: 12px; color: var(--yma-ink-muted); }
@container (min-width: 680px) {
  .crm-followup-content.is-calendar { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; }
  .is-calendar .crm-followup-calendar { grid-column: 1; grid-row: 1 / span 2; }
  .is-calendar .crm-followup-agenda, .is-calendar .crm-followup-items { grid-column: 2; }
}
.crm-followup-schedule button:focus-visible { outline: 2px solid var(--yma-ink-muted); outline-offset: 2px; }
.yma-dashboard-ui .crm-task-controls { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 6px; }
.yma-dashboard-ui .crm-task-controls .crm-followup-action { box-sizing: border-box; display: flex; flex: 0 0 52px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 52px; height: 54px; min-height: 54px; padding: 5px 2px; border: 1px solid var(--yma-line); border-radius: 8px; background: transparent; color: var(--black); font: 500 11px/14px var(--font-body, Geist, sans-serif); letter-spacing: 0; white-space: nowrap; box-shadow: none; transform: none; cursor: pointer; }
.yma-dashboard-ui .crm-task-controls .crm-followup-action:hover:enabled { background: var(--gray-100); border-color: var(--yma-ink-muted); }
.yma-dashboard-ui .crm-task-controls .crm-followup-action.is-done { background: var(--black); color: var(--white); border-color: var(--black); }
.yma-dashboard-ui .crm-task-controls .crm-followup-action.is-done:hover:enabled { background: var(--black); border-color: var(--black); opacity: .85; }
.yma-dashboard-ui .crm-task-controls .crm-followup-action.is-delete { color: var(--yma-action-danger, #b91c1c); }
.yma-dashboard-ui .crm-task-controls .crm-followup-action:focus-visible { outline: 2px solid var(--yma-ink-muted); outline-offset: 2px; }
.yma-dashboard-ui .crm-task-controls .crm-followup-action:disabled { opacity: .5; cursor: not-allowed; }
.crm-followup-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; background: currentColor; -webkit-mask: var(--followup-icon) center / contain no-repeat; mask: var(--followup-icon) center / contain no-repeat; }
.crm-followup-icon.is-edit { --followup-icon: url("./assets/icons/lucide/pencil.svg"); }
.crm-followup-icon.is-move { --followup-icon: url("./assets/icons/lucide/calendar-days.svg"); }
.crm-followup-icon.is-done { --followup-icon: url("./assets/icons/lucide/check.svg"); }
.crm-followup-icon.is-delete { --followup-icon: url("./assets/icons/lucide/trash-2.svg"); }
.crm-followup-icon.is-reopen { --followup-icon: url("./assets/icons/lucide/rotate-ccw.svg"); }
@media (max-width: 640px) {
  .crm-followup-view { width: 100%; }
  .yma-dashboard-ui .crm-followup-view button { flex: 1 0 auto; min-width: max-content; min-height: 44px; padding-inline: 14px; }
  .yma-dashboard-ui .crm-followup-counts button { min-height: 44px; }
}
.crm-care-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 700px) {
  #layer-client-care-nudges .crm-care-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #layer-client-care-nudges .crm-care-actions { grid-column: 1; grid-row: auto; }
  #layer-client-care-nudges .crm-care-actions button { flex: 1 1 120px; min-height: 44px; }
}
