.court-place-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, .55);
}
.court-place-panel {
  box-sizing: border-box;
  width: min(760px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  color: #172b20;
  text-align: left;
  font: 16px/1.6 system-ui, sans-serif;
}
.court-place-query, .court-place-results, .court-place-confirmation { box-sizing: border-box; }
.court-place-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.court-place-header h2 { margin: 0; font-size: 19px; }
:is(.court-place-close, .court-place-search, .court-place-result > button, .court-place-apply) {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #166534;
  border-radius: 8px;
  background: #fff;
  color: #14532d;
  font: inherit;
  cursor: pointer;
}
:is(.court-place-close, .court-place-search, .court-place-result > button, .court-place-apply, .court-place-query, .court-place-attribution a):focus-visible { outline: 3px solid #0284c7; outline-offset: 2px; }
:is(.court-place-close, .court-place-search, .court-place-result > button, .court-place-apply):disabled { color: #55605a; background: #f1f5f3; border-color: #cbd5ce; cursor: default; }
.court-place-close { flex-shrink: 0; }
.court-place-help, .court-place-status { margin: 12px 0; font-size: 14px; overflow-wrap: anywhere; }
.court-place-form label { display: block; margin-bottom: 4px; font-weight: 700; }
.court-place-search-row { display: flex; gap: 8px; }
.court-place-query { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #64786b; border-radius: 8px; padding: 8px; color: #172b20; background: #fff; font: inherit; }
.court-place-search { flex-shrink: 0; }
.court-place-map { width: 100%; height: 320px; min-height: 240px; background: #f1f5f3; }
.court-place-results { display: grid; gap: 8px; margin-top: 12px; }
.court-place-result { border: 1px solid #d5e1d8; padding: 8px; border-radius: 8px; }
.court-place-result > button { display: block; width: 100%; text-align: left; overflow-wrap: anywhere; }
.court-place-result-address { display: block; color: #3e5145; font-size: 14px; }
.court-place-confirmation { margin-top: 12px; padding: 12px; border: 2px solid #166534; border-radius: 8px; overflow-wrap: anywhere; }
.court-place-confirmation[hidden] { display: none; }
.court-place-public-name { margin-top: 16px; }
.court-place-public-name[hidden] { display: none; }
.court-place-public-name label { display: block; font-weight: 700; margin-bottom: 4px; }
.court-place-name { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #64786b; border-radius: 8px; background: #fff; color: #172b20; font: inherit; }
.court-place-name:focus-visible { outline: 3px solid #0284c7; outline-offset: 2px; }
.court-place-name[aria-invalid="true"] { border: 2px solid #a51d2d; }
.court-place-error { color: #a51d2d; font-weight: 600; }
.court-place-confirmation h3, .court-place-confirmation p { margin: 0 0 8px; }
.court-place-panel .court-place-apply { display: block; width: 100%; margin-top: 12px; background: #166534; color: white; }
.court-place-panel .court-place-apply:disabled { background: #e2e8e4; color: #435148; }
.court-place-label { display: inline-flex; flex-direction: column; max-width: 100%; text-align: inherit; }
.court-place-label-name, .court-place-label-address { overflow-wrap: anywhere; }
.court-place-label-address { font-size: .875em; font-weight: 400; }
.court-place-attribution {
  display: block;
  color: #5e5e5e;
  background: #fff;
  padding: 2px 4px;
  margin-top: 3px;
  font: 400 12px/1.4 sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.court-place-attribution > span:first-child { white-space: nowrap; }
.court-place-attribution a { color: #14532d; text-decoration: underline; }
@media (max-width: 420px) {
  .court-place-overlay { padding: 8px; }
  .court-place-panel { padding: 12px; max-height: calc(100dvh - 16px); }
  .court-place-header h2 { font-size: 17px; }
  .court-place-map { height: 280px; }
}
