/* RD37 — shared farm-switcher styles. Palette matches the unified design. */
#farm-switcher { position: relative; display: inline-block; }
.fs-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); color: #fff; border: none;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; font-weight: 500;
  padding: 6px 11px; border-radius: 8px; cursor: pointer;
}
.fs-btn:hover { background: rgba(255,255,255,.2); }
.fs-ico { font-size: 14px; }
.fs-caret { font-size: 10px; opacity: .8; }
.fs-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; z-index: 1000;
  background: #fff; border: 1px solid #e4e4dc; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16); overflow: hidden; padding: 4px;
}
.fs-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; border-radius: 7px; cursor: pointer; gap: 8px;
}
.fs-row:hover { background: #f3f5f1; }
.fs-row.active { background: #e8f5ee; }
.fs-row-name { font-size: 13px; font-weight: 600; color: #1a1a18; }
.fs-row-meta { font-size: 11px; color: #6b6b63; margin-top: 1px; }
.fs-manage {
  font-size: 11px; background: #fff; border: 1px solid #d7d7cd; color: #2d6a4f;
  padding: 3px 8px; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.fs-manage:hover { background: #e8f5ee; }
.fs-add { color: #2d6a4f; font-weight: 600; font-size: 13px; }
.fs-sep { height: 1px; background: #ececE4; margin: 4px 0; }
.fs-empty { padding: 10px 11px; font-size: 12px; color: #9a9a90; }

/* Manage modal */
.fs-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center; z-index: 2000;
}
.fs-modal {
  background: #fff; border-radius: 14px; padding: 22px; width: 420px; max-width: 92vw;
  max-height: 86vh; overflow-y: auto; font-family: system-ui, sans-serif;
}
.fs-modal-title { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; color: #1a1a18; margin-bottom: 14px; }
.fs-modal-sec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8a8a80; margin: 16px 0 7px; }
.fs-mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0ea; font-size: 13px; }
.fs-role { font-size: 10px; background: #e8f5ee; color: #2d6a4f; padding: 1px 6px; border-radius: 8px; font-weight: 600; }
.fs-email { font-size: 11px; color: #8a8a80; }
.fs-link { font-size: 11px; color: #1d6fa4; cursor: pointer; text-decoration: underline; }
.fs-owner-tag { font-size: 11px; color: #8a8a80; }
.fs-x { font-size: 11px; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.fs-invite-form { display: flex; gap: 6px; margin-top: 14px; }
.fs-input { flex: 1; border: 1px solid #d7d7cd; border-radius: 7px; padding: 7px 9px; font-size: 13px; }
.fs-btn-primary { background: #2d6a4f; color: #fff; border: none; border-radius: 7px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.fs-btn-primary:hover { background: #235741; }
.fs-close { margin-top: 18px; width: 100%; background: #f3f5f1; border: 1px solid #e4e4dc; border-radius: 8px; padding: 9px; font-size: 13px; cursor: pointer; color: #444; }

/* Light-header variant — until the unified dark header lands.
   Add class "fs-light" to #farm-switcher's button context if the header is pale. */
.fs-on-light .fs-btn { background: #f0f2ee; color: #1a3d2b; border: 1px solid #d7d7cd; }
.fs-on-light .fs-btn:hover { background: #e8f5ee; }
