.same-city-picker {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: grid;
  align-items: end;
}

.same-city-picker.hidden {
  display: none;
}

.same-city-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 39, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.same-city-card {
  position: relative;
  z-index: 1;
  max-height: 88dvh;
  padding: 20px 18px calc(env(safe-area-inset-bottom, 0px) + 22px);
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #fbfcff, #f1f4fa);
  color: #1c2943;
  box-shadow: 0 -18px 60px rgba(22, 34, 66, 0.16);
}

.same-city-card > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.same-city-card > header small {
  color: #6879ad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.same-city-card > header h2 {
  margin: 3px 0;
  font-size: 22px;
}

.same-city-card > header p,
.same-city-privacy {
  margin: 0;
  color: #818ba1;
  font-size: 12px;
  line-height: 1.55;
}

.same-city-card > header button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e9edf5;
  color: #526078;
  font-size: 24px;
}

.same-city-locate {
  width: 100%;
  margin: 18px 0 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(73, 99, 222, 0.16);
  border-radius: 17px;
  background: linear-gradient(135deg, #eef3ff, #fff);
  color: #273552;
}

.same-city-locate > span {
  grid-row: 1 / 3;
  color: #526ce0;
  font-size: 28px;
}

.same-city-locate strong {
  font-size: 15px;
}

.same-city-locate small {
  color: #8490a9;
  font-size: 11px;
}

.same-city-locate.busy {
  opacity: 0.68;
  pointer-events: none;
}

.same-city-current {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(82, 108, 224, 0.09);
  color: #5063b6;
  font-size: 13px;
  font-weight: 700;
}

.same-city-card > section > strong,
.same-city-manual > span {
  display: block;
  margin: 4px 0 9px;
  color: #59657d;
  font-size: 12px;
}

.same-city-common {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.same-city-common button {
  min-height: 40px;
  padding: 7px 4px;
  border: 1px solid rgba(78, 94, 130, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  color: #3f4c66;
  font-size: 12px;
}

.same-city-common button.active {
  border-color: #657be0;
  background: #edf1ff;
  color: #4059c4;
  font-weight: 800;
}

.same-city-manual {
  display: block;
  margin-top: 17px;
}

.same-city-manual > div {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
}

.same-city-manual input,
.same-city-manual button {
  height: 42px;
  border: 1px solid rgba(78, 94, 130, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #26334f;
}

.same-city-manual input {
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.same-city-manual button {
  border-color: transparent;
  background: #5169d8;
  color: #fff;
  font-weight: 800;
}

.same-city-privacy {
  margin-top: 16px;
}

.work-location-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(32, 158, 112, 0.1);
  color: #3b8c6d;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.work-location-badge.recommend {
  background: rgba(91, 103, 135, 0.08);
  color: #81899d;
}

html.theme-dark .same-city-card {
  background: linear-gradient(160deg, #111722, #090d14);
  color: #f4efe7;
}

html.theme-dark .same-city-card > header button,
html.theme-dark .same-city-common button,
html.theme-dark .same-city-manual input {
  border-color: rgba(217, 169, 87, 0.16);
  background: #171d27;
  color: #eee9df;
}

html.theme-dark .same-city-locate {
  border-color: rgba(217, 169, 87, 0.22);
  background: linear-gradient(135deg, rgba(91, 67, 31, 0.62), #171d27);
  color: #f2eadb;
}
