.contact-record-tabs{display:flex;gap:4px;margin:18px 0 16px;border-bottom:1px solid var(--line)}
.contact-record-tabs a{display:inline-flex;align-items:center;min-height:42px;padding:8px 14px;border-bottom:3px solid transparent;color:var(--muted);font-size:.82rem;font-weight:850;text-decoration:none}
.contact-record-tabs a:hover{color:var(--green)}
.contact-record-tabs a.on{border-bottom-color:var(--green);color:var(--green)}
.followup-subgrid,.followup-settings-card{min-width:0;max-width:100%;border:1px solid var(--line);background:#fff}
.followup-subgrid{overflow:hidden}
.followup-commandbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}
.followup-commandbar h2,.followup-commandbar h3{margin:0;color:var(--green);font-size:1.08rem}
.followup-commandbar p,.followup-settings-head p{margin:4px 0 0;color:var(--muted);font-size:.78rem;line-height:1.45}
.followup-table-wrap{max-width:100%;overflow:auto}
.followup-table{width:100%;min-width:900px;border-collapse:collapse;font-size:.78rem}
.followup-settings-card .followup-table{min-width:560px}
.followup-table th{padding:10px 12px;border-bottom:1px solid var(--line);background:#f7f7f3;color:#526158;text-align:left;font-size:.68rem;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}
.followup-table td{padding:12px;border-bottom:1px solid var(--line-2);color:var(--ink);vertical-align:middle}
.followup-table tbody tr[data-followup-row],.followup-table tbody tr[data-followup-template-row],.followup-table tbody tr[data-followup-sender-row]{cursor:pointer}
.followup-table tbody tr[data-followup-row]:hover,.followup-table tbody tr[data-followup-row]:focus,.followup-table tbody tr[data-followup-template-row]:hover,.followup-table tbody tr[data-followup-template-row]:focus,.followup-table tbody tr[data-followup-sender-row]:hover,.followup-table tbody tr[data-followup-sender-row]:focus{outline:0;background:#f2f7f3}
.followup-table td b,.followup-table td small{display:block}.followup-table td small{margin-top:3px;color:var(--muted)}
.followup-empty{padding:26px!important;color:var(--muted)!important;text-align:center!important}
.followup-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:#eef0ed;color:#5f6862;font-size:.68rem;font-weight:850;white-space:nowrap}
.followup-status.active{background:#e4f1e8;color:#1f6544}.followup-status.warning{background:#fff0cc;color:#805c0b}.followup-status.paused{background:#ecece9;color:#606761}
.followup-page-status{min-height:20px;margin:8px 18px;color:var(--green);font-size:.74rem}
.followup-form{display:grid;gap:18px;width:min(880px,80vw);padding:18px}
.followup-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.followup-form label,.followup-template-languages label,.followup-provider-status{display:grid;gap:6px;color:var(--green);font-size:.73rem;font-weight:850}
.followup-form input:not([type=checkbox]),.followup-form select,.followup-form textarea{width:100%;border:1px solid #bcc8c0;border-radius:7px;background:#fff;padding:10px;color:var(--ink);font:inherit}
.followup-form textarea{resize:vertical;line-height:1.5}
.followup-form input[readonly]{background:#f2f3f0;color:#626a64}
.followup-check{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;margin:0!important}.followup-check input[type=checkbox]{width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px;margin:0!important}
.followup-form-actions,.followup-preview-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.followup-form-actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:15px}
.followup-preview{display:grid;gap:12px;border:1px solid var(--line);border-radius:9px;background:#fbfaf5;padding:15px}
.followup-preview>div{display:grid;gap:3px}.followup-preview span{color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.05em}.followup-preview small{color:var(--muted)}
.followup-preview-body{border-top:1px solid var(--line);padding-top:12px;line-height:1.55}
.followup-settings{display:grid;gap:16px;margin-top:20px}.followup-settings-head h2{margin:0;color:var(--green)}
.followup-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.followup-settings-card{min-width:0}
.followup-variable-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;background:#f8f7f1;padding:10px}.followup-variable-bar>span{margin-right:4px;color:var(--muted);font-size:.72rem;font-weight:800}
.followup-template-languages{display:grid;grid-template-columns:1fr 1fr;gap:14px}.followup-template-languages section{display:grid;gap:10px;border:1px solid var(--line);border-radius:8px;padding:14px}.followup-template-languages h3{margin:0;color:var(--green);font-size:.95rem}
.followup-template-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px}.followup-template-preview section{border:1px solid var(--line);border-radius:8px;background:#fbfaf5;padding:13px}.followup-template-preview h3{margin:0 0 8px;color:var(--green);font-size:.9rem}.followup-template-preview p{line-height:1.5}
.followup-sender-identity{display:grid;gap:3px}.followup-sender-identity b{color:var(--green);font-size:1.05rem}.followup-sender-identity span{color:var(--muted)}
@media(max-width:900px){.followup-settings-grid,.followup-template-languages,.followup-template-preview{grid-template-columns:1fr}.followup-form{width:min(760px,82vw)}}
@media(max-width:600px){.contact-record-tabs{overflow-x:auto}.contact-record-tabs a{white-space:nowrap}.followup-commandbar{align-items:flex-start;flex-direction:column}.followup-commandbar .btn{width:100%}.followup-form{width:auto;padding:12px}.followup-form-grid{grid-template-columns:1fr}.followup-form-actions{justify-content:stretch}.followup-form-actions .btn{flex:1}.followup-settings-grid{grid-template-columns:minmax(0,1fr)}}
