/* Formula D1 V2 shell
 * Authoritative shell + responsive foundation. Loaded after legacy styles.css.
 * Keep athlete-facing shell rules here so old page-specific CSS cannot reintroduce
 * desktop-width behavior on phones.
 */

:root {
  --fd-bg: #0B0B0D;
  --fd-sidebar: #101012;
  --fd-card: #151518;
  --fd-elevated: #1B1B1F;
  --fd-border: #2A2A2F;
  --fd-red: #E32636;
  --fd-red-hover: #C91F2E;
  --fd-gold: #D4AF37;
  --fd-text: #F5F5F6;
  --fd-secondary: #A3A3AA;
  --fd-muted: #6F6F78;
  --fd-green: #22C55E;
  --fd-sidebar-width: 240px;
  --fd-mobile-nav-height: 70px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--fd-bg);
}

body {
  color: var(--fd-text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

/* Desktop shell */
.app-layout {
  flex-direction: row;
  animation: none;
  width: 100%;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--fd-bg);
}

.sidebar {
  display:flex !important;
  flex-direction:column !important;
  width: var(--fd-sidebar-width) !important;
  min-width: var(--fd-sidebar-width);
  height:100dvh !important;
  overflow:hidden !important;
  background: var(--fd-sidebar) !important;
  border-right: 1px solid var(--fd-border) !important;
  backdrop-filter: none !important;
}

.sidebar-top {
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  padding: 24px 14px !important;
}

.sidebar-bottom {
  position:static !important;
  inset:auto !important;
  flex:0 0 auto !important;
  padding: 14px !important;
  border-top: 1px solid var(--fd-border) !important;
  background:var(--fd-sidebar) !important;
}

.sidebar-brand {
  align-items: flex-start !important;
  margin: 0 0 32px !important;
  padding: 4px 10px !important;
}

.sidebar-brand .sidebar-logo-img {
  display: block !important;
  width: 152px !important;
  max-width: 152px !important;
  transform: none !important;
}

.sidebar-brand .beta-badge {
  margin-top: 7px !important;
  font-size: 9px !important;
}

.sidebar-nav {
  gap: 5px !important;
}

.nav-item {
  position: relative;
  min-height: 44px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--fd-secondary) !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  line-height: 1.2;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item svg {
  flex: 0 0 auto;
  color: var(--fd-muted) !important;
}

.nav-item:hover {
  background: rgba(255,255,255,.045) !important;
  color: var(--fd-text) !important;
}

.sidebar .nav-item.active {
  border: 1px solid #ff526a99 !important;
  background: linear-gradient(125deg,#ff9bad1c,transparent 48%),linear-gradient(180deg,#631a2b9c,#260c15e6) !important;
  color: var(--fd-text) !important;
  box-shadow: inset 0 1px #ffd3dc50,inset 0 -1px #ff375c7a,0 0 16px #ff123326 !important;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 3px;
  background: var(--fd-red);
}

.nav-item.active svg {
  color: var(--fd-red) !important;
}

.main-wrapper {
  min-width: 0;
  width: calc(100% - var(--fd-sidebar-width));
  background: var(--fd-bg);
}

.topbar {
  height: 64px !important;
  background: rgba(11,11,13,.94) !important;
  border-bottom: 1px solid var(--fd-border) !important;
  backdrop-filter: blur(12px) !important;
}

.topbar-inner {
  padding: 0 28px !important;
}

.user-credits {
  display:none !important;
}

.main-content {
  min-width: 0;
  width: 100%;
  padding: 24px 28px 32px !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.page-view {
  animation: none;
  width: 100%;
  min-width: 0;
  max-width: 1520px !important;
  margin: 0 auto !important;
}

/* Temporary Home foundation. Screen 3 will replace the placeholder content. */
.fd-home-foundation {
  padding-top: 16px;
}

.fd-home-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0 28px;
}

.fd-home-header > div {
  min-width: 0;
  max-width: 760px;
}

.fd-eyebrow {
  margin: 0 0 9px;
  color: var(--fd-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fd-home-header h1 {
  margin: 0;
  color: var(--fd-text);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.fd-home-header p:not(.fd-eyebrow) {
  margin: 12px 0 0;
  max-width: 620px;
  color: var(--fd-secondary);
  font-size: 15px;
}

.fd-primary-action {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--fd-red);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

.fd-primary-action:hover {
  background: var(--fd-red-hover);
}
#pageOutreach .fd-primary-action {
  background:var(--fd-red) !important;
  color:#fff !important;
  opacity:1 !important;
  filter:none !important;
}
#pageOutreach .fd-primary-action:hover {
  background:var(--fd-red-hover) !important;
}

.fd-home-foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fd-home-foundation-grid article {
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--fd-border);
  border-radius: 10px;
  background: var(--fd-card);
}

.fd-home-foundation-grid span,
.fd-home-foundation-grid small {
  display: block;
  color: var(--fd-secondary);
}

.fd-home-foundation-grid span {
  font-size: 12px;
  font-weight: 650;
}

.fd-home-foundation-grid strong {
  display: block;
  margin: 12px 0;
  font-size: 28px;
  line-height: 1;
}

.fd-home-foundation-grid small {
  font-size: 12px;
  line-height: 1.45;
}


.fd-home-setup {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
  padding:16px 18px;
  border:1px solid rgba(227,38,54,.32);
  border-radius:10px;
  background:rgba(227,38,54,.07);
}
.fd-home-setup-kicker,
.fd-panel-kicker {
  display:block;
  margin-bottom:5px;
  color:var(--fd-red);
  font-size:10px;
  font-weight:750;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.fd-home-setup strong,
.fd-panel-heading h2,
.fd-discovery-empty strong,
.fd-empty-state strong {
  color:var(--fd-text);
}
.fd-home-setup strong {
  display:block;
  font-size:15px;
}
.fd-home-setup p {
  margin:4px 0 0;
  color:var(--fd-secondary);
  font-size:12px;
}
.fd-secondary-action {
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
  color:var(--fd-text);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.fd-secondary-action:hover {
  border-color:#3b3b42;
  background:#202024;
}
.fd-home-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.fd-home-metric {
  min-width:0;
  min-height:128px;
  padding:18px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}
.fd-home-metric > span,
.fd-home-metric small {
  display:block;
  color:var(--fd-secondary);
}
.fd-home-metric > span {
  font-size:12px;
  font-weight:700;
}
.fd-home-metric strong {
  display:block;
  margin:13px 0 10px;
  color:var(--fd-text);
  font-size:30px;
  line-height:1;
  letter-spacing:-.035em;
}
.fd-home-metric small {
  font-size:11px;
  line-height:1.4;
}
.fd-home-main-grid {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:12px;
  margin-top:12px;
}
.fd-home-panel {
  min-width:0;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}
.fd-home-next-actions,
.fd-home-activity,
.fd-home-pipeline,
.fd-home-discovery {
  padding:18px;
}
.fd-panel-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.fd-panel-heading h2 {
  margin:0;
  font-size:17px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.fd-panel-note {
  max-width:420px;
  color:var(--fd-muted);
  font-size:11px;
  line-height:1.4;
  text-align:right;
}
.fd-text-action {
  flex:0 0 auto;
  padding:0;
  border:0;
  background:transparent;
  color:var(--fd-secondary);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.fd-text-action:hover {
  color:var(--fd-text);
}
.fd-action-list,
.fd-activity-list {
  display:grid;
  gap:8px;
}
.fd-action-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:58px;
  padding:11px 12px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-action-copy {
  min-width:0;
}
.fd-action-copy strong,
.fd-activity-row strong {
  display:block;
  color:var(--fd-text);
  font-size:12px;
}
.fd-action-copy span,
.fd-activity-row span,
.fd-empty-state span,
.fd-discovery-empty span {
  display:block;
  margin-top:3px;
  color:var(--fd-muted);
  font-size:11px;
  line-height:1.4;
}
.fd-action-link {
  flex:0 0 auto;
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--fd-border);
  border-radius:7px;
  background:transparent;
  color:var(--fd-text);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.fd-action-link:hover {
  border-color:rgba(227,38,54,.5);
}
.fd-activity-row {
  display:grid;
  grid-template-columns:9px minmax(0,1fr);
  align-items:start;
  gap:10px;
  min-height:54px;
  padding:11px 12px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-activity-dot {
  width:7px;
  height:7px;
  margin-top:4px;
  border-radius:50%;
  background:var(--fd-muted);
}
.fd-activity-dot.is-sent {
  background:var(--fd-green);
}
.fd-activity-dot.is-draft {
  background:var(--fd-red);
}

.fd-empty-state {
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:20px;
  border:1px dashed var(--fd-border);
  border-radius:8px;
  background:rgba(255,255,255,.012);
}
.fd-home-pipeline,
.fd-home-discovery {
  margin-top:12px;
}
.fd-pipeline-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border:1px solid var(--fd-border);
  border-radius:9px;
  overflow:hidden;
}
.fd-pipeline-grid article {
  min-width:0;
  min-height:120px;
  padding:15px;
  border-right:1px solid var(--fd-border);
  background:var(--fd-elevated);
}
.fd-pipeline-grid article:last-child {
  border-right:0;
}
.fd-pipeline-grid span,
.fd-pipeline-grid small {
  display:block;
}
.fd-pipeline-grid span {
  color:var(--fd-secondary);
  font-size:11px;
  font-weight:700;
}
.fd-pipeline-grid strong {
  display:block;
  margin:11px 0 8px;
  color:var(--fd-text);
  font-size:25px;
}
.fd-pipeline-grid small {
  color:var(--fd-muted);
  font-size:10px;
  line-height:1.4;
}
.fd-discovery-empty {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:92px;
  padding:15px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-home-skeleton {
  height:58px;
  border-radius:8px;
  background:linear-gradient(90deg,#18181b 25%,#202024 50%,#18181b 75%);
  background-size:200% 100%;
  animation:fd-home-skeleton 1.4s ease-in-out infinite;
}
@keyframes fd-home-skeleton {
  from { background-position:200% 0; }
  to { background-position:-200% 0; }
}


.fd-profile-page {
  padding-top: 10px;
}

.fd-profile-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:16px 0 20px;
}

.fd-profile-header > div:first-child {
  max-width:760px;
}

.fd-profile-header h1 {
  margin:0;
  color:var(--fd-text);
  font-size:clamp(30px,3vw,44px);
  line-height:1.05;
  letter-spacing:-.04em;
}

.fd-profile-header p:not(.fd-eyebrow) {
  margin:10px 0 0;
  color:var(--fd-secondary);
  font-size:14px;
  line-height:1.55;
}

.fd-profile-completeness {
  width:220px;
  flex:0 0 auto;
}

.fd-profile-completeness > span {
  display:block;
  margin-bottom:6px;
  color:var(--fd-muted);
  font-size:11px;
}

.fd-profile-completeness > strong {
  display:block;
  margin-bottom:8px;
  color:var(--fd-text);
  font-size:20px;
}

.fd-profile-progress {
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:#202024;
}

.fd-profile-progress i {
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--fd-red);
  transition:width .22s ease;
}

.fd-profile-tabs {
  display:flex;
  gap:4px;
  margin-bottom:12px;
  padding:4px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:#101012;
}

.fd-profile-tab {
  min-height:40px;
  padding:0 14px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--fd-muted);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.fd-profile-tab:hover {
  color:var(--fd-text);
  background:rgba(255,255,255,.025);
}

.fd-profile-tab.active {
  color:var(--fd-text);
  background:var(--fd-elevated);
  box-shadow:inset 0 0 0 1px var(--fd-border);
}

.fd-profile-content {
  max-width:900px;
}

.fd-profile-panel {
  padding:20px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}

.fd-profile-panel-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}

.fd-profile-panel-heading h2 {
  margin:0;
  color:var(--fd-text);
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.02em;
}

.fd-profile-panel-heading p {
  margin:6px 0 0;
  max-width:620px;
  color:var(--fd-secondary);
  font-size:12px;
  line-height:1.5;
}

.fd-profile-summary-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.fd-profile-inline-form { grid-column:1/-1; min-width:0; }
.fd-profile-inline-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; padding:0; border:0; min-width:0; }
.fd-profile-inline-field { display:block; }
.fd-profile-inline-field input,.fd-profile-inline-field select {
  display:block; box-sizing:border-box; width:100%; min-width:0; min-height:40px;
  padding:8px 10px; color:var(--fd-text); background:var(--fd-bg);
  border:1px solid var(--fd-border); border-radius:5px; font:inherit; font-size:14px;
}
.fd-profile-inline-field input:focus-visible,.fd-profile-inline-field select:focus-visible,
.fd-profile-inline-checks input:focus-visible { outline:2px solid var(--fd-accent,#ef273d); outline-offset:2px; }
.fd-profile-inline-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; }
.fd-profile-inline-pair .fd-profile-field { padding:0; border:0; min-height:0; background:transparent; }
.fd-profile-inline-pair legend,.fd-profile-inline-checks legend { padding:0 4px; color:var(--fd-muted); font-size:12px; }
.fd-profile-inline-checks { margin:0; }
.fd-profile-inline-checks>div { display:flex; flex-wrap:wrap; gap:4px 14px; }
.fd-profile-inline-checks label { display:flex; align-items:center; gap:5px; min-height:40px; font-size:13px; }
.fd-profile-inline-checks input { accent-color:var(--fd-accent,#ef273d); }
.fd-profile-inline-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.fd-profile-inline-error { color:#ffadb5; border:1px solid var(--fd-border); border-radius:6px; padding:12px; }
.fd-profile-inline-form .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; }
@media(max-width:767px) { .fd-profile-inline-inputs { grid-template-columns:1fr; } }

.fd-profile-field {
  min-width:0;
  min-height:82px;
  padding:13px 14px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}

.fd-profile-field span,
.fd-profile-field small {
  display:block;
}

.fd-profile-field span {
  margin-bottom:7px;
  color:var(--fd-muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.fd-profile-field strong {
  display:block;
  overflow:hidden;
  color:var(--fd-text);
  font-size:13px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fd-profile-field strong.is-empty {
  color:var(--fd-muted);
  font-weight:600;
}

.fd-profile-field small {
  margin-top:4px;
  color:var(--fd-muted);
  font-size:10px;
}

.fd-profile-section-divider {
  height:1px;
  margin:20px 0;
  background:var(--fd-border);
}

.fd-profile-inline-section {
  display:grid;
  grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);
  gap:20px;
  align-items:start;
}

.fd-profile-section-copy strong,
.fd-connection-list strong,
.fd-account-list strong,
.fd-preference-preview strong {
  color:var(--fd-text);
}

.fd-profile-section-copy span {
  display:block;
  margin-top:5px;
  color:var(--fd-muted);
  font-size:11px;
  line-height:1.45;
}

.fd-profile-position-slot .settings-row,
.fd-profile-position-slot .settings-pos-editor {
  border:0 !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
}

.fd-profile-position-slot .settings-label {
  display:none !important;
}

.fd-profile-position-slot .ghost-btn,
.fd-profile-position-slot .upgrade-btn-sm {
  min-height:38px;
  border-radius:7px;
}

.fd-preference-preview {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.fd-preference-preview article {
  min-height:130px;
  padding:15px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}

.fd-preference-preview span,
.fd-preference-preview small {
  display:block;
  color:var(--fd-muted);
}

.fd-preference-preview span {
  margin-bottom:10px;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
}

.fd-preference-preview strong {
  display:block;
  margin-bottom:8px;
  font-size:14px;
}

.fd-preference-preview small {
  font-size:10px;
  line-height:1.45;
}

.fd-profile-info-note {
  margin-top:12px;
  padding:12px 13px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:rgba(255,255,255,.015);
  color:var(--fd-muted);
  font-size:11px;
  line-height:1.45;
}

.fd-connection-list,
.fd-account-list {
  display:grid;
  gap:10px;
}

.fd-connection-list article,
.fd-account-list article {
  display:flex;
  align-items:center;
  gap:14px;
  min-height:78px;
  padding:14px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}

.fd-connection-list article > div:nth-child(2),
.fd-account-list article > div:first-child {
  min-width:0;
  flex:1;
}

.fd-connection-list span,
.fd-connection-list small,
.fd-account-list span,
.fd-account-list small {
  display:block;
}

.fd-connection-list span,
.fd-account-list span {
  margin-top:3px;
  color:var(--fd-secondary);
  font-size:11px;
}

.fd-connection-list small,
.fd-account-list small {
  margin-top:4px;
  color:var(--fd-muted);
  font-size:10px;
  line-height:1.4;
}

.fd-connection-icon {
  display:grid;
  width:38px;
  height:38px;
  flex:0 0 auto;
  place-items:center;
  border:1px solid var(--fd-border);
  border-radius:9px;
  background:#111113;
  color:var(--fd-text);
  font-size:14px;
  font-weight:800;
}

.fd-status-pill {
  flex:0 0 auto;
  padding:6px 8px;
  border:1px solid rgba(212,175,55,.28);
  border-radius:999px;
  color:var(--fd-gold) !important;
  font-size:10px !important;
  font-weight:700;
}

.fd-account-actions {
  display:flex;
  gap:8px;
}

.fd-danger-action {
  min-height:42px;
  margin-top:16px;
  padding:0 14px;
  border:1px solid rgba(227,38,54,.36);
  border-radius:8px;
  background:rgba(227,38,54,.08);
  color:#ff737f;
  font-weight:700;
  cursor:pointer;
}

.fd-danger-action:hover {
  background:rgba(227,38,54,.12);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .fd-profile-header {
    align-items:flex-start;
  }

  .fd-profile-tabs {
    overflow-x:auto;
    scrollbar-width:none;
  }

  .fd-profile-tab {
    flex:0 0 auto;
  }

  .fd-preference-preview {
    grid-template-columns:1fr;
  }
}

@media (max-width: 767px) {
  .fd-profile-page {
    padding-top:0;
  }

  .fd-profile-header {
    display:block;
    padding:8px 0 18px;
  }

  .fd-profile-header h1 {
    font-size:31px;
  }

  .fd-profile-completeness {
    width:100%;
    margin-top:16px;
  }

  .fd-profile-tabs {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    margin-right:0;
    overflow:visible;
  }

  .fd-profile-tab {
    width:100%;
    min-height:44px;
    padding:0 10px;
    text-align:center;
  }

  .fd-profile-panel {
    padding:15px;
  }

  .fd-profile-panel-heading {
    display:block;
  }

  .fd-profile-panel-heading .fd-primary-action {
    width:100%;
    margin-top:14px;
  }

  .fd-profile-summary-grid,
  .fd-profile-inline-section,
  .fd-preference-preview {
    grid-template-columns:1fr;
  }

  .fd-profile-field {
    min-height:76px;
  }

  .fd-connection-list article,
  .fd-account-list article {
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .fd-connection-list article .fd-secondary-action,
  .fd-account-actions {
    width:100%;
  }

  .fd-connection-list article .fd-secondary-action {
    min-height:44px;
  }

  .fd-status-pill {
    margin-left:52px;
  }
}

/* Schools: recommendation-only notices stay within the existing program list. */
#pageLeadFinder .fd-recommendation-location-note,
#pageLeadFinder .fd-recommendation-warning {
  margin:0 0 8px;
  padding:9px 11px;
  border:1px solid rgba(212,175,55,.24);
  border-radius:7px;
  background:rgba(212,175,55,.055);
  color:#cbbd91;
  font-size:10px;
  line-height:1.45;
}
#pageLeadFinder .fd-recommendation-warning {
  border-color:rgba(227,154,86,.28);
  background:rgba(227,154,86,.07);
  color:#e3b789;
}
#pageLeadFinder .fd-map-result-copy .fd-recommendation-unmapped {
  margin-top:5px;
  color:#c7a96e;
  font-size:8px;
}
#pageLeadFinder .fd-recommendation-rank {
  display:inline-block;
  margin-right:5px;
  color:var(--fd-gold);
  font-size:9px;
  font-style:normal;
}
#pageLeadFinder .fd-school-list-row .fd-row-main .fd-recommendation-unmapped {
  white-space:normal;
  color:#c7a96e;
}


.fd-schools-page {
  padding-top:10px;
}
#pageLeadFinder [data-program-panel].hidden,
#pageLeadFinder [data-schools-mode-panel].hidden {
  display:none !important;
}
.fd-schools-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:16px 0 14px;
}
.fd-schools-header h1 {
  margin:0;
  color:var(--fd-text);
  font-size:clamp(30px,3vw,44px);
  line-height:1.05;
  letter-spacing:-.04em;
}
.fd-schools-header p:not(.fd-eyebrow) {
  margin:9px 0 0;
  color:var(--fd-secondary);
  font-size:14px;
}
.fd-schools-mode-tabs,
.fd-view-toggle {
  display:flex;
  gap:4px;
  padding:4px;
  border:1px solid var(--fd-border);
  border-radius:9px;
  background:#101012;
}
.fd-schools-mode,
.fd-view-toggle button {
  min-height:38px;
  padding:0 14px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--fd-muted);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.fd-schools-mode.active,
.fd-view-toggle button.active {
  color:var(--fd-text);
  background:var(--fd-elevated);
  box-shadow:inset 0 0 0 1px var(--fd-border);
}
.fd-programs-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.fd-programs-note {
  color:var(--fd-muted);
  font-size:10px;
}
.fd-program-list,
.fd-coaches-browser {
  padding:14px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}
.fd-list-search {
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  max-width:560px;
  min-height:44px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-list-search svg {
  position:absolute;
  left:13px;
  color:var(--fd-muted);
  pointer-events:none;
}
.fd-list-search input {
  width:100%;
  height:44px;
  padding:0 14px 0 40px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--fd-text);
  font-size:13px;
}
.fd-browser-filter-row {
  display:flex;
  align-items:center;
  gap:8px;
}
.fd-browser-filter-row .fd-list-search {
  flex:1;
}
.fd-browser-select {
  min-width:150px;
  height:44px;
  padding:0 34px 0 12px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  outline:0;
  background:var(--fd-elevated);
  color:var(--fd-text);
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}
.fd-browser-select:focus {
  border-color:rgba(227,38,54,.5);
}
@media (max-width:600px) {
  #pageLeadFinder .fd-program-filter-strip:has(#programDivisionV2 option[value="RECOMMENDED"]:checked) {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
  }
  #pageLeadFinder .fd-program-filter-strip:has(#programDivisionV2 option[value="RECOMMENDED"]:checked) .fd-browser-select {
    width:100%;
    min-width:0;
    max-width:100%;
  }
}
.fd-clear-filters {
  padding:0;
  border:0;
  background:transparent;
  color:var(--fd-secondary);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.fd-clear-filters:hover {
  color:var(--fd-text);
}
.fd-list-meta {
  display:flex;
  justify-content:space-between;
  margin:12px 2px 10px;
  color:var(--fd-muted);
  font-size:10px;
}
.fd-school-list-results,
.fd-coach-browser-results {
  display:grid;
  gap:8px;
}
.fd-school-list-row,
.fd-coach-browser-row {
  display:grid;
  align-items:center;
  gap:12px;
  min-height:62px;
  padding:11px 12px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-school-list-row {
  grid-template-columns:minmax(0,1.15fr) minmax(0,2fr) auto;
}
.fd-coach-browser-row {
  grid-template-columns:minmax(0,1.05fr) minmax(0,1.8fr) auto;
}
.fd-school-list-row .fd-row-meta,
.fd-coach-browser-row .fd-row-meta {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.fd-school-list-row > div,
.fd-coach-browser-row > div {
  min-width:0;
}
.fd-school-list-row strong,
.fd-coach-browser-row strong {
  display:block;
  overflow:hidden;
  color:var(--fd-text);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-school-list-row span,
.fd-coach-browser-row span {
  display:block;
  overflow:hidden;
  color:var(--fd-secondary);
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-school-list-head,
.fd-coach-browser-head {
  display:none;
}
.fd-list-action {
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--fd-border);
  border-radius:7px;
  background:transparent;
  color:var(--fd-text);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.fd-list-action:hover {
  border-color:rgba(227,38,54,.5);
}
.fd-list-action.is-added {
  border-color:rgba(34,197,94,.28);
  background:rgba(34,197,94,.08);
  color:#8de3ad;
}
.fd-coaches-toolbar {
  display:flex;
  align-items:center;
  gap:10px;
}
.fd-coaches-toolbar .fd-list-search {
  flex:1;
}
.fd-coaches-toolbar .fd-browser-select {
  flex:0 0 auto;
}
.fd-contact-methods {
  display:flex;
  gap:6px;
  align-items:center;
}
.fd-contact-chip {
  display:inline-flex !important;
  align-items:center;
  min-height:28px;
  padding:0 8px;
  border:1px solid var(--fd-border);
  border-radius:999px;
  color:var(--fd-secondary) !important;
  font-size:9px !important;
  text-decoration:none;
}
.fd-contact-chip:hover {
  color:var(--fd-text) !important;
  border-color:#3b3b42;
}
.fd-contact-chip.is-email {
  cursor:pointer;
}
.fd-coach-name-button {
  display:block;
  max-width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:var(--fd-text);
  font:inherit;
  font-weight:750;
  text-align:left;
  cursor:pointer;
}
.fd-coach-name-button:hover,
.fd-coach-name-button:focus-visible {
  color:var(--fd-red);
}
.fd-coach-drawer-backdrop {
  position:fixed;
  inset:0;
  z-index:1390;
  background:rgba(0,0,0,.52);
  backdrop-filter:blur(2px);
}
.fd-coach-drawer {
  position:fixed;
  top:0;
  right:0;
  bottom:0;
  z-index:1400;
  width:min(420px,calc(100vw - 24px));
  padding:22px;
  overflow-y:auto;
  border-left:1px solid var(--fd-border);
  background:#111113;
  box-shadow:-24px 0 60px rgba(0,0,0,.48);
}
.fd-coach-drawer-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:18px;
  border-bottom:1px solid var(--fd-border);
}
.fd-coach-drawer-head > div > span,
.fd-coach-drawer-label,
.fd-coach-drawer-school > span,
.fd-coach-drawer-contact span {
  color:var(--fd-muted);
  font-size:9px;
  font-weight:750;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.fd-coach-drawer-head h2 {
  margin:7px 0 0;
  color:var(--fd-text);
  font-size:24px;
  letter-spacing:-.025em;
}
.fd-coach-drawer-head p {
  margin:4px 0 0;
  color:var(--fd-secondary);
  font-size:12px;
}
.fd-coach-drawer-close {
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:40px;
  height:40px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
  color:var(--fd-text);
  font-size:22px;
  cursor:pointer;
}
.fd-coach-drawer-school,
.fd-coach-drawer-section {
  padding:17px 0;
  border-bottom:1px solid var(--fd-border);
}
.fd-coach-drawer-school strong {
  display:block;
  margin-top:7px;
  color:var(--fd-text);
  font-size:14px;
}
.fd-coach-drawer-contact {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding:12px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-coach-drawer-contact > div {
  min-width:0;
}
.fd-coach-drawer-contact strong {
  display:block;
  margin-top:4px;
  overflow-wrap:anywhere;
  color:var(--fd-text);
  font-size:11px;
}
.fd-coach-drawer-muted {
  margin:9px 0 0;
  color:var(--fd-muted);
  font-size:11px;
  line-height:1.5;
}
.fd-coach-source-link {
  display:inline-block;
  margin-top:9px;
  color:var(--fd-secondary);
  font-size:11px;
  font-weight:700;
  text-decoration:none;
}
.fd-coach-source-link:hover {
  color:var(--fd-text);
}
.fd-coach-drawer-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding-top:18px;
}


@media (max-width: 767px) {
  .fd-coach-drawer-backdrop {
    background:rgba(0,0,0,.62);
  }
  .fd-coach-drawer {
    top:auto;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    max-height:82dvh;
    padding:18px 16px calc(18px + env(safe-area-inset-bottom));
    border-top:1px solid var(--fd-border);
    border-left:0;
    border-radius:16px 16px 0 0;
    box-shadow:0 -24px 60px rgba(0,0,0,.5);
  }
  .fd-coach-drawer-actions {
    grid-template-columns:1fr;
  }
  .fd-coach-drawer-actions button {
    min-height:48px;
  }
  .fd-schools-header {
    display:block;
    padding:8px 0 12px;
  }
  .fd-schools-header h1 {
    font-size:31px;
  }
  .fd-schools-mode-tabs {
    width:100%;
    margin-top:14px;
  }
  .fd-schools-mode {
    flex:1;
    min-height:44px;
  }
  .fd-programs-toolbar {
    align-items:stretch;
    flex-direction:column;
  }
  .fd-programs-note {
    line-height:1.4;
  }
  .fd-view-toggle {
    width:100%;
  }
  .fd-view-toggle button {
    flex:1;
    min-height:42px;
  }
  .fd-program-list,
  .fd-coaches-browser {
    padding:10px;
  }
  .fd-list-search {
    max-width:none;
  }
  .fd-browser-filter-row {
    align-items:stretch;
    flex-direction:column;
  }
  .fd-browser-select {
    width:100%;
    min-width:0;
    height:44px;
  }
  .fd-school-list-head,
  .fd-coach-browser-head {
    display:none;
  }
  .fd-school-list-row,
  .fd-coach-browser-row {
    display:flex;
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
    min-height:0;
    padding:12px;
  }
  .fd-school-list-row .fd-row-main,
  .fd-coach-browser-row .fd-row-main {
    width:100%;
  }
  .fd-school-list-row .fd-row-meta,
  .fd-coach-browser-row .fd-row-meta {
    display:flex;
    width:100%;
    flex-wrap:wrap;
    gap:8px 12px;
  }
  .fd-school-list-row .fd-row-meta > div,
  .fd-coach-browser-row .fd-row-meta > div {
    flex:1 1 42%;
  }
  .fd-school-list-row .fd-list-action,
  .fd-coach-browser-row .fd-list-action {
    width:100%;
    min-height:42px;
  }
  .fd-coaches-toolbar {
    align-items:stretch;
    flex-direction:column;
  }
  .fd-coaches-toolbar .fd-secondary-action {
    min-height:44px;
  }
}


.fd-school-detail {
  padding-top:8px;
}
.fd-detail-back {
  min-height:38px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--fd-secondary);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.fd-detail-back:hover { color:var(--fd-text); }
.fd-detail-hero {
  overflow:hidden;
  margin-top:8px;
  border:1px solid var(--fd-border);
  border-radius:12px;
  background:var(--fd-card);
}
.fd-detail-media {
  position:relative;
  height:260px;
  overflow:hidden;
  background:#111113;
}
.fd-detail-media.is-fallback {
  height:190px;
}
.fd-detail-media img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.fd-detail-image-fallback {
  display:grid;
  width:100%;
  height:100%;
  place-items:center;
  color:#34343a;
  font-size:28px;
  font-weight:850;
  letter-spacing:-.03em;
  background:
    radial-gradient(circle at 70% 25%,rgba(227,38,54,.08),transparent 26%),
    #111113;
}
.fd-detail-media-tabs {
  position:absolute;
  right:14px;
  bottom:14px;
  display:flex;
  gap:4px;
  padding:4px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:8px;
  background:rgba(11,11,13,.84);
  backdrop-filter:blur(12px);
}
.fd-detail-media-tabs button {
  min-height:34px;
  padding:0 11px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--fd-secondary);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.fd-detail-media-tabs button.active {
  background:var(--fd-elevated);
  color:var(--fd-text);
}
.fd-detail-hero-body {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 20px;
}
.fd-detail-identity {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.fd-detail-logo {
  display:grid;
  width:58px;
  height:58px;
  flex:0 0 auto;
  place-items:center;
  border:1px solid #ff4c6473;
  border-radius:50%;
  background:radial-gradient(circle at 30% 15%, #303039, #09090e 70%);
  box-shadow:inset 0 1px 0 #ffffff24;
}
.fd-detail-logo img {
  width:40px;
  height:40px;
  object-fit:contain;
}
.fd-detail-logo img[data-logo-shape="wide"] { width:46px; }
.fd-detail-logo img[data-logo-shape="tall"] { height:46px; }
.fd-detail-meta {
  margin-bottom:4px;
  color:var(--fd-red);
  font-size:10px;
  font-weight:750;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.fd-detail-identity h1 {
  margin:0;
  color:var(--fd-text);
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.035em;
}
.fd-detail-identity p {
  margin:5px 0 0;
  color:var(--fd-secondary);
  font-size:11px;
}
.fd-detail-actions {
  display:flex;
  flex:0 0 auto;
  gap:8px;
}
.fd-detail-tabs {
  position:sticky;
  top:0;
  z-index:8;
  display:flex;
  gap:4px;
  margin-top:12px;
  padding:4px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:rgba(16,16,18,.97);
  backdrop-filter:blur(14px);
}
.fd-detail-tabs button {
  min-height:38px;
  padding:0 14px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--fd-muted);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.fd-detail-tabs button.active {
  color:var(--fd-text);
  background:var(--fd-elevated);
}
.fd-detail-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:12px;
  margin-top:12px;
}
.fd-detail-panel,
.fd-fit-card,
.fd-detail-side-card {
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}
.fd-detail-panel {
  min-height:260px;
  padding:18px;
}
.fd-detail-section-heading {
  margin-bottom:14px;
}
.fd-detail-section-heading h2 {
  margin:0;
  color:var(--fd-text);
  font-size:18px;
}
.fd-detail-facts {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.fd-detail-fact {
  min-height:76px;
  padding:12px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-detail-fact span,
.fd-detail-fact small {
  display:block;
}
.fd-detail-fact span {
  margin-bottom:6px;
  color:var(--fd-muted);
  font-size:9px;
  font-weight:750;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.fd-detail-fact strong {
  display:block;
  color:var(--fd-text);
  font-size:12px;
  line-height:1.4;
}
.fd-detail-fact small {
  margin-top:4px;
  color:var(--fd-secondary);
  font-size:10px;
  line-height:1.45;
}
.fd-detail-side {
  display:grid;
  align-content:start;
  gap:10px;
}
.fd-fit-card,
.fd-detail-side-card {
  padding:16px;
}
.fd-fit-card > span,
.fd-detail-side-card > span {
  display:block;
  color:var(--fd-muted);
  font-size:10px;
  font-weight:700;
}
.fd-fit-card strong {
  display:block;
  margin:12px 0 8px;
  color:var(--fd-gold);
  font-size:32px;
  line-height:1;
}
.fd-detail-side-card strong {
  display:block;
  margin:9px 0 6px;
  color:var(--fd-text);
  font-size:13px;
}
.fd-fit-card small,
.fd-detail-side-card small {
  display:block;
  color:var(--fd-muted);
  font-size:10px;
  line-height:1.45;
}
.fd-fit-empty,
.fd-detail-coaches {
  min-height:180px;
}
.fd-fit-empty {
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px;
  border:1px dashed var(--fd-border);
  border-radius:8px;
}
.fd-fit-empty strong {
  color:var(--fd-text);
  font-size:13px;
}
.fd-fit-empty span {
  margin-top:6px;
  color:var(--fd-muted);
  font-size:11px;
  line-height:1.5;
}
.fd-fit-components {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.fd-fit-component {
  min-width:0;
  min-height:176px;
  padding:15px;
  border:1px solid var(--fd-border);
  border-radius:9px;
  background:var(--fd-elevated);
}
.fd-fit-component.is-ready {
  border-color:rgba(212,175,55,.32);
}
.fd-fit-component-top {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.fd-fit-component-top > div {
  min-width:0;
}
.fd-fit-component-top span,
.fd-fit-component p {
  display:block;
}
.fd-fit-component-top > div > span {
  color:var(--fd-muted);
  font-size:9px;
  font-weight:750;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.fd-fit-component-top strong {
  display:block;
  margin-top:8px;
  color:var(--fd-text);
  font-size:15px;
  line-height:1.25;
}
.fd-fit-state {
  flex:0 0 auto;
  padding:4px 6px;
  border:1px solid var(--fd-border);
  border-radius:999px;
  color:var(--fd-muted);
  font-size:9px;
  font-weight:700;
}
.fd-fit-component.is-ready .fd-fit-state {
  border-color:rgba(212,175,55,.32);
  color:var(--fd-gold);
  background:rgba(212,175,55,.06);
}
.fd-fit-component p {
  margin:16px 0 0;
  color:var(--fd-secondary);
  font-size:10px;
  line-height:1.5;
}
.fd-fit-link {
  margin-top:14px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--fd-red);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.fd-fit-link:hover {
  color:#ff5865;
}

.fd-detail-coaches {
  display:grid;
  gap:14px;
}
.fd-detail-coach-group {
  display:grid;
  gap:8px;
}
.fd-detail-coach-group + .fd-detail-coach-group {
  padding-top:14px;
  border-top:1px solid var(--fd-border);
}
.fd-detail-coach-group-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
.fd-detail-coach-group-head > div {
  min-width:0;
}
.fd-detail-coach-group-head span,
.fd-detail-coach-group-head small {
  display:block;
}
.fd-detail-coach-group-head span {
  color:var(--fd-text);
  font-size:12px;
  font-weight:750;
}
.fd-detail-coach-group-head small {
  margin-top:4px;
  color:var(--fd-muted);
  font-size:10px;
  line-height:1.4;
}
.fd-detail-coach-group-list {
  display:grid;
  gap:7px;
}
.fd-add-recommended {
  flex:0 0 auto;
}
.fd-detail-coach-identity small {
  display:block;
  margin-top:4px;
  color:var(--fd-gold);
  font-size:9px;
  line-height:1.35;
}
.fd-detail-coach-email {
  min-width:0;
}
.fd-detail-coach-email span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-detail-coach-row {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto auto;
  align-items:center;
  gap:12px;
  min-height:58px;
  padding:11px 12px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-detail-coach-row strong,
.fd-detail-coach-row span { display:block; }
.fd-detail-coach-row strong {
  color:var(--fd-text);
  font-size:12px;
}
.fd-detail-coach-row span {
  margin-top:3px;
  color:var(--fd-secondary);
  font-size:10px;
}

@media (max-width:1023px) {
  .fd-detail-layout {
    grid-template-columns:1fr;
  }
  .fd-detail-side {
    grid-template-columns:repeat(2,minmax(0,1fr));
    order:-1;
  }
  .fd-fit-components {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:767px) {
  .fd-detail-back {
    min-height:44px;
  }
  .fd-detail-media {
    height:190px;
  }
  .fd-detail-media.is-fallback {
    height:150px;
  }
  .fd-detail-media-tabs {
    right:10px;
    bottom:10px;
  }
  .fd-detail-media-tabs button {
    min-height:38px;
  }
  .fd-detail-hero-body {
    align-items:flex-start;
    flex-direction:column;
    padding:14px;
  }
  .fd-detail-logo {
    width:50px;
    height:50px;
    border-radius:10px;
  }
  .fd-detail-identity h1 {
    font-size:23px;
  }
  .fd-detail-actions {
    width:100%;
  }
  .fd-detail-actions button {
    flex:1;
    min-height:44px;
  }
  .fd-detail-tabs {
    overflow-x:auto;
    scrollbar-width:none;
  }
  .fd-detail-tabs::-webkit-scrollbar { display:none; }
  .fd-detail-tabs button {
    min-height:44px;
    flex:0 0 auto;
  }
  .fd-detail-layout {
    margin-top:10px;
  }
  .fd-detail-side {
    grid-template-columns:1fr;
  }
  .fd-detail-panel {
    padding:14px;
  }
  .fd-detail-facts {
    grid-template-columns:1fr;
  }
  .fd-detail-coach-row {
    grid-template-columns:1fr;
    gap:8px;
  }
  .fd-detail-coach-group-head {
    align-items:stretch;
    flex-direction:column;
  }
  .fd-add-recommended {
    width:100%;
    min-height:44px;
  }
  .fd-detail-coach-email span {
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .fd-detail-coach-row .fd-list-action {
    min-height:44px;
    width:100%;
  }
  .fd-fit-components {
    grid-template-columns:1fr;
  }
  .fd-fit-component {
    min-height:0;
  }
}


.fd-outreach-v2 {
  padding-top:10px;
  opacity:1 !important;
  filter:none !important;
  color:var(--fd-text);
}
#pageOutreach.page-view {
  opacity:1 !important;
  filter:none !important;
}
#pageOutreach .fd-outreach-v2,
#pageOutreach .fd-outreach-v2 section,
#pageOutreach .fd-outreach-v2 article,
#pageOutreach .fd-outreach-v2 nav {
  opacity:1 !important;
  filter:none !important;
}
.fd-outreach-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:16px 0 20px;
}
.fd-outreach-header > div { max-width:760px; }
.fd-outreach-header h1 {
  margin:0;
  color:var(--fd-text) !important;
  font-size:clamp(30px,3vw,44px);
  line-height:1.05;
  letter-spacing:-.04em;
}
.fd-outreach-header p:not(.fd-eyebrow) {
  margin:10px 0 0;
  color:var(--fd-secondary) !important;
  font-size:14px;
  line-height:1.5;
}
.fd-outreach-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.fd-outreach-summary article {
  min-height:108px;
  padding:15px;
  border:1px solid var(--fd-border);
  border-radius:9px;
  background:var(--fd-card);
}
.fd-outreach-summary span,
.fd-outreach-summary small {
  display:block;
}
.fd-outreach-summary span {
  color:var(--fd-secondary) !important;
  font-size:10px;
  font-weight:700;
}
.fd-outreach-summary strong {
  display:block;
  margin:11px 0 8px;
  color:var(--fd-text) !important;
  font-size:27px;
  line-height:1;
}
.fd-outreach-summary small {
  color:var(--fd-muted) !important;
  font-size:10px;
  line-height:1.4;
}
.fd-outreach-tabs {
  display:flex;
  gap:4px;
  margin-top:12px;
  padding:4px;
  border:1px solid var(--fd-border);
  border-radius:9px;
  background:#101012;
}
.fd-outreach-tabs button {
  min-height:40px;
  padding:0 14px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--fd-muted) !important;
  opacity:1 !important;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.fd-outreach-tabs button.active {
  color:var(--fd-text) !important;
  background:var(--fd-elevated);
  box-shadow:inset 0 0 0 1px var(--fd-border);
}
.fd-outreach-panel {
  margin-top:10px;
  padding:18px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}
.fd-outreach-panel-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.fd-outreach-panel-heading h2 {
  margin:0;
  color:var(--fd-text) !important;
  font-size:18px;
}
.fd-outreach-empty {
  display:flex;
  min-height:190px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:20px;
  border:1px dashed var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-outreach-empty strong {
  color:var(--fd-text);
  font-size:14px;
}
.fd-outreach-empty span {
  max-width:560px;
  margin-top:6px;
  color:var(--fd-muted);
  font-size:11px;
  line-height:1.5;
}
.fd-outreach-empty .fd-primary-action {
  margin-top:14px;
}
#pageOutreach .od-drafts-list {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
}
#pageOutreach .od-draft-card,
#pageOutreach .od-draft-group {
  border:1px solid var(--fd-border) !important;
  border-radius:9px !important;
  background:var(--fd-elevated) !important;
  box-shadow:none !important;
}
#pageOutreach .od-draft-card--active {
  border-color:rgba(227,38,54,.32) !important;
}
#pageOutreach .od-card-school,
#pageOutreach .od-group-name,
#pageOutreach .od-recipient-name {
  color:var(--fd-text) !important;
}
#pageOutreach .od-card-type,
#pageOutreach .od-card-progress,
#pageOutreach .od-card-time,
#pageOutreach .od-recipient-title {
  color:var(--fd-secondary) !important;
}
#pageOutreach .od-continue-btn {
  min-height:38px !important;
  border-radius:7px !important;
  background:var(--fd-red) !important;
  color:#fff !important;
}
#pageOutreach .od-expand-btn,
#pageOutreach .oc-dot-trigger {
  color:var(--fd-secondary) !important;
}
#pageOutreach .od-status {
  border-radius:999px !important;
}
#pageOutreach .oc-loading,
#pageOutreach .oc-error {
  color:var(--fd-secondary);
}

@media (min-width:768px) and (max-width:1023px) {
  .fd-outreach-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #pageOutreach .od-drafts-list {
    grid-template-columns:1fr !important;
  }
}

@media (max-width:767px) {
  .fd-outreach-v2 {
    padding-top:0;
  }
  .fd-outreach-header {
    display:block;
    padding:8px 0 16px;
  }
  .fd-outreach-header h1 {
    font-size:31px;
  }
  .fd-outreach-header .fd-primary-action {
    width:100%;
    min-height:48px;
    margin-top:16px;
  }
  .fd-outreach-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .fd-outreach-summary article {
    min-height:100px;
    padding:13px;
  }
  .fd-outreach-tabs {
    width:calc(100% + 16px);
    margin-right:-16px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
  }
  .fd-outreach-tabs::-webkit-scrollbar { display:none; }
  .fd-outreach-tabs button {
    min-height:44px;
    flex:0 0 auto;
  }
  .fd-outreach-panel {
    padding:14px;
  }
  .fd-outreach-panel-heading .fd-panel-note {
    display:none;
  }
  #pageOutreach .od-drafts-list {
    grid-template-columns:1fr !important;
  }
  .fd-outreach-empty {
    min-height:165px;
  }
}


/* ── Onboarding ───────────────────────────────────────────────────────────── */
body[data-app-page="Onboarding"] .sidebar,
body[data-app-page="Onboarding"] .topbar,
body[data-app-page="Onboarding"] ~ .mobile-bottom-nav,
body[data-app-page="Onboarding"] .mobile-bottom-nav {
  display:none !important;
}
body[data-app-page="Onboarding"] .main-wrapper {
  width:100% !important;
}
body[data-app-page="Onboarding"] .main-content {
  height:100dvh !important;
  padding:0 !important;
  overflow:auto !important;
}
body[data-app-page="Onboarding"] .page-view {
  max-width:none !important;
}
.fd-onboarding {
  min-height:100dvh;
  background:
    radial-gradient(circle at 50% -15%,rgba(227,38,54,.08),transparent 34%),
    var(--fd-bg);
}
.fd-onboarding-shell {
  min-height:100dvh;
}
.fd-onboarding-head {
  position:sticky;
  top:0;
  z-index:20;
  display:grid;
  grid-template-columns:200px minmax(320px,560px) 200px;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  min-height:82px;
  padding:14px clamp(20px,4vw,56px);
  border-bottom:1px solid var(--fd-border);
  background:rgba(11,11,13,.96);
  backdrop-filter:blur(18px);
}
.fd-onboarding-brand {
  display:inline-flex;
  width:145px;
}
.fd-onboarding-brand img {
  display:block;
  width:100%;
  height:auto;
}
.fd-onboarding-progress-wrap {
  min-width:0;
}
.fd-onboarding-progress-copy {
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:8px;
}
.fd-onboarding-progress-copy span {
  color:var(--fd-muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.fd-onboarding-progress-copy strong {
  color:var(--fd-text);
  font-size:11px;
}
.fd-onboarding-progress {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:5px;
}
.fd-onboarding-progress i {
  height:3px;
  border-radius:3px;
  background:#29292e;
  transition:background 160ms ease;
}
.fd-onboarding-progress i.active {
  background:var(--fd-red);
}
.fd-onboarding-exit {
  justify-self:end;
  min-height:40px;
  padding:0 13px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:transparent;
  color:var(--fd-secondary);
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.fd-onboarding-exit:hover {
  color:var(--fd-text);
  border-color:#3b3b42;
}
.fd-onboarding-main {
  width:min(760px,calc(100% - 40px));
  margin:0 auto;
  padding:64px 0 90px;
}
.fd-onboarding-intro {
  margin-bottom:24px;
}
.fd-onboarding-intro h1 {
  margin:9px 0 10px;
  color:var(--fd-text);
  font-size:clamp(32px,4.2vw,48px);
  line-height:1.02;
  letter-spacing:-.045em;
}
.fd-onboarding-intro p {
  max-width:620px;
  margin:0;
  color:var(--fd-secondary);
  font-size:14px;
  line-height:1.6;
}
.fd-onboarding-card {
  padding:24px;
  border:1px solid var(--fd-border);
  border-radius:12px;
  background:var(--fd-card);
}
.fd-onboarding-step {
  min-height:340px;
}
.fd-form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.fd-field {
  display:block;
  min-width:0;
}
.fd-field-wide {
  grid-column:1/-1;
}
.fd-field > span,
.fd-fieldset legend {
  display:block;
  margin-bottom:7px;
  color:var(--fd-secondary);
  font-size:10px;
  font-weight:750;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.fd-field > span small {
  color:var(--fd-muted);
  font-size:9px;
  font-weight:650;
  text-transform:none;
}
.fd-field input,
.fd-field select {
  width:100%;
  min-height:48px;
  padding:0 13px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  outline:none;
  background:var(--fd-elevated);
  color:var(--fd-text);
  font-size:13px;
  transition:border-color 150ms ease,box-shadow 150ms ease;
}
.fd-field input::placeholder {
  color:#5f5f67;
}
.fd-field input:focus,
.fd-field select:focus {
  border-color:rgba(227,38,54,.7);
  box-shadow:0 0 0 3px rgba(227,38,54,.08);
}
.fd-fieldset {
  margin:0 0 22px;
  padding:0;
  border:0;
}
.fd-fieldset legend {
  margin-bottom:5px;
  color:var(--fd-text);
  font-size:12px;
  text-transform:none;
  letter-spacing:0;
}
.fd-fieldset > p {
  margin:0 0 13px;
  color:var(--fd-muted);
  font-size:11px;
}
.fd-choice-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:7px;
}
.fd-choice-grid-wide {
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.fd-choice-grid label {
  position:relative;
  cursor:pointer;
}
.fd-choice-grid input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.fd-choice-grid span {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:43px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
  color:var(--fd-secondary);
  font-size:11px;
  font-weight:800;
  transition:border-color 140ms ease,background 140ms ease,color 140ms ease;
}
.fd-choice-grid input:checked + span {
  border-color:rgba(227,38,54,.55);
  background:rgba(227,38,54,.1);
  color:var(--fd-text);
}
.fd-choice-grid input:focus-visible + span {
  outline:2px solid rgba(227,38,54,.55);
  outline-offset:2px;
}
.fd-check-row {
  display:flex;
  gap:11px;
  align-items:flex-start;
  margin-top:16px;
  padding:13px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
  cursor:pointer;
}
.fd-check-row input {
  width:17px;
  height:17px;
  margin-top:1px;
  accent-color:var(--fd-red);
}
.fd-check-row span {
  min-width:0;
}
.fd-check-row strong,
.fd-check-row small {
  display:block;
}
.fd-check-row strong {
  color:var(--fd-text);
  font-size:11px;
}
.fd-check-row small {
  margin-top:4px;
  color:var(--fd-muted);
  font-size:10px;
  line-height:1.4;
}
.fd-onboarding-finish-note {
  margin-top:18px;
  padding:15px;
  border:1px solid rgba(34,197,94,.25);
  border-radius:9px;
  background:rgba(34,197,94,.05);
}
.fd-onboarding-finish-note span,
.fd-onboarding-finish-note small {
  display:block;
}
.fd-onboarding-finish-note span {
  color:var(--fd-text);
  font-size:12px;
  font-weight:750;
}
.fd-onboarding-finish-note small {
  margin-top:4px;
  color:var(--fd-muted);
  font-size:10px;
}
.fd-onboarding-actions {
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid var(--fd-border);
}
.fd-onboarding-actions .fd-primary-action,
.fd-onboarding-actions .fd-secondary-action {
  min-width:112px;
  min-height:46px;
}
.fd-onboarding-save-state {
  justify-self:center;
  color:var(--fd-muted);
  font-size:10px;
}
.fd-onboarding-save-state.is-saving {
  color:var(--fd-secondary);
}
.fd-onboarding-save-state.is-error {
  color:#ff6b76;
}

@media (max-width:767px) {
  body[data-app-page="Onboarding"] .main-wrapper {
    height:100dvh !important;
  }
  body[data-app-page="Onboarding"] .main-content {
    height:100dvh !important;
  }
  .fd-onboarding {
    min-height:100dvh;
  }
  .fd-onboarding-head {
    position:sticky;
    grid-template-columns:1fr auto;
    min-height:70px;
    padding:10px 16px;
  }
  .fd-onboarding-brand {
    width:124px;
  }
  .fd-onboarding-progress-wrap {
    grid-column:1/-1;
    grid-row:2;
    padding-bottom:5px;
  }
  .fd-onboarding-progress-copy {
    margin-bottom:7px;
  }
  .fd-onboarding-exit {
    grid-column:2;
    grid-row:1;
    min-height:38px;
  }
  .fd-onboarding-main {
    width:100%;
    padding:34px 16px calc(38px + env(safe-area-inset-bottom));
  }
  .fd-onboarding-intro {
    margin-bottom:18px;
  }
  .fd-onboarding-intro h1 {
    font-size:34px;
  }
  .fd-onboarding-intro p {
    font-size:13px;
  }
  .fd-onboarding-card {
    padding:16px;
    border-radius:10px;
  }
  .fd-onboarding-step {
    min-height:0;
  }
  .fd-form-grid {
    grid-template-columns:1fr;
    gap:12px;
  }
  .fd-field-wide {
    grid-column:auto;
  }
  .fd-field input,
  .fd-field select {
    min-height:50px;
    font-size:16px !important;
  }
  .fd-choice-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .fd-choice-grid-wide {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .fd-choice-grid span {
    min-height:46px;
  }
  .fd-onboarding-actions {
    grid-template-columns:1fr 1fr;
    position:sticky;
    bottom:0;
    margin:24px -16px -16px;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:rgba(21,21,24,.97);
    backdrop-filter:blur(14px);
  }
  .fd-onboarding-save-state {
    display:none;
  }
  .fd-onboarding-actions .fd-primary-action,
  .fd-onboarding-actions .fd-secondary-action {
    width:100%;
    min-width:0;
    min-height:48px;
    margin:0;
  }
  .fd-onboarding-actions .fd-primary-action:only-child {
    grid-column:1/-1;
  }
}

@media (max-width:390px) {
  .fd-onboarding-head {
    padding-left:12px;
    padding-right:12px;
  }
  .fd-onboarding-main {
    padding-left:12px;
    padding-right:12px;
  }
  .fd-onboarding-card {
    padding:14px;
  }
  .fd-onboarding-actions {
    margin-left:-14px;
    margin-right:-14px;
    margin-bottom:-14px;
    padding-left:14px;
    padding-right:14px;
  }
}

/* Hidden on desktop; phones get purpose-built fixed navigation. */
.mobile-bottom-nav {
  display: none;
}

/* The mobile nav is a sibling of appRoot; keep it hidden until appRoot is ready. */
.app-layout.hidden ~ .mobile-bottom-nav {
  display: none !important;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --fd-sidebar-width: 76px;
  }

  .sidebar {
    width: var(--fd-sidebar-width) !important;
    min-width: var(--fd-sidebar-width);
  }

  .sidebar-top,
  .sidebar-bottom {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .sidebar-brand {
    align-items: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .sidebar-brand .sidebar-logo-img {
    display: none !important;
  }

  .nav-item {
    justify-content: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 0 !important;
  }

  .nav-item svg {
    width: 20px;
    height: 20px;
  }

  .main-content {
    padding: 20px !important;
  }

  .fd-home-foundation-grid,
  .fd-home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-home-main-grid {
    grid-template-columns: 1fr;
  }

  .fd-pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-pipeline-grid article {
    border-bottom: 1px solid var(--fd-border);
  }

  .fd-pipeline-grid article:nth-child(2n) {
    border-right: 0;
  }

  .fd-pipeline-grid article:last-child {
    border-bottom: 0;
  }
}

/* Phone: no desktop sidebar, no shrunken desktop navigation. */
@media (max-width: 767px) {
  html,
  body {
    min-width: 0 !important;
    overflow-x: clip !important;
  }

  body {
    min-height: 100dvh;
  }

  .app-layout {
    display: block !important;
    height: 100dvh !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .sidebar {
    display: none !important;
  }

  .main-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    height: 100dvh;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .main-content {
    width: 100% !important;
    min-width: 0 !important;
    height: 100dvh;
    padding: 16px 16px calc(var(--fd-mobile-nav-height) + 24px + env(safe-area-inset-bottom)) !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .page-view {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--fd-mobile-nav-height) + env(safe-area-inset-bottom));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--fd-border);
    background: rgba(16,16,18,.97);
    backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fd-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item svg {
    flex: 0 0 auto;
  }

  .mobile-nav-item span {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-item.active {
    color: var(--fd-text);
  }

  .mobile-nav-item.active svg {
    color: var(--fd-red);
    filter: drop-shadow(0 0 7px rgb(227 38 54 / 60%));
  }

  .mobile-nav-item.active::after {
    content: "";
    position: absolute;
    top: 1px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--fd-red);
  }

  /* Foundation-level overflow defenses for legacy screens during migration. */
  .main-content * {
    min-width: 0;
  }

  .card,
  .glow-card,
  .settings-card,
  .admin-shell,
  .vault-layout,
  .playbook,
  .outreach-shell,
  .ocq-shell {
    max-width: 100% !important;
  }

  input,
  textarea,
  select {
    font-size: 16px !important; /* prevents iOS focus zoom */
  }

  .fd-home-foundation {
    padding-top: 2px;
  }

  .fd-home-header {
    display: block;
    padding: 10px 0 22px;
  }

  .fd-home-header h1 {
    font-size: 31px;
  }

  .fd-home-header p:not(.fd-eyebrow) {
    font-size: 14px;
    line-height: 1.55;
  }

  .fd-primary-action {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
  }

  .fd-home-foundation-grid,
  .fd-home-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fd-home-foundation-grid article,
  .fd-home-metric {
    min-height: 108px;
    padding: 16px;
  }

  .fd-home-setup,
  .fd-discovery-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .fd-home-setup .fd-secondary-action,
  .fd-discovery-empty .fd-secondary-action {
    width: 100%;
    min-height: 44px;
  }

  .fd-home-main-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .fd-home-next-actions,
  .fd-home-activity,
  .fd-home-pipeline,
  .fd-home-discovery {
    padding: 15px;
  }

  .fd-panel-heading {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .fd-panel-note {
    display: none;
  }

  .fd-action-row {
    align-items: flex-start;
    min-height: 0;
    padding: 12px;
  }

  .fd-action-link {
    min-height: 38px;
  }

  .fd-pipeline-grid {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .fd-pipeline-grid article,
  .fd-pipeline-grid article:nth-child(2n) {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--fd-border);
  }

  .fd-pipeline-grid article:last-child {
    border-bottom: 0;
  }

  
  #pageLeadFinder .conference-cluster {
    cursor: pointer;
  }

  #pageLeadFinder .conference-cluster .cluster-hit {
    fill: transparent;
    pointer-events: all;
  }

  #pageLeadFinder .conference-cluster .cluster-halo {
    stroke-width: 1 !important;
  }

  #pageLeadFinder .conference-cluster .cluster-core {
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.62));
  }

  #pageLeadFinder .conference-cluster .cluster-logo {
    pointer-events: none;
  }

/* Schools/map: constrain legacy map composition until Screen 4 rebuild. */
  #pageLeadFinder,
  #pageLeadFinder .lead-finder-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #pageLeadFinder .lead-finder-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  #pageLeadFinder .lead-finder-hero {
    width: 100% !important;
    padding: 4px 0 8px !important;
  }

  #pageLeadFinder .hero-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #pageLeadFinder .hero-search-icon {
    position: absolute !important;
    left: 16px !important;
    top: 17px !important;
    z-index: 2;
    margin: 0 !important;
  }

  #pageLeadFinder .hero-search-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    padding: 0 16px 0 44px !important;
    border: 1px solid var(--fd-border) !important;
    border-radius: 12px !important;
    background: var(--fd-card) !important;
    color: var(--fd-text) !important;
  }

  #pageLeadFinder .hero-add-btn {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    letter-spacing: .04em !important;
    transform: none !important;
  }

  #pageLeadFinder .hero-add-btn:hover,
  #pageLeadFinder .hero-add-btn:active {
    transform: none !important;
  }

  #pageLeadFinder .network-controls {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  #pageLeadFinder .division-rail,
  #pageLeadFinder .conference-rail {
    max-width: 100% !important;
  }

  #pageLeadFinder .division-rail {
    gap: 4px !important;
    padding: 4px !important;
  }

  #pageLeadFinder .division-tab {
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  #pageLeadFinder .conference-rail {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 2px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  #pageLeadFinder .conference-rail::-webkit-scrollbar {
    display: none;
  }

  #pageLeadFinder .conference-pill {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
  }

  #pageLeadFinder .network-stage {
    width: 100% !important;
    max-width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #pageLeadFinder .us-map {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  #pageLeadFinder .school-queue-section,
  #pageLeadFinder .options-group,
  #pageLeadFinder .bulk-search-details,
  #pageLeadFinder #runButton {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Profile/settings must stack cleanly while its dedicated redesign is pending. */
  #pageSettings .settings-row {
    align-items: flex-start;
    gap: 12px;
  }

  #pageSettings .settings-info {
    min-width: 0;
  }

  #pageSettings .settings-row-actions {
    flex: 0 0 auto;
  }

  /* Admin is intentionally not a primary phone destination, but must not break. */
  #pageAdmin .admin-topbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #pageAdmin .admin-tab-bar,
  #pageAdmin .admin-period-bar {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 479px) {
  .main-content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .user-email {
    max-width: 128px !important;
  }

  .fd-home-header h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-item,
  .mobile-nav-item,
  .fd-primary-action {
    transition: none !important;
  }
}


