/* Средства РЭБ / РЭР — панель главного администратора */

#ew-assets-panel {
  display: none;
  position: fixed;
  /* 52px: тулбар 50px content-box + border-right 2px, линия не должна уходить под панель */
  left: 52px;
  right: auto;
  top: 0;
  bottom: var(--status-bar-h, 24px);
  z-index: 9500;
  width: min(33vw, calc(100vw - 52px));
  max-width: none;
  max-height: none;
  flex-direction: column;
  background: #1a1f1a;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #c8d8c8;
  overflow: hidden;
}
#ew-assets-panel.is-open {
  display: flex;
  box-shadow: 1px 0 0 #3d5a3d;
}
#ew-assets-panel.is-split {
  right: 0;
  width: auto;
  box-shadow: none;
}
#ew-assets-panel.is-split .ew-hd {
  position: absolute;
  top: 0;
  left: 0;
  width: min(33vw, calc(100vw - 52px));
  z-index: 2;
  box-sizing: border-box;
  box-shadow: 1px 0 0 #3d5a3d;
}
#ew-assets-panel.is-split .ew-col {
  padding-top: 54px;
  border-right: 0;
  box-shadow: 1px 0 0 #3d5a3d;
}
#ew-assets-panel .ew-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  background: #0f140f;
  border-bottom: 1px solid #2a4a2a;
  flex-shrink: 0;
}
#ew-assets-panel .ew-hd span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d0e0d0;
}
.ew-hd-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ew-map-toggle {
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #3d5a3d;
  background: transparent;
  color: #6a8a6a;
  padding: 4px 8px;
}
.ew-map-toggle.is-on {
  background: #3a5a3a;
  border-color: #5a8a5a;
  color: #d0e0d0;
}
.ew-map-toggle:hover { color: #d0e0d0; }
#ew-assets-panel .ew-hd i {
  color: #d08a3a;
  margin-right: 6px;
}
#ew-assets-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6a8a6a;
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
}
#ew-assets-close:hover { color: #c8d8c8; }
#ew-assets-body {
  flex: 1;
  overflow: auto;
  padding: 10px 12px 12px;
  min-height: 0;
}
.ew-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ew-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c8d8c8;
  cursor: pointer;
  user-select: none;
}
.ew-switch input { accent-color: #6b9b6b; }
.ew-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.ew-tabs button,
.ew-chips button,
.ew-btn {
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #3d5a3d;
  background: transparent;
  color: #8aaa8a;
  padding: 5px 8px;
  font-size: 12px;
}
.ew-tabs button {
  flex: 1;
  font-weight: 600;
}
.ew-tabs button.is-on,
.ew-chips button.is-on {
  background: #3a5a3a;
  border-color: #5a8a5a;
  color: #d0e0d0;
}
.ew-btn.primary {
  background: #3a5a3a;
  border-color: #5a8a5a;
  color: #d8ead8;
  font-weight: 600;
}
.ew-btn.danger {
  border-color: #6a4040;
  color: #e0b0b0;
}
.ew-btn.block { width: 100%; margin-top: 8px; box-sizing: border-box; }
.ew-btn:disabled { opacity: 0.5; cursor: default; }
.ew-chips { display: flex; gap: 4px; margin-bottom: 8px; }
.ew-note, .ew-err, .ew-ok {
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.ew-note { color: #7a9a7a; }
.ew-err { color: #e0a0a0; }
.ew-ok { color: #b7d7a8; }
.ew-card, .ew-asset {
  border: 1px solid #3d5a3d;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #141a14;
}
.ew-asset {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ew-asset-side {
  display: grid;
  grid-template-columns: 28px 28px;
  gap: 4px;
  flex: 0 0 auto;
}
.ew-asset-side .ew-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.ew-asset-side .ew-icon.is-on {
  background: #3a5a3a;
  border-color: #5a8a5a;
  color: #d0e0d0;
}
.ew-asset.is-sel, .ew-card.is-sel { border-color: #d08a3a; }
.ew-plus {
  width: 36px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: #8aaa8a;
}
.ew-add-card.is-sel .ew-plus { color: #d08a3a; }
.ew-add-card {
  display: flex;
  align-items: center;
  min-height: 58px;
}
.ew-add-card .ew-card-top { align-items: center; width: 100%; }
.ew-add-card h3 { margin: 0; }
.ew-detail.is-new .ew-detail-title .ew-inline {
  border-bottom: 1px solid #3d5a3d;
}
.ew-detail.is-new .ew-inline::placeholder,
.ew-detail.is-new .ew-new-summary::placeholder {
  color: #5f7d5f;
  font-weight: 600;
}
label.ew-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  height: 168px;
  margin: 0 0 8px;
  border: 1px dashed #3d5a3d;
  background: #101610;
  color: #8aaa8a;
  font-size: 14px;
  cursor: pointer;
}
.ew-new-summary {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(61, 90, 61, 0.7);
  background: transparent;
  color: #7a9a7a;
  resize: vertical;
  outline: none;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}
.ew-detail.is-new .ew-spec-k,
.ew-detail.is-new .ew-spec-v {
  min-height: 1.2em;
}
.ew-detail.is-new .ew-spec-k:empty:before,
.ew-detail.is-new .ew-spec-v:empty:before {
  color: #5f7d5f;
  font-weight: 600;
}
.ew-detail.is-new .ew-spec-k:empty:before { content: "Параметр"; }
.ew-detail.is-new .ew-spec-v:empty:before { content: "Значение"; }
.ew-detail.is-new .ew-add-line {
  color: #c8d8c8;
  margin-top: 8px;
}
#ew-assets-panel.is-split #ew-assets-body {
  padding: 0;
  overflow: hidden;
  display: flex;
}
.ew-split {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.ew-col {
  width: min(33vw, calc(100vw - 52px));
  flex: 0 0 auto;
  box-sizing: border-box;
  overflow: auto;
  border-right: 0;
  padding: 10px 12px 12px;
}
.ew-detail {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 22px 20px;
  scrollbar-width: thin;
  scrollbar-color: #4a6a4a rgba(26, 31, 26, 0.5);
}
.ew-detail::-webkit-scrollbar {
  width: 6px;
}
.ew-detail::-webkit-scrollbar-track {
  background: rgba(26, 31, 26, 0.5);
  border-radius: 4px;
}
.ew-detail::-webkit-scrollbar-thumb {
  background: #4a6a4a;
  border-radius: 4px;
}
.ew-detail::-webkit-scrollbar-thumb:hover {
  background: #6b9b6b;
}
.ew-detail-title {
  height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 700;
  color: #e4eee4;
}
.ew-detail-title .ew-title-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ew-detail-title .ew-inline {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: inherit;
  font: inherit;
  line-height: 22px;
}
.ew-detail-title .ew-kind-pick {
  margin: 0 0 0 10px;
  flex: 0 0 auto;
}
.ew-detail-title .ew-kind-pick button {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}
.ew-detail [contenteditable="true"],
.ew-detail [contenteditable="true"]:focus,
.ew-detail-title .ew-inline:focus {
  outline: none;
  background: transparent;
}
.ew-detail-actions .ew-btn {
  flex: 1 1 140px;
  box-sizing: border-box;
  text-align: center;
}
.ew-detail-actions .ew-btn.is-on {
  background: #3a5a3a;
  border-color: #5a8a5a;
  color: #d0e0d0;
}
#ew-pop textarea.ew-field {
  font: inherit;
  resize: vertical;
  min-height: 52px;
}
.ew-photo-hit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
label.ew-sign.ew-photo-hit {
  display: flex;
  border: 0;
}
.ew-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.ew-specs td { position: relative; }
.ew-specs .ew-spec-v { min-height: 1.2em; }
.ew-row-x {
  position: absolute;
  right: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8aaa8a;
  font-size: 14px;
  line-height: 16px;
  cursor: pointer;
  opacity: 0;
}
.ew-specs tr:hover .ew-row-x { opacity: 1; }
.ew-add-line {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #7a9a7a;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
}
.ew-add-line:hover { color: #c8d8c8; }
.ew-detail .ew-photo {
  max-height: min(48vh, 520px);
  margin-top: 0;
}
.ew-back {
  flex: 0 0 auto;
  margin-left: 16px;
  border: 0;
  background: none;
  color: #8aaa8a;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  padding: 0;
}
.ew-back:hover { color: #c8d8c8; }
.ew-card h3, .ew-asset h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #e4eee4;
}
.ew-meta {
  font-size: 11px;
  color: #8aaa8a;
  line-height: 1.35;
}
.ew-sign {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  color: #1a140c;
}
.ew-sign.reb { background: #d08a3a; }
.ew-sign.rer { background: #3aa0b0; color: #062026; }
.ew-sign.lg {
  width: 52px;
  height: 52px;
  font-size: 11px;
  margin-bottom: 8px;
}
.ew-login-pick .cs-display {
  box-sizing: border-box;
  background: #0d1a0d;
  border: 1px solid #3d5a3d;
  border-radius: 4px;
  color: #c8d8c8;
  padding: 6px 22px 6px 8px;
  min-height: 32px;
  font-size: 13px;
}
.ew-login-pick .cs-display:hover { border-color: #4a7a4a; }
.ew-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  max-height: 220px;
  object-fit: contain;
  background: #101610;
  border: 1px solid rgba(61, 90, 61, 0.6);
  margin: 8px 0;
}
.ew-photo.sm {
  width: 72px;
  height: 54px;
  max-height: none;
  object-fit: cover;
  margin: 0;
  flex-shrink: 0;
}
.ew-card-top, .ew-asset-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ew-asset .ew-asset-top {
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}
.ew-grow { flex: 1; min-width: 0; }
.ew-specs {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
}
.ew-specs th, .ew-specs td {
  text-align: left;
  vertical-align: top;
  padding: 4px 6px 4px 0;
  border-bottom: 1px solid rgba(61, 90, 61, 0.45);
  overflow-wrap: anywhere;
}
.ew-specs th {
  width: 38%;
  color: #8aaa8a;
  font-weight: 600;
}
.ew-label {
  display: block;
  font-size: 10px;
  color: #7a9a7a;
  margin: 8px 0 3px;
}
.ew-field {
  width: 100%;
  box-sizing: border-box;
  background: #0d1a0d;
  border: 1px solid #3d5a3d;
  border-radius: 4px;
  color: #c8d8c8;
  padding: 6px 8px;
  font-size: 13px;
  outline: none;
}
.ew-field:focus { border-color: #6b9b6b; }
.ew-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ew-link-ask {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 2px 0 0;
  padding: 9px 12px;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
}
.ew-link-result {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.ew-link-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  line-height: 1.45;
  border: 1px dashed #3d5a3d;
  border-radius: 8px;
  color: #7a9a7a;
  background: rgba(13, 26, 13, 0.45);
}
.ew-link-all {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ew-link-all .ew-btn { text-align: center; }
.ew-dev {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border: 1px solid #3d5a3d;
  border-radius: 8px;
  background: #141a14;
  font-size: 12px;
}
.ew-dev-name {
  color: #e4eee4;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.ew-dev .ew-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 0;
}
.ew-dev .ew-actions .ew-btn { text-align: center; }
.ew-dev .ew-actions .ew-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ew-dev .ew-btn.block { margin-top: 0; }
.ew-dev .ew-btn.is-on { border-color: #d08a3a; color: #f0e2cc; }
.ew-dev-bind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ew-dev-bind .ew-meta { margin: 0; min-width: 0; }
.ew-dev-bind .ew-btn { flex: 0 0 auto; }
#ew-f-type-options .cs-option {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
#ew-f-type-options .ew-kind-tag {
  flex: 0 0 auto;
  color: #8aaa8a;
  font-size: 11px;
}
.ew-on { color: #b7d7a8; }
.ew-off { color: #c08080; }
.ew-unplaced { color: #c4b896; }
#ew-place-banner {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9400;
  max-width: calc(100vw - 24px);
  pointer-events: none;
  background: rgba(20, 16, 8, 0.94);
  border: 1px solid #d08a3a;
  color: #f0e2cc;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
#ew-place-banner .ew-banner-act {
  pointer-events: auto;
  margin: 0;
  border: 1px solid #d08a3a;
  background: transparent;
  color: #f0e2cc;
  border-radius: 4px;
  padding: 2px 8px;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
#ew-place-banner .ew-banner-act:hover { background: rgba(208, 138, 58, 0.28); }
@media (max-width: 768px) and (pointer: coarse) {
  #ew-assets-panel,
  #ew-assets-panel.is-split {
    left: 0;
    right: 0;
    top: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
  #ew-assets-panel.is-split .ew-hd {
    position: static;
    width: auto;
    box-shadow: none;
  }
  #ew-assets-panel.is-split .ew-col {
    padding-top: 10px;
    box-shadow: none;
  }
  .ew-split { flex-direction: column; }
  .ew-col {
    width: auto;
    max-height: 42%;
    border-right: none;
    border-bottom: 2px solid #3d5a3d;
  }
}
html.portrait-split #ew-assets-panel {
  left: 0;
  right: 0;
  top: calc(48px + env(safe-area-inset-top, 0px));
  bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: none;
  max-height: none;
}
#map.ew-placing,
#map.ew-placing .ol-viewport,
#map.ew-aiming,
#map.ew-aiming .ol-viewport {
  cursor: crosshair !important;
}
.ew-asset.is-on { border-color: #d08a3a; }
.ew-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ew-groups-label {
  flex: 0 0 auto;
  font-size: 12px;
  color: #8aaa8a;
}
.ew-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.ew-pill {
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #3d5a3d;
  background: transparent;
  color: #8aaa8a;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ew-pill.is-on { border-color: #d08a3a; color: #f0e2cc; }
.ew-pill.is-sel {
  background: #3a5a3a;
  border-color: #5a8a5a;
  color: #d0e0d0;
}
.ew-pill.is-sel.is-on {
  background: #3a4a28;
  border-color: #d08a3a;
}
.ew-pill:hover { border-color: #5a8a5a; color: #e4eee4; }
.ew-pill-add {
  width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #8aaa8a;
}
#ew-assets-panel .ew-chips:not(.ew-kind-pick) > button,
#ew-assets-panel .ew-pill {
  box-sizing: border-box;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 26px;
}
#ew-assets-panel .ew-chips:not(.ew-kind-pick) > button:hover {
  border-color: #5a8a5a;
  color: #e4eee4;
}
#ew-assets-panel .ew-chips:not(.ew-kind-pick) > button.is-on:hover {
  border-color: #5a8a5a;
  color: #d0e0d0;
}
.ew-group-block { margin: 0 0 10px; }
.ew-group-head {
  font-size: 12px;
  font-weight: 600;
  color: #c8d8c8;
  margin: 2px 0 6px;
  padding: 0 0 4px;
  border-bottom: 1px solid #3d5a3d;
}
.ew-group-block.is-on .ew-group-head {
  color: #f0e2cc;
  border-bottom-color: #d08a3a;
}
.ew-group-head .ew-meta { font-weight: 400; margin-left: 6px; }
.ew-ctx button:disabled { opacity: 0.45; cursor: default; }
.ew-ctx button:disabled:hover { background: transparent; }
.ew-ctx button.is-wait:disabled {
  opacity: 1;
  color: #f0e2cc;
  cursor: default;
}
.ew-dots {
  display: inline-block;
  width: 1.2em;
  text-align: left;
}
.ew-dots::after {
  content: '';
  animation: ew-dots 1.2s steps(4, end) infinite;
}
@keyframes ew-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75%, 100% { content: '...'; }
}
.ew-ctx button.is-danger { color: #e0b0b0; }
.ew-ctx, .ew-pop {
  position: fixed;
  z-index: 10080;
  background: linear-gradient(135deg, rgba(26,31,26,0.98) 0%, rgba(20,25,20,0.98) 100%);
  border: 2px solid #3d5a3d;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  color: #c8d8c8;
}
.ew-ctx {
  min-width: 196px;
  max-width: 280px;
  max-height: 70vh;
  overflow: auto;
  padding: 4px;
}
.ew-ctx button, .ew-pop button.ew-btn {
  font: inherit;
}
.ew-ctx button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #d0e0d0;
  cursor: pointer;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 13px;
}
.ew-ctx button:hover,
.ew-ctx button.is-open { background: #243424; }
.ew-ctx button.ew-ctx-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ew-ctx-caret { color: #8aaa8a; }
#ew-ctx-sub { max-width: 240px; }
#ew-ctx-sub button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ew-ctx-label {
  padding: 6px 10px 2px;
  font-size: 11px;
  color: #8aaa8a;
}
.ew-pop {
  width: 300px;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 12px;
  box-sizing: border-box;
}
.ew-pop-title {
  font-size: 13px;
  font-weight: 700;
  color: #e4eee4;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
#ew-pop .ew-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 8px;
}
#ew-pop .ew-chips button {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 5px 0;
  font-size: 11px;
  white-space: nowrap;
}
#ew-pop .ew-actions {
  flex-direction: column;
}
#ew-pop .ew-actions .ew-btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
#ew-pop .ew-actions.ew-actions-inline {
  flex-direction: row;
  justify-content: flex-start;
}
#ew-pop .ew-actions.ew-actions-inline .ew-btn {
  width: auto;
  flex: 0 0 auto;
  padding: 5px 12px;
}
#ew-pop .ew-actions.ew-actions-fill,
#ew-aim-hud .ew-actions.ew-actions-fill {
  flex-direction: row;
  width: 100%;
}
#ew-pop .ew-actions.ew-actions-fill .ew-btn,
#ew-aim-hud .ew-actions.ew-actions-fill .ew-btn {
  flex: 1 1 0;
  width: auto;
}
#ew-aim-hud {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  z-index: 10050;
  width: min(420px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 12px;
  background: linear-gradient(135deg, rgba(26,31,26,0.98) 0%, rgba(20,25,20,0.98) 100%);
  border: 2px solid #3d5a3d;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  color: #c8d8c8;
}
#ew-aim-hud .ew-aim-title {
  font-size: 13px;
  font-weight: 700;
  color: #e4eee4;
  margin-bottom: 8px;
}
#ew-aim-hud .ew-aim-vals {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #8aaa8a;
}
#ew-aim-hud .ew-aim-vals b {
  color: #f0e2cc;
  font-size: 18px;
  font-weight: 700;
}
#ew-aim-hud .ew-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 8px;
}
#ew-aim-hud .ew-chips button {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 5px 0;
  font-size: 11px;
  white-space: nowrap;
}
#ew-aim-hud .ew-note { margin-bottom: 0; }
.ew-pop .ew-label { margin-top: 6px; }
