* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f4f6;
  color: #111827;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

.eyebrow {
  color: #6b7280;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  font-size: 42px;
  line-height: 1;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

h4 {
  margin: 0 0 12px;
}

.layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: white;
  border-radius: 22px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .08);
  border: 1px solid #e5e7eb;
}

.filters-card,
.create-card {
  padding: 22px;
  margin-bottom: 22px;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid #d1d5db;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 16px;
  background: white;
}

textarea {
  min-height: 210px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: #2563eb;
  color: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  filter: brightness(.95);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.secondary-button {
  background: #374151;
}

.warning-button {
  background: #f97316;
}

.danger-button {
  background: #dc2626;
}

.success-button {
  background: #16a34a;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.summary,
.muted,
.hint-text {
  color: #6b7280;
  font-weight: 800;
}

.hint-text {
  margin-top: 10px;
  font-size: 14px;
}

.status-pill {
  padding: 12px 18px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
}

.status-pill.online {
  background: #dcfce7;
  color: #166534;
}

.create-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.create-card-header p {
  margin: 0;
  color: #4b5563;
  font-weight: 700;
}

.create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.create-pane {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
}

.contacts-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.bulk-help {
  background: #111827;
  color: white;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0 14px;
  line-height: 1.45;
}

.bulk-help code {
  color: #bfdbfe;
}

.bulk-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #064e3b;
  font-weight: 800;
}

.error-list {
  margin-top: 10px;
  padding: 10px;
  background: #fee2e2;
  color: #7f1d1d;
  border-radius: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, .9fr);
  gap: 22px;
  align-items: start;
}

.list-card,
.detail-card {
  padding: 22px;
  min-height: 520px;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  cursor: pointer;
  background: #fff;
}

.user-row:hover,
.user-row.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.user-name {
  font-size: 20px;
  font-weight: 900;
}

