/* "Send a text" box in the case details panel, and the Text settings dialog. */
.case-texts{display:flex;flex-direction:column;gap:7px}
.case-texts>b{margin-bottom:2px}
.ct-to{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.ct-to button{width:auto;border:0;border-right:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);padding:8px 4px;font-size:12px;font-weight:650;cursor:pointer}
.ct-to button:last-child{border-right:0}
.ct-to button.active{background:var(--gold-soft);color:var(--gold-dark);box-shadow:inset 0 -2px 0 var(--gold)}
.ct-to button:disabled{color:#b8bcc4;cursor:not-allowed;background:#fafafa}
.case-texts small{display:block;color:var(--muted);font-size:11px;line-height:1.35}
.case-texts .ct-recipient{color:var(--ink);font-weight:650}
.case-texts .ct-why{color:#9a6b2b}
.ct-number{display:grid;gap:4px}
.ct-number span{color:var(--muted);font-size:10px;font-weight:650}
.case-texts input,.case-texts select,.case-texts textarea{width:100%;box-sizing:border-box;margin:0;padding:8px 9px;border:1px solid var(--line);border-radius:7px;font:inherit;font-size:13px;background:#fff;position:static;opacity:1;pointer-events:auto}
.case-texts textarea{resize:vertical;min-height:84px}
.case-texts .ct-count.ct-warn{color:var(--red);font-weight:650}
.ct-actions{display:flex;align-items:center;gap:10px}
.ct-send{width:auto;border:0;border-radius:7px;background:var(--green);color:#fff;padding:9px 14px;font-weight:700;font-size:12px;cursor:pointer}
.ct-send:disabled{opacity:.55;cursor:not-allowed}
.ct-link{width:auto;border:0;background:none;color:var(--blue);padding:4px 0;font-size:12px;cursor:pointer;text-decoration:underline}
.ct-note{color:var(--muted);font-size:12px;margin:2px 0}
.ct-mode strong{color:var(--gold-dark)}
.ct-error{color:var(--red)}
.ct-dialog{max-width:720px;width:calc(100% - 40px);border:1px solid var(--line);border-radius:12px;padding:0}
.ct-form{display:flex;flex-direction:column;gap:12px;padding:20px}
.ct-form h2{margin:0}
.ct-form fieldset{border:1px solid var(--line);border-radius:9px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.ct-form legend{font-weight:700;padding:0 4px}
.ct-form label{display:grid;gap:4px;font-size:12px;color:var(--muted);font-weight:650}
.ct-form label.ct-check{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:500}
.ct-form input,.ct-form select,.ct-form textarea{width:100%;box-sizing:border-box;margin:0;padding:8px 9px;border:1px solid var(--line);border-radius:7px;font:inherit;font-size:13px;color:var(--ink);position:static;opacity:1;pointer-events:auto}
.ct-form input[type=checkbox]{width:auto}
.ct-form code{background:var(--bg);border-radius:4px;padding:1px 4px;font-size:11px}
.ct-templates{display:flex;flex-direction:column;gap:8px}
.ct-template{display:grid;grid-template-columns:1fr 130px auto;gap:6px;align-items:start;border-bottom:1px dashed var(--line);padding-bottom:8px}
.ct-template textarea{grid-column:1/-1}
.ct-template .ct-link{grid-row:1;grid-column:3}