/* Gmail connection controls */
.fd-connection-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.fd-status-pill.is-connected {
  border-color:rgba(74,222,128,.3);
  color:#4ade80 !important;
}
@media (max-width: 767px) {
  .fd-connection-list article {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .fd-connection-actions {
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    width:calc(100% - 52px);
    margin-left:52px;
    gap:8px;
  }
  .fd-connection-actions .fd-status-pill {
    align-self:center;
    margin-left:0;
  }
  .fd-connection-actions .fd-secondary-action {
    width:100%;
    min-width:0;
  }
}


/* Outreach follow-up reminders */
.fd-followup-list {
  display:grid;
  gap:10px;
}
.fd-followup-section-label {
  margin:8px 2px 2px;
  color:var(--fd-muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.fd-followup-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-elevated);
}
.fd-followup-card.is-due {
  border-color:rgba(227,38,54,.22);
  background:linear-gradient(90deg,rgba(227,38,54,.045),var(--fd-elevated) 38%);
}
.fd-followup-main {
  display:flex;
  align-items:center;
  min-width:0;
  gap:12px;
}
.fd-followup-avatar {
  display:grid;
  width:38px;
  height:38px;
  flex:0 0 auto;
  place-items:center;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:#111113;
  color:var(--fd-text);
  font-size:13px;
  font-weight:800;
}
.fd-followup-copy {
  min-width:0;
}
.fd-followup-topline {
  display:flex;
  align-items:baseline;
  min-width:0;
  gap:7px;
}
.fd-followup-topline strong {
  color:var(--fd-text);
  font-size:13px;
}
.fd-followup-topline span {
  overflow:hidden;
  color:var(--fd-secondary);
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-followup-copy small {
  display:block;
  margin-top:3px;
  color:var(--fd-muted);
  font-size:10px;
}
.fd-followup-date {
  display:inline-flex;
  margin-top:7px;
  padding:4px 7px;
  border:1px solid var(--fd-border);
  border-radius:999px;
  color:var(--fd-secondary);
  font-size:9px;
  font-weight:800;
}
.fd-followup-date.is-due {
  border-color:rgba(227,38,54,.25);
  background:rgba(227,38,54,.07);
  color:#ff7f8a;
}
.fd-followup-actions {
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:7px;
}
.fd-followup-actions .fd-primary-action,
.fd-followup-actions .fd-secondary-action {
  min-height:38px;
  padding:0 11px;
  font-size:10px;
}
.fd-followup-dismiss {
  min-height:38px;
  padding:0 8px;
  border:0;
  background:transparent;
  color:var(--fd-muted);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.fd-followup-dismiss:hover {
  color:var(--fd-text);
}
@media (max-width:767px) {
  .fd-followup-card {
    display:block;
    padding:13px;
  }
  .fd-followup-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    margin-top:13px;
  }
  .fd-followup-actions .fd-primary-action,
  .fd-followup-actions .fd-secondary-action {
    width:100%;
    min-height:44px;
  }
  .fd-followup-dismiss {
    grid-column:1 / -1;
    min-height:40px;
  }
}


/* ── V2 Schools / Coaches spec alignment ─────────────────────────────────── */
.fd-schools-mode-tabs {
  gap:22px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.fd-schools-mode {
  position:relative;
  min-height:44px;
  padding:0 1px;
  border-radius:0;
  color:var(--fd-muted);
  transition:color 150ms ease;
}
.fd-schools-mode::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:transparent;
  transition:background 150ms ease;
}
.fd-schools-mode:hover { color:var(--fd-text); }
.fd-schools-mode.active {
  color:var(--fd-text);
  background:transparent;
  box-shadow:none;
}
.fd-schools-mode.active::after { background:var(--fd-red); }

.fd-coaches-browser {
  padding:0;
  border:0;
  background:transparent;
}
.fd-coaches-toolbar {
  display:grid;
  grid-template-columns:minmax(300px,1fr) repeat(4,minmax(132px,auto));
  gap:8px;
  padding:14px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}
.fd-coaches-toolbar .fd-coach-search {
  max-width:none;
}
.fd-coaches-toolbar .fd-browser-select {
  width:100%;
  min-width:0;
}
.fd-coach-browser-results {
  overflow:hidden;
  gap:0;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}
.fd-coach-browser-head,
.fd-coach-browser-row {
  grid-template-columns:minmax(170px,1.15fr) minmax(210px,1.35fr) minmax(180px,1fr) minmax(190px,1.15fr) 92px;
}
.fd-coach-browser-head {
  display:grid;
  align-items:center;
  gap:14px;
  min-height:42px;
  padding:0 16px;
  border-bottom:1px solid var(--fd-border);
  background:#111113;
}
.fd-coach-browser-head span {
  color:var(--fd-muted);
  font-size:9px;
  font-weight:750;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.fd-coach-browser-row {
  display:grid;
  align-items:center;
  gap:14px;
  min-height:72px;
  padding:12px 16px;
  border:0;
  border-bottom:1px solid var(--fd-border);
  border-radius:0;
  background:transparent;
  transition:background 150ms ease;
}
.fd-coach-browser-row:last-child { border-bottom:0; }
.fd-coach-browser-row:hover { background:var(--fd-elevated); }
.fd-coach-cell { min-width:0; }
.fd-coach-cell strong {
  display:block;
  overflow:hidden;
  color:var(--fd-text);
  font-size:12px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-coach-name-button {
  font-size:13px;
  line-height:1.35;
}
.fd-coach-school-button {
  display:flex;
  width:100%;
  min-width:0;
  align-items:center;
  gap:10px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.fd-coach-school-button:hover strong { color:var(--fd-red); }
.fd-coach-school-button > span { min-width:0; }
.fd-coach-school-button small {
  display:block;
  margin-top:3px;
  overflow:hidden;
  color:var(--fd-muted);
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-coach-school-button img,
.fd-coach-school-button .school-logo,
.fd-coach-school-button .school-logo-fallback {
  width:32px !important;
  height:32px !important;
  flex:0 0 32px;
  object-fit:contain;
}
.fd-coach-cell--contact .fd-contact-methods {
  flex-wrap:wrap;
}
.fd-coach-cell--action {
  display:flex;
  justify-content:flex-end;
}
.fd-coach-cell--action .fd-list-action {
  min-width:76px;
  min-height:36px;
}
.fd-contact-chip {
  min-height:30px;
  padding:0 9px;
  border-radius:7px;
  font-size:9px !important;
  font-weight:700;
}
.fd-contact-chip.is-email {
  background:transparent;
}
.fd-coach-loading {
  display:grid;
}
.fd-coach-row-skeleton {
  height:72px;
  border-bottom:1px solid var(--fd-border);
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent),
    var(--fd-card);
  background-size:220% 100%;
  animation:fdCoachSkeleton 1.35s ease-in-out infinite;
}
.fd-coach-row-skeleton:last-child { border-bottom:0; }
@keyframes fdCoachSkeleton {
  from { background-position:200% 0; }
  to { background-position:-20% 0; }
}

/* V2 uses underline sub-navigation instead of filled pills. */
.fd-detail-tabs,
.fd-profile-tabs,
.fd-outreach-tabs {
  gap:22px;
  padding:0;
  border:0;
  border-bottom:1px solid var(--fd-border);
  border-radius:0;
  background:transparent;
  backdrop-filter:none;
}
.fd-detail-tabs button,
.fd-profile-tab,
.fd-outreach-tabs button {
  position:relative;
  min-height:44px;
  padding:0 1px;
  border-radius:0;
  background:transparent !important;
  box-shadow:none !important;
}
.fd-detail-tabs button::after,
.fd-profile-tab::after,
.fd-outreach-tabs button::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:transparent;
}
.fd-detail-tabs button.active::after,
.fd-profile-tab.active::after,
.fd-outreach-tabs button.active::after {
  background:var(--fd-red);
}
.fd-detail-tabs button.active,
.fd-profile-tab.active,
.fd-outreach-tabs button.active {
  color:var(--fd-text) !important;
}

@media (max-width:1100px) {
  .fd-coaches-toolbar {
    grid-template-columns:minmax(260px,1fr) repeat(2,minmax(140px,1fr));
  }
  .fd-coach-search { grid-column:1 / -1; }
  .fd-coach-browser-head,
  .fd-coach-browser-row {
    grid-template-columns:minmax(150px,1fr) minmax(190px,1.25fr) minmax(160px,1fr) minmax(160px,1fr) 82px;
  }
}

@media (max-width:767px) {
  .fd-schools-mode-tabs {
    width:auto;
    gap:20px;
    margin-top:14px;
    border-bottom:1px solid var(--fd-border);
  }
  .fd-schools-mode {
    flex:0 0 auto;
    min-height:44px;
  }
  .fd-coaches-toolbar {
    display:flex;
    margin:0 -2px;
    padding:0 2px 12px;
    overflow-x:auto;
    gap:8px;
    border:0;
    border-radius:0;
    background:transparent;
    scrollbar-width:none;
  }
  .fd-coaches-toolbar::-webkit-scrollbar { display:none; }
  .fd-coaches-toolbar .fd-coach-search {
    position:sticky;
    left:0;
    z-index:2;
    flex:0 0 calc(100vw - 64px);
    min-width:260px;
    background:var(--fd-elevated);
  }
  .fd-coaches-toolbar .fd-browser-select {
    flex:0 0 auto;
    width:auto;
    min-width:140px;
    padding-right:34px;
  }
  .fd-coach-browser-results {
    border:0;
    border-radius:0;
    background:transparent;
    overflow:visible;
  }
  .fd-coach-browser-head { display:none; }
  .fd-coach-browser-row {
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px 12px;
    margin-bottom:8px;
    padding:14px;
    border:1px solid var(--fd-border);
    border-radius:10px;
    background:var(--fd-card);
  }
  .fd-coach-cell--identity,
  .fd-coach-cell--school,
  .fd-coach-cell--role,
  .fd-coach-cell--contact {
    grid-column:1 / -1;
  }
  .fd-coach-cell--identity { grid-row:1; padding-right:90px; }
  .fd-coach-cell--role { grid-row:2; }
  .fd-coach-cell--role strong {
    color:var(--fd-secondary);
    font-size:11px;
    font-weight:600;
    white-space:normal;
  }
  .fd-coach-cell--school { grid-row:3; }
  .fd-coach-cell--contact { grid-row:4; }
  .fd-coach-cell--action {
    position:absolute;
    right:14px;
    margin-top:0;
  }
  .fd-coach-browser-row { position:relative; }
  .fd-coach-cell--action .fd-list-action {
    min-width:74px;
    min-height:40px;
  }
  .fd-contact-methods { gap:7px; }
  .fd-contact-chip { min-height:36px; }
  .fd-coach-row-skeleton {
    height:148px;
    margin-bottom:8px;
    border:1px solid var(--fd-border);
    border-radius:10px;
  }
  .fd-detail-tabs,
  .fd-profile-tabs,
  .fd-outreach-tabs {
    display:flex;
    width:100%;
    gap:20px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .fd-detail-tabs::-webkit-scrollbar,
  .fd-profile-tabs::-webkit-scrollbar,
  .fd-outreach-tabs::-webkit-scrollbar { display:none; }
  .fd-profile-tab {
    width:auto;
    flex:0 0 auto;
    padding:0 1px;
  }
}


/* School Detail coach controls from Screen 5 */
.fd-detail-coach-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 0 14px;
  border-bottom:1px solid var(--fd-border);
}
.fd-detail-coach-summary > div {
  min-width:0;
}
.fd-detail-coach-summary strong,
.fd-detail-coach-summary span {
  display:block;
}
.fd-detail-coach-summary strong {
  color:var(--fd-text);
  font-size:13px;
}
.fd-detail-coach-summary span {
  margin-top:4px;
  color:var(--fd-muted);
  font-size:10px;
}
.fd-detail-coach-tools {
  display:grid;
  grid-template-columns:minmax(240px,1fr) 190px;
  gap:8px;
}
.fd-detail-coach-tools .fd-list-search {
  max-width:none;
}
.fd-detail-coach-visible-count {
  margin-top:-5px;
  color:var(--fd-muted);
  font-size:9px;
  text-align:right;
}
.fd-detail-coach-identity small {
  color:var(--fd-gold);
  font-weight:650;
}
.fd-detail-coach-email span {
  color:var(--fd-secondary);
}
@media (max-width:767px) {
  .fd-detail-coach-summary {
    align-items:stretch;
    flex-direction:column;
  }
  .fd-detail-coach-summary .fd-add-recommended {
    width:100%;
    min-height:44px;
  }
  .fd-detail-coach-tools {
    grid-template-columns:1fr;
  }
  .fd-detail-coach-visible-count {
    text-align:left;
  }
}


/* Screen 5 hero: school identity and Formula Fit live on the imagery. */
.fd-detail-media-shade {
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(to top,rgba(8,8,10,.92) 0%,rgba(8,8,10,.48) 38%,rgba(8,8,10,.08) 72%,rgba(8,8,10,.02) 100%);
}
.fd-detail-hero-overlay {
  position:absolute;
  left:20px;
  right:20px;
  bottom:18px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  z-index:2;
}
.fd-detail-hero-overlay .fd-detail-logo {
  border-color:rgba(255,255,255,.18);
  background:rgba(11,11,13,.72);
  backdrop-filter:blur(10px);
}
.fd-detail-hero-overlay .fd-detail-meta {
  color:#d7d7dc;
}
.fd-detail-hero-overlay .fd-detail-identity h1 {
  color:#fff;
  text-shadow:0 1px 12px rgba(0,0,0,.45);
}
.fd-detail-hero-overlay .fd-detail-identity p {
  color:#d7d7dc;
}
.fd-detail-hero-fit {
  flex:0 0 auto;
  min-width:128px;
  text-align:right;
}
.fd-detail-hero-fit span,
.fd-detail-hero-fit small {
  display:block;
}
.fd-detail-hero-fit span {
  color:#d7d7dc;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
}
.fd-detail-hero-fit strong {
  display:block;
  margin:5px 0 4px;
  color:var(--fd-gold);
  font-size:34px;
  line-height:1;
}
.fd-detail-hero-fit small {
  max-width:220px;
  color:#d7d7dc;
  font-size:9px;
  line-height:1.35;
}
.fd-detail-hero-body {
  min-height:66px;
  padding:11px 16px;
}
.fd-detail-status-link {
  min-height:36px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--fd-secondary);
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.fd-detail-status-link:hover { color:var(--fd-text); }
.fd-detail-layout {
  grid-template-columns:minmax(0,1fr);
}
.fd-detail-side { display:none; }

@media (max-width:767px) {
  .fd-detail-media {
    height:210px;
  }
  .fd-detail-hero-overlay {
    left:12px;
    right:12px;
    bottom:12px;
    align-items:flex-end;
    gap:10px;
  }
  .fd-detail-hero-overlay .fd-detail-logo {
    width:48px;
    height:48px;
  }
  .fd-detail-hero-overlay .fd-detail-identity {
    gap:10px;
    min-width:0;
  }
  .fd-detail-hero-overlay .fd-detail-identity h1 {
    max-width:210px;
    overflow:hidden;
    font-size:20px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .fd-detail-hero-overlay .fd-detail-identity p {
    max-width:200px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .fd-detail-hero-fit {
    min-width:72px;
  }
  .fd-detail-hero-fit strong {
    font-size:27px;
  }
  .fd-detail-hero-fit small {
    display:none;
  }
  .fd-detail-hero-body {
    gap:10px;
    padding:12px;
  }
  .fd-detail-status-link {
    width:100%;
    text-align:left;
  }
  .fd-detail-actions {
    width:100%;
    display:grid;
    grid-template-columns:1fr;
  }
  .fd-detail-actions #schoolDetailCoaches {
    order:-1;
  }
}


/* Coach filter strip: full search + independent responsive filters */
.fd-coaches-toolbar {
  grid-template-columns:minmax(300px,1fr) minmax(0,auto);
  align-items:center;
}
.fd-coach-filter-strip {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.fd-coach-filter-strip .fd-browser-select {
  width:auto;
  min-width:138px;
}
@media (max-width:1100px) {
  .fd-coaches-toolbar {
    grid-template-columns:1fr;
  }
  .fd-coach-filter-strip {
    width:100%;
  }
  .fd-coach-filter-strip .fd-browser-select {
    flex:1 1 0;
  }
}
@media (max-width:767px) {
  .fd-coaches-toolbar {
    display:block;
    margin:0;
    padding:0 0 12px;
    overflow:visible;
  }
  .fd-coaches-toolbar .fd-coach-search {
    position:relative;
    left:auto;
    width:100%;
    min-width:0;
    max-width:none;
    margin-bottom:9px;
  }
  .fd-coach-filter-strip {
    display:flex;
    width:100%;
    overflow-x:auto;
    gap:8px;
    padding:0 0 3px;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }
  .fd-coach-filter-strip::-webkit-scrollbar { display:none; }
  .fd-coach-filter-strip .fd-browser-select {
    flex:0 0 auto;
    width:auto;
    min-width:138px;
  }
}


/* Reusable restrained confirmation dialog */
.fd-confirm-overlay {
  position:fixed;
  inset:0;
  z-index:220;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.64);
  backdrop-filter:blur(5px);
}
.fd-confirm-modal {
  width:min(420px,100%);
  padding:22px;
  border:1px solid var(--fd-border);
  border-radius:12px;
  background:var(--fd-elevated);
  box-shadow:0 20px 70px rgba(0,0,0,.42);
}
.fd-confirm-modal h3 {
  margin:0;
  color:var(--fd-text);
  font-size:18px;
}
.fd-confirm-modal p {
  margin:9px 0 20px;
  color:var(--fd-secondary);
  font-size:12px;
  line-height:1.55;
}
.fd-confirm-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.fd-danger-action {
  min-height:40px;
  padding:0 15px;
  border:1px solid rgba(227,38,54,.58);
  border-radius:8px;
  background:rgba(227,38,54,.12);
  color:#fff;
  font:700 11px/1 "Outfit",sans-serif;
  cursor:pointer;
  transition:background 150ms ease,border-color 150ms ease;
}
.fd-danger-action:hover {
  border-color:var(--fd-red);
  background:rgba(227,38,54,.2);
}
@media (max-width:767px) {
  .fd-confirm-overlay {
    align-items:end;
    padding:12px 12px calc(82px + env(safe-area-inset-bottom));
  }
  .fd-confirm-modal {
    width:100%;
  }
  .fd-confirm-actions > * {
    flex:1;
  }
}


/* ── Screen 4 Programs discovery ─────────────────────────────────────────── */
.fd-program-discovery-toolbar {
  display:grid;
  grid-template-columns:minmax(300px,360px) minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin-top:14px;
}
.fd-program-search {
  max-width:none;
  width:100%;
}
.fd-program-filter-strip {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.fd-program-filter-strip .fd-browser-select {
  flex:0 0 auto;
  min-width:132px;
}
.fd-filter-button {
  text-align:left;
  color:var(--fd-muted);
}
.fd-filter-button[aria-disabled="true"] {
  opacity:.48;
  cursor:not-allowed;
}
.fd-program-filter-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:32px;
  margin-top:5px;
  color:var(--fd-muted);
  font-size:10px;
}
#pageLeadFinder [data-program-panel="map"].lead-finder-grid {
  display:grid;
  grid-template-columns:minmax(0,72fr) minmax(270px,28fr);
  grid-template-rows:minmax(600px,calc(100vh - 230px));
  gap:16px;
  width:100%;
  max-width:none;
  min-height:600px;
  margin:0;
}
#pageLeadFinder .fd-legacy-school-search {
  display:none !important;
}
#pageLeadFinder [data-program-panel="map"] .network-stage {
  grid-column:1;
  grid-row:1;
  width:100%;
  height:100%;
  min-height:600px;
  overflow:hidden;
  border:1px solid var(--fd-border);
  border-radius:12px;
  background:#0d0d0f;
}
#pageLeadFinder [data-program-panel="map"] .us-map {
  width:100%;
  height:100%;
  transform:none;
}
.fd-map-results-panel {
  grid-column:2;
  grid-row:1;
  display:flex;
  min-width:0;
  min-height:0;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--fd-border);
  border-radius:12px;
  background:var(--fd-card);
}
.fd-map-results-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:13px 13px 11px;
  border-bottom:1px solid var(--fd-border);
}
.fd-map-results-head > div {
  min-width:0;
}
.fd-map-results-head strong,
.fd-map-results-head span {
  display:block;
}
.fd-map-results-head strong {
  color:var(--fd-text);
  font-size:13px;
}
.fd-map-results-head span {
  margin-top:3px;
  color:var(--fd-muted);
  font-size:9px;
}
.fd-map-results-head .fd-browser-select {
  width:auto;
  min-width:126px;
}
.fd-map-result-list {
  min-height:0;
  flex:1;
  overflow-y:auto;
  padding:8px;
  overscroll-behavior:contain;
}
.fd-map-result-card {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:88px;
  margin:0 0 6px;
  padding:10px;
  border:1px solid transparent;
  border-radius:9px;
  background:#121215;
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:background 150ms ease,border-color 150ms ease;
}
.fd-map-result-card:not(:has(.fd-map-result-fit)) {
  grid-template-columns:40px minmax(0,1fr);
}
.fd-map-result-card:hover,
.fd-map-result-card.is-selected {
  background:var(--fd-elevated);
  border-color:rgba(227,38,54,.48);
}
.fd-map-result-logo {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
}
.fd-map-result-logo img,
.fd-map-result-logo .school-logo,
.fd-map-result-logo .school-logo-fallback {
  width:38px !important;
  height:38px !important;
  object-fit:contain;
}
.fd-map-result-copy {
  min-width:0;
}
.fd-map-result-copy strong,
.fd-map-result-copy span,
.fd-map-result-copy small {
  display:block;
}
.fd-map-result-copy strong {
  overflow:hidden;
  color:var(--fd-text);
  font-size:11px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-map-result-copy span {
  margin-top:3px;
  color:var(--fd-secondary);
  font-size:9px;
}
.fd-map-result-copy small {
  margin-top:5px;
  color:var(--fd-muted);
  font-size:8px;
}
.fd-map-result-fit {
  min-width:44px;
  text-align:right;
}
.fd-map-result-fit strong,
.fd-map-result-fit span {
  display:block;
}
.fd-map-result-fit strong {
  color:var(--fd-gold);
  font-size:17px;
}
.fd-map-result-fit span {
  margin-top:2px;
  color:var(--fd-muted);
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.fd-program-list .fd-browser-filter-row {
  display:none;
}

@media (max-width:1100px) {
  .fd-program-discovery-toolbar {
    grid-template-columns:1fr;
  }
  .fd-program-filter-strip {
    width:100%;
  }
  .fd-program-filter-strip .fd-browser-select {
    flex:1 1 0;
  }
  #pageLeadFinder [data-program-panel="map"].lead-finder-grid {
    grid-template-columns:minmax(0,67fr) minmax(250px,33fr);
  }
}
@media (max-width:767px) {
  .fd-program-discovery-toolbar {
    display:block;
    margin-top:10px;
  }
  .fd-program-search {
    width:100%;
    margin-bottom:9px;
  }
  .fd-program-filter-strip {
    width:100%;
    overflow-x:auto;
    padding-bottom:3px;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }
  .fd-program-filter-strip::-webkit-scrollbar { display:none; }
  .fd-program-filter-strip .fd-browser-select {
    flex:0 0 auto;
    width:auto;
    min-width:132px;
  }
  #pageLeadFinder [data-program-panel="map"].lead-finder-grid {
    display:flex;
    min-height:0;
    flex-direction:column;
    gap:12px;
  }
  #pageLeadFinder [data-program-panel="map"] .network-stage {
    order:1;
    width:100%;
    height:58vh;
    min-height:380px;
    max-height:560px;
  }
  .fd-map-results-panel {
    order:2;
    width:100%;
    max-height:none;
    overflow:visible;
  }
  .fd-map-result-list {
    max-height:none;
    overflow:visible;
    padding:8px 0 0;
  }
  .fd-map-results-head {
    padding:12px 0;
    border-top:1px solid var(--fd-border);
    border-bottom:0;
    background:transparent;
  }
  .fd-map-result-card {
    min-height:92px;
    border-color:var(--fd-border);
    background:var(--fd-card);
  }
}


