#outreachPage { max-width: none; margin-inline: auto; color: var(--ink); }
#outreachPage [hidden] { display: none !important; }
#outreachPage button, #outreachPage input, #outreachPage select, #outreachPage textarea { font: inherit; }
#outreachPage button, #outreachPage select, #outreachPage input:not([type=checkbox]), #outreachPage textarea { border: 1px solid #cad5e0; border-radius: 7px; background: white; color: var(--ink); }
#outreachPage button { min-height: 36px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 650; }
#outreachPage button:hover:not(:disabled) { border-color: var(--blue); color: #174fae; }
#outreachPage :focus-visible { outline: 3px solid #3777ef; outline-offset: 2px; }
#outreachPage button:disabled { opacity: .62; cursor: default; }
.out-head, .out-panel-head, .out-record-head, .out-target-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.out-head { margin: 0 0 4px; }
.out-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.out-head h1 { margin: 0; color: var(--navy); font-size: clamp(21px, 2vw, 26px); line-height: 1.3; letter-spacing: -.035em; }
.out-head p { margin: 0; color: #4b6279; font-size: 13px; }
.out-head > button { flex: none; }
.out-tabs { display: flex; gap: 18px; border-bottom: 1px solid #cfd9e4; margin-bottom: 9px; }
#outreachPage .out-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 5px 3px; background: transparent; color: #52677c; }
#outreachPage .out-tabs [aria-pressed=true] { color: var(--navy); border-bottom-color: var(--blue); }
#outreachStatus { margin: 0; color: #274f70; font-size: 14px; }
#outreachStatus:not(:empty) { margin-bottom: 15px; background: #eaf2fb; border-radius: 8px; padding: 12px 14px; }
#outreachStatus.out-error:not(:empty) { background: #fff1f1; color: #902531; }
.out-workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .85fr); gap: 12px; align-items: start; }
.out-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(10px,1.1vw,16px); }
.out-panel-head { margin-bottom: 9px; }
.out-panel-head h2, #outreachTargetHeading { font-size: 17px; margin: 0; color: var(--navy); }
.out-panel-head span { color: #25578c; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; }
.out-panel:has(.out-filters) { container-type: inline-size; }
.out-filters { position:relative; display:grid; grid-template-columns:max-content auto minmax(145px,1fr); align-items:center; gap:8px; }
.out-filters label, .out-field, .out-followup label { display: grid; gap: 6px; color: #3b5369; font-size: 13px; font-weight: 650; }
#outreachPage input:not([type=checkbox]), #outreachPage select, #outreachPage textarea { width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; font-size: 14px; font-weight: 400; }
#outreachPage input[type=checkbox] { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--blue); }
.out-target-head { padding: 6px 0; flex-wrap:wrap; gap:4px 12px; border-bottom: 1px solid var(--line); color: #435b70; font-size: 13px; }
.out-target-head label, .out-target > label { display: flex; align-items: center; gap: 10px; }
.out-targets { max-height: min(64vh, 670px); overflow-y: auto; padding: 0 3px; scrollbar-gutter: stable; }
.out-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; color: #435b70; font-size: 13px; }
.out-target { padding: 12px 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,.62fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.out-target:last-child { border-bottom: 0; }
#outreachPage .out-target { grid-template-columns:minmax(0,1fr) minmax(85px,.58fr) auto; }
.out-sample-link { color:#125578; text-underline-offset:3px; }
.out-target > .out-sample-link { display:inline-flex; align-items:center; min-height:32px; padding:0 2px; font-size:12px; white-space:nowrap; }
.out-meta { display: grid; min-width: 0; gap: 3px; }
.out-meta strong { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.out-meta small, .out-muted, .out-tokens span, .out-preview span { color: #566c7f; font-size: 12px; }
.out-field { margin-bottom: 8px; }
#outreachPage textarea { line-height: 1.45; resize: vertical; }
.out-tokens, .out-result-filters, .out-sim { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
#outreachPage .out-tokens button { min-height: 28px; padding: 3px 8px; font-size: 12px; }
.out-preview { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: #f1f5fa; }
.out-preview strong, .out-preview span { display: block; }
#outreachSmsSetup { margin:6px 0 8px; color:#30485f; font-size:13px; line-height:1.55; }
#outreachSmsSetup summary { cursor:pointer; font-weight:650; }
#outreachSmsSetup p { margin:7px 0; }
#outreachFormat:empty { display:none; }
.out-received { color:#234963; font-size:14px; font-weight:650; }
.out-preview strong { margin-bottom: 3px; color: var(--navy); font-size: 14px; }
.out-preview p, .out-message { margin: 5px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
#outreachPage .out-primary { width: 100%; min-height: 43px; background: var(--navy); color: white; border: 1px solid var(--navy); }
#outreachPage .out-primary:hover:not(:disabled) { background: #254f79; color: white; }
.out-result-filters { margin-bottom: 12px; }
#outreachPage .out-result-filters [aria-pressed=true] { color: white; background: var(--navy); border-color: var(--navy); }
.out-empty { margin: 0; padding: 28px 8px; color: #52677c; text-align: center; font-size: 14px; }
.out-record { padding: 17px 0; border-top: 1px solid var(--line); }
.out-state { border-radius: 5px; padding: 4px 8px; font-size: 12px; font-weight: 700; color: #40566d; background: #edf1f6; white-space: nowrap; }
.out-state[data-status=available] { color: #176142; background: #e2f4ec; }
.out-state[data-status=reschedule], .out-state[data-status=review] { color: #7d4805; background: #fff0d9; }
.out-state[data-status=failed] { color: #9f3340; background: #fff0f1; }
.out-record details { margin: 10px 0 0; color: #435b70; font-size: 13px; }
.out-record summary { cursor: pointer; width: fit-content; padding: 4px 0; font-weight: 650; }
.out-record details ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.65; }
.out-sim { margin-top: 10px; }
.out-sim span { color: #536a80; font-size: 12px; }
#outreachPage .out-sim button { min-height: 31px; font-size: 12px; }
.out-followup { margin-top: 14px; display: grid; grid-template-columns: minmax(125px,.6fr) minmax(150px,1fr) auto; align-items: end; gap: 8px; }
.out-followup-summary { margin: 10px 0 0; font-size: 14px; overflow-wrap: anywhere; }
@media(max-width: 850px) { .out-workspace { grid-template-columns: minmax(0,1fr); } .out-targets { max-height: 310px; } }
@media(max-width: 520px) { .out-head { align-items: flex-start; } .out-head p { max-width: 240px; } .out-panel { padding: 10px; } .out-target { grid-template-columns: minmax(0,1fr) minmax(95px,.75fr); gap: 6px; } .out-followup { grid-template-columns: 1fr; } }

.out-date-filter { display:flex; align-items:center; gap:4px; min-width:0; }
#outreachPage #outreachVisitFilter { width:clamp(96px,26cqi,185px); font-size:13px; font-weight:650; padding:5px 24px 5px 7px; }
#outreachPage #outreachCalendarToggle { flex:none; white-space:nowrap; }
.out-calendar-foot, .out-review-head, .out-review-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.out-calendar-foot { margin-top:8px; }
#outreachPage .out-calendar-foot p { margin:0; }
#outreachReview { box-sizing:border-box; width:min(560px,calc(100% - 24px)); margin:auto; max-height:90dvh; padding:16px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:var(--surface); }
#outreachReview::backdrop { background:rgba(10,28,43,.44); }
.out-review-head h2 { margin:0; color:var(--navy); font-size:19px; }
.out-review-head span { color:#375775; font-weight:650; }
.out-review-scroll { max-height:52dvh; overflow:auto; margin:12px 0; border-block:1px solid var(--line); }
.out-review-scroll table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:13px; line-height:1.45; }
.out-review-scroll :is(th,td) { padding:7px 6px; text-align:left; overflow-wrap:anywhere; }
.out-review-scroll th { background:#f2f5f9; position:sticky; top:0; color:#40566b; }
.out-review-scroll :is(th,td):nth-child(2) { width:88px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.out-review-scroll tr + tr { border-top:1px solid var(--line); }
.out-review-actions { justify-content:flex-end; }
#outreachPage .out-review-actions button { width:auto; flex:none; white-space:nowrap; min-height:42px; }
#outreachPage .out-review-actions .out-primary { min-width:118px; }
#outreachReview table :is(th,td) { font-size:14px; line-height:1.5; }
#outreachReview table th { font-size:13px; }
.out-selection, .out-month-nav { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.out-selection { flex-wrap:wrap; }
#outreachPage .out-selection button, #outreachPage #outreachDateClear { min-height:32px; border:0; background:transparent; color:#385b7b; text-decoration:underline; text-underline-offset:3px; }
#outreachSelection { color:#184b82; font-weight:700; }
#outreachPage #outreachCalendarToggle { display:inline-flex; gap:8px; align-items:center; padding:5px 9px; color:#214e83; border-color:#c2d3e3; }
#outreachCalendarToggle::after { content:''; width:6px; height:6px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); flex:none; }
#outreachCalendarToggle[aria-expanded=true]::after { transform:rotate(225deg); }
.out-date-inputs { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:10px; }
#outreachPage .out-date-inputs label { color:#52677c; font-size:12px; }
#outreachCalendar { position:absolute; inset:calc(100% + 4px) auto auto 0; z-index:4; width:min(100%, 360px); padding:12px; border:1px solid #bdcddd; border-radius:10px; background:var(--surface); }
.out-date-inputs { margin-bottom:8px; }
.out-month-nav { margin-bottom:8px; }
.out-month-nav strong { font-variant-numeric:tabular-nums; }
#outreachPage .out-month-nav button { min-height:32px; font-size:12px; }
.out-weekdays, #outreachDays { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.out-weekdays { text-align:center; font-size:12px; color:#4d6174; padding:6px 0; }
#outreachDays { gap:2px 0; touch-action:none; user-select:none; }
#outreachPage #outreachDays button { position:relative; border:0; background:transparent; border-radius:0; font-size:14px; min-height:38px; padding:6px 1px; font-variant-numeric:tabular-nums; }
#outreachPage #outreachDays button:focus-visible { outline-offset:-3px; }
#outreachPage #outreachDays .out-other-month { color:#697887; font-weight:400; }
#outreachPage #outreachDays [aria-pressed=true] { background:#d9e8fc; color:#13375f; }
#outreachPage #outreachDays .out-range-edge { background:#214d83; color:white; border-radius:6px; }
#outreachDays .out-scheduled::after { content:""; display:block; position:absolute; left:calc(50% - 2px); bottom:3px; width:4px; height:4px; border-radius:50%; background:currentColor; }
#outreachRangeHint { margin:10px 0 0; color:#425a70; font-size:13px; line-height:1.55; }
.out-targets { padding:0; }
.out-target { padding:4px 6px; }
.out-target > label { min-height:36px; user-select:none; cursor:pointer; }
.out-target.out-selected { background:#eef5ff; }
.out-target:has(input:disabled) > label { cursor:default; }
#outreachPage .out-meta small, #outreachPage .out-muted, #outreachPage .out-preview span { font-size:13px; line-height:1.45; }
.out-record { padding:10px 0; }
.out-record > p { margin:4px 0; }
.out-state[data-status=change] { color:#244e84; background:#e8f1ff; }
#outreachFormat { margin:5px 0; }
.out-tokens { gap:5px; }
#outreachPage .out-followup { display:grid; max-width:720px; grid-template-columns:minmax(0,1fr) auto; gap:6px; padding:8px; border-radius:8px; background:#f2f6fa; }
.out-followup h3 { grid-column:1/-1; display:flex; gap:9px; align-items:baseline; margin:0; font-size:15px; }
.out-followup h3 small { font-weight:400; color:#53677b; font-size:12px; }
.out-time-fields { display:grid; grid-column:1/-1; grid-template-columns:minmax(140px,1.25fr) repeat(2,minmax(98px,1fr)); gap:10px; }
.out-followup label { min-width:0; }
#outreachPage .out-followup input[readonly] { background:#e9eff4; color:#456074; }
#outreachPage .out-followup-summary { color:#254c70; }
#outreachPage .out-sim button { min-height:36px; }
@media(max-width:520px) {
  .out-date-inputs { gap:4px; }
  #outreachPage #outreachDateClear { padding:3px; }
  .out-time-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .out-time-fields > label:first-child { grid-column:1/-1; }
  #outreachPage .out-followup { grid-template-columns:minmax(0,1fr); }
  #outreachPage button:not(.out-tokens button), #outreachPage select, #outreachPage input:not([type=checkbox]) { min-height:40px; }

  .out-selection { gap:3px; }
}

@container (max-width: 480px) {
  .out-filters { grid-template-columns:max-content minmax(0,1fr); gap:6px 8px; }
  .out-date-filter { justify-self:stretch; justify-content:flex-end; }
  #outreachPage #outreachVisitFilter { flex:1; width:auto; max-width:185px; padding-inline:7px; }
  #outreachPage .out-target { grid-template-columns:minmax(0,1fr) 122px auto; gap:4px; }
  #outreachPage .out-target select { padding:4px 5px; font-size:13px; }
  #outreachSearch { grid-column:1/-1; }
}
@container (max-width:290px) {
  #outreachPage .out-target { grid-template-columns:minmax(0,1fr) 122px; }
  .out-target > label { grid-row:span 2; }
  .out-target > .out-sample-link { justify-self:end; min-height:24px; }
  #outreachPage #outreachCalendarToggle { padding-inline:6px; }
}

.out-weekday-grid {display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}.out-weekday-picker summary{cursor:pointer}.out-weekday-grid button:disabled,[data-out-date]:disabled{opacity:.35;cursor:default}
