:root {
  --bg: #0f1118;
  --sidebar: #181b27;
  --panel: #22273a;
  --panel-2: #1b2030;
  --border: #343b56;
  --text: #f5f7fb;
  --muted: #9da8c6;
  --accent: #f58220;
  --accent-2: #ff9a3d;
  --agtegra-green: #39B54A;
  --blue: #2f9ee9;
  --green: #3aa76d;
  --red: #e64b4b;
  --yellow: #f6c945;
  --purple: #a24ccd;
  --teal: #2aa49a;
  --radius: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 220px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; background: var(--sidebar); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 12px;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 8px 10px 18px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--accent); font-weight: 900; font-size: 18px; }
.brand-logo-mark { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; }
.brand h1 { font-size: 15px; margin: 0; line-height: 1.15; }
.brand small { color: var(--muted); display: block; margin-top: 3px; }
.nav-title { font-size: 10px; letter-spacing: .12em; color: #77809b; font-weight: 800; margin: 12px 10px 6px; }
.nav-btn { width: 100%; text-align: left; color: #aeb8d4; background: transparent; border: 0; border-radius: 7px; padding: 11px 10px; margin: 2px 0; display: flex; align-items: center; gap: 10px; }
.nav-btn:hover, .nav-btn.active { background: rgba(57,181,74,.18); color: var(--agtegra-green); }
.sidebar-spacer { flex: 1; }
.user-card { border-top: 1px solid var(--border); padding: 12px 8px 0; color: var(--muted); font-size: 12px; }
.user-card strong { color: var(--text); display: block; margin-bottom: 3px; }

.main { padding: 24px; min-width: 0; }
.header-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.header-row h2 { margin: 0; font-size: 25px; }
.subtitle { color: var(--muted); margin-top: 4px; font-size: 13px; }

.btn { border: 1px solid var(--border); border-radius: 7px; padding: 9px 12px; background: var(--panel-2); color: var(--text); font-weight: 650; }
.btn:hover { border-color: #5a6386; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-danger { background: rgba(230,75,75,.13); border-color: rgba(230,75,75,.4); color: #ff9a9a; }
.btn-small { padding: 6px 9px; font-size: 12px; }

.banner { padding: 10px 13px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; background: rgba(246,201,69,.1); border: 1px solid rgba(246,201,69,.35); color: #f4d97c; }
.searchbar, .field input, .field select, .field textarea, .filters select {
  width: 100%; background: #191d2b; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; outline: none;
}
.searchbar:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #667099; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 14px; }
.filters { display: flex; gap: 8px; }
.filters select { min-width: 130px; padding: 10px; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px; text-align: center; }
.stat-value { font-size: 29px; font-weight: 900; line-height: 1; }
.stat-label { margin-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.panel { background: transparent; }
.panel-title { color: #aeb8d4; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; margin: 14px 0 9px; }
.funnel-row { margin: 10px 0; }
.funnel-meta { display: flex; justify-content: space-between; color: #adb7d2; font-size: 12px; margin-bottom: 5px; }
.bar { height: 7px; background: #313751; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; min-width: 4px; }
.activity-card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; margin-bottom: 8px; }
.activity-card strong { color: var(--accent-2); font-size: 13px; }
.activity-meta { color: var(--muted); font-size: 11px; margin: 3px 0 5px; }
.activity-text { font-size: 12px; line-height: 1.45; }

.table-wrap { border: 1px solid var(--border); border-radius: 9px; overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 920px; background: var(--panel-2); }
th, td { text-align: left; border-bottom: 1px solid #30364f; padding: 11px 12px; font-size: 12px; }
th { color: #929dbb; text-transform: uppercase; font-size: 10px; letter-spacing: .06em; position: sticky; top: 0; background: #20263a; z-index: 1; }
tbody tr:hover { background: rgba(255,255,255,.025); }
tbody tr { cursor: pointer; }
.stage-pill { display: inline-flex; border-radius: 999px; padding: 4px 9px; font-weight: 800; font-size: 10px; white-space: nowrap; }

.detail-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); gap: 18px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.card h3 { margin: 0 0 14px; color: #acb6d1; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 22px; }
.info-item .label { color: #98a2be; font-size: 10px; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; }
.info-item .value { margin-top: 4px; font-size: 13px; line-height: 1.35; word-break: break-word; }
.wide { grid-column: 1 / -1; }
.pipeline-option { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; margin-bottom: 6px; color: var(--muted); background: rgba(255,255,255,.015); }
.pipeline-option.current { color: #fff; border-color: rgba(245,130,32,.55); background: rgba(245,130,32,.10); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #46506f; flex: 0 0 auto; }
.pipeline-option.current .dot { border-color: transparent; }
.log-card { background: #1a1f2f; border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; margin-bottom: 9px; }
.log-head { display: flex; justify-content: space-between; color: #9eabc7; font-size: 11px; gap: 12px; margin-bottom: 8px; }
.log-type { color: #ff9a3d; font-weight: 800; }
.log-text { white-space: pre-wrap; font-size: 13px; line-height: 1.45; }

#map { height: calc(100vh - 130px); min-height: 560px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.leaflet-container { background: #e7e5df; }
.map-legend { position: absolute; bottom: 28px; left: 14px; z-index: 500; background: rgba(24,27,39,.94); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; color: white; font-size: 11px; max-height: 280px; overflow: auto; }
.legend-row { display: flex; align-items: center; gap: 7px; margin: 5px 0; }
.legend-swatch { width: 10px; height: 10px; border-radius: 50%; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; color: #9da8c6; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 5px 2px; }
.field textarea { min-height: 100px; resize: vertical; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: grid; place-items: center; z-index: 2000; padding: 20px; }
.modal { width: min(880px, 100%); max-height: 92vh; overflow: auto; background: #171b28; border: 1px solid #3a425f; border-radius: 12px; padding: 20px; box-shadow: 0 18px 70px rgba(0,0,0,.45); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }

.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.codeish { background: #151925; border: 1px solid var(--border); border-radius: 8px; padding: 12px; color: #b9c4df; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow: auto; }
.empty { color: var(--muted); padding: 26px; text-align: center; border: 1px dashed var(--border); border-radius: 9px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 24px; }
.login-card h1 { margin: 0 0 5px; }
.login-card p { color: var(--muted); margin: 0 0 18px; }

@media (max-width: 1050px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid, .detail-grid, .import-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; }
  .brand, .nav-title, .sidebar-spacer, .user-card { display: none; }
  .nav-btn { width: auto; white-space: nowrap; }
  .main { padding: 15px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-row { grid-template-columns: 1fr; }
  .filters { flex-wrap: wrap; }
  .form-grid, .info-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  #map { min-height: 500px; height: 72vh; }
}

/* v2: clearer editing sections + multi-select pipeline milestones */
.pipeline-check { margin-left: auto; font-weight: 900; color: #fff; }
.pipeline-option.current { box-shadow: inset 0 0 0 1px rgba(245,130,32,.12); }
.modal-wide { width: min(1040px, 100%); }
.form-section-title {
  margin: 20px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: #c8d1ea;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.modal-head + form > .form-section-title:first-child { margin-top: 0; }


/* v5: Jeff's Routing */
.routing-layout { display:grid; grid-template-columns: 360px minmax(0,1fr); gap:18px; align-items:start; }
.routing-controls { min-width:0; }
.route-card { margin-top:0 !important; }
.route-card + .route-card { margin-top:14px !important; }
.route-stage-row { display:flex; align-items:center; gap:10px; margin:8px 0; cursor:pointer; }
.route-stage-row input, .route-company-row input { accent-color: var(--accent); width:16px; height:16px; flex:0 0 auto; }

.route-filter-divider { height:1px; background:var(--border); margin:12px 0 10px; }
.route-propane-toggle { width:100%; display:flex; align-items:center; gap:10px; padding:9px 10px; border:1px solid #3a4562; border-radius:8px; background:#171d2b; color:#dbe2f1; font-weight:800; cursor:pointer; text-align:left; }
.route-propane-toggle:hover { border-color:var(--agtegra-green); color:#fff; }
.route-propane-toggle.active { background:rgba(57,181,74,.18); border-color:var(--agtegra-green); color:#75db82; }
.route-propane-check { width:18px; height:18px; display:grid; place-items:center; border-radius:5px; border:1px solid #64708d; font-size:12px; line-height:1; flex:0 0 auto; }
.route-propane-toggle.active .route-propane-check { background:var(--agtegra-green); border-color:var(--agtegra-green); color:#fff; }
.route-company-list { margin-top:10px; max-height:430px; overflow:auto; border-top:1px solid var(--border); }
.route-company-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; padding:9px 2px; border-bottom:1px solid #30364f; cursor:pointer; }
.route-company-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.route-company-copy b { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.route-company-copy small { color:var(--muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.routing-main { min-width:0; }
.route-map-note { color:#d1d7e8; font-size:12px; margin:0 0 8px 2px; }
#routingMap { height:500px; min-height:420px; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.route-actions { display:flex; gap:9px; flex-wrap:wrap; margin:12px 0; }
.route-blue { background:#2f8edb; border-color:#2f8edb; color:white; }
.route-selected-card { padding:0; overflow:hidden; }
.route-selected-title { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:14px 16px; border-bottom:1px solid var(--border); }
.route-stop-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:10px 14px; border-bottom:1px solid #30364f; background:var(--panel); }
.route-stop-row:last-child { border-bottom:0; }
.route-stop-number { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background:#36b96b; color:white; font-weight:900; font-size:11px; }
.route-stop-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.route-stop-copy b { font-size:12px; }
.route-stop-copy small { color:var(--muted); font-size:10px; }
.route-stop-actions { display:flex; gap:5px; }
.route-stop-actions .btn:disabled { opacity:.35; cursor:not-allowed; }
@media (max-width: 1150px) { .routing-layout { grid-template-columns:1fr; } .route-company-list { max-height:300px; } }
@media (max-width: 760px) { #routingMap { height:62vh; } .route-stop-row { grid-template-columns:auto minmax(0,1fr); } .route-stop-row > .stage-pill, .route-stop-actions { grid-column:2; } .route-selected-title { align-items:flex-start; flex-direction:column; } }

/* v10 — manually assigned Propane Only targets */
.manual-propane-field {
  display:flex; align-items:flex-start; gap:10px; margin:0 0 14px; padding:12px 14px;
  border:1px solid #3a4562; border-radius:9px; background:#171d2b; cursor:pointer;
}
.manual-propane-field input { width:18px; height:18px; margin-top:2px; accent-color:var(--agtegra-green); }
.manual-propane-field span { display:flex; flex-direction:column; gap:3px; }
.manual-propane-field b { color:#fff; }
.manual-propane-field small { color:var(--muted); font-size:11px; }
.propane-badge { display:inline-block; padding:4px 8px; border-radius:999px; background:rgba(57,181,74,.17); border:1px solid rgba(57,181,74,.5); color:#79df86; font-size:11px; font-weight:800; }
.company-propane-star { color:#f6c945; text-shadow:0 1px 2px #000; }
.propane-map-active { background:rgba(57,181,74,.20) !important; border-color:var(--agtegra-green) !important; color:#7be187 !important; }
.propane-legend-star { display:inline-grid; width:14px; height:14px; place-items:center; color:#f6c945; font-size:16px; line-height:1; }
.map-star-wrap, .route-star-wrap { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; filter:drop-shadow(0 1px 3px #000b); }
.map-star-wrap.approx { border:2px dashed #f5a04a; background:rgba(15,17,24,.55); }
.map-propane-star { font-size:26px; line-height:1; -webkit-text-stroke:1.3px white; text-shadow:0 1px 3px #000; }
.route-star-wrap { width:26px; height:26px; }
.route-star-wrap.selected { width:32px; height:32px; background:rgba(72,212,127,.20); box-shadow:0 0 0 3px #48d47f; }
.route-star-wrap.selected .map-propane-star { font-size:29px; }

/* v11 — CRM label switcher + multi-state map filters */
.brand-copy { min-width:0; flex:1; }
.crm-label-select {
  display:block;
  width:100%;
  max-width:128px;
  margin-top:2px;
  padding:1px 20px 1px 0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
  cursor:pointer;
}
.crm-label-select:hover, .crm-label-select:focus { color:#fff; }
.crm-label-select option { background:#171b28; color:#fff; }

.map-state-filter {
  margin:-4px 0 14px !important;
  padding:12px 14px;
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}
.map-state-filter-label { min-width:190px; display:flex; flex-direction:column; gap:3px; }
.map-state-filter-label b { font-size:12px; color:#dbe2f1; }
.map-state-filter-label span { font-size:10px; color:var(--muted); }
.state-filter-widget { min-width:0; flex:1; }
.state-filter-entry { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.state-filter-entry input {
  flex:1;
  min-width:190px;
  background:#191d2b;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:8px;
  padding:9px 10px;
  outline:none;
}
.state-filter-entry input:focus { border-color:var(--agtegra-green); }
.state-filter-chips { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; min-height:24px; align-items:center; }
.state-filter-chip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 7px 5px 9px;
  border-radius:999px;
  border:1px solid rgba(57,181,74,.55);
  background:rgba(57,181,74,.15);
  color:#c9f2cf;
  font-size:11px;
}
.state-filter-chip b { color:#79df86; }
.state-filter-chip button {
  width:18px;
  height:18px;
  border:0;
  border-radius:50%;
  padding:0;
  background:rgba(255,255,255,.08);
  color:#fff;
  line-height:1;
  font-size:14px;
}
.state-filter-chip button:hover { background:rgba(255,255,255,.18); }
.state-filter-empty { color:var(--muted); font-size:11px; font-style:italic; }

@media (max-width:760px) {
  .map-state-filter { align-items:stretch; }
  .map-state-filter-label { width:100%; }
  .state-filter-entry input { min-width:150px; }
}

/* v12 — CRM workspace switcher + shared state settings */
.crm-switch-row { display:flex; align-items:center; gap:4px; min-width:0; }
.crm-switch-row .crm-label-select { min-width:0; flex:1 1 auto; }
.crm-settings-btn {
  width:27px; height:27px; flex:0 0 27px; display:grid; place-items:center;
  border:1px solid transparent; border-radius:6px; background:transparent; color:#8f9ab8;
  padding:0; font-size:13px; line-height:1;
}
.crm-settings-btn:hover, .crm-settings-btn:focus { color:#fff; border-color:#43506b; background:#23293a; outline:none; }
.crm-scope-mini { margin-top:2px; color:#6fc97a; font-size:9px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:118px; }
.crm-settings-modal { width:min(760px,100%); }
.crm-profile-settings {
  margin-top:12px; padding:15px; border:1px solid var(--border); border-radius:10px; background:#1b2030;
}
.crm-profile-settings.current { border-color:rgba(57,181,74,.62); box-shadow:inset 3px 0 0 var(--agtegra-green); }
.crm-profile-settings-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.crm-profile-settings-head h4 { margin:0; font-size:15px; }
.crm-profile-settings-head span { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.crm-settings-note { margin-top:14px; padding:11px 12px; border-radius:8px; background:rgba(57,181,74,.08); border:1px solid rgba(57,181,74,.25); color:#b7c4d8; font-size:11px; line-height:1.45; }

/* v13 — direct route email + recipient settings */
.route-email-summary {
  margin: -2px 0 10px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #191e2d;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.route-email-status { display:block; margin-top:4px; color:#79df86; font-weight:800; }
.settings-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr); gap:14px; align-items:start; }
.settings-card { min-width:0; }
.settings-card:first-child { grid-row:span 2; }
.settings-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.settings-card-head h3, .settings-card h3 { margin-top:0; }
.settings-count { flex:0 0 auto; padding:5px 8px; border-radius:999px; border:1px solid rgba(57,181,74,.45); background:rgba(57,181,74,.12); color:#82e08d; font-size:10px; font-weight:800; }
.recipient-user-list { display:flex; flex-direction:column; gap:8px; }
.recipient-user-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; padding:11px 12px; border:1px solid #37415b; border-radius:9px; background:#171c2a; cursor:pointer; }
.recipient-user-row:hover { border-color:#4e5b79; background:#1b2131; }
.recipient-user-row input { width:18px; height:18px; accent-color:var(--agtegra-green); }
.recipient-user-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.recipient-user-copy b { color:#fff; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recipient-user-copy small { color:var(--muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recipient-status { padding:4px 7px; border-radius:999px; border:1px solid #414b63; color:#929db7; font-size:9px; font-weight:800; white-space:nowrap; }
.recipient-status.enabled { border-color:rgba(57,181,74,.45); background:rgba(57,181,74,.12); color:#7edc89; }
.settings-actions { margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.workspace-setting-summary { display:flex; flex-direction:column; gap:8px; margin:12px 0; }
.workspace-setting-summary > div { display:flex; justify-content:space-between; gap:12px; padding:9px 10px; border:1px solid var(--border); border-radius:8px; background:#191e2d; }
.workspace-setting-summary b { color:#fff; font-size:11px; }
.workspace-setting-summary span { color:#72d07d; font-size:10px; font-weight:800; }
.email-provider-note { margin-top:12px; padding:11px 12px; border-radius:8px; background:rgba(47,158,233,.08); border:1px solid rgba(47,158,233,.28); color:#b8c5da; font-size:11px; line-height:1.45; }
.email-provider-note code { color:#d7e6ff; }
@media (max-width: 980px) { .settings-grid { grid-template-columns:1fr; } .settings-card:first-child { grid-row:auto; } }
@media (max-width: 620px) { .recipient-user-row { grid-template-columns:auto minmax(0,1fr); } .recipient-status { grid-column:2; justify-self:start; } }

/* v14 email notification settings */
.recipient-user-row-dual { grid-template-columns:minmax(0,1fr) auto auto; }
.recipient-toggle { display:flex; align-items:center; gap:7px; padding:7px 9px; border:1px solid #37415b; border-radius:8px; background:#121722; color:#c9d1e4; font-size:11px; font-weight:700; cursor:pointer; white-space:nowrap; }
.recipient-toggle:hover { border-color:#4e5b79; background:#171d2a; }
.recipient-toggle input { width:17px; height:17px; accent-color:var(--agtegra-green); }
.note-email-hint { margin-top:11px; padding:10px 12px; border:1px solid rgba(57,181,74,.35); border-radius:8px; background:rgba(57,181,74,.09); color:#bfe9c5; font-size:12px; line-height:1.45; }
@media (max-width: 760px) {
  .recipient-user-row-dual { grid-template-columns:1fr; }
  .recipient-toggle { justify-content:flex-start; }
}