.fd-map-view-school {
  display:inline-flex;
  margin-top:7px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--fd-red);
  font:700 9px/1 "Outfit",sans-serif;
  cursor:pointer;
}
.fd-map-view-school:hover { color:#ff5260; }
.map-node.is-result-hover .school-logo-frame,
.map-node.is-result-hover .school-point {
  stroke:var(--fd-red) !important;
  filter:drop-shadow(0 0 8px rgba(227,38,54,.62));
}
.map-node.is-result-hover .school-logo-aura {
  fill:rgba(227,38,54,.24);
  filter:blur(1px) drop-shadow(0 0 6px rgba(227,38,54,.55));
  animation:fd-program-hover-pulse 1.5s ease-in-out infinite;
}
@keyframes fd-program-hover-pulse {
  0%,100% { opacity:.25; }
  50% { opacity:.9; }
}
@media (prefers-reduced-motion:reduce) {
  .map-node.is-result-hover .school-logo-aura {
    animation:none;
    opacity:.65;
  }
}


/* Screen 4 school preview: one controlled image, then campus→stadium crossfade. */
.school-map-snapshot .snapshot-gallery {
  height:150px;
  margin-bottom:10px;
}
.school-map-snapshot .snapshot-photo {
  position:relative;
  width:100%;
  height:100%;
}
.school-map-snapshot .snapshot-photo img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:none;
}
.school-map-snapshot .snapshot-photo img.is-active {
  opacity:1;
}
.school-map-snapshot .snapshot-close-sheet {
  display:none;
}

