.find-setup {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.find-me-v2 {
  --find-bg: #f4f5f3;
  --find-card: #ffffff;
  --find-ink: #1a1d1b;
  --find-muted: #7b847f;
  --find-faint: #a3aaa6;
  --find-line: #eceeeb;
  position: relative;
  margin-top: 4px;
  color: var(--find-ink);
  font-family: inherit;
}

/* Overlay layer for the picker sheet, scrim and toast. It covers the screen, and while the
   iPhone keyboard is open it follows the visible area above it (keyboard-fit.js sets the
   --app-* variables), so the sheet sits right on top of the keyboard instead of behind it. */
.find-me-v2.find-me-overlays {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  z-index: 1300;
  pointer-events: none;
}

html.is-keyboard-open .find-me-v2.find-me-overlays {
  top: var(--app-top, 0px);
  left: var(--app-left, 0px);
  right: auto;
  bottom: auto;
  width: var(--app-width, 100%);
  height: var(--app-height, 100%);
}

.find-me-overlays .find-me-sheet-scrim,
.find-me-overlays .find-me-sheet,
.find-me-overlays .find-me-toast {
  position: absolute;
}

.find-me-overlays .find-me-sheet.show {
  pointer-events: auto;
}

.find-me-master-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--find-card);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 4px 0 6px;
  box-shadow: 0 1px 2px rgba(20, 30, 25, 0.05);
}

.find-me-master-card > div {
  flex: 1;
  min-width: 0;
}

.find-me-master-card strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.find-me-master-card small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--find-muted);
}

.find-me-v2 .find-me-group {
  margin: 22px 4px 2px;
  padding-top: 14px;
  border-top: 1px solid var(--find-line);
}

.find-me-v2 .find-me-group:first-child,
.find-me-v2 #findMeSections > .find-me-group:first-child {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.find-me-v2 .find-me-group h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--find-ink);
}

.find-me-v2 .find-me-group p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--find-muted);
}

.find-me-v2.find-me-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.find-me-topline .find-me-master {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--find-muted);
}

.find-me-topline .find-me-master svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.find-setup.find-me-v2 {
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
}

.find-me-v2 .find-me-main {
  flex: 1;
  min-width: 0;
}

/* Left rail, same look as Key info. Sticks while the Me drawer scrolls. */
.find-me-rail {
  position: sticky;
  top: 6px;
  flex: none;
  width: 58px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 2px 0 16px;
  margin-left: -6px;
}

.find-me-rail::-webkit-scrollbar { display: none; }

.find-me-rail .rail-group {
  margin: 10px 0 2px;
  text-align: center;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--find-faint);
}

.find-me-rail .rail-group:first-child { margin-top: 2px; }

.find-me-rail button {
  position: relative;
  width: 100%;
  border: 0;
  background: none;
  padding: 7px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #6a726d;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
}

.find-me-rail .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform .15s ease;
}

.find-me-rail .dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.find-me-rail .n {
  position: absolute;
  top: 3px;
  left: calc(50% + 7px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--find-ink);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.find-me-rail button.active { color: var(--find-ink); }
.find-me-rail button.active .dot { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--c); }
.find-me-rail button.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }

.find-me-main {
  padding: 0 0 28px;
}

.find-me-v2 section {
  padding: 8px 0 14px;
}

.find-me-v2 .sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 8px;
}

.find-me-v2 .sec-head h2 {
  margin: 0;
  padding: 0;
  text-align: left;
  white-space: nowrap;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.find-me-v2 .search-toggle {
  margin-left: auto;
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--find-muted);
}

.find-me-v2 .search-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.find-me-v2 .card {
  background: var(--find-card);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20, 30, 25, 0.05);
  overflow: visible;
}

.find-me-v2 .card.hidden .row,
.find-me-v2 .card.hidden .open-options {
  opacity: 0.4;
}

.find-me-v2 .row {
  padding: 12px 14px;
  border-top: 1px solid var(--find-line);
}

.find-me-v2 .card > .row:first-child,
.find-me-v2 .card > .open-options:first-child {
  border-top: 0;
}

.find-me-v2 .row-label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--find-muted);
  margin-bottom: 8px;
}

.find-me-v2 .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.find-me-v2 .tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 2px 0 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--tc);
  background: var(--tb);
  cursor: pointer;
}

