/* Keep the title full bleed inside the existing page/safe-area owner. */
.card.followup-card { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.followup-title { margin-left:calc(0px - var(--shell-left)); margin-right:calc(0px - var(--shell-right)); padding:18px max(20px,var(--safe-right)) 18px max(20px,var(--safe-left)); background:var(--deep); color:#fff; }
.followup-card .followup-title h2 { margin:0; font-size:24px; line-height:1.4; font-weight:700; color:inherit; }
.followup-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:12px; padding:16px 0 10px; font-size:15px; color:var(--deep); }
.followup-summary strong { padding:0 3px; font-size:21px; font-weight:700; color:var(--accent-foreground,var(--accent)); font-variant-numeric:tabular-nums; }
.followup-balance { display:flex; align-items:center; gap:5px; min-width:0; }
.followup-balance svg { flex:none; width:19px; height:19px; fill:none; stroke:var(--accent-foreground,var(--accent)); stroke-width:1.8; stroke-linejoin:round; }
.followup-received { text-align:right; }
.followup-rule { margin:0; color:var(--muted); font-size:13px; line-height:1.75; text-align:left; }
.followup-rule-detail { margin:5px 0 0; font-size:12px; line-height:1.65; color:var(--muted); text-align:left; }
.followup-list { margin-top:16px; overflow:hidden; border:1px solid var(--border); border-radius:14px; background:#fff; }
.followup-head,.followup-identity { display:grid; grid-template-columns:42% minmax(0,1fr); }
.followup-head { background:var(--tint); font-size:14px; font-weight:600; }
.followup-head span { padding:12px 16px; }
.followup-entry + .followup-entry { border-top:1px solid var(--border); }
.followup-identity { align-items:center; padding:16px 0 10px; }
.followup-identity > div { min-width:0; padding:0 16px; overflow-wrap:anywhere; }
.followup-identity .student-name { font-size:17px; font-weight:500; line-height:1.5; }
.followup-identity .partner { display:block; margin-top:3px; font-size:14px; line-height:1.5; }
.followup-reason { font-size:14px; line-height:1.6; }
.followup-gift { padding:6px 12px 16px; }
.followup-label { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 4px; font-size:13px; color:var(--muted); line-height:1.6; }
.followup-label small { font-size:12px; white-space:nowrap; }
.followup-selection { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.followup-stars { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:0; margin:5px 0 10px; }
.student-notices .followup-star { width:100%; height:46px; min-width:0; min-height:44px; padding:0; margin:0; display:grid; place-items:center; background:transparent; border:0; color:var(--muted); border-radius:8px; cursor:pointer; }
.followup-star svg { width:min(27px,100%); height:27px; overflow:visible; }
.followup-star path { fill:transparent; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; }
.followup-star[aria-pressed=true] { color:var(--accent-foreground,var(--accent)); }
.followup-star[aria-pressed=true] path { fill:currentColor; }
.student-notices .followup-star:disabled { cursor:default; opacity:.4; }
.followup-star:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.followup-submit-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 4px; }
.followup-note { flex:none; margin:0; color:var(--muted); font-size:12px; line-height:1.9; }
.followup-note span { display:block; white-space:nowrap; }
.followup-submit-title { white-space:nowrap; }
.student-notices .followup-submit { display:block; min-width:0; max-width:100%; min-height:46px; margin:0; padding:10px 18px; font-size:14px; font-weight:600; line-height:1.6; overflow-wrap:anywhere; white-space:normal; border-radius:10px; color:var(--on-accent,#fff); background:var(--accent); border-color:var(--accent); }
.student-notices .followup-submit:disabled { color:var(--muted); background:var(--surface); border-color:var(--border); opacity:1; }
.followup-error { margin:8px 0 0; font-size:13px; color:var(--negative); }
/* The reminder can be acknowledged while the separate star feature is paused. */
.managed-reminder.followup-confirm-card .reminder-title { min-height:70px; padding:14px 18px; }
.managed-reminder.followup-confirm-card .reminder-title h2 { font-size:22px; }
.followup-confirm-record { padding:16px 18px 18px; }
.followup-confirm-person { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; min-width:0; text-align:left; overflow-wrap:anywhere; }
.followup-confirm-person strong { min-width:0; color:var(--deep); font-size:19px; font-weight:650; line-height:1.5; }
.followup-confirm-person span { min-width:0; color:var(--muted); font-size:13px; line-height:1.6; }
.followup-confirm-row { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:10px; }
.followup-confirm-row>p { min-width:0; margin:0; color:var(--main); font-size:15px; line-height:1.6; text-align:left; overflow-wrap:anywhere; }
.followup-confirm-card .followup-confirm { flex:none; min-width:76px; min-height:44px; margin:0; padding:9px 16px; border:0; border-radius:9px; background:var(--accent); color:var(--on-accent,#fff); font-size:15px; font-weight:600; line-height:1.5; }
.followup-confirm-card .followup-confirm:focus-visible { outline:3px solid var(--accent-foreground,var(--deep)); outline-offset:3px; }
.followup-confirm-card .followup-confirm:disabled { opacity:.65; }
:root[data-palette=mint] .followup-confirm-card { --deep:#194b3b; --accent:#287555; --main:#214b3c; --muted:#557064; --surface:#f4f8f5; --border:#d5e4da; --on-accent:#fff; }
@media (max-width:420px) {
 .managed-reminder.followup-confirm-card .reminder-title { padding:12px 14px; }
 .managed-reminder.followup-confirm-card .reminder-title h2 { font-size:21px; }
 .followup-confirm-record { padding:14px 12px 16px; }
 .followup-confirm-row { gap:8px; }
 .followup-confirm-row>p { font-size:14px; }
 .followup-confirm-card .followup-confirm { min-width:68px; padding:9px 12px; }
}
@media (hover:hover) { .student-notices .followup-star:hover:not(:disabled) { background:var(--tint); } }
@media (max-width:420px) {
 .followup-title { padding:17px max(16px,var(--safe-right)) 17px max(16px,var(--safe-left)); }
 .followup-card .followup-title h2 { font-size:22px; }
 .followup-summary { font-size:13px; gap:7px; padding:13px 0 9px; }
 .followup-summary strong { font-size:20px; }
 .followup-head span,.followup-identity > div { padding-left:12px; padding-right:12px; }
 .followup-reason { font-size:13px; }
 .followup-gift { padding-left:7px; padding-right:7px; }
 .followup-submit-row { gap:8px; }
 .followup-note { font-size:11px; }
 .student-notices .followup-submit { padding:8px 10px; font-size:13px; }
}
@media (max-width:360px) {
 .followup-summary { font-size:12px; gap:4px; }
 .followup-summary strong { font-size:18px; }
 .followup-label { font-size:12px; gap:4px; }
 .followup-label small { font-size:11px; }
 .student-notices .followup-submit { padding:6px 7px; font-size:12px; }
 .followup-submit-title,.followup-recipient { display:block; }
}
