.follow-up-table-head,
.follow-up-report-row {
  grid-template-columns: minmax(135px, 1fr) minmax(210px, 1.85fr) minmax(175px, 1.35fr) 135px;
  align-items: center;
}
.follow-up-report-row { padding-top: 15px; padding-bottom: 15px; }
.follow-up-report-row .action-detail strong { display: block; margin: 3px 0; }
.follow-up-report-row .action-detail strong a { color: var(--ink); }
.follow-up-kind { color: var(--teal-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.follow-up-report-row .action-next .pill { margin-bottom: 7px; }
.follow-up-next-button { min-height: 39px; padding: 8px 10px; white-space: nowrap; font-size: .81rem; }

.my-actions { padding: 0; overflow: hidden; }
.my-actions-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.my-actions-heading h2 { margin: 0 0 4px; }
.my-actions-heading p { margin: 0; font-size: .84rem; }
.my-action-row { display: grid; grid-template-columns: minmax(0,1fr) 155px 150px; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding: 16px 22px; }
.my-action-row strong { display: block; overflow-wrap: anywhere; }
.my-action-row strong a { color: var(--ink); }
.my-action-row small { display: block; margin-top: 5px; }
.my-action-due { display: grid; justify-items: start; gap: 3px; font-size: .83rem; }
.my-action-due small { margin: 0; }
.my-action-due .pill { margin-top: 2px; }
.my-action-row .button { padding-inline: 10px; white-space: nowrap; }
.my-actions > .empty { margin: 0; padding: 4px 22px 22px; }

.account .reminder-menu > summary { display: flex; align-items: center; gap: 7px; list-style: none; padding: 0 9px; border-radius: 7px; font-weight: 700; }
.account .reminder-menu > summary::-webkit-details-marker { display: none; }
.account .reminder-menu[open] > summary,.account .reminder-menu > summary:hover { background: #ffffff1c; }
.reminder-badge { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #ffdde2; color: #a11d32; font-size: .73rem; }
.reminder-popover { position: absolute; right: 0; top: 49px; width: min(370px, calc(100vw - 20px)); max-height: min(70vh, 550px); overflow-y: auto; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 12px 32px #102c4640; padding: 8px 0; }
.reminder-popover-head { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; background: #eff4f7; font-size: .84rem; }
.reminder-popover-item { display: block; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.reminder-popover-item:hover { background: #f4fafb; text-decoration: none; }
.reminder-popover-item strong,.reminder-popover-item small { display: block; overflow-wrap: anywhere; }
.reminder-popover-item small { margin-top: 3px; font-size: .75rem; }
.reminder-popover-empty { margin: 0; padding: 13px 16px; color: var(--muted); font-size: .86rem; }
.reminder-popover-all { display: block; padding: 12px 16px 7px; font-weight: 800; text-align: center; }
.reminder-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 0 13px; }
.reminder-section-head h2 { margin: 0; }
.reminder-page-card > .empty { margin: 0; }
.reminder-page-row { display: grid; grid-template-columns: minmax(0,1fr) 125px 150px; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 16px 0; }
.reminder-page-row strong,.reminder-page-row small { display: block; }
.reminder-page-row strong a { color: var(--ink); }
.reminder-page-row p { margin: 6px 0 0; font-size: .86rem; overflow-wrap: anywhere; }
.reminder-page-row small { margin-top: 4px; }
.reminder-page-due { display: grid; justify-items: start; }
.reminder-page-row .button { padding-inline: 10px; }

.follow-up-page-head .head-actions { align-items: center; }
.follow-up-description { white-space: normal; overflow-wrap: anywhere; }
.follow-up-detail-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr); gap: 18px; align-items: start; }
.follow-up-detail-layout > * { min-width: 0; }
.follow-up-section-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.follow-up-section-head h2 { margin: 0; }
.follow-up-current-action { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.follow-up-quick-actions { display: flex; gap: 8px 18px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 15px; font-size: .87rem; font-weight: 700; }
.follow-up-history { position: sticky; top: 96px; }
.follow-up-history > .muted { margin: -5px 0 18px; }
.follow-up-timeline { list-style: none; border-left: 2px solid var(--line); margin: 0 0 0 8px; padding: 0 0 0 22px; }
.follow-up-timeline li { position: relative; padding: 0 0 24px; }
.follow-up-timeline li:last-child { padding-bottom: 0; }
.follow-up-timeline li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.follow-up-timeline time,.follow-up-timeline strong,.follow-up-timeline small { display: block; }
.follow-up-timeline time { color: var(--muted); font-size: .78rem; font-weight: 700; }
.follow-up-timeline strong { margin-top: 4px; }
.follow-up-timeline p { margin: 4px 0; font-size: .88rem; overflow-wrap: anywhere; }
.follow-up-timeline small { font-size: .78rem; }

.follow-up-action-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.8fr); gap: 18px; align-items: start; }
.follow-up-action-layout > * { min-width: 0; }
.follow-up-mode-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0 22px; }
.follow-up-mode-nav a { display: block; min-height: 76px; border: 1px solid var(--line); border-radius: 9px; padding: 13px; color: var(--ink); }
.follow-up-mode-nav a:hover { border-color: var(--teal); text-decoration: none; }
.follow-up-mode-nav a.active { border: 2px solid var(--teal); background: #e4f5f4; padding: 12px; }
.follow-up-mode-nav strong,.follow-up-mode-nav small { display: block; }
.follow-up-mode-nav small { margin-top: 4px; font-size: .75rem; font-weight: 400; }
.follow-up-form-intro { border-top: 1px solid var(--line); padding-top: 18px; }
.follow-up-form-intro h2 { margin-bottom: 4px; }
.follow-up-form-intro p { font-size: .87rem; }
.follow-up-form .form-grid { margin-bottom: 22px; }
.follow-up-form .form-grid label:has(textarea) { grid-column: 1/-1; }
.follow-up-form .actions { justify-content: flex-end; }
.follow-up-action-context .pill { margin-bottom: 12px; }
.follow-up-action-context h3 { margin: 6px 0; overflow-wrap: anywhere; }
.follow-up-action-context p { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .follow-up-detail-layout,.follow-up-action-layout { grid-template-columns: 1fr; }
  .follow-up-history { position: static; }
}
@media (max-width: 800px) {
  .follow-up-table-head { display: none; }
  .follow-up-report-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px 15px; }
  .follow-up-report-row .action-detail,.follow-up-report-row .action-next { grid-column: 1/-1; }
  .follow-up-report-row .follow-up-next-button { grid-column: 2; grid-row: 1; }
}
@media (max-width: 700px) {
  .reminder-menu-label { display: none; }
  .account .reminder-menu > summary { padding: 0 5px; }
  .reminder-popover { right: -42px; }
  .reminder-page-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .reminder-page-row > div:first-child { grid-column: 1/-1; }
  .reminder-page-row .button { grid-column: 2; }
  .my-actions-heading { padding: 16px; align-items: start; }
  .my-actions-heading .pill { flex-shrink: 0; }
  .my-action-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 15px 16px; }
  .my-action-row > div:first-child { grid-column: 1/-1; }
  .my-action-due { align-self: center; }
  .my-action-row .button { grid-column: 2; }
  .follow-up-mode-nav { grid-template-columns: 1fr; }
  .follow-up-action-layout .actions .button { width: 100%; }
  .follow-up-section-head { flex-wrap: wrap; }
  .follow-up-detail-layout .details { grid-template-columns: 100px minmax(0,1fr); }
}
@media (max-width: 390px) {
  .reminder-page-row { grid-template-columns: 1fr; }
  .reminder-page-row .button { grid-column: 1; width: 100%; }
  .follow-up-report-row { grid-template-columns: 1fr; }
  .follow-up-report-row .follow-up-next-button { grid-column: 1; grid-row: auto; width: 100%; }
  .my-action-row { grid-template-columns: 1fr; }
  .my-action-row .button { grid-column: 1; width: 100%; }
}
