:root {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f6f6f6;
  --tap-min: 44px;
  --brand: #1a5f4a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #ccc;
}

.skip-link:focus {
  left: 1rem;
  z-index: 10;
}

.site-header {
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.site-header-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.site-title {
  color: inherit;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-nav a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-main {
  max-width: 42rem;
  margin: 2rem auto;
  padding: 0 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 960px) {
  .site-main {
    max-width: 56rem;
  }
}

.panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.panel h1 {
  margin-top: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.panel a {
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  color: var(--brand);
}

.panel .lede {
  font-size: 1.05rem;
}

.panel .meta {
  font-size: 0.9rem;
  color: #555;
}

.panel .meta-footer {
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

.panel .meta-footer a {
  color: #555;
}

/* About / user guide */
.info-page .info-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}

.info-page .info-section h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.info-placeholder {
  color: #555;
  font-style: italic;
  margin: 0;
}

.info-toc {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  background: #f9faf9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.info-toc-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.info-toc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.info-toc li {
  margin: 0.35rem 0;
}

.info-toc a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
}

.info-toc a:hover {
  text-decoration: underline;
}

.info-toc-note {
  margin: 0.85rem 0 0;
}

.info-attributions {
  margin: 0;
  padding-left: 1.1rem;
}

.info-attributions li + li {
  margin-top: 0.4rem;
}

.auth-status {
  margin-bottom: 0.75rem;
}

.inline-form {
  margin: 0 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-apple {
  background: #000;
  color: #fff;
}

.btn-apple:hover {
  filter: brightness(1.12);
}

.btn-secondary {
  background: #eee;
  color: #222;
  border: 1px solid #ccc;
}

.btn-secondary:visited,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  color: #222;
}

.btn-secondary:hover {
  background: #e4e4e4;
}

.kv {
  margin: 0 0 1.25rem;
}

.kv dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.kv dt:first-child {
  margin-top: 0;
}

.kv dd {
  margin: 0.25rem 0 0;
}

.muted {
  color: #777;
}

.panel-warn {
  border-color: #c9a227;
  background: #fffbf0;
}

.panel-warn h1 {
  color: #6b5900;
}

/* Full-height map (MapLibre) — container must have a definite height or MapLibre draws nothing */
body.map-page {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.map-page .site-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

body.map-page .map-canvas {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  position: relative;
}

body.map-page .map-canvas .maplibregl-map,
body.map-page .map-canvas .maplibregl-canvas-container {
  font-family: inherit;
}

body.map-page .site-main {
  position: relative;
}

.map-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  padding: 0 max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.map-ui .map-checkin-card,
.map-ui .map-geo-status {
  pointer-events: auto;
}

.map-geo-status {
  font-size: 0.85rem;
  color: #333;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.map-geo-status.muted,
.map-checkin-card .muted {
  color: #555;
}

.map-checkin-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.map-checkin-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.map-checkin-card .checkin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.map-checkin-card .dest-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.map-checkin-card .dest-list-actions .btn-secondary.is-on {
  border-color: #1a5f4a;
  background: #e8f5f0;
  color: #0f3d30;
}

.map-follow-btn {
  width: 30px;
  height: 30px;
  font-size: 17px;
  line-height: 1;
}

.map-follow-btn.is-on {
  background: #e8f5f0;
  color: #0f3d30;
}

.route-elevation-profile {
  margin: 0.4rem 0 0.6rem;
}

.route-elevation-profile svg {
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}

.route-elevation-profile-line {
  fill: none;
  stroke: #1a5f4a;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.map-checkin-card button.btn-block {
  width: 100%;
  justify-content: center;
}

.map-checkin-detail .detail-row {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.map-user-card .mono {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.hidden {
  display: none !important;
}

/* Admin: point picker map */
.admin-point-map {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin: 0.5rem 0 0.75rem;
}

.admin-route-map {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin: 0.5rem 0 0.35rem;
}

.admin-route-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.75rem;
}

/* Editor-only N50 / Telltur reference toggles (MapLibre container) — top-right so it does not cover the map bottom */
.admin-map-n50-tobler-slot {
  margin-bottom: 0.35rem;
}

.admin-map-n50-panel .admin-field-label {
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #374151;
}

.admin-map-n50-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0.2rem 0 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid #e5e7eb;
}

.admin-map-n50-panel {
  position: absolute;
  z-index: 2;
  top: 132px;
  right: 8px;
  left: auto;
  bottom: auto;
  max-width: min(18rem, calc(100% - 16px));
  max-height: min(60vh, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.admin-map-n50-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e5e5e5;
}

.admin-map-n50-toggle {
  position: absolute;
  z-index: 3;
  top: 98px;
  right: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
}

.admin-map-n50-toggle:hover {
  background: #f9fafb;
}

.admin-map-n50-panel--hidden {
  display: none;
}

.admin-map-n50-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.2rem 0;
  cursor: pointer;
  max-width: 100%;
}

.admin-map-n50-row span {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.admin-map-n50-row input {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Unified hiking points admin list */
.admin-hiking-points-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .admin-hiking-points-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .admin-hiking-points-list-wrap {
    flex: 1;
    min-width: 0;
  }

  .admin-hiking-points-map-aside {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 0.75rem;
  }
}

.admin-hiking-points-filters-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .admin-hiking-points-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .admin-hiking-points-filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-table-scroll {
  overflow-x: auto;
  max-height: min(70vh, 42rem);
  overflow-y: auto;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.admin-hiking-points-table {
  margin: 0;
  min-width: 100%;
}

.admin-hiking-points-row {
  cursor: pointer;
}

.admin-hiking-points-row:hover {
  background: #f8fafc;
}

.admin-hiking-points-row--selected {
  background: #eff6ff;
}

.admin-hiking-points-actions {
  white-space: nowrap;
}

.admin-hiking-points-actions .inline-form {
  display: inline;
}

.admin-hiking-points-map {
  width: 100%;
  height: 280px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-top: 0.35rem;
  position: relative;
}

.admin-hiking-points-map .maplibregl-canvas {
  border-radius: 8px;
}

.admin-hiking-points-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin-hiking-points-count {
  margin-top: 0.15rem;
}

.small {
  font-size: 0.9rem;
}

.admin-latlng-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .admin-latlng-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.admin-input {
  width: 100%;
  max-width: 32rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.admin-textarea-mono {
  font-family: ui-monospace, monospace;
  max-width: 100%;
}

.admin-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
}

.admin-checkbox input {
  margin-top: 0.2rem;
}

.admin-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.admin-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-checklist li {
  margin: 0.35rem 0;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
}

.admin-list li:last-child {
  border-bottom: none;
}

.admin-list-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-left: auto;
}

.admin-list-actions .inline-form {
  display: inline;
  margin: 0;
}

.admin-list-actions .inline-form button {
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  min-height: 36px;
}

.admin-subh {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.admin-metrics-dl dt {
  font-weight: 600;
  margin-top: 0.5rem;
}

.admin-metrics-dl dt:first-child {
  margin-top: 0;
}

.admin-metrics-dl dd {
  margin: 0.15rem 0 0;
}

.form-error {
  color: #8a1f11;
  background: #fff2f0;
  border: 1px solid #f0c8c2;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
}

.admin-form {
  display: grid;
  gap: 0.55rem;
  max-width: 32rem;
}

.admin-inline-fields {
  display: grid;
  gap: 0.5rem;
  max-width: 32rem;
}

.admin-form input,
.admin-form select {
  width: 100%;
  max-width: 32rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid #ececec;
  padding: 0.45rem 0.5rem;
  vertical-align: top;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Turruter workspace (desktop-first admin) */
body.turruter-list-page .site-main,
body.turruter-map-page .site-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.turruter-list-shell {
  padding: 0.9rem 1rem 1.2rem;
}

.turruter-topbar {
  display: flex;
  gap: 0.9rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.turruter-topbar h1 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

.turruter-topbar-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.turruter-list-controls {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 0.65rem;
}

.turruter-list-control-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.turruter-list-control-row label {
  font-size: 0.83rem;
  color: #555;
}

.turruter-list-control-actions {
  align-self: end;
}

.turruter-list-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0.7rem;
}

.turruter-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.55rem;
}

.turruter-table .small {
  font-size: 0.82rem;
}

.turruter-table .turruter-table-row {
  cursor: pointer;
}

.turruter-table .turruter-table-row:hover {
  background: #f8fafc;
}

.turruter-pager {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
}

.turruter-drawer {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem;
  min-height: 300px;
  max-height: calc(100vh - 13rem);
  overflow: auto;
}

.turruter-drawer-head {
  position: sticky;
  top: -0.65rem;
  background: #fff;
  padding: 0.2rem 0 0.45rem;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.5rem;
}

body.turruter-map-page {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.turruter-map-page .site-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.turruter-map-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.65rem 0.65rem;
}

.turruter-topbar--map {
  margin-bottom: 0.45rem;
}

.turruter-map-workspace-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.turruter-map-workspace {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}

.turruter-map-workspace--panel-hidden {
  grid-template-columns: 0 minmax(0, 1fr);
}

.turruter-map-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.55rem;
  overflow: auto;
  min-height: 0;
  max-height: 100%;
  font-size: 0.8125rem;
  line-height: 1.38;
}

.turruter-map-panel .admin-field-label {
  font-size: 0.76rem;
}

.turruter-map-panel h3 {
  font-size: 1rem;
}

.turruter-map-panel .admin-input {
  font-size: 0.8125rem;
}

.turruter-map-panel .btn {
  min-height: 0;
  padding: 0.26rem 0.52rem;
  font-size: 0.8rem;
  line-height: 1.22;
  border-radius: 6px;
  font-weight: 600;
}

.turruter-map-panel-toggle {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 4;
  min-width: 2rem;
  min-height: 0;
  padding: 0.32rem 0.48rem;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.turruter-map-workspace-wrap .turruter-map-panel-toggle {
  pointer-events: auto;
}

.turruter-map-workspace-wrap .turruter-map-panel-toggle.turruter-map-panel-toggle--open {
  left: calc(360px + 0.15rem);
}

.turruter-notice-host {
  position: absolute;
  top: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: min(420px, 92vw);
}

.turruter-notice {
  background: #1e293b;
  color: #f8fafc;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  animation: turruter-notice-in 0.2s ease;
}

@keyframes turruter-notice-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.turruter-map-panel .btn:disabled,
.turruter-map-panel .btn.tm-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.tm-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tm-tool-btn .fg-route,
.tm-tool-btn .fg-route-start,
.tm-tool-btn .fg-route-end {
  font-size: 1.05em;
  line-height: 1;
}

.tm-route-copy-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tm-route-copy-mode .fg-polyline {
  font-size: 1.05em;
  line-height: 1;
}

.tm-relation-link-row .tm-tool-btn .fg-pois {
  font-size: 1.05em;
  line-height: 1;
}

.tm-route-copy-mode.tm-route-copy-mode--on {
  box-shadow: inset 0 0 0 2px #0ea5e9;
}

.tm-pending-point-row {
  width: 100%;
  justify-content: flex-start;
}

.turruter-metrics-block {
  margin: 0.5rem 0 0.65rem;
  padding: 0.45rem 0.5rem;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.turruter-metrics-block .kv {
  margin-bottom: 0.25rem;
}

.turruter-drawer .turruter-metrics-block {
  margin-top: 0.35rem;
}

.turruter-map-panel--hidden {
  visibility: hidden;
  pointer-events: none;
}

.turruter-map-canvas {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 0;
  height: 100%;
  position: relative;
}

.turruter-map-canvas .maplibregl-map,
.turruter-map-canvas .maplibregl-canvas-container {
  border-radius: 8px;
}

.turruter-tools {
  border-top: 1px solid #f0f0f0;
  margin-top: 0.6rem;
  padding-top: 0.45rem;
}

.turruter-tool-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  align-items: center;
}

/* `hidden` alone is overridden by `.turruter-tool-row { display: flex }` (lower specificity loses). */
.turruter-tool-row[hidden] {
  display: none !important;
}

.turruter-tool-row--with-snap .tm-snap-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.turruter-tool-row--with-snap .tm-snap-toggle .fg-snap {
  font-size: 1.05em;
  line-height: 1;
}

.tm-snap-toggle.tm-snap-toggle--off {
  opacity: 0.65;
}

.turruter-search-results {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.turruter-search-results li + li {
  border-top: 1px solid #f3f4f6;
}

.turruter-search-hit {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.turruter-search-hit:hover {
  background: #f8fafc;
}

.turruter-selected .tm-related-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.turruter-selected .tm-related-row-label {
  flex: 1;
  min-width: 0;
}

.turruter-selected .tm-rel-remove {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
}

.turruter-selected .tm-rel-remove--inline {
  padding: 0.15rem 0.35rem;
}

.turruter-selected.tm-selected--relation-mode .tm-rel-remove {
  display: inline-flex;
}

.turruter-selected .tm-related-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

