/* Standalone component: public links retain existing theme typography/tokens.
   Editor UI lives in the outer LC document, isolated from page-content styles. */
.hw-location-navigation .nav.nav-underline {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  max-width: 100%;
  padding-bottom: 0;
  gap: var(--bs-nav-underline-gap, 1em);
}
.hw-location-navigation .nav.nav-underline .nav-item { min-width: 0; max-width: 100%; }
.hw-location-navigation .nav.nav-underline .nav-item > .nav-link {
  width: auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.hw-location-launcher {
  position: fixed; inset: 0 auto auto 0; z-index: 100001;
  border: 1px solid #444; border-radius: .25em; background: #252525; color: #fff;
  padding: .55em .8em; font: 14px/1.3 Arial, sans-serif; cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / .25); white-space: nowrap;
}
.hw-location-launcher[hidden] { display: none; }
.hw-location-dialog {
  --hw-dialog-bg: #252525; --hw-dialog-panel: #303030; --hw-dialog-border: #777;
  box-sizing: border-box; width: min(56em, calc(100vw - 2em)); max-height: calc(100dvh - 2em);
  padding: 0; border: 1px solid var(--hw-dialog-border); border-radius: .4em;
  color: #fff; background: var(--hw-dialog-bg); font: 1rem/1.5 Arial, sans-serif;
}
.hw-location-dialog::backdrop { background: rgb(0 0 0 / .65); }
.hw-location-dialog * { box-sizing: border-box; }
.hw-location-dialog-content { padding: 1.5em; }
.hw-location-dialog h2 { margin: 0 0 .5em; font-size: 1.4em; }
.hw-location-dialog h3 { margin: 0 0 .75em; font-size: 1.1em; }
.hw-location-dialog p { margin: .6em 0 1em; }
.hw-location-dialog input, .hw-location-dialog select {
  display: block; width: 100%; min-width: 0; margin: .35em 0 .75em; padding: .6em;
  border: 1px solid var(--hw-dialog-border); border-radius: .2em; background: #fff; color: #202020; font: inherit;
}
.hw-location-dialog button {
  padding: .5em .75em; border: 1px solid var(--hw-dialog-border); border-radius: .2em;
  background: #444; color: #fff; font: inherit; cursor: pointer;
}
.hw-location-dialog button:disabled { opacity: .5; cursor: default; }
.hw-location-dialog :focus-visible, .hw-location-launcher:focus-visible { outline: 3px solid #26c6da; outline-offset: 3px; }
.hw-location-dialog a { color: #75e1ef; text-decoration: underline; }
.hw-location-rows { list-style: none; padding: 0; margin: 1.2em 0; }
.hw-location-row { padding: 1em; margin-bottom: .75em; border: 1px solid var(--hw-dialog-border); border-radius: .3em; background: var(--hw-dialog-panel); }
.hw-location-target, .hw-location-row-actions, .hw-location-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; }
.hw-location-target { overflow-wrap: anywhere; }
.hw-location-target span { flex: 1 1 100%; }
.hw-location-row-actions { margin-top: .75em; }
.hw-location-edit { border-top: 1px solid var(--hw-dialog-border); margin-top: 1.5em; padding-top: 1.2em; }
.hw-location-add label { display: block; margin-top: 1em; }
.hw-location-actions { position: sticky; bottom: 0; padding: 1em 1.5em; border-top: 1px solid var(--hw-dialog-border); background: var(--hw-dialog-bg); }
.hw-location-dialog .hw-location-primary { background: #075d68; }
.hw-location-dialog .hw-location-error { color: #ffb6b6; }
.hw-location-confirmation { position: sticky; bottom: 0; padding: 1.5em; border-top: 2px solid #26c6da; background: var(--hw-dialog-panel); }
.hw-location-confirmation button { margin: 0 .6em .6em 0; }
.hw-location-dialog [hidden] { display: none; }
