.text-alerts-page .text-alerts-page-shell { width:auto;max-width:none;margin:12px 16px;padding:0; }
.text-alerts-page #text-alert-page-status { margin:8px 0;font-size:.9rem; }
.text-alerts-page #text-alert-page-status:empty { display:none; }
#text-alerts-workspace { color:var(--text,#19251e); }
#text-alerts-workspace [hidden] { display:none!important; }
.text-alert-page-heading { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.text-alert-page-heading h1 { margin:0;font-size:1.5rem; }
.text-alert-page-heading [data-visible-count] { font-size:.85rem;color:var(--muted,#58655d);font-variant-numeric:tabular-nums; }
.text-alert-page-actions { margin-left:auto;display:flex;gap:8px;flex-wrap:wrap; }
#text-alerts-workspace button,.text-alert-test-dialog button { min-height:38px;padding:6px 10px;border:1px solid var(--line,#cdd6cf);border-radius:6px;background:var(--surface,#fff);color:var(--green,#245e42);font:inherit;font-size:.85rem;font-weight:650;cursor:pointer; }
#text-alerts-workspace input:not([type=checkbox]),#text-alerts-workspace select { box-sizing:border-box;min-width:0;width:100%;height:36px;padding:5px 7px;border:1px solid var(--line,#b9c6be);border-radius:4px;background:var(--surface,#fff);color:inherit;font:inherit;font-size:.85rem; }
#text-alerts-workspace input:focus,#text-alerts-workspace select:focus,#text-alerts-workspace button:focus-visible { outline:2px solid #38845a;outline-offset:1px; }
#text-alerts-workspace input[type=checkbox] { appearance:auto;display:inline-block;width:18px;min-width:18px;height:18px;margin:0;padding:0;accent-color:#245e42; }
.text-alert-intro { margin:6px 0 10px;font-size:.8rem;color:var(--muted,#58655d); }
.text-alert-toolbar { display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap; }
.text-alert-toolbar label { display:flex;align-items:center;gap:6px;font-size:.8rem; }
.text-alert-toolbar .text-alert-search { width:min(320px,100%); }
.text-alert-toolbar select { width:auto!important;min-width:105px!important; }
.text-alert-edit-note { margin-left:auto;font-size:.78rem;color:var(--muted,#58655d); }
.text-alert-grid-scroll { overflow:auto;max-height:calc(100dvh - 240px);min-height:0;border:1px solid var(--line,#dce3de);border-radius:6px;background:var(--surface,#fff); }
.text-alert-grid { min-width:1250px; }
.text-alert-columns,.text-alert-recipient { display:grid;grid-template-columns:minmax(150px,1.25fr) 126px 100px 96px 52px 52px 66px 50px minmax(160px,1.15fr) 64px 58px 54px;gap:8px;align-items:center;padding:6px 10px; }
.text-alert-columns { position:sticky;top:0;z-index:2;background:var(--surface-soft,#edf3ef);border-bottom:1px solid var(--line,#dce3de);font-size:.75rem;font-weight:700; }
.text-alert-columns > span { min-width:0; }
#text-alerts-workspace [data-sort] { border:0;background:transparent;padding:0;min-height:32px;color:inherit;text-align:left; }
.text-alert-recipient { margin:0;border-bottom:1px solid var(--line,#e1e7e3); }
.text-alert-recipient:nth-child(even) { background:var(--surface-soft,#f7faf8); }
.text-alert-recipient.is-dirty { box-shadow:inset 3px 0 #c58913; }
.text-alert-recipient.is-new { background:var(--surface-soft,#eef8f0); }
.text-alert-recipient > label { min-width:0;margin:0; }
.text-alert-recipient > .check-cell { display:flex;justify-content:center;align-items:center;min-height:38px;cursor:pointer; }
.text-alert-columns > span:nth-child(n+5):nth-child(-n+8) { text-align:center; }
.text-alert-last { min-width:0;font-size:.74rem;line-height:1.35;color:var(--muted,#58655d); }
#text-alerts-workspace .text-alert-save { color:white;background:#245e42;border-color:#245e42; }
#text-alerts-workspace .delivery-select.is-active { color:#245e42;font-weight:650; }
#text-alerts-workspace .delivery-select.is-paused { color:#7c5d17;font-weight:650; }
.text-alert-settings { grid-column:1/-1;padding:6px 0; }
.text-alert-options { display:flex;gap:16px;flex-wrap:wrap; }
.text-alert-options fieldset { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0;padding:6px 10px;border:1px solid var(--line,#dce3de);border-radius:6px; }
.text-alert-options legend { font-size:.78rem;font-weight:650; }
.text-alert-options label { display:flex;gap:5px;align-items:center;min-height:32px;font-size:.8rem; }
.text-alert-row-status { grid-column:1/-1;margin:0;font-size:.75rem; }
.text-alert-row-status:empty { display:none; }
.text-alert-paused { padding:8px;margin:8px 0;background:#fff4d8;color:#624d09;border-radius:6px;font-size:.85rem;font-weight:650; }
.text-alert-empty { margin:10px 0;font-size:.9rem; }
#text-alerts-workspace button:disabled,.text-alert-test-dialog button:disabled { opacity:.45;cursor:not-allowed; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.text-alert-test-dialog { width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid #cdd6cf;border-radius:10px;background:var(--surface,#fff);color:var(--text,#19251e); }
.text-alert-test-dialog::backdrop { background:rgb(0 0 0 / 45%); }
.text-alert-test-dialog header { display:flex;align-items:center;gap:12px; }
.text-alert-test-dialog h2 { flex:1;margin:0;font-size:1.2rem; }
.text-alert-test-dialog select { width:100%;min-height:44px;margin:6px 0 10px;font:inherit; }
.text-alert-test-dialog pre { white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--surface-soft,#f3f6f4);border-radius:6px;max-height:45dvh;overflow:auto;font:inherit; }
.text-alert-test-dialog p { margin:8px 0;font-size:.85rem; }
.text-alert-test-dialog [data-test-photo] { max-width:100%;max-height:180px;object-fit:contain; }
@media(max-width:700px){.text-alerts-page .text-alerts-page-shell{margin:10px 8px}.text-alert-edit-note{margin:0}.text-alert-grid-scroll{max-height:calc(100dvh - 280px)}.text-alert-page-actions{margin-left:0}.text-alert-toolbar{gap:8px}.text-alert-page-heading h1{font-size:1.3rem}}
.text-alert-grid-scroll,.text-alert-recipient > label,.text-alert-search { position:relative; }