@media (max-width:767px) {
  body > .map-tooltip.school-map-snapshot[data-kind="school"] {
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    bottom:calc(76px + env(safe-area-inset-bottom) + var(--snapshot-controls-offset,0px)) !important;
    top:auto !important;
    width:auto !important;
    max-width:none !important;
    max-height:min(560px,calc(100dvh - 108px - env(safe-area-inset-bottom) - var(--snapshot-controls-offset,0px)));
    margin:0;
    border-radius:18px !important;
    padding:12px !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    box-shadow:0 -14px 50px rgba(0,0,0,.55),0 1px 0 rgba(255,255,255,.06) inset;
  }
  body > .school-map-snapshot[data-kind="school"] {
    display:grid;
    grid-template-columns:32px minmax(0,1fr) 94px 44px;
    align-items:center;
    gap:8px;
  }
  .school-map-snapshot .map-tooltip-heading { display:contents; }
  .school-map-snapshot .map-tooltip-logo {
    width:32px;
    height:32px;
    border-radius:9px;
  }
  .school-map-snapshot .map-tooltip-logo img { width:26px;height:26px; }
  .school-map-snapshot .snapshot-title { grid-column:2;grid-row:1; }
  .school-map-snapshot .snapshot-title strong { font-size:13px;overflow-wrap:anywhere; }
  .school-map-snapshot .school-snapshot-detail { display:none; }
  .school-map-snapshot .school-snapshot-actions {
    grid-column:3;
    grid-row:1;
    margin:0;
  }
  .school-map-snapshot .school-snapshot-actions button {
    min-height:44px;
    padding:6px;
    font-size:11px;
    touch-action:manipulation;
  }
  .school-map-snapshot .snapshot-close-sheet {
    grid-column:4;
    grid-row:1;
    width:44px;
    height:44px;
    margin:0;
    touch-action:manipulation;
  }
  .school-map-snapshot .snapshot-close-sheet {
    display:flex;
    border-color:rgba(255,255,255,.18);
    background:rgba(255,255,255,.07);
    color:#f5f5f6;
  }
}


