.location-picker-trigger {
  display: flex;
  width: 100%;
  min-height: 2.8rem;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .6rem .75rem;
  border: 1px solid rgba(99, 102, 241, .22);
  border-radius: 10px;
  background: rgba(99, 102, 241, .065);
  color: #334155;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.location-picker-trigger:hover {
  border-color: rgba(99, 102, 241, .46);
  background: rgba(99, 102, 241, .1);
  box-shadow: 0 5px 14px rgba(51, 65, 85, .07);
}

.location-picker-trigger:disabled { cursor: wait; opacity: .66; }
.location-picker-trigger b { color: #4f46e5; font-size: .82rem; }
.location-picker-trigger span { color: #718096; font-size: .72rem; font-weight: 600; }

.location-manual-note {
  grid-column: 1 / -1;
  margin: -.08rem 0 .08rem;
  color: #718096;
  font-size: .7rem;
  line-height: 1.45;
}

.location-dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(760px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 26px 80px rgba(30, 41, 59, .28);
  color: #273449;
  transform: translate(-50%, -50%);
}

.location-dialog::backdrop {
  background: rgba(30, 41, 59, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.location-dialog-card {
  padding: 1.05rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(242, 240, 255, .94));
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

.location-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.location-dialog-header > div { display: grid; gap: .18rem; }
.location-dialog-header strong { font-size: 1.06rem; }
.location-dialog-header small { color: #718096; font-size: .72rem; }

.location-dialog-close {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(100, 116, 139, .09);
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
}

.location-dialog-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.location-dialog-columns label { display: grid; gap: .38rem; }
.location-dialog-columns label > span { color: #526278; font-size: .76rem; font-weight: 800; }

.location-dialog-columns select {
  width: 100%;
  height: 17rem !important;
  box-sizing: border-box;
  padding: .25rem !important;
  border: 1px solid rgba(100, 116, 139, .2) !important;
  border-radius: 12px !important;
  outline: none;
  background: rgba(255, 255, 255, .8) !important;
  color: #273449 !important;
  font: inherit !important;
  font-size: .82rem !important;
}

.location-dialog-columns select:focus {
  border-color: rgba(99, 102, 241, .55) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .09) !important;
}

.location-dialog-columns select:disabled {
  background: rgba(226, 232, 240, .4) !important;
  color: #94a3b8 !important;
}

.location-dialog-columns option { padding: .48rem .55rem; border-radius: 7px; }
.location-dialog-columns option:checked { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }

.location-dialog-selection {
  min-height: 1.25rem;
  margin: .75rem 0 .65rem;
  color: #526278;
  font-size: .75rem;
  font-weight: 650;
}

.location-dialog-actions { display: flex; justify-content: flex-end; gap: .55rem; }

.location-dialog-actions button {
  min-height: 2.35rem;
  padding: 0 .85rem;
  border: 1px solid rgba(100, 116, 139, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
}

.location-dialog-actions .location-dialog-confirm {
  border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.location-dialog-actions .location-dialog-confirm:disabled {
  cursor: not-allowed;
  filter: grayscale(.6);
  opacity: .45;
}

@media (max-width: 620px) {
  .location-dialog { width: calc(100vw - 1rem); }
  .location-dialog-card { padding: .85rem; }
  .location-dialog-columns { grid-template-columns: 1fr; gap: .5rem; }
  .location-dialog-columns select { height: 3rem !important; }
  .location-dialog-selection { font-size: .68rem; }
  .location-dialog-header small { display: none; }
}
