/* PatrolNav speed limits.
   Chrome is dark and high contrast because this gets used in a car at night.
   The map itself stays light so the coloured road data is the brightest thing
   on screen. Numbers are always monospaced and tabular — they get read at a
   glance, not studied. */

:root {
  --ink:      #0B1014;
  --ink-2:    #151D24;
  --ink-3:    #22303A;
  --paper:    #E9EEF2;
  --muted:    #7E939F;
  --signal:   #00B4D8;   /* PatrolNav's own accent */

  --v25:      #2FBF71;
  --v35:      #E8C547;
  --v45:      #F08A24;
  --v55:      #E0454F;
  --unknown:  #94A3AC;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --bar-pad: max(14px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

button, input { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Micro-labels borrow the register of dispatch and signage: short, upright,
   letterspaced, never sentence-length. */
.eyebrow, .count, .legend__toggle, .unit, .status {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 4;
  height: calc(46px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
}

.wordmark { display: flex; align-items: center; gap: 8px; }
.wordmark__logo {
  width: 22px; height: 22px;
  flex: none;
  display: block;
  border-radius: 3px;
}
.wordmark__owner {
  font-size: 15px; font-weight: 800; letter-spacing: -.01em;
}
.wordmark__tool {
  font-size: 11px; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--signal);
}

.topbar__right {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}

.status {
  font-family: var(--mono);
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  flex: none;
}
.status[data-state="busy"]  { color: var(--signal); border-color: var(--signal); }
.status[data-state="error"] { color: var(--v55);    border-color: var(--v55); }
.status[data-state="ok"]    { color: var(--v25);    border-color: var(--v25); }

.account {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.account[hidden] { display: none; }
.account__who {
  font-size: 12px; font-weight: 600; color: var(--paper);
  max-width: 28vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account__role {
  flex: none;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px;
  background: var(--ink-3); color: var(--muted);
}
.account__role[data-role="moderator"] { background: rgba(0,180,216,.18); color: var(--signal); }
.account__role[data-role="admin"] { background: rgba(232,197,71,.18); color: var(--v35); }
.account__out {
  flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); padding: 4px 8px;
  border: 1px solid var(--ink-3); border-radius: 4px;
}
.account__out:hover { color: var(--paper); border-color: var(--muted); }

@media (max-width: 520px) {
  .status { display: none; }
  .account__who { max-width: 22vw; }
}

/* ---------- map ---------- */

#map {
  position: fixed;
  inset: calc(46px + env(safe-area-inset-top)) 0 0 0;
}

.maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(255,255,255,.82) !important;
}

.zoomgate {
  position: fixed; z-index: 3;
  /* Pixel Y from viewport top, measured under .mapchrome so chips never cover it. */
  top: var(--map-chrome-bottom, 100px);
  left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink-3); border-radius: 999px;
  padding: 7px 15px; font-size: 12px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  max-width: calc(100vw - 24px);
  text-align: center;
}

/* ---------- legend ---------- */

.legend {
  position: fixed; z-index: 3;
  left: 12px; bottom: calc(var(--bar-height, 84px) + 14px);
  background: var(--ink); border: 1px solid var(--ink-3);
  border-radius: 8px; overflow: hidden;
  max-width: 46vw;
}
.legend__toggle {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; color: var(--muted);
}
.legend__list {
  list-style: none; margin: 0; padding: 0 12px 10px;
  font-size: 12px; font-family: var(--mono);
}
.legend[data-open="false"] .legend__list { display: none; }
.legend__list li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.legend__list i { width: 16px; height: 4px; border-radius: 2px; flex: none; }
.legend__list i.legend__dash {
  background: repeating-linear-gradient(
    90deg, var(--muted) 0 3px, transparent 3px 6px
  ) !important;
}

/* ---------- command bar ---------- */

.bar {
  position: fixed; inset: auto 0 0 0; z-index: 5;
  background: var(--ink);
  border-top: 1px solid var(--ink-3);
  padding: 12px 14px var(--bar-pad);
  box-shadow: 0 -10px 30px rgba(0,0,0,.45);
}