/* ── Screen 6: Persistent Outreach Batch / Review & Send ─────────────────── */
.fd-review-page {
  width:min(1400px,100%);
  margin:0 auto;
  padding:28px 30px 96px;
}
.fd-review-loading {
  display:grid;
  grid-template-columns:320px 1fr;
  gap:18px;
  padding:28px 30px;
}
.fd-review-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}
.fd-review-header h1 {
  margin:0;
  color:var(--fd-text);
  font-size:28px;
  line-height:1.08;
}
.fd-review-header p {
  margin:7px 0 0;
  color:var(--fd-secondary);
  font-size:12px;
}
.fd-review-header-actions {
  display:flex;
  align-items:center;
  gap:14px;
  padding-top:4px;
}
.fd-review-header-actions > span {
  color:var(--fd-secondary);
  font-size:11px;
  font-weight:700;
}
.fd-danger-text {
  min-height:36px;
  padding:0;
  border:0;
  background:transparent;
  color:#d66a73;
  font:700 10px/1 "Outfit",sans-serif;
  cursor:pointer;
  transition:color 150ms ease;
}
.fd-danger-text:hover { color:#ff6d79; }
.fd-review-gmail {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:58px;
  margin-bottom:14px;
  padding:10px 13px;
  border:1px solid var(--fd-border);
  border-left:2px solid var(--fd-border);
  border-radius:9px;
  background:var(--fd-card);
}
.fd-review-gmail.is-connected { border-left-color:#4ca86c; }
.fd-review-gmail.is-disconnected { border-left-color:var(--fd-red); }
.fd-review-gmail strong,
.fd-review-gmail span { display:block; }
.fd-review-gmail strong {
  color:var(--fd-text);
  font-size:11px;
}
.fd-review-gmail span {
  margin-top:3px;
  color:var(--fd-muted);
  font-size:9px;
}
.fd-review-layout {
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:16px;
  min-height:620px;
  align-items:stretch;
}
.fd-review-rail,
.fd-review-editor {
  border:1px solid var(--fd-border);
  border-radius:11px;
  background:var(--fd-card);
}
.fd-review-rail {
  display:flex;
  min-width:0;
  max-height:calc(100vh - 210px);
  flex-direction:column;
  overflow:hidden;
}
.fd-review-rail-head {
  flex:0 0 auto;
  padding:14px;
  border-bottom:1px solid var(--fd-border);
}
.fd-review-rail-head > div:first-child {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.fd-review-rail-head strong {
  color:var(--fd-text);
  font-size:12px;
}
.fd-review-rail-head span,
.fd-review-rail-head small {
  color:var(--fd-muted);
  font-size:9px;
}
.fd-review-progress-copy {
  margin-top:11px;
  color:var(--fd-secondary);
  font-size:9px;
}
.fd-review-progress {
  height:3px;
  margin:7px 0 6px;
  overflow:hidden;
  border-radius:999px;
  background:#2a2a2f;
}
.fd-review-progress i {
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--fd-red);
  transition:width 250ms ease;
}
.fd-review-coach-list {
  min-height:0;
  flex:1;
  overflow-y:auto;
  padding:6px;
}
.fd-review-coach-row {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  width:100%;
  min-height:66px;
  margin:0 0 4px;
  padding:8px 9px;
  border:1px solid transparent;
  border-left:2px solid transparent;
  border-radius:8px;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:background 150ms ease,border-color 150ms ease;
}
.fd-review-coach-row:hover { background:var(--fd-elevated); }
.fd-review-coach-row.is-selected {
  border-color:rgba(227,38,54,.36);
  border-left-color:var(--fd-red);
  background:#1a1518;
}
.fd-review-school-logo {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
}
.fd-review-school-logo img,
.fd-review-school-logo .school-logo,
.fd-review-school-logo .school-logo-fallback {
  width:32px !important;
  height:32px !important;
  object-fit:contain;
}
.fd-review-coach-copy {
  min-width:0;
}
.fd-review-coach-copy strong,
.fd-review-coach-copy small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-review-coach-copy strong {
  color:var(--fd-text);
  font-size:11px;
}
.fd-review-coach-copy small {
  margin-top:4px;
  color:var(--fd-muted);
  font-size:8px;
}
.fd-review-status {
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 7px;
  border-radius:999px;
  font-size:8px;
  font-weight:800;
  white-space:nowrap;
}
.fd-review-status.is-review {
  border:1px solid rgba(212,175,55,.32);
  color:var(--fd-gold);
  background:rgba(212,175,55,.08);
}
.fd-review-status.is-approved {
  border:1px solid rgba(76,168,108,.28);
  color:#79c58f;
  background:rgba(76,168,108,.08);
}
.fd-review-status.is-missing {
  border:1px solid rgba(227,38,54,.28);
  color:#d66a73;
  background:rgba(227,38,54,.06);
}
.fd-review-status.is-contacted {
  border:1px solid var(--fd-border);
  color:var(--fd-muted);
  background:#141416;
}
.fd-review-editor {
  min-width:0;
  padding:18px;
}
.fd-review-editor-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--fd-border);
}
.fd-review-editor-head h2 {
  margin:4px 0 3px;
  color:var(--fd-text);
  font-size:20px;
}
.fd-review-editor-head p,
.fd-review-editor-head small {
  display:block;
  margin:0;
  color:var(--fd-secondary);
  font-size:10px;
}
.fd-review-editor-head small { margin-top:4px; color:var(--fd-muted); }
.fd-review-context {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:42px;
  padding:8px 0;
  color:var(--fd-muted);
  font-size:9px;
}
.fd-review-fit { color:var(--fd-gold); }
.fd-review-notice {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid var(--fd-border);
  border-left:2px solid var(--fd-gold);
  border-radius:8px;
  background:#171615;
}
.fd-review-notice strong {
  color:var(--fd-text);
  font-size:10px;
}
.fd-review-notice span {
  color:var(--fd-secondary);
  font-size:9px;
}
.fd-review-controls {
  display:grid;
  grid-template-columns:minmax(150px,190px) minmax(190px,240px) auto;
  align-items:end;
  gap:9px;
  margin:3px 0 13px;
}
.fd-review-controls label > span,
.fd-review-field > span {
  display:block;
  margin-bottom:6px;
  color:var(--fd-muted);
  font-size:9px;
  font-weight:700;
}
.fd-review-controls select,
.fd-review-field input,
.fd-review-field textarea {
  width:100%;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:#111113;
  color:var(--fd-text);
  font:500 11px/1.45 "Outfit",sans-serif;
  outline:none;
  transition:border-color 150ms ease,background 150ms ease;
}
.fd-review-controls select {
  height:40px;
  padding:0 10px;
}
.fd-review-controls select:disabled {
  color:var(--fd-secondary);
  opacity:1;
}
.fd-review-field {
  display:block;
  margin-bottom:12px;
}
.fd-review-field input {
  height:43px;
  padding:0 12px;
}
.fd-review-field textarea {
  min-height:350px;
  padding:13px;
  resize:vertical;
}
.fd-review-field input:focus,
.fd-review-field textarea:focus,
.fd-review-controls select:focus {
  border-color:rgba(227,38,54,.72);
}
.fd-review-mode {
  display:inline-flex;
  height:40px;
  padding:3px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:#111113;
}
.fd-review-mode button {
  min-width:64px;
  padding:0 10px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--fd-muted);
  font:700 9px/1 "Outfit",sans-serif;
  cursor:pointer;
}
.fd-review-mode button.active {
  background:var(--fd-elevated);
  color:var(--fd-text);
}
.fd-review-editor-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:-3px;
  color:var(--fd-muted);
  font-size:8px;
}
.fd-review-editor-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--fd-border);
}
.fd-approved-action {
  min-height:42px;
  padding:0 15px;
  border:1px solid rgba(76,168,108,.35);
  border-radius:8px;
  background:rgba(76,168,108,.10);
  color:#82cc98;
  font:750 10px/1 "Outfit",sans-serif;
}
.fd-review-blocked {
  display:grid;
  place-items:start;
  gap:8px;
  min-height:320px;
  margin-top:18px;
  padding:22px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:#111113;
  align-content:center;
}
.fd-review-blocked strong {
  color:var(--fd-text);
  font-size:16px;
}
.fd-review-blocked > span {
  max-width:560px;
  color:var(--fd-secondary);
  font-size:11px;
  line-height:1.55;
}
.fd-review-blocked-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:5px;
}
.fd-email-preview {
  min-height:430px;
  padding:18px;
  border:1px solid var(--fd-border);
  border-radius:9px;
  background:#111113;
}
.fd-email-preview dl {
  margin:0 0 18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--fd-border);
}
.fd-email-preview dl > div {
  display:grid;
  grid-template-columns:56px 1fr;
  gap:8px;
  margin:5px 0;
}
.fd-email-preview dt {
  color:var(--fd-muted);
  font-size:9px;
}
.fd-email-preview dd {
  margin:0;
  color:var(--fd-secondary);
  font-size:10px;
}
.fd-email-preview-body,
.fd-email-preview-signature {
  color:var(--fd-text);
  font-size:11px;
  line-height:1.65;
}
.fd-email-preview-signature {
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--fd-border);
  color:var(--fd-secondary);
}
.fd-review-empty {
  display:grid;
  min-height:420px;
  place-items:center;
  color:var(--fd-secondary);
}
.fd-review-footer {
  position:sticky;
  z-index:40;
  bottom:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:16px;
  min-height:68px;
  margin-top:14px;
  padding:10px 14px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:rgba(21,21,24,.96);
  backdrop-filter:blur(12px);
}
.fd-review-footer > div:first-child strong,
.fd-review-footer > div:first-child span {
  display:block;
}
.fd-review-footer > div:first-child strong {
  color:var(--fd-text);
  font-size:10px;
}
.fd-review-footer > div:first-child span {
  margin-top:3px;
  color:var(--fd-muted);
  font-size:8px;
}
.fd-review-footer-status {
  color:#79c58f;
  font-size:9px;
  font-weight:700;
}
.fd-review-footer .fd-primary-action:disabled {
  border-color:var(--fd-border);
  background:#242428;
  color:#73737b;
  cursor:not-allowed;
}
.fd-review-mobile-selector { display:none; }