.find-me-v2 .tag .value {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.find-me-v2 .tag .x {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  opacity: 0.55;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.find-me-v2 .tag .x:hover {
  opacity: 1;
}

.find-me-v2 .add {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px dashed #cdd2ce;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #6a726d;
  cursor: pointer;
}

.find-me-v2 .open-options {
  padding: 14px 14px 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.find-me-v2 .open-options button {
  height: auto;
  min-height: 30px;
  padding: 7px 10px;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--find-line);
  border-radius: 999px;
  background: var(--find-bg);
  color: var(--find-muted);
  cursor: pointer;
}

.find-me-v2 .open-options button[aria-pressed="true"] {
  background: var(--tc);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.find-me-v2 .open-options button[aria-pressed="true"]::before {
  content: "\2713  ";
}

.find-me-v2 .select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--find-line);
}

.find-me-v2 .select-row .row-label {
  margin: 0;
}

.find-me-v2 .select-row select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--find-line);
  border-radius: 10px;
  background: var(--find-bg) 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 right 8px center/14px;
  padding: 7px 28px 7px 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--find-ink);
  width: 150px;
  max-width: 56%;
  cursor: pointer;
}

.find-me-v2 .age-combo {
  position: relative;
  display: inline-flex;
  width: 150px;
  max-width: 56%;
}

.find-me-v2 .age-combo input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--find-line);
  border-radius: 10px;
  background: var(--find-bg);
  padding: 7px 28px 7px 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--find-ink);
}

.find-me-v2 .age-open {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  border: 0;
  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/14px;
  cursor: pointer;
}

.find-me-v2 .age-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--find-line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 6px;
}

.find-me-v2 .age-menu button {
  border: 0;
  background: none;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--find-ink);
  cursor: pointer;
}

.find-me-v2 .age-menu button[aria-pressed="true"],
.find-me-v2 .age-menu button:hover {
  background: var(--find-bg);
}

.find-me-v2 .age-hint {
  padding: 8px 10px 4px;
  font-size: 12px;
  color: #7b847f;
  border-top: 1px solid var(--find-line);
  margin-top: 4px;
}

.find-me-v2 .switch {
  border: 0;
  width: 29px;
  height: 18px;
  border-radius: 99px;
  background: #cdd2ce;
  position: relative;
  cursor: pointer;
  flex: none;
}

.find-me-v2 .switch::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: white;
}

.find-me-v2 .switch[aria-checked="true"] {
  background: #16a34a;
}

.find-me-v2 .switch[aria-checked="true"]::after {
  left: 13px;
}

.find-me-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 1200;
  max-width: 390px;
  margin: 0 auto;
  background: var(--find-ink);
  color: #fff;
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}

.find-me-toast.show {
  opacity: 1;
  transform: none;
}

.find-me-sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 20, 17, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.find-me-sheet-scrim.show {
  opacity: 1;
  pointer-events: auto;
}

.find-me-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1310;
  max-width: 420px;
  margin: 0 auto;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(calc(100% + 60px));
  visibility: hidden;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.26s;
}

.find-me-sheet.show {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.find-me-grab {
  width: 38px;
  height: 5px;
  border-radius: 9px;
  background: #d9ddda;
  margin: 8px auto 2px;
}

.find-me-sheet-head {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 10px;
}

.find-me-sheet-name {
  text-align: center;
  min-width: 0;
}

.find-me-sheet-head .find-me-sheet-cancel {
  justify-self: start;
  background: none;
  color: var(--find-muted);
  padding: 8px 0;
  font-weight: 600;
}

.find-me-sheet-head button:disabled {
  background: #d9ddd9;
  color: #fff;
  cursor: default;
}

.find-me-sheet-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.find-me-sheet-head small {
  display: block;
  font-size: 12.5px;
  color: var(--find-muted);
  font-weight: 500;
  margin-top: 2px;
}

.find-me-sheet-head button {
  justify-self: end;
  border: 0;
  background: var(--find-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.find-me-locate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 10px;
  width: calc(100% - 32px);
  height: 44px;
  border: 1.5px solid #3b82f6;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.find-me-locate svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.find-me-locate.found {
  background: #3b82f6;
  color: #fff;
}

.find-me-sheet-search {
  margin: 0 16px 10px;
}

.find-me-sheet-search input {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f3f1;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.find-me-period {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  align-items: center;
  font-size: 12px;
  color: var(--find-muted);
}

.find-me-period input {
  min-width: 0;
  width: 100%;
  height: 36px;
  border: 1px solid var(--find-line);
  border-radius: 10px;
  padding: 8px;
  font: inherit;
  background: var(--find-bg);
  box-sizing: border-box;
}

.find-me-sheet-body {
  overflow-y: auto;
  padding: 0 16px 24px;
}

.find-me-sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.find-me-sheet-chips button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e3e6e3;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #3f4743;
  cursor: pointer;
}

.find-me-sheet-chips button.on {
  border-color: transparent;
  background: var(--tb);
  color: var(--tc);
}

.find-me-sheet-chips button.on::after {
  content: " \2713";
}

.find-me-sheet-chips .custom {
  border-style: dashed;
  color: var(--find-ink);
}

[hidden] {
  display: none !important;
}