.user-meta {
  color: #4b5563;
  margin-top: 4px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.device-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.device-row-actions .small-button {
  padding: 8px 12px;
}

.badge {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  background: #e5e7eb;
  color: #374151;
  white-space: nowrap;
}

.badge.role-NEIGHBOR { background: #dbeafe; color: #1e40af; }
.badge.role-RESOLVER { background: #ffedd5; color: #9a3412; }
.badge.role-OPERATOR { background: #ede9fe; color: #5b21b6; }
.badge.role-ADMIN { background: #111827; color: white; }
.badge.status-VALIDATED { background: #dcfce7; color: #166534; }
.badge.status-PROVISIONAL_ACTIVE { background: #fef9c3; color: #854d0e; }
.badge.status-PENDING_VERIFICATION { background: #fee2e2; color: #991b1b; }
.badge.status-REJECTED { background: #fecaca; color: #7f1d1d; }
.badge.status-SUSPENDED { background: #e5e7eb; color: #111827; }
.badge.account-active { background: #dcfce7; color: #166534; }
.badge.account-inactive { background: #e5e7eb; color: #111827; }

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-name {
  font-size: 30px;
  font-weight: 900;
}

.detail-subtitle {
  margin-top: 4px;
  color: #6b7280;
  font-size: 18px;
}

.detail-section {
  padding: 18px 0;
  border-top: 1px solid #e5e7eb;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  background: #f9fafb;
  border-radius: 14px;
  padding: 12px;
}

.info-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.info-value {
  margin-top: 4px;
  font-weight: 800;
  word-break: break-word;
}

.action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-card,
.ticket-card {
  padding: 12px;
  background: #f9fafb;
  border-radius: 14px;
  margin-bottom: 10px;
}

.empty-state {
  color: #6b7280;
  font-size: 18px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  background: #111827;
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

@media (max-width: 1160px) {
  .filters-grid,
  .content-grid,
  .create-grid {
    grid-template-columns: 1fr;
  }

  .badges {
    justify-content: flex-start;
  }

  .device-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 18px;
  }

  h1 {
    font-size: 34px;
  }

  .layout {
    padding: 14px;
  }

  .filters-card,
  .create-card,
  .list-card,
  .detail-card {
    padding: 16px;
  }

  .user-row,
  .info-grid,
  .edit-grid {
    grid-template-columns: 1fr;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.small-button {
  padding: 10px 14px;
  font-size: 14px;
}

.session-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 900;
}

.login-view {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(520px, 100%);
  padding: 28px;
}

.login-card h2 {
  margin: 6px 0 10px;
  font-size: 34px;
}

.login-card p {
  color: #4b5563;
  font-weight: 700;
  line-height: 1.45;
}

.login-card button {
  width: 100%;
  margin-top: 14px;
}

.login-error {
  margin-top: 14px;
  color: #b91c1c;
  font-weight: 900;
}


.platform-card {
  padding: 22px;
  margin-bottom: 22px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}

.settings-pane {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
}

.settings-pane.wide-pane {
  grid-column: span 2;
}

.qr-create-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end;margin:18px 0}.qr-create-grid label{display:grid;gap:6px;font-weight:800}.qr-create-grid input{min-height:44px;border:1px solid #cbd5e1;border-radius:12px;padding:0 12px}.qr-points-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:18px}.qr-point-card{border:1px solid #dbe4ef;border-radius:18px;padding:16px;background:#f8fafc}.qr-point-head{display:flex;justify-content:space-between;gap:10px}.qr-point-code{font-family:monospace;font-size:12px;color:#64748b;word-break:break-all}.qr-canvas{display:flex;justify-content:center;background:#fff;padding:12px;border-radius:14px;margin:12px 0}.qr-point-actions{display:flex;gap:8px;flex-wrap:wrap}.qr-metrics{display:flex;gap:12px;color:#475569;font-size:13px;margin:8px 0}
.communications-license-notice{margin:16px 0;padding:14px 16px;border-radius:14px;background:#fff7ed;color:#9a3412;font-weight:850}.communications-license-notice[data-enabled="true"]{background:#ecfdf5;color:#166534}.announcement-editor{padding:16px;border:1px solid #dbeafe;border-radius:18px;background:#f8fbff}.announcement-editor textarea{min-height:110px}.announcements-list{display:grid;gap:12px;margin-top:18px}.announcement-admin-card{display:grid;gap:8px;padding:16px;border:1px solid #dbe3ef;border-radius:18px;background:#fff}.announcement-admin-meta{font-size:13px;color:#64748b;font-weight:750}
@media(max-width:900px){.qr-create-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.qr-create-grid{grid-template-columns:1fr}}

.platform-branding-block {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.platform-branding-block .create-card-header {
  margin-bottom: 16px;
}

.neighbor-categories-pane {
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  border-color: #bfdbfe;
}

.neighbor-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.neighbor-category-row {
  display: grid;
  grid-template-columns: auto 1fr 72px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #ffffff;
}

.neighbor-category-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #2563eb;
}

.neighbor-category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 950;
  color: #0f172a;
}

.neighbor-category-label .emoji {
  font-size: 24px;
}

.neighbor-category-order {
  width: 72px;
  padding: 9px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  text-align: center;
  font-weight: 900;
}

@media (max-width: 760px) {
  .neighbor-category-list {
    grid-template-columns: 1fr;
  }
}


.check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-weight: 900;
}

.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.edit-grid.one-col {
  grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-pane.wide-pane {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .settings-grid,
  .create-grid {
    grid-template-columns: 1fr;
  }

  .settings-pane.wide-pane {
    grid-column: span 1;
  }
}


.admin-tabs {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
  padding: 8px;
  background: #e5e7eb;
  border-radius: 18px;
  position: sticky;
  top: 105px;
  z-index: 8;
}

.admin-tab {
  flex: 1;
  background: transparent;
  color: #334155;
  border-radius: 14px;
  box-shadow: none;
}

.admin-tab.active {
  background: #111827;
  color: #ffffff;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  color: #475569;
  font-weight: 900;
}

.pagination button {
  padding: 10px 14px;
  font-size: 14px;
}

.disabled-pane {
  opacity: .55;
  background: #f8fafc;
}

.disabled-pane input:disabled,
.disabled-pane select:disabled,
.disabled-pane button:disabled {
  background: #e5e7eb;
}

.small-note {
  font-size: 13px;
  line-height: 1.35;
  margin-top: -4px;
}

.platform-card[hidden],
.filters-card[hidden],
.content-grid[hidden],
.create-card[hidden] {
  display: none !important;
}

@media (max-width: 780px) {
  .admin-tabs {
    position: static;
    flex-direction: column;
  }
}


/* v0.19.2 admin UX */
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: linear-gradient(180deg, #eef2f7, #e5e7eb);
  border: 1px solid #dbe3ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 20px rgba(15,23,42,.06);
}

.admin-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  border: 2px solid transparent;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}

.admin-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}

.admin-tab:not(.active):hover {
  background: #f8fafc;
  border-color: #bfdbfe;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.full-field {
  grid-column: 1 / -1;
}

.field-label {
  color: #374151;
  font-weight: 800;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  width: auto;
  padding: 10px 14px;
  border: 2px solid #d1d5db;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  box-shadow: none;
  font-size: 14px;
}

.category-chip.active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e40af;
}

.short-textarea {
  min-height: 110px;
}

@media (max-width: 900px) {
  .admin-tabs {
    grid-template-columns: 1fr;
    position: static;
  }
}


/* ==========================================================================
   REDISEÑO UI/UX v9 — SOS-ADMIN: mantenedor profesional y seguro
   Capa 100% aditiva: ninguna regla anterior fue eliminada ni renombrada.
   No se tocó app.js. Solo presentación (CSS). El comportamiento de
   habilitado/deshabilitado dependiente (.disabled-pane, [disabled]) ya
   existía en la lógica; aquí solo se refuerza visualmente.
   ========================================================================== */

body{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 480px at 15% -10%, rgba(37,99,235,.06), transparent),
    #f3f4f6;
}

.topbar{ box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.topbar h1{ letter-spacing:-.02em; }

.card{
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
  transition: box-shadow .18s ease;
}

/* Tabs: segmented control más robusto */
.admin-tabs{
  background: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.04);
}
.admin-tab{
  font-weight: 900;
  padding: 12px 10px;
  transition: background .15s ease, color .15s ease;
}
.admin-tab.active{
  box-shadow: 0 10px 22px rgba(15,23,42,.22);
}

/* Checkboxes de funcionalidades: mejor jerarquía y escaneo */
.check-row{
  border-radius: 12px;
  padding: 9px 10px;
  transition: background .15s ease;
}
.check-row:hover{ background: #f8fafc; }

/* Interruptores clave (Sirenas / Botones físicos): se destacan del resto
   de la lista para que se lean como decisiones de política, no checkbox
   perdido entre otros. Mejora progresiva vía :has(); si el navegador no
   lo soporta, el checkbox se sigue viendo y funcionando igual. */
.check-row:has(#cfgSirens),
.check-row:has(#cfgPhysicalButtons),
.check-row:has(#cfgSecureVoice){
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-weight: 900;
}

/* Paneles dependientes deshabilitados: tratamiento visual de "candado",
   no solo opacidad, para que se entienda de inmediato que están
   subordinados a un interruptor superior apagado. */
.disabled-pane{
  position: relative;
  opacity: .6;
  background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  padding: 14px;
}
.disabled-pane h3::after{
  content: "🔒 Requiere habilitar la política superior";
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
  color: #94a3b8;
  margin-top: 2px;
}
.disabled-pane input:disabled,
.disabled-pane select:disabled,
.disabled-pane button:disabled{
  background: #e5e7eb;
  cursor: not-allowed;
}

/* Tablas y listas: mejor escaneo */
.users-list{ border-radius: 16px; overflow: hidden; }

/* Feedback de guardado más visible */
.toast{
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15,23,42,.3);
}

.success-button{ box-shadow: 0 10px 24px rgba(22,163,74,.24); }
.secondary-button{ transition: transform .1s ease; }
.secondary-button:active{ transform: scale(.97); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* Botones SOS físicos: pane propio, separado de "Funcionalidades" */
[data-physical-buttons-policy]{
  border-left: 4px solid #7c3aed;
}
[data-physical-buttons-policy] h3::before{ content: "🆘 "; }


/* Branding municipal por centro de control */
.branding-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.brand-preview-card {
  margin-top: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px;
  min-height: 120px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.brand-preview-card.compact { min-height: 92px; }
.brand-preview-title {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.brand-preview-card img {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}
.brand-preview-card img[hidden] { display: none; }
@media (max-width: 1100px) {
  .branding-layout { grid-template-columns: 1fr; }
}


/* Categorías App Vecino: catálogo maestro + configuración local */
.neighbor-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.neighbor-category-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, .75fr) 72px;
  gap: 12px;
  align-items: center;
}
.neighbor-category-label {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.neighbor-category-label strong {
  display: block;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.neighbor-category-label small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.neighbor-category-alias,
.neighbor-category-order {
  min-width: 0;
}
@media (max-width: 980px) {
  .neighbor-category-list {
    grid-template-columns: 1fr;
  }
  .neighbor-category-row {
    grid-template-columns: auto minmax(0, 1fr) 72px;
  }
  .neighbor-category-alias {
    grid-column: 2 / -1;
  }
}


/* Ajuste visual categorías App Vecino: tarjetas respiradas y controles claros */
.neighbor-categories-pane {
  overflow: hidden;
}

.neighbor-categories-pane .small-note {
  max-width: 980px;
}

.neighbor-category-list {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.neighbor-category-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px;
  align-items: stretch;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #d7e8ff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.neighbor-category-topline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.neighbor-category-toggle,
.neighbor-category-row input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #2563eb;
}

.neighbor-category-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.neighbor-category-label .emoji {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  font-size: 23px;
}

.neighbor-category-label strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neighbor-category-label small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 850;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neighbor-category-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
}

.neighbor-category-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.neighbor-category-field > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.neighbor-category-alias,
.neighbor-category-order {
  width: 100%;
  min-width: 0;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-weight: 850;
}

.neighbor-category-alias {
  text-align: left;
}

.neighbor-category-order {
  text-align: center;
}

@media (max-width: 1180px) {
  .neighbor-category-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .neighbor-category-fields {
    grid-template-columns: 1fr;
  }
}