@media (max-width:980px) {
  .fd-review-page { padding:22px 22px 92px; }
  .fd-review-layout { grid-template-columns:260px minmax(0,1fr); }
  .fd-review-controls { grid-template-columns:1fr 1fr; }
  .fd-review-mode { grid-column:1/-1; justify-self:start; }
}
@media (max-width:767px) {
  .fd-review-page {
    padding:16px 14px calc(156px + env(safe-area-inset-bottom));
  }
  .fd-review-header {
    display:block;
    margin-bottom:12px;
  }
  .fd-review-header h1 { font-size:24px; }
  .fd-review-header-actions {
    justify-content:space-between;
    margin-top:12px;
    padding:0;
  }
  .fd-review-gmail {
    align-items:flex-start;
    flex-direction:column;
  }
  .fd-review-gmail .fd-primary-action {
    width:100%;
  }
  .fd-review-layout {
    display:block;
    min-height:0;
  }
  .fd-review-rail {
    max-height:none;
    margin-bottom:10px;
    border:0;
    background:transparent;
  }
  .fd-review-rail-head {
    padding:10px 0;
    border:0;
  }
  .fd-review-coach-list {
    display:flex;
    gap:7px;
    overflow-x:auto;
    padding:0 0 5px;
    scrollbar-width:none;
  }
  .fd-review-coach-list::-webkit-scrollbar { display:none; }
  .fd-review-coach-row {
    flex:0 0 252px;
    min-height:62px;
    margin:0;
    border-color:var(--fd-border);
    background:var(--fd-card);
  }
  .fd-review-editor {
    padding:14px;
  }
  .fd-review-editor-head {
    align-items:flex-start;
  }
  .fd-review-editor-head h2 { font-size:18px; }
  .fd-review-controls {
    grid-template-columns:1fr;
  }
  .fd-review-mode {
    grid-column:auto;
    width:max-content;
  }
  .fd-review-field textarea {
    min-height:290px;
  }
  .fd-review-footer {
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(66px + env(safe-area-inset-bottom));
    grid-template-columns:1fr auto;
    gap:8px;
    min-height:76px;
    margin:0;
    border-radius:12px;
    box-shadow:0 12px 40px rgba(0,0,0,.46);
  }
  .fd-review-footer-status { display:none; }
  .fd-review-footer .fd-primary-action {
    min-width:132px;
  }
  .fd-review-editor-footer {
    padding-bottom:4px;
  }
  .fd-email-preview { min-height:330px; }
}
@media (max-width:430px) {
  .fd-review-coach-row { flex-basis:232px; }
  .fd-review-footer {
    grid-template-columns:1fr;
    padding:10px;
  }
  .fd-review-footer > div:first-child span { display:none; }
  .fd-review-footer .fd-primary-action {
    width:100%;
  }
}


