/* Phone Find me self-edit: accordions, master card, compact header (desktop keeps rail layout). */
html:not(.is-desktop-board) [data-me-page="findme"] {
  --find-bg: #f6f7f9;
  --find-card: #fff;
  --find-ink: #17191d;
  --find-muted: #727985;
  --find-line: #eceef2;
  background: var(--find-bg);
  color: var(--find-ink);
  min-height: 100%;
}

html:not(.is-desktop-board) [data-me-page="findme"] .page-heading {
  display: none;
}

/* Me drawer Find me self-edit: full-width panel; Search tab host unchanged. */
html:not(.is-desktop-board) #meDrawer:has([data-me-page="findme"].active:not(.is-search-tab-host)) {
  inset: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: var(--find-bg, #f4f5f3);
  box-shadow: none;
}

/* Find me uses the same quiet, layered surfaces as the conversation UI. */
html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 54px;
  padding: max(6px, env(safe-area-inset-top, 0px)) 18px 6px;
  background: color-mix(in srgb, var(--find-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .page-back {
  color: #2878dc;
  font-weight: 650;
  letter-spacing: -0.1px;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-phone-head {
  display: block;
  padding: 8px 20px 18px;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-phone-title {
  margin: 0;
  color: var(--find-ink);
  font-size: clamp(30px, 8vw, 36px);
  font-weight: 760;
  letter-spacing: -1.2px;
  line-height: 1.08;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-phone-sub {
  max-width: 290px;
  margin: 8px 0 0;
  color: var(--find-muted);
  font-size: 14px;
  line-height: 1.45;
}

html:not(.is-desktop-board) #meDrawer:has([data-me-page="findme"].active:not(.is-search-tab-host)).show {
  box-shadow: none;
}

html:not(.is-desktop-board) #meDrawer:has([data-me-page="findme"].active:not(.is-search-tab-host)) [data-me-page="findme"].active {
  padding-bottom: 0;
}

html:not(.is-desktop-board) .app:has(#meDrawer.show [data-me-page="findme"].active:not(.is-search-tab-host)) > .overlay.show {
  opacity: 0;
  pointer-events: none;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-phone-head {
  display: none;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: max(6px, env(safe-area-inset-top, 0px)) 14px 6px;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .page-back {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 4px 8px 0;
  margin: 0;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .find-me-done {
  display: none;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .find-me-master {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--find-ink, #1a1d1b);
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-searchable-label {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .switch.fme-master-switch {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  position: relative;
  border: 0;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: 99px;
  background: #e4e4e7;
  cursor: pointer;
  outline: none;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .switch.fme-master-switch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .switch.fme-master-switch::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: left 0.15s ease;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .switch.fme-master-switch[aria-checked="true"] {
  background: #22c55e;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .switch.fme-master-switch[aria-checked="true"]::after {
  left: 22px;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .switch.fme-master-switch:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.45);
  outline-offset: 2px;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-me-topline .switch.fme-master-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

html:not(.is-desktop-board) [data-me-page="findme"] .find-me-rail {
  display: none;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .find-setup.find-me-v2,
html:not(.is-desktop-board) [data-me-page="findme"].is-main-tab-host .find-setup.find-me-v2 {
  flex-direction: column;
  gap: 13px;
  margin-top: 0;
  padding: 0 16px 24px;
}

html:not(.is-desktop-board) [data-me-page="findme"].is-search-tab-host .find-setup.find-me-v2 {
  flex-direction: column;
  gap: 11px;
  padding: 0 12px 120px;
}

html:not(.is-desktop-board) [data-me-page="findme"] .find-me-main {
  padding: 0;
}

html:not(.is-desktop-board) [data-me-page="findme"] .find-me-v2 .find-me-group {
  display: none;
}

html:not(.is-desktop-board) [data-me-page="findme"] #findMeSections {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

html:not(.is-desktop-board) .fme-master-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--find-card, #fff);
  border: 1px solid color-mix(in srgb, var(--find-line, #eceef2) 74%, transparent);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(20, 30, 45, 0.045), 0 1px 2px rgba(20, 30, 45, 0.035);
  margin: 0;
}

html:not(.is-desktop-board) .fme-master-card > div:first-child {
  flex: 1;
  min-width: 0;
}

html:not(.is-desktop-board) .fme-master-card .switch.fme-master-switch {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  position: relative;
  border: 0;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: 99px;
  background: #e4e4e7;
  cursor: pointer;
  outline: none;
}

html:not(.is-desktop-board) .fme-master-card .switch.fme-master-switch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

html:not(.is-desktop-board) .fme-master-card .switch.fme-master-switch::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: left 0.15s ease;
}

html:not(.is-desktop-board) .fme-master-card .switch.fme-master-switch[aria-checked="true"] {
  background: #22c55e;
}

html:not(.is-desktop-board) .fme-master-card .switch.fme-master-switch[aria-checked="true"]::after {
  left: 22px;
}

html:not(.is-desktop-board) .fme-master-card .switch.fme-master-switch:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.45);
  outline-offset: 2px;
}

html:not(.is-desktop-board) .fme-master-card .switch.fme-master-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

html:not(.is-desktop-board) .fme-privacy .switch {
  flex-shrink: 0;
  position: relative;
}

html:not(.is-desktop-board) .fme-privacy .switch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

html:not(.is-desktop-board) .fme-master-card strong {
  display: block;
  font-size: 16px;
  font-weight: 750;
}

html:not(.is-desktop-board) .fme-master-card small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--find-muted, #7b847f);
}

html:not(.is-desktop-board) .fme-acc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

html:not(.is-desktop-board) .fme-acc {
  background: var(--find-card, #fff);
  border: 1px solid color-mix(in srgb, var(--find-line, #eceef2) 78%, transparent);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(20, 30, 45, 0.04), 0 1px 2px rgba(20, 30, 45, 0.035);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

html:not(.is-desktop-board) .fme-acc.is-open {
  box-shadow: 0 12px 30px rgba(20, 30, 45, 0.07), 0 2px 5px rgba(20, 30, 45, 0.04);
}

html:not(.is-desktop-board) .fme-acc-head {
  display: grid;
  grid-template-columns: 40px 1fr auto 20px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  padding: 12px 14px;
  min-height: 44px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--find-ink, #1a1d1b);
}

html:not(.is-desktop-board) .fme-acc-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #f1f5fb;
  color: #4776b8;
  display: grid;
  place-items: center;
}

html:not(.is-desktop-board) .fme-acc-icon svg {
  width: 21px;
  height: 21px;
}

html:not(.is-desktop-board) .fme-acc-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html:not(.is-desktop-board) .fme-acc-title {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.2px;
}

html:not(.is-desktop-board) .fme-acc-sub {
  font-size: 12px;
  color: var(--find-muted, #7b847f);
  line-height: 1.3;
}

html:not(.is-desktop-board) .fme-acc-summary {
  grid-column: 2 / 4;
  font-size: 12px;
  font-weight: 650;
  color: var(--find-ink, #1a1d1b);
  opacity: 0.85;
  text-align: right;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:not(.is-desktop-board) .fme-acc-head:has(.fme-acc-summary) {
  grid-template-columns: 40px 1fr auto 20px;
  grid-template-rows: auto auto;
}

html:not(.is-desktop-board) .fme-acc-head:has(.fme-acc-summary) .fme-acc-text {
  grid-column: 2;
  grid-row: 1;
}

html:not(.is-desktop-board) .fme-acc-head:has(.fme-acc-summary) .fme-acc-summary {
  grid-row: 2;
  grid-column: 2 / 4;
  text-align: left;
  max-width: none;
}

html:not(.is-desktop-board) .fme-acc-chev {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b847f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center/16px;
  transition: transform 0.18s ease;
}

html:not(.is-desktop-board) .fme-acc.is-open .fme-acc-chev {
  transform: rotate(180deg);
}

html:not(.is-desktop-board) .fme-acc-body {
  padding: 0 10px 12px;
}

html:not(.is-desktop-board) [data-me-page="findme"]:not(.is-search-tab-host) .fme-acc-body {
  padding-left: 0;
  padding-right: 0;
}

html:not(.is-desktop-board) .fme-acc-body .sec-head h2 {
  font-size: 15px;
}

html:not(.is-desktop-board) .fme-privacy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

html:not(.is-desktop-board) .fme-privacy-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--find-muted, #7b847f);
  white-space: nowrap;
}

html:not(.is-desktop-board) .fme-acc-body section {
  padding: 10px 0 4px;
}

html:not(.is-desktop-board) .fme-acc-body .card {
  border-radius: 16px;
}

html:not(.is-desktop-board) .fme-chat-review {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(20, 30, 25, 0.05);
  overflow: hidden;
}

html:not(.is-desktop-board) .fme-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: none;
  padding: 14px 16px;
  min-height: 44px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

html:not(.is-desktop-board) .fme-chat-head-title {
  flex: 1;
  font-size: 15px;
  font-weight: 750;
}

html:not(.is-desktop-board) .fme-chat-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef0ee;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

html:not(.is-desktop-board) .fme-chat-body {
  padding: 0 14px 12px;
}

html:not(.is-desktop-board) .fme-chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

html:not(.is-desktop-board) .fme-chat-item {
  padding: 10px 0;
  border-top: 1px solid var(--find-line, #eceeeb);
  font-size: 13px;
}

html:not(.is-desktop-board) .fme-chat-value {
  display: block;
  font-weight: 700;
}

html:not(.is-desktop-board) .fme-chat-kind,
html:not(.is-desktop-board) .fme-chat-src {
  display: block;
  font-size: 11px;
  color: var(--find-muted, #7b847f);
  margin-top: 2px;
}

html:not(.is-desktop-board) .fme-chat-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

html:not(.is-desktop-board) .fme-chat-actions button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

html:not(.is-desktop-board) .fme-chat-confirm {
  background: var(--find-ink, #1a1d1b);
  color: #fff;
}

html:not(.is-desktop-board) .fme-chat-remove {
  background: #f1f3f1;
  color: var(--find-ink, #1a1d1b);
}

html.is-desktop-board [data-me-page="findme"] .find-me-phone-head,
html.is-desktop-board [data-me-page="findme"] .find-me-done {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.is-desktop-board) .fme-acc { transition: none; }
}

html[data-profile-theme="dark"]:not(.is-desktop-board) [data-me-page="findme"] {
  --find-bg: #0b0d11;
  --find-card: #15181e;
  --find-ink: #f3f4f6;
  --find-muted: #a0a7b2;
  --find-line: #282d36;
}

html[data-profile-theme="dark"]:not(.is-desktop-board) .fme-acc-icon {
  background: #202a38;
  color: #91baff;
}

html[data-profile-theme="dark"]:not(.is-desktop-board) .fme-chat-badge,
html[data-profile-theme="dark"]:not(.is-desktop-board) .fme-chat-remove {
  background: #252a32;
  color: var(--find-ink);
}

html.is-desktop-board .fme-master-card,
html.is-desktop-board .fme-acc-list,
html.is-desktop-board .fme-chat-review {
  display: none;
}