.bar__idle { text-align: center; }
.bar__hint { margin: 0; font-size: 13px; color: var(--muted); }
.bar__notice {
  margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.bar__notice a {
  color: var(--signal); font-weight: 600; text-decoration: none;
}
.bar__notice a:hover { text-decoration: underline; }
.bar__notice[hidden] { display: none; }
.bar[data-mode="empty"] .bar__work { display: none; }
.bar[data-mode="work"]  .bar__idle { display: none; }

.bar__head { display: flex; align-items: flex-start; gap: 12px; }

/* Signature element: the actual thing bolted to the pole. It updates live as
   you change the number, so you are looking at the sign you are describing. */
.sign {
  background: #fff; padding: 3px; border-radius: 4px;
  flex: none; width: 66px;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.sign__inner {
  border: 3px solid #0B1014; border-radius: 2px;
  padding: 5px 4px 6px; text-align: center; color: #0B1014;
}
.sign__legend {
  display: block;
  font-size: 9px; font-weight: 800; line-height: 1.08;
  letter-spacing: .04em; text-transform: uppercase;
}
.sign__value {
  display: block;
  font-family: var(--mono);
  font-size: 25px; font-weight: 800; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.sign[data-unit="kmh"] .sign__inner { border-radius: 50%; padding: 9px 4px; }
.sign[data-unit="kmh"] .sign__legend { display: none; }

.bar__meta { flex: 1; min-width: 0; }
.count  { margin: 0; color: var(--signal); }
.names  {
  margin: 3px 0 0; font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail {
  margin: 3px 0 0; font-family: var(--mono); font-size: 11px; color: var(--muted);
  line-height: 1.35;
}
.detail a { color: var(--muted); }

.iconbtn {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--ink-3); color: var(--muted);
  font-size: 20px; line-height: 1;
}

/* quick picks — most streets share a handful of values */
.chips {
  display: flex; gap: 6px; margin-top: 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-width: 46px; padding: 8px 10px;
  border: 1px solid var(--ink-3); border-radius: 8px;
  background: var(--ink-2); color: var(--paper);
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chip.is-on { border-color: var(--signal); color: var(--signal); }

.entry { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

.stepper {
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--ink-3); border-radius: 8px;
  background: var(--ink-2); font-size: 20px; font-weight: 700;
}

.entry__value {
  flex: 1; min-width: 0; height: 44px;
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--ink-3); border-radius: 8px;
  text-align: center;
  font-family: var(--mono); font-size: 20px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.entry__value::-webkit-outer-spin-button,
.entry__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.units {
  flex: none; display: flex;
  border: 1px solid var(--ink-3); border-radius: 8px; overflow: hidden;
}
.unit { padding: 0 11px; height: 44px; color: var(--muted); background: var(--ink-2); }
.unit.is-on { background: var(--signal); color: var(--ink); }

.actions {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.actions__more {
  display: flex; gap: 8px; min-width: 0;
}
.actions__more:not(:has(> :not([hidden]))) { display: none; }
.actions__more .btn {
  flex: 1 1 0; min-width: 0;
}

.btn {
  height: 46px; border-radius: 9px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.btn--go {
  width: 100%; background: var(--signal); color: var(--ink);
}
.btn--go:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost {
  padding: 0 14px;
  border: 1px solid var(--ink-3); color: var(--paper); background: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn--sm {
  height: 34px; padding: 0 12px; font-size: 12px; border-radius: 7px;
  max-width: none;
}
.btn--danger {
  background: var(--v55); color: #fff; padding: 0 12px;
}
.btn--danger:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- selection bar: moderator actions ---------- */

.modactions {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--ink-3);
}
.modactions[hidden] { display: none; }
.modactions__status {
  margin: 0 0 8px; font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.modactions__row { display: flex; flex-wrap: wrap; gap: 6px; }
.modactions__row .btn { flex: 1; min-width: 72px; max-width: none; }
.modactions__form {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.modactions__form[hidden] { display: none; }
.modactions__form input,
.modactions__form select,
.modfilters input,
.modfilters select,
.roleform input,
.roleform select,
.killform input {
  height: 36px; padding: 0 10px;
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--ink-3); border-radius: 8px; font-size: 13px;
}
.modactions__override {
  display: grid; grid-template-columns: 72px 72px 1fr; gap: 6px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed; z-index: 6;
  left: 50%; bottom: calc(var(--bar-height, 84px) + 18px);
  transform: translate(-50%, 8px);
  background: var(--paper); color: var(--ink);
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-up { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="error"] { background: var(--v55); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* ---------- auth form ---------- */

.auth-social {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 4px;
}
.auth-social__btn { width: 100%; }
.auth-social__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 0 4px; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
}
.auth-social__divider::before,
.auth-social__divider::after {
  content: ""; flex: 1; height: 1px; background: var(--ink-3);
}
.auth-social__divider span { flex: none; }

.auth-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.auth-form__label {
  display: flex; flex-direction: column; gap: 6px;
  color: var(--muted); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.auth-form__label input {
  height: 46px; padding: 0 14px;
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--ink-3); border-radius: 10px;
  font-size: 15px; text-transform: none; letter-spacing: normal; font-weight: 400;
}
.auth-form__submit { width: 100%; margin-top: 4px; }
.auth-dev { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
/* display:flex above would otherwise override the HTML hidden attribute */
.auth-dev[hidden] { display: none; }
.auth-dev__note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* ---------- state picker (first-run gate) ---------- */

.picker {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(6, 10, 13, .82);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.picker[hidden] { display: none; }

.picker__panel {
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  background: var(--ink); border: 1px solid var(--ink-3);
  border-radius: 16px 16px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
}

.picker__eyebrow {
  margin: 0 0 6px; color: var(--signal);
  display: flex; align-items: center; gap: 7px;
  text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700;
}
.picker__eyebrow-logo {
  width: 18px; height: 18px;
  flex: none;
  display: block;
  border-radius: 3px;
}
.picker__title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.picker__lede { margin: 10px 0 18px; color: var(--paper); font-size: 15px; line-height: 1.5; }
.picker__lede + .picker__trust { margin-top: -8px; }
.picker__trust {
  margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.45;
}
.picker__footer {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--ink-3);
  font-size: 12px;
}
.picker__footer-link {
  color: var(--muted); text-decoration: none;
}
.picker__footer-link:hover { color: var(--signal); }

.picker__search { display: flex; gap: 8px; margin-bottom: 16px; }
.picker__search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--ink-3); border-radius: 10px; font-size: 15px;
}
.picker__locate {
  flex: none; padding: 0 14px; height: 46px;
  border: 1px solid var(--ink-3); border-radius: 10px;
  background: var(--ink-2); color: var(--paper);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}

.picker__label {
  margin: 16px 0 8px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 700;
}
.muni-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.muni-empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }

.muni {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 14px;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 10px;
  color: var(--paper);
}
.muni:hover { border-color: var(--signal); }
.muni__body { flex: 1; min-width: 0; }
.muni__name { font-size: 15px; font-weight: 700; }
.muni__meta {
  margin-top: 2px; color: var(--muted); font-family: var(--mono);
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.muni__action {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--signal);
}

.picker__note { margin: 14px 0 0; color: var(--muted); font-size: 12px; min-height: 1em; }
.picker__note[data-tone="error"] { color: var(--v55); }

/* Left map chrome: area + Review + zone, stacked so wraps never collide. */
.mapchrome {
  position: fixed; z-index: 4;
  top: calc(54px + env(safe-area-inset-top)); left: 12px;
  right: 56px; /* clear MapLibre zoom / locate controls */
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  pointer-events: none;
}
.mapchrome > * { pointer-events: auto; }

.chiprow {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  max-width: 100%;
}

.areachip {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--ink); border: 1px solid var(--ink-3); color: var(--paper);
  font-size: 12px; font-weight: 600;
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
  max-width: 100%;
  min-width: 0;
}
.areachip[hidden] { display: none; }
.areachip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none;
}
.areachip__caret { color: var(--muted); font-size: 10px; flex: none; }

.reviewchip {
  padding: 7px 12px; border-radius: 999px;
  background: var(--ink); border: 1px solid var(--signal); color: var(--signal);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.reviewchip[hidden] { display: none; }
.reviewchip.is-open { background: var(--signal); color: var(--ink); }

/* ---------- zone (box) select ---------- */

.zonetoggle {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--ink); border: 1px solid var(--ink-3); color: var(--paper);
  text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700;
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.zonetoggle[hidden] { display: none; }
.zonetoggle.is-on {
  background: var(--signal); color: var(--ink); border-color: var(--signal);
}
.zonetoggle__icon {
  width: 13px; height: 13px; flex: none;
  border: 1.5px dashed currentColor; border-radius: 3px;
}

/* Banner while the mode is active — same band as zoomgate, under map chrome. */
.zonehint {
  position: fixed; z-index: 3;
  top: var(--map-chrome-bottom, 100px);
  left: 50%; transform: translateX(-50%);
  background: var(--signal); color: var(--ink);
  border-radius: 999px; padding: 7px 15px;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  max-width: calc(100vw - 24px);
  text-align: center;
}
.zonehint[hidden] { display: none; }

/* The rubber-band rectangle, drawn inside the map's canvas container. */
.zonebox {
  position: absolute; z-index: 3;
  border: 1.5px dashed var(--signal);
  background: rgba(0, 180, 216, .15);
  pointer-events: none;
  display: none;
}

/* While selecting, take the touch gesture from the browser (and MapLibre) so a
   one-finger drag draws a box instead of panning. */
.maplibregl-canvas-container.zone {
  cursor: crosshair;
  touch-action: none !important;
}

/* ---------- moderation panel ---------- */

.modpanel {
  position: fixed; inset: 0; z-index: 25;
  background: rgba(6, 10, 13, .55);
  display: flex; justify-content: flex-end;
}
.modpanel[hidden] { display: none; }

.modpanel__sheet {
  width: min(420px, 100%);
  height: 100%;
  background: var(--ink); border-left: 1px solid var(--ink-3);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  box-shadow: -12px 0 40px rgba(0,0,0,.45);
}

.modpanel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--ink-3);
}
.modpanel__title { margin: 0; font-size: 16px; font-weight: 800; }

.modpanel__tabs {
  display: flex; gap: 2px; padding: 8px 12px;
  border-bottom: 1px solid var(--ink-3); overflow-x: auto;
}
.modtab {
  flex: none; padding: 8px 12px; border-radius: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}
.modtab.is-on { background: var(--ink-2); color: var(--signal); }
.modtab[hidden] { display: none; }

.modpanel__body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 24px;
}
.modtab-panel[hidden] { display: none; }

.modfilters {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.modfilters input, .modfilters select { flex: 1; min-width: 90px; }

.modlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.modempty { margin: 24px 0; text-align: center; color: var(--muted); font-size: 14px; }

.moditem {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border: 1px solid var(--ink-3); border-radius: 10px;
  background: var(--ink-2); text-align: left; width: 100%; color: inherit;
}
.moditem:hover, .moditem__pick:hover { border-color: var(--signal); }
.moditem__focus {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; text-align: left; color: inherit; padding: 0;
}
.moditem__top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.moditem__title { font-size: 14px; font-weight: 700; }
.moditem__meta {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.moditem__badge {
  flex: none; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 4px;
  background: rgba(0,180,216,.15); color: var(--signal);
}
.moditem__badge[data-status="flagged"] {
  background: rgba(224,69,79,.18); color: var(--v55);
}
.moditem__badge[data-status="approved"] {
  background: rgba(47,191,113,.18); color: var(--v25);
}
.moditem__note { font-size: 12px; color: var(--paper); }
.moditem__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.moditem__actions .btn { flex: 1; min-width: 70px; max-width: none; }
.moditem__reason {
  display: flex; gap: 6px; width: 100%;
}
.moditem__reason[hidden] { display: none; }
.moditem__reason input { flex: 1; min-width: 0; }
.moditem__pick {
  display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
}
.moditem__pick > .moditem__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.moditem__check {
  flex: none; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--signal);
}

.queuebulk {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 12px; padding: 10px 12px;
  border: 1px solid var(--ink-3); border-radius: 10px;
  background: rgba(0,180,216,.06);
}
.queuebulk[hidden] { display: none; }
.queuebulk__top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.queuebulk__all {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--paper);
}
.queuebulk__count {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
#queueBulkStreet { width: 100%; max-width: none; }
#queueBulkStreet[hidden] { display: none; }
.queuebulk__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.queuebulk__actions .btn { flex: 1; min-width: 70px; max-width: none; }
.queuebulk__deny {
  display: flex; gap: 6px;
}
.queuebulk__deny[hidden] { display: none; }
.queuebulk__deny input { flex: 1; min-width: 0; }

.roleform, .killform {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-3);
}
.roleform label, .killform label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.roleform label input, .roleform label select,
.killform label input { text-transform: none; letter-spacing: normal; font-weight: 400; }
.killform__actions { display: flex; gap: 8px; }
.killform__actions .btn { flex: 1; max-width: none; }
.modwarn {
  margin: 0 0 14px; font-size: 12px; line-height: 1.45; color: var(--v35);
  padding: 10px 12px; border: 1px solid rgba(232,197,71,.35); border-radius: 8px;
  background: rgba(232,197,71,.08);
}
.killout {
  margin: 0; padding: 12px; border-radius: 8px;
  background: var(--ink-2); border: 1px solid var(--ink-3);
  font-family: var(--mono); font-size: 11px; color: var(--paper);
  white-space: pre-wrap; word-break: break-word; max-height: 40vh; overflow: auto;
}
.killout[hidden] { display: none; }

@media (max-width: 719px) {
  .modpanel { align-items: flex-end; }
  .modpanel__sheet {
    width: 100%; height: min(88vh, 100%);
    border-left: 0; border-top: 1px solid var(--ink-3);
    border-radius: 16px 16px 0 0;
  }
}

@media (min-width: 720px) {
  .bar {
    left: auto; right: 16px; bottom: 16px; width: 420px;
    border: 1px solid var(--ink-3); border-radius: 14px;
  }
  .legend { bottom: 16px; max-width: none; }
  .picker { align-items: center; }
  .picker__panel { border-radius: 16px; }
}