/* ── Screen 7 Outreach command center ─────────────────────────────────────── */
.fd-outreach-summary-compact {
  margin-top:10px;
  border:1px solid var(--fd-border);
  border-radius:10px;
  overflow:hidden;
  background:var(--fd-card);
}
.fd-outreach-summary-compact article {
  min-height:70px;
  padding:13px 15px;
  border:0;
  border-right:1px solid var(--fd-border);
  border-radius:0;
  background:transparent;
}
.fd-outreach-summary-compact article:last-child { border-right:0; }
.fd-outreach-summary-compact article span {
  color:var(--fd-muted) !important;
  font-size:9px;
  font-weight:750;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.fd-outreach-summary-compact article strong {
  margin:8px 0 0;
  font-size:22px;
}
.fd-tab-count {
  display:inline-flex;
  min-width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
  margin-left:4px;
  padding:0 5px;
  border-radius:999px;
  background:var(--fd-elevated);
  color:var(--fd-secondary);
  font-size:9px;
  line-height:18px;
}
.fd-outreach-tabs button.active .fd-tab-count {
  color:var(--fd-text);
}
.fd-outreach-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.fd-outreach-toolbar .fd-list-search {
  width:min(320px,100%);
  max-width:none;
}
.fd-outreach-toolbar-actions {
  display:flex;
  align-items:center;
  gap:8px;
}
.fd-outreach-toolbar-actions .fd-browser-select {
  width:auto;
  min-width:142px;
}
.fd-outreach-inline-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
  padding:13px 14px;
  border:1px solid var(--fd-border);
  border-left:2px solid var(--fd-gold);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-outreach-inline-banner strong,
.fd-outreach-inline-banner span {
  display:block;
}
.fd-outreach-inline-banner strong {
  color:var(--fd-text);
  font-size:11px;
}
.fd-outreach-inline-banner span {
  margin-top:3px;
  color:var(--fd-muted);
  font-size:9px;
}
.fd-outreach-table {
  overflow:hidden;
  border:1px solid var(--fd-border);
  border-radius:10px;
  background:var(--fd-card);
}
.fd-outreach-table-head,
.fd-outreach-table-row {
  display:grid;
  align-items:center;
  gap:14px;
}
.fd-outreach-queue-table .fd-outreach-table-head,
.fd-outreach-queue-table .fd-outreach-table-row {
  grid-template-columns:minmax(150px,1.1fr) minmax(180px,1.2fr) minmax(120px,.8fr) minmax(130px,.9fr) minmax(100px,.65fr) 42px;
}
.fd-outreach-sent-table .fd-outreach-table-head,
.fd-outreach-sent-table .fd-outreach-table-row {
  grid-template-columns:minmax(150px,1.05fr) minmax(180px,1.15fr) minmax(95px,.65fr) minmax(150px,1fr) minmax(130px,.85fr) minmax(100px,.7fr);
}
.fd-outreach-table-head {
  min-height:40px;
  padding:0 14px;
  border-bottom:1px solid var(--fd-border);
  background:#111113;
}
.fd-outreach-table-head span {
  color:var(--fd-muted);
  font-size:8px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.fd-outreach-table-row {
  min-height:70px;
  padding:11px 14px;
  border-bottom:1px solid var(--fd-border);
  transition:background 140ms ease;
}
.fd-outreach-table-row:last-child { border-bottom:0; }
.fd-outreach-table-row:hover { background:var(--fd-elevated); }
.fd-outreach-table-row.is-clickable { cursor:pointer; }
.fd-outreach-cell {
  min-width:0;
}
.fd-outreach-cell strong,
.fd-outreach-cell small {
  display:block;
}
.fd-outreach-cell strong {
  overflow:hidden;
  color:var(--fd-text);
  font-size:11px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-outreach-cell small {
  margin-top:3px;
  overflow:hidden;
  color:var(--fd-muted);
  font-size:9px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-outreach-school-cell {
  display:flex;
  min-width:0;
  align-items:center;
  gap:9px;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.fd-outreach-school-cell:hover strong { color:var(--fd-red); }
.fd-outreach-school-cell > span { min-width:0; }
.fd-outreach-school-cell strong,
.fd-outreach-school-cell small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.fd-outreach-school-cell strong {
  color:var(--fd-text);
  font-size:11px;
}
.fd-outreach-school-cell small {
  margin-top:3px;
  color:var(--fd-muted);
  font-size:9px;
}
.fd-outreach-school-cell img,
.fd-outreach-school-cell .school-logo,
.fd-outreach-school-cell .school-logo-fallback {
  width:30px !important;
  height:30px !important;
  flex:0 0 30px;
  object-fit:contain;
}
.fd-queue-status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--fd-secondary);
  font-size:10px;
  font-weight:700;
}
.fd-queue-status::before {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:#74747c;
}
.fd-queue-status.is-paused { color:var(--fd-gold); }
.fd-queue-status.is-paused::before { background:var(--fd-gold); }
.fd-queue-status.is-failed { color:#ff6b76; }
.fd-queue-status.is-failed::before { background:#ff6b76; }
.fd-queue-status.is-sending::before {
  border:1px solid #aaaab2;
  border-top-color:transparent;
  background:transparent;
  animation:fdQueueSpin .8s linear infinite;
}
@keyframes fdQueueSpin { to { transform:rotate(360deg); } }
.fd-row-menu {
  min-width:34px;
  min-height:34px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:var(--fd-secondary);
  cursor:pointer;
}
.fd-row-menu:hover {
  border-color:var(--fd-border);
  background:var(--fd-elevated);
  color:var(--fd-text);
}
.fd-row-action {
  min-height:34px;
  padding:0 10px;
  border:1px solid rgba(227,38,54,.4);
  border-radius:7px;
  background:rgba(227,38,54,.08);
  color:#fff;
  font-size:9px;
  font-weight:750;
  cursor:pointer;
}
.fd-engagement {
  display:block;
  color:var(--fd-secondary);
  font-size:10px;
  font-weight:650;
}
.fd-engagement.is-click { color:var(--fd-gold); }
.fd-followup-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
  padding:12px 14px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-elevated);
}
.fd-followup-summary strong,
.fd-followup-summary span { display:block; }
.fd-followup-summary strong {
  color:var(--fd-text);
  font-size:11px;
}
.fd-followup-summary span {
  color:var(--fd-muted);
  font-size:9px;
}
.fd-outreach-empty.is-compact { min-height:130px; }

.fd-outreach-preview-overlay {
  position:fixed;
  inset:0;
  z-index:230;
  background:rgba(0,0,0,.58);
  backdrop-filter:blur(4px);
}
.fd-outreach-preview-drawer {
  position:absolute;
  top:0;
  right:0;
  width:min(520px,100%);
  height:100%;
  overflow:auto;
  padding:20px;
  border-left:1px solid var(--fd-border);
  background:var(--fd-bg);
  box-shadow:-18px 0 60px rgba(0,0,0,.38);
}
.fd-outreach-preview-drawer > header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:16px;
  border-bottom:1px solid var(--fd-border);
}
.fd-outreach-preview-drawer h2 {
  margin:4px 0 3px;
  color:var(--fd-text);
  font-size:20px;
}
.fd-outreach-preview-drawer header p {
  margin:0;
  color:var(--fd-secondary);
  font-size:10px;
}
.fd-email-preview-meta {
  margin:18px 0;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-card);
}
.fd-email-preview-meta > div {
  display:grid;
  grid-template-columns:84px 1fr;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid var(--fd-border);
}
.fd-email-preview-meta > div:last-child { border-bottom:0; }
.fd-email-preview-meta dt {
  color:var(--fd-muted);
  font-size:9px;
  font-weight:750;
  text-transform:uppercase;
}
.fd-email-preview-meta dd {
  margin:0;
  overflow-wrap:anywhere;
  color:var(--fd-text);
  font-size:10px;
}
.fd-outreach-preview-body {
  min-height:260px;
  padding:16px;
  border:1px solid var(--fd-border);
  border-radius:8px;
  background:var(--fd-card);
  color:var(--fd-secondary);
  font-size:12px;
  line-height:1.65;
}
.fd-outreach-preview-drawer > footer {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
}

@media (max-width:1023px) {
  .fd-outreach-queue-table .fd-outreach-table-head,
  .fd-outreach-queue-table .fd-outreach-table-row {
    grid-template-columns:minmax(140px,1fr) minmax(170px,1.15fr) minmax(110px,.8fr) minmax(120px,.8fr) 90px 38px;
  }
  .fd-outreach-sent-table .fd-outreach-table-head,
  .fd-outreach-sent-table .fd-outreach-table-row {
    grid-template-columns:minmax(140px,1fr) minmax(170px,1.1fr) 90px minmax(130px,.9fr) 110px 95px;
  }
}

@media (max-width:767px) {
  .fd-outreach-summary-compact {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .fd-outreach-summary-compact article {
    min-height:66px;
    border-right:1px solid var(--fd-border);
    border-bottom:1px solid var(--fd-border);
  }
  .fd-outreach-summary-compact article:nth-child(2n) { border-right:0; }
  .fd-outreach-summary-compact article:nth-last-child(-n+2) { border-bottom:0; }

  .fd-outreach-toolbar {
    align-items:stretch;
    flex-direction:column;
  }
  .fd-outreach-toolbar .fd-list-search { width:100%; }
  .fd-outreach-toolbar-actions {
    width:100%;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .fd-outreach-toolbar-actions::-webkit-scrollbar { display:none; }
  .fd-outreach-toolbar-actions .fd-browser-select,
  .fd-outreach-toolbar-actions .fd-secondary-action {
    flex:0 0 auto;
  }
  .fd-outreach-inline-banner {
    align-items:stretch;
    flex-direction:column;
  }
  .fd-outreach-table {
    overflow:visible;
    border:0;
    background:transparent;
  }
  .fd-outreach-table-head { display:none; }
  .fd-outreach-queue-table .fd-outreach-table-row,
  .fd-outreach-sent-table .fd-outreach-table-row {
    position:relative;
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    min-height:0;
    margin-bottom:8px;
    padding:14px;
    border:1px solid var(--fd-border);
    border-radius:10px;
    background:var(--fd-card);
  }
  .fd-outreach-table-row > * {
    grid-column:1 / -1;
  }
  .fd-outreach-cell[data-label]::before {
    content:attr(data-label);
    display:block;
    margin-bottom:3px;
    color:var(--fd-muted);
    font-size:8px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
  }
  .fd-outreach-school-cell {
    padding-top:2px;
  }
  .fd-outreach-row-actions {
    position:absolute;
    top:10px;
    right:10px;
  }
  .fd-outreach-queue-table .fd-outreach-cell:first-child {
    padding-right:46px;
  }
  .fd-followup-summary {
    align-items:flex-start;
    flex-direction:column;
  }
  .fd-outreach-preview-drawer {
    top:auto;
    bottom:0;
    width:100%;
    height:min(82dvh,720px);
    border-top:1px solid var(--fd-border);
    border-left:0;
    border-radius:16px 16px 0 0;
    padding-bottom:calc(18px + env(safe-area-inset-bottom));
  }
  .fd-outreach-preview-drawer > footer {
    position:sticky;
    bottom:0;
    margin:16px -20px -20px;
    padding:12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top:1px solid var(--fd-border);
    background:rgba(11,11,13,.96);
    backdrop-filter:blur(12px);
  }
}

/* Schools occupies the available screen; results, not the page, scroll. */
body[data-app-page="LeadFinder"] .main-content {
  min-height:0;
  overflow-y:hidden !important;
}
body[data-app-page="LeadFinder"] #pageLeadFinder {
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  padding-top:0;
  overflow:hidden;
}
#pageLeadFinder .fd-schools-header,
#pageLeadFinder .fd-programs-toolbar,
#pageLeadFinder .fd-program-discovery-toolbar,
#pageLeadFinder .fd-program-filter-meta,
#pageLeadFinder .fd-map-results-head {
  flex-shrink:0;
}
#pageLeadFinder [data-schools-mode-panel="programs"] {
  display:flex;
  flex:1 1 0;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}
