/* Line and arc tool bar, align/distribute buttons (placement-tools.js) */
:root { --c-map-guide: #f0c060; }
.linebar {
  position: absolute; z-index: 3; top: 66px; left: 50%; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
  width: max-content; max-width: calc(100% - 24px); padding: var(--sp-2) var(--sp-4);
  background: var(--c-float); border: 1px solid var(--c-line-strong);
  box-shadow: 0 0 0 3px var(--c-float-ring), 0 10px 24px rgba(0, 0, 0, .6);
  font-size: var(--fs-sm);
}
.linebar[hidden] { display: none; }
.linebar-msg { flex: 1 1 100%; color: var(--c-text); }
.linebar label { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--c-text-muted); white-space: nowrap; }
.linebar input[type=range] { width: 110px; }
.linebar input[type=number] { width: 56px; }
.linebar output { min-width: 3.2em; color: var(--c-text); }
.linebar-btns { display: inline-flex; gap: var(--sp-2); margin-left: auto; }
.arrange { margin-top: var(--sp-3); }
.arrange-btns { display: flex; flex-wrap: wrap; gap: 2px; margin-top: var(--sp-2); }
.ab { width: 32px; height: 32px; min-height: 0; padding: 0; display: inline-grid; place-items: center; }
.ab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ab:disabled { opacity: .4; }
@media (max-width: 720px) {
  /* the map toolbar sits at the bottom on phones, so the bar goes to the top and stays compact */
  .linebar { top: 8px; gap: 2px var(--sp-3); padding: var(--sp-1) var(--sp-3); }
  .linebar input[type=range] { width: 80px; }
  .linebar input[type=number] { width: 48px; min-height: 30px; }
  .linebar-btns button { min-height: 32px; }
  .ab { width: 40px; height: 40px; }
}
/* one more button (line tool) in the phone toolbar: keep all eight in view */
@media (max-width: 440px) { .mt { width: 38px; } }
@media (max-width: 360px) { .mt { width: 34px; } }