#pageLeadFinder [data-program-panel="map"].lead-finder-grid {
  flex:1 1 0;
  min-height:0;
  height:auto;
  grid-template-rows:minmax(0,1fr);
  align-items:stretch;
  padding:0;
}
#pageLeadFinder [data-program-panel="map"] .network-stage {
  height:100% !important;
  min-height:0 !important;
  max-height:none;
  align-self:stretch;
  margin-top:0;
}
#pageLeadFinder [data-program-panel="map"] .us-map {
  height:100% !important;
  max-height:100%;
  transform:none !important;
}
#pageLeadFinder .fd-map-results-panel {
  height:100%;
  min-height:0;
  max-height:100%;
  overflow:hidden;
}
#pageLeadFinder .fd-map-result-list {
  flex:1 1 0;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  padding-bottom:52px;
  scrollbar-width:thin;
  -webkit-mask-image:linear-gradient(to bottom,#000 max(75%,calc(100% - 40px)),transparent 100%);
  mask-image:linear-gradient(to bottom,#000 max(75%,calc(100% - 40px)),transparent 100%);
}
#pageLeadFinder [data-program-panel="list"],
#pageLeadFinder [data-schools-mode-panel="coaches"] {
  flex:1 1 0;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior-y:contain;
}
@media (max-width:767px) {
  #pageLeadFinder .fd-schools-header {
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 0 8px;
  }
  #pageLeadFinder .fd-schools-header > div:first-child { min-width:0; }
  #pageLeadFinder .fd-schools-header h1 { font-size:26px; }
  #pageLeadFinder .fd-schools-header p:not(.fd-eyebrow) {
    margin-top:4px;
    font-size:11px;
    line-height:1.3;
  }
  #pageLeadFinder .fd-schools-mode-tabs {
    flex-shrink:0;
    width:auto;
    margin-top:0;
  }
  #pageLeadFinder .fd-schools-mode {
    min-height:34px;
    padding:0 8px;
    font-size:11px;
  }
  #pageLeadFinder .fd-programs-toolbar {
    flex-direction:row;
    align-items:center;
    gap:8px;
    margin-top:0;
  }
  #pageLeadFinder .fd-programs-note { font-size:10px; }
  #pageLeadFinder .fd-programs-toolbar > .fd-list-action { font-size:10px; }
  #pageLeadFinder .fd-view-toggle { width:auto; flex-shrink:0; }
  #pageLeadFinder .fd-view-toggle button { min-height:34px; }
  #pageLeadFinder .fd-program-discovery-toolbar { margin-top:8px; }
  #pageLeadFinder [data-program-panel="map"].lead-finder-grid {
    display:grid !important;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) minmax(0,1fr);
    gap:8px !important;
  }
  #pageLeadFinder [data-program-panel="map"] .network-stage {
    grid-column:1;
    grid-row:1;
  }
  #pageLeadFinder .fd-map-results-panel {
    grid-column:1;
    grid-row:2;
  }
  #pageLeadFinder .fd-map-results-head { padding:8px 10px; }
}
@media (max-width:767px) and (max-height:720px) {
  body[data-app-page="LeadFinder"] .main-content {
    padding-top:10px !important;
    padding-bottom:calc(var(--fd-mobile-nav-height) + 12px + env(safe-area-inset-bottom)) !important;
  }
  #pageLeadFinder .fd-schools-header .fd-eyebrow { display:none; }
  #pageLeadFinder .fd-schools-header p:not(.fd-eyebrow) { font-size:10px; }
  #pageLeadFinder .fd-programs-toolbar > .fd-list-action { padding:6px 8px; }
  #pageLeadFinder .fd-program-filter-meta { min-height:26px; }
  #pageLeadFinder .fd-map-results-head { padding:5px 10px; }
  #pageLeadFinder .school-map-instruction { display:none; }
  #pageLeadFinder .fd-map-result-list { padding-bottom:42px; }
}

/* Keep the existing network feed on the map without intercepting school clicks. */
#pageLeadFinder [data-program-panel="map"] .activity-rail {
  display:block;
  position:absolute;
  z-index:3;
  top:12px;
  left:12px;
  width:min(220px, calc(100% - 24px));
  padding:8px 9px 6px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:9px;
  background:rgba(13,13,15,.76);
  backdrop-filter:blur(8px);
  pointer-events:none;
}
#pageLeadFinder [data-program-panel="map"] .activity-rail .rail-label {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:#aaa49d;
  font:500 10px/1.2 -apple-system,BlinkMacSystemFont,sans-serif;
  letter-spacing:0;
  text-transform:none;
}
#pageLeadFinder [data-program-panel="map"] .activity-feed {
  display:flex;
  justify-content:flex-start;
  height:auto;
  max-height:104px;
  margin-top:6px;
  gap:5px;
  overflow:hidden;
}
#pageLeadFinder [data-program-panel="map"] .activity-event:nth-child(n+3) {
  display:none;
}
#pageLeadFinder .signal-guide {
  stroke:rgba(255,220,142,.55);
  stroke-width:1.15;
  filter:drop-shadow(0 0 3px rgba(255,196,100,.55));
}
#pageLeadFinder [data-program-panel="map"] .activity-event {
  flex:0 0 auto;
  padding:6px 7px;
  border-radius:8px;
  font-size:10px;
}
#pageLeadFinder [data-program-panel="map"] .activity-event i {
  flex-basis:20px;
  height:20px;
}
@media (max-width:767px) {
  #pageLeadFinder [data-program-panel="map"] .activity-rail {
    top:8px;
    left:8px;
    width:min(190px, calc(100% - 16px));
    padding:7px 8px 5px;
  }
  #pageLeadFinder [data-program-panel="map"] .activity-feed {
    max-height:76px;
  }
  #pageLeadFinder [data-program-panel="map"] .activity-event:nth-child(n+2) {
    display:none;
  }
}
/* Keep layout measurable while authentication and the initial route resolve. */
body[data-app-boot="pending"] #appRoot,
body[data-app-boot="pending"] .mobile-bottom-nav,
body[data-app-boot="pending"] #outreachSchoolsActions { visibility: hidden; pointer-events: none; }
.app-boot-status { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #101010; color: #aaa; font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-boot-logo { position: relative; display: grid; place-items: center; width: min(220px, 64vw); aspect-ratio: 1; }
.app-boot-logo::before { content: ""; position: absolute; inset: 0; border: 3px solid #ef273d26; border-top-color: #ef273d; border-right-color: #ef273d; border-radius: 50%; box-shadow: 0 0 18px #ef273d20; animation: app-boot-spin 1s linear infinite; }
.app-boot-status img { width: 80%; height: auto; object-fit: contain; }
@keyframes app-boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-boot-logo::before { animation: none; } }
body:not([data-app-boot="pending"]) .app-boot-status { display: none; }
.fd-map-loading { display: none; }
.network-stage[aria-busy="true"] .fd-map-loading { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: #101010; color: #aaa; font-size: 14px; }

/* Optional workspace stars and secondary appearance controls. */
#particlesCanvas[hidden], .fd-appearance-control[hidden] { display:none !important; }
#particlesCanvas { clip-path:inset(0 0 0 var(--fd-sidebar-width)); }
.main-content { position:relative; }
.fd-appearance-control { display:flex; align-items:center; margin-left:auto; flex-shrink:0; }
.fd-appearance-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.fd-appearance-button {
  display:grid; place-items:center; width:36px; height:36px; padding:0;
  border:1px solid var(--fd-border); border-radius:8px;
  background:transparent; color:var(--fd-muted); cursor:pointer;
}
.fd-appearance-button:hover { color:var(--fd-text); background:var(--fd-elevated); }
.fd-appearance-popover {
  position:fixed; inset:auto; margin:0; width:256px; max-width:calc(100vw - 16px);
  padding:16px; border:1px solid var(--fd-border); border-radius:10px;
  background:var(--fd-card); color:var(--fd-text); box-shadow:0 12px 32px #0008;
}
.fd-appearance-popover::backdrop { background:transparent; }
.fd-appearance-switch { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:44px; cursor:pointer; }
.fd-appearance-switch input {
  appearance:none; flex-shrink:0; width:38px; height:22px; margin:0;
  border:1px solid var(--fd-muted); border-radius:20px; background:var(--fd-bg); cursor:pointer;
}
.fd-appearance-switch input::before { content:""; display:block; width:14px; height:14px; margin:3px; border-radius:50%; background:var(--fd-muted); }
.fd-appearance-switch input:checked { background:var(--fd-red); border-color:var(--fd-red); }
.fd-appearance-switch input:checked::before { transform:translateX(16px); background:#fff; }
.fd-appearance-switch input:disabled { opacity:.5; cursor:default; }
.fd-appearance-button:focus-visible, .fd-appearance-switch input:focus-visible { outline:2px solid var(--fd-muted); outline-offset:4px; }
@media(max-width:900px) {
  .fd-appearance-actions { display:contents; }
  .fd-appearance-control { display:none; }
  #particlesCanvas { clip-path:none; }
}

/* Desktop workspaces fill the content area beside the responsive sidebar. */
@media (min-width: 768px) {
  #pageOutreach.page-view,
  #pageWorkflows.page-view,
  #pageHome.page-view,
  #pageSettings.page-view {
    width: 100%;
    max-width: none !important;
    margin-inline: 0 !important;
  }
  #pageOutreach .fd-outreach-studio,
  #pageWorkflows .wf-root {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-inline: 0;
  }
}
