
.ea4itm-rc {
    max-width: 980px;
    margin: 0 auto;
    font-family: inherit;
}
.ea4itm-rc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.ea4itm-rc__header-copy { min-width: 0; }
.ea4itm-rc__header h2 { margin-bottom: .25rem; }
.ea4itm-rc__header p { margin-bottom: 0; }
.ea4itm-rc__manual-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    line-height: 0;
    text-decoration: none;
}
.ea4itm-rc__manual-link img {
    display: block;
    width: 249px;
    max-width: 100%;
    height: auto;
}
.ea4itm-rc__manual-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 8px;
}
.ea4itm-card {
    border: 1px solid rgba(127,127,127,.28);
    border-radius: 14px;
    padding: 1.25rem;
    margin: 0 0 1rem;
    background: rgba(127,127,127,.04);
}
.ea4itm-card h3 { margin-top: 0; }
.ea4itm-grid { display: grid; gap: 1rem; }
.ea4itm-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ea4itm-card label > span,
.ea4itm-card label > small { display: block; }
.ea4itm-card label > span { margin-bottom: .35rem; }
.ea4itm-card small { opacity: .72; margin-top: .35rem; }
.ea4itm-card input[type="text"],
.ea4itm-card input[type="tel"],
.ea4itm-card input[type="password"],
.ea4itm-card select {
    width: 100%;
    box-sizing: border-box;
    padding: .7rem .75rem;
}
.ea4itm-notice {
    margin-top: 1rem;
    padding: .8rem 1rem;
    border-left: 4px solid currentColor;
    background: rgba(127,127,127,.08);
}
.ea4itm-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1rem;
}
.ea4itm-choice {
    display: block;
    padding: 1rem;
    border: 1px solid rgba(127,127,127,.28);
    border-radius: 12px;
    cursor: pointer;
}
.ea4itm-choice strong, .ea4itm-choice span { display:block; }
.ea4itm-choice input { margin-right: .4rem; }
.ea4itm-choice--active { outline: 2px solid currentColor; }
.ea4itm-check {
    display: flex !important;
    align-items: flex-start;
    gap: .65rem;
    padding: .65rem 0;
}
.ea4itm-check input { margin-top: .25rem; }
.ea4itm-security-switch { margin-top: 1rem; }
.ea4itm-security-fields { margin-top: .75rem; }
.ea4itm-password-confirm { margin-top: .65rem; display:block; }
.ea4itm-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0 1rem;
}
.ea4itm-districts {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(127,127,127,.2);
}
.ea4itm-ea-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0,1fr));
    gap: .5rem;
}
.ea4itm-ea-grid label {
    text-align:center;
    padding:.55rem .25rem;
    border:1px solid rgba(127,127,127,.25);
    border-radius:8px;
}
.ea4itm-location-row {
    display:flex;
    gap:.65rem;
}
.ea4itm-location-row input { flex:1; }
.ea4itm-location-row button, .ea4itm-primary {
    padding:.7rem 1rem;
    cursor:pointer;
}
.ea4itm-secondary { white-space: nowrap; }
.ea4itm-status {
    min-height: 1.4em;
    margin: .65rem 0;
}
.ea4itm-map {
    height: 420px;
    border: 1px solid rgba(127,127,127,.25);
    border-radius: 12px;
    overflow: hidden;
}
.ea4itm-map-note, .ea4itm-next-data {
    margin-top: .75rem;
    font-size: .92em;
    opacity: .82;
}
.ea4itm-next-data {
    padding: .75rem;
    border: 1px dashed rgba(127,127,127,.35);
    border-radius: 10px;
}
.ea4itm-summary dl { margin:0 0 1rem; }
.ea4itm-summary dl > div {
    display:flex;
    justify-content:space-between;
    gap:1rem;
    padding:.45rem 0;
    border-bottom:1px solid rgba(127,127,127,.16);
}
.ea4itm-summary dd { margin:0; text-align:right; }
.ea4itm-primary { width:100%; font-weight:700; }
#ea4itm-password-status.is-ok { font-weight:600; }
#ea4itm-password-status.is-error { font-weight:600; }
@media (max-width: 700px) {
    .ea4itm-rc__header {
        align-items: flex-start;
        flex-direction: column;
        gap: .8rem;
    }
    .ea4itm-rc__manual-link img { width: 210px; }
    .ea4itm-grid--2,
    .ea4itm-mode-grid,
    .ea4itm-services { grid-template-columns: 1fr; }
    .ea4itm-ea-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ea4itm-location-row { flex-direction:column; }
    .ea4itm-map { height: 330px; }
}

.ea4itm-repeater-toolbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:1rem;
    padding:.7rem 0;
    border-bottom:1px solid rgba(127,127,127,.2);
}
.ea4itm-repeater-list {
    margin-top:.25rem;
    max-height:420px;
    overflow:auto;
}
.ea4itm-repeater-row {
    display:grid;
    grid-template-columns:auto minmax(100px,.9fr) minmax(130px,1.25fr) minmax(130px,1fr) auto;
    gap:.7rem;
    align-items:center;
    padding:.65rem .25rem;
    border-bottom:1px solid rgba(127,127,127,.14);
}
.ea4itm-repeater-row small { margin:0; }
.ea4itm-repeater-row.is-off { opacity:.58; }
.ea4itm-repeater-distance { text-align:right; white-space:nowrap; }
.ea4itm-repeater-meta { opacity:.74; font-size:.88em; }
@media (max-width: 700px) {
    .ea4itm-repeater-row {
        grid-template-columns:auto 1fr auto;
    }
    .ea4itm-repeater-site,
    .ea4itm-repeater-freq { grid-column:2 / 4; }
}


.ea4itm-repeater-toolbar > div {
    display:flex;
    flex-wrap:wrap;
    gap:.55rem 1rem;
    align-items:center;
}
.ea4itm-counter {
    opacity:.82;
}
.ea4itm-inline-check {
    display:flex !important;
    align-items:center;
    gap:.45rem;
    cursor:pointer;
}
.ea4itm-inline-check input {
    margin:0;
}
.ea4itm-repeater-customization {
    margin-top:.75rem;
}
.ea4itm-bulk-actions {
    display:flex;
    gap:.6rem;
    flex-wrap:wrap;
}
.ea4itm-bulk-actions button {
    padding:.55rem .8rem;
    cursor:pointer;
}
.ea4itm-selection-help {
    margin:.7rem 0 .2rem;
    font-size:.92em;
    opacity:.78;
}
@media (max-width: 700px) {
    .ea4itm-repeater-toolbar {
        align-items:flex-start;
        gap:.7rem;
        flex-direction:column;
    }
}


.ea4itm-status-badge {
    display:inline-block;
    margin-left:.45rem;
    padding:.12rem .42rem;
    border:1px solid currentColor;
    border-radius:999px;
    font-size:.76em;
    font-weight:700;
    vertical-align:middle;
}
.ea4itm-repeater-row.is-off {
    opacity:.72;
}
.ea4itm-repeater-row.is-off strong {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}


/* Mapa: la ubicación del usuario y los repetidores nunca comparten simbología. */
.ea4itm-user-marker-shell,
.ea4itm-radio-marker-shell {
    background: transparent;
    border: 0;
}

.ea4itm-user-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #111827;
    font-size: 20px;
    font-weight: 700;
}

.ea4itm-radio-marker {
    --marker-color: #6b7280;
    width: 24px;
    height: 24px;
    background: var(--marker-color);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--marker-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    box-sizing: border-box;
}

.ea4itm-radio-marker.service-analog,
.ea4itm-legend-marker.service-analog {
    --marker-color: #2563eb;
}
.ea4itm-radio-marker.service-bm,
.ea4itm-legend-marker.service-bm {
    --marker-color: #16a34a;
}
.ea4itm-radio-marker.service-dmrplus,
.ea4itm-legend-marker.service-dmrplus {
    --marker-color: #9333ea;
}
.ea4itm-radio-marker.service-other,
.ea4itm-legend-marker.service-other {
    --marker-color: #6b7280;
}

.ea4itm-radio-marker.band-vhf,
.ea4itm-legend-marker.band-vhf {
    border-radius: 50%;
}
.ea4itm-radio-marker.band-uhf,
.ea4itm-legend-marker.band-uhf {
    border-radius: 4px;
}
.ea4itm-radio-marker.band-other,
.ea4itm-legend-marker.band-other {
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.ea4itm-radio-marker.is-inactive {
    opacity: .45;
    filter: grayscale(.35);
    outline: 2px dashed rgba(0,0,0,.55);
    outline-offset: 2px;
}

.ea4itm-map-legend {
    margin-top: .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    align-items: center;
    font-size: .9em;
}
.ea4itm-map-legend > div {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.ea4itm-legend-user {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #111827;
    font-weight: 700;
}
.ea4itm-legend-marker {
    --marker-color: #6b7280;
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    background: var(--marker-color);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--marker-color);
    font-size: 10px;
    font-weight: 800;
    box-sizing: border-box;
}
.ea4itm-legend-explain {
    opacity: .75;
}


.ea4itm-data-status {
    margin-top: .65rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(127,127,127,.28);
    border-radius: 8px;
    font-size: .9em;
}
.ea4itm-data-status.is-loading {
    opacity: .72;
}
.ea4itm-data-status.is-hidden {
    display: none;
}
.ea4itm-data-status.is-ok {
    border-left: 4px solid #16833a;
}
.ea4itm-data-status.is-error {
    border-left: 4px solid #b32d2e;
    font-weight: 600;
}


/* ---------------------------------------------------------
 * Marker clusters
 * Neutral UI element: must not reuse service/network colors.
 * Analog = blue, BrandMeister = green, DMR+ = purple.
 * Clusters therefore use graphite gray.
 * --------------------------------------------------------- */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: rgba(75, 85, 99, .28) !important;
    border: 2px solid rgba(55, 65, 81, .72);
    box-sizing: border-box;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: #4b5563 !important;
    color: #ffffff !important;
    font-weight: 800;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

.marker-cluster span {
    color: #ffffff !important;
}


/* =========================================================
 * 0.8.6 — Panel compacto: prioridad visual al mapa
 * ========================================================= */

.ea4itm-card--compact {
    padding: .85rem 1rem;
    margin-bottom: .7rem;
}

.ea4itm-card--compact > h3,
.ea4itm-map-heading h3 {
    margin: 0;
}

/* Servicios + distritos: una fila por red */
.ea4itm-repeater-service-panel {
    margin-top: .55rem;
    display: grid;
    gap: .38rem;
}

.ea4itm-service-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    min-height: 34px;
}

.ea4itm-service-toggle {
    display: flex !important;
    align-items: center;
    gap: .42rem;
    white-space: nowrap;
    margin: 0;
}

.ea4itm-service-toggle input {
    margin: 0;
}

.ea4itm-service-row .ea4itm-districts {
    margin: 0;
    padding: 0;
    border: 0;
}

.ea4itm-service-row .ea4itm-ea-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(42px, 1fr));
    gap: .28rem;
}

.ea4itm-service-row .ea4itm-ea-grid label {
    padding: .28rem .18rem;
    border-radius: 6px;
    line-height: 1.15;
    font-size: .9em;
    white-space: nowrap;
}

.ea4itm-service-row--other {
    padding-top: .32rem;
    border-top: 1px solid rgba(127,127,127,.16);
}

.ea4itm-service-row-label {
    white-space: nowrap;
}

.ea4itm-other-services {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    align-items: center;
}

.ea4itm-other-services label {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
    margin: 0;
    white-space: nowrap;
    font-size: .92em;
}

/* Cabecera + búsqueda en una zona muy compacta */
.ea4itm-map-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .3rem .75rem;
    margin-bottom: .5rem;
}

.ea4itm-map-heading span {
    font-size: .86em;
    opacity: .72;
}

.ea4itm-location-row {
    align-items: center;
    gap: .45rem;
}

.ea4itm-location-label {
    font-weight: 650;
    white-space: nowrap;
}

.ea4itm-location-row input {
    min-width: 180px;
    padding: .48rem .62rem !important;
}

.ea4itm-location-row button {
    padding: .48rem .75rem;
}

.ea4itm-status {
    min-height: 0;
    margin: .3rem 0;
    font-size: .88em;
}

.ea4itm-status:empty {
    display: none;
}

/* El mapa es ahora el elemento principal de la tarjeta. */
.ea4itm-map-wrap {
    position: relative;
    margin-top: .35rem;
}

.ea4itm-map {
    height: 500px;
}

/* Leyenda dentro del propio mapa */
.ea4itm-map-legend--overlay {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 850;
    max-width: min(760px, calc(100% - 20px));
    margin: 0;
    padding: .42rem .55rem;
    background: rgba(255,255,255,.92);
    color: #111827;
    border: 1px solid rgba(31,41,55,.22);
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(0,0,0,.16);
    gap: .3rem .72rem;
    font-size: .78rem;
    line-height: 1.15;
    pointer-events: none;
    backdrop-filter: blur(3px);
}

.ea4itm-map-legend--overlay > div {
    gap: .3rem;
}

.ea4itm-map-legend--overlay .ea4itm-legend-explain {
    flex-basis: 100%;
    font-size: .92em;
}

.ea4itm-legend-cluster {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4b5563;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(55,65,81,.72);
    font-size: 10px;
    font-weight: 800;
    box-sizing: border-box;
}

.ea4itm-data-status {
    margin-top: .4rem;
    padding: .36rem .55rem;
    font-size: .8em;
}

.ea4itm-map-details {
    margin-top: .35rem;
    font-size: .82em;
    opacity: .78;
}

.ea4itm-map-details summary {
    cursor: pointer;
}

.ea4itm-map-details p {
    margin: .45rem 0 0;
}

/* Evita que reglas anteriores añadan espacio innecesario */
.ea4itm-map-card .ea4itm-repeater-toolbar {
    margin-top: .55rem;
}

@media (max-width: 760px) {
    .ea4itm-service-row {
        grid-template-columns: 1fr;
        gap: .25rem;
        align-items: start;
    }

    .ea4itm-service-row .ea4itm-ea-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .ea4itm-service-row--other {
        grid-template-columns: 1fr;
    }

    .ea4itm-location-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ea4itm-location-label {
        display: none;
    }

    .ea4itm-map {
        height: 400px;
    }

    .ea4itm-map-legend--overlay {
        position: static;
        max-width: none;
        margin-top: .45rem;
        background: rgba(127,127,127,.06);
        color: inherit;
        box-shadow: none;
        pointer-events: auto;
    }
}


/* 0.8.8 — nomenclatura de repetidores + resumen compacto */
.ea4itm-service-row {
    grid-template-columns: 178px minmax(0, 1fr);
}

.ea4itm-summary-other-row dd {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .ea4itm-summary-other-row dd {
        white-space: normal;
    }
}


/* 0.8.9 — Reflectores DMR+ preparados para el futuro generador */
.ea4itm-dmrplus-reflectors {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .15rem 0 .32rem;
}

.ea4itm-dmrplus-reflectors[hidden] {
    display: none !important;
}

.ea4itm-reflector-label {
    padding-left: 1.25rem;
    white-space: nowrap;
    font-size: .9em;
}

.ea4itm-reflector-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
}

.ea4itm-reflector-grid label {
    display: inline-flex !important;
    align-items: center;
    gap: .25rem;
    padding: .28rem .45rem;
    margin: 0;
    border: 1px solid rgba(127,127,127,.25);
    border-radius: 6px;
    white-space: nowrap;
    font-size: .86em;
}

.ea4itm-summary-reflectors-row dd {
    white-space: normal;
}

@media (max-width: 760px) {
    .ea4itm-dmrplus-reflectors {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .ea4itm-reflector-label {
        padding-left: 0;
    }
}


/* 0.9.0 — DMR unificado */
.ea4itm-dmr-subrow {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .08rem 0 .18rem;
}

.ea4itm-dmr-subrow[hidden] {
    display: none !important;
}

.ea4itm-dmr-subrow-label,
.ea4itm-reflector-label {
    padding-left: 1.25rem;
    white-space: nowrap;
    font-size: .9em;
}

.ea4itm-dmr-network-options {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .8rem;
    align-items: center;
}

.ea4itm-dmr-network-options label {
    display: inline-flex !important;
    align-items: center;
    gap: .3rem;
    margin: 0;
    white-space: nowrap;
}

.ea4itm-dmr-network-options input:disabled + * {
    opacity: .6;
}

@media (max-width: 760px) {
    .ea4itm-dmr-subrow {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .ea4itm-dmr-subrow-label,
    .ea4itm-reflector-label {
        padding-left: 0;
    }
}


/* 0.9.1 — reflectores internacionales y resumen final */
.ea4itm-reflector-grid label {
    white-space: nowrap;
}

.ea4itm-summary-reflectors-row dd {
    white-space: nowrap;
}


/* 0.9.2 — contador de canales / capacidad DM-32UV */
.ea4itm-summary-channel-row dd {
    white-space: nowrap;
}

.ea4itm-summary-channel-row #ea4itm-summary-channels {
    font-size: 1.08em;
}

.ea4itm-summary-channel-row .is-over-capacity,
#ea4itm-summary-channels.is-over-capacity {
    font-weight: 800;
    text-decoration: underline;
}

.ea4itm-summary-channel-details-row dt {
    display: none;
}

.ea4itm-channel-estimate-details {
    font-size: .84em;
    opacity: .82;
}

.ea4itm-channel-estimate-details summary {
    cursor: pointer;
}

#ea4itm-summary-channel-breakdown {
    margin-top: .35rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .ea4itm-summary-channel-row dd {
        white-space: normal;
    }
}


/* 0.12.5 — validación mínima del indicativo */
.ea4itm-rc input.is-error {
    border-color: #b32d2e;
    box-shadow: 0 0 0 1px #b32d2e;
}
.ea4itm-rc small.is-error { color: #b32d2e; }
.ea4itm-rc small.is-ok { color: #2271b1; }

/* 0.13.16 — avisos de datos imprescindibles en Modo Básico. */
.ea4itm-rc small.is-required {
    color: #b32d2e;
    font-weight: 700;
    opacity: 1;
}

/* 0.12.9 — APRS BM integrado en Red DMR.
 * 0.13.12 — se retira la compactación de escritorio introducida en 0.12.9:
 * se recuperan los espaciados del layout estable 0.12.8 sin perder APRS inline.
 */
.ea4itm-bm-aprs-inline {
    display: inline-flex !important;
    align-items: center;
    gap: .3rem;
    margin: 0 0 0 .25rem;
    padding-left: .65rem;
    border-left: 1px solid rgba(127,127,127,.28);
    white-space: nowrap;
    cursor: pointer;
}

.ea4itm-bm-aprs-inline[hidden] {
    display: none !important;
}

.ea4itm-bm-aprs-inline input {
    margin: 0;
}

@media (max-width: 760px) {
    .ea4itm-bm-aprs-inline {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}

/* 0.13.1: generation result/error must be impossible to miss. */
.ea4itm-generate-status:not(:empty) {
    display: block;
    margin-top: .7rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(127,127,127,.35);
    border-radius: 10px;
    font-size: .95em;
    line-height: 1.45;
}
.ea4itm-generate-status.is-loading {
    border-style: dashed;
    font-weight: 600;
}
.ea4itm-generate-status.is-ok {
    border: 2px solid #2271b1;
    background: rgba(34,113,177,.08);
    font-weight: 650;
}
.ea4itm-generate-status.is-warning {
    border: 2px solid #b26200;
    background: rgba(178,98,0,.10);
    color: #7a4300;
    font-weight: 700;
}
.ea4itm-generate-status.is-error {
    border: 2px solid #b32d2e;
    background: rgba(179,45,46,.10);
    color: #8a1f20;
    font-weight: 750;
}

/* 0.13.4: resultados de generación legibles para humanos. */
.ea4itm-generate-summary {
    font-weight: 750;
}
.ea4itm-warning-title {
    margin-top: .7rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(122,67,0,.25);
    font-weight: 800;
}
.ea4itm-warning-group {
    margin-top: .65rem;
    font-weight: 400;
}
.ea4itm-warning-group > strong {
    display: block;
    margin-bottom: .2rem;
    font-weight: 750;
}
.ea4itm-warning-group ul {
    margin: .25rem 0 0 1.25rem;
    padding: 0;
}
.ea4itm-warning-group li {
    margin: .22rem 0;
    line-height: 1.38;
}

/* 0.13.14 — controles compactos mapa + búsqueda no destructiva */
.ea4itm-map-controls-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .55rem;
    margin-top: .35rem;
}

.ea4itm-map-control {
    display: flex;
    align-items: center;
    gap: .38rem;
    min-width: 0;
    margin: 0;
}

.ea4itm-map-control > label,
.ea4itm-distance-control > strong {
    white-space: nowrap;
}

.ea4itm-map-control--location {
    flex: 1.45 1 500px;
}

.ea4itm-map-control--location input {
    flex: 1 1 180px;
    min-width: 130px;
}

.ea4itm-distance-control {
    display: inline-flex !important;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ea4itm-map-control--repeater {
    flex: 1 1 360px;
}

.ea4itm-repeater-search-box {
    position: relative;
    flex: 1 1 170px;
    min-width: 145px;
}

.ea4itm-repeater-search-box input[type="search"] {
    width: 100%;
    min-width: 0;
}

.ea4itm-map-controls-row input,
.ea4itm-map-controls-row button,
.ea4itm-map-controls-row select {
    padding: .48rem .62rem !important;
}

.ea4itm-distance-control select:disabled,
#ea4itm-clear-location:disabled,
#ea4itm-repeater-search-clear:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.ea4itm-repeater-search-suggestions {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    color: #1d2327;
    border: 1px solid rgba(31,41,55,.28);
    border-radius: 7px;
    box-shadow: 0 7px 22px rgba(0,0,0,.18);
}

.ea4itm-repeater-search-suggestions[hidden] {
    display: none !important;
}

.ea4itm-repeater-suggestion {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    align-items: flex-start !important;
    gap: .08rem !important;
    padding: .48rem .58rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(31,41,55,.10) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #1d2327 !important;
    text-align: left;
    cursor: pointer;
}

.ea4itm-repeater-suggestion:last-child {
    border-bottom: 0 !important;
}

.ea4itm-repeater-suggestion:hover,
.ea4itm-repeater-suggestion:focus {
    background: #f0f6fc !important;
}

.ea4itm-repeater-suggestion span {
    font-size: .78em;
    opacity: .78;
}

.ea4itm-filter-note {
    margin-top: .3rem;
    font-size: .78em;
    line-height: 1.35;
    opacity: .72;
}


/* Personalización individual: un repetidor excluido sigue siendo visible por defecto. */
.ea4itm-radio-marker.is-excluded {
    opacity: .28;
    filter: grayscale(1);
    box-shadow: 0 0 0 1px rgba(75,85,99,.55);
}

.ea4itm-radio-marker.is-excluded.is-search-result {
    opacity: .72;
}

.ea4itm-repeater-row.is-excluded {
    opacity: .58;
    background: rgba(107,114,128,.06);
}

.ea4itm-repeater-row.is-excluded > strong {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.ea4itm-hide-excluded-option {
    margin: .45rem 0 .15rem;
    width: fit-content;
}

.ea4itm-popup-included.is-included {
    font-weight: 800;
}

.ea4itm-popup-included.is-excluded {
    font-weight: 800;
    opacity: .72;
}

.ea4itm-popup-selection-toggle {
    margin-top: .45rem;
    padding: .35rem .55rem;
    cursor: pointer;
}

.ea4itm-radio-marker.is-search-result {
    transform: scale(1.28);
    box-shadow: 0 0 0 4px rgba(255,255,255,.92), 0 0 0 7px rgba(31,41,55,.38);
}

.ea4itm-repeater-row.is-search-result {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
    background: rgba(34,113,177,.09);
}

@media (max-width: 980px) {
    .ea4itm-map-controls-row {
        flex-wrap: wrap;
    }

    .ea4itm-map-control--location {
        flex: 1 1 100%;
    }

    .ea4itm-distance-control {
        order: 2;
    }

    .ea4itm-map-control--repeater {
        order: 3;
        flex: 1 1 520px;
    }
}

@media (max-width: 760px) {
    .ea4itm-map-controls-row,
    .ea4itm-map-control {
        align-items: stretch;
    }

    .ea4itm-map-control {
        flex-wrap: wrap;
        flex-basis: 100%;
    }

    .ea4itm-map-control > label,
    .ea4itm-distance-control > strong {
        flex-basis: 100%;
    }

    .ea4itm-map-control--location input,
    .ea4itm-repeater-search-box,
    .ea4itm-distance-control select {
        flex: 1 1 100%;
    }

    .ea4itm-distance-control {
        flex: 1 1 100%;
    }
}

/* =========================================================
 * 0.13.18 — Resultado de generación: primero éxito, después avisos
 * ========================================================= */
.ea4itm-generate-status.is-ok {
    border-left-color: #16833a;
    background: transparent;
}

.ea4itm-generation-success {
    padding: .9rem 1rem;
    border: 1px solid rgba(22, 131, 58, .3);
    border-left: 4px solid #16833a;
    border-radius: 9px;
    background: rgba(22, 131, 58, .045);
}

.ea4itm-generation-success h3 {
    margin: 0 0 .45rem;
    font-size: 1.08rem;
}

.ea4itm-generate-summary {
    font-weight: 700;
    margin-bottom: .7rem;
}

.ea4itm-result-section {
    margin-top: .7rem;
}

.ea4itm-result-section h4 {
    margin: 0 0 .25rem;
    font-size: .98rem;
}

.ea4itm-result-section ul,
.ea4itm-result-details ul,
.ea4itm-generation-warnings ul {
    margin: .25rem 0 .35rem 1.15rem;
    padding: 0;
}

.ea4itm-result-section li,
.ea4itm-result-details li,
.ea4itm-generation-warnings li {
    margin: .18rem 0;
}

.ea4itm-result-details {
    margin-top: .65rem;
    padding: .5rem .65rem;
    border: 1px solid rgba(127, 127, 127, .22);
    border-radius: 7px;
    background: rgba(255, 255, 255, .45);
}

.ea4itm-result-details summary {
    cursor: pointer;
    font-weight: 700;
}

.ea4itm-result-note {
    margin: .75rem 0 0;
    font-size: .9em;
    opacity: .82;
}

.ea4itm-generation-warnings {
    margin-top: .8rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(180, 120, 0, .32);
    border-left: 4px solid #b7791f;
    border-radius: 9px;
    background: rgba(183, 121, 31, .06);
}

.ea4itm-no-warnings {
    margin-top: .65rem;
    padding: .55rem .7rem;
    border-left: 4px solid #16833a;
    background: rgba(22, 131, 58, .045);
    font-weight: 600;
}

.ea4itm-generation-warnings .ea4itm-warning-title {
    margin: 0 0 .55rem;
    font-weight: 800;
}

@media (max-width: 700px) {
    .ea4itm-generation-success,
    .ea4itm-generation-warnings {
        padding: .75rem .8rem;
    }
}


/* =========================================================
 * 0.13.20 — Perfil persistente de usuario WordPress
 * ========================================================= */
.ea4itm-profile-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .8rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(37, 99, 235, .22);
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    background: rgba(37, 99, 235, .035);
}

.ea4itm-profile-panel > div:first-child {
    min-width: 0;
}

.ea4itm-profile-panel strong,
.ea4itm-profile-panel small {
    display: block;
}

.ea4itm-profile-panel small {
    margin-top: .15rem;
}

.ea4itm-profile-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 0 0 auto;
}

.ea4itm-profile-actions a {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .ea4itm-profile-panel,
    .ea4itm-profile-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* 0.13.21 — cabecera con contador público de uso */
.ea4itm-section-heading {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
}
.ea4itm-section-heading h3 {
    margin: 0;
}
.ea4itm-section-heading--usage {
    justify-content: space-between;
}
.ea4itm-usage-counter {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    font-size: .92rem;
    color: #475569;
}
.ea4itm-usage-counter strong {
    color: #0f172a;
}
.ea4itm-usage-counter span {
    margin: 0 .35em;
    color: #94a3b8;
}
.ea4itm-help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45em;
    height: 1.45em;
    margin-left: .65em;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #475569;
    font-size: .92em;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}
.ea4itm-help-link:hover,
.ea4itm-help-link:focus-visible {
    color: #0f172a;
    text-decoration: none;
}
@media (max-width: 720px) {
    .ea4itm-section-heading--usage {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .ea4itm-usage-counter {
        margin-left: 0;
        text-align: left;
    }
}


/* =========================================================
 * 0.13.23 — Datos mínimos compactos en una sola fila
 * ========================================================= */
.ea4itm-minimum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.ea4itm-minimum-grid--profile {
    grid-template-columns: minmax(220px, 1fr) minmax(200px, .8fr) minmax(280px, 1.05fr);
}

.ea4itm-profile-panel--compact {
    margin-top: 0;
    min-height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: .45rem;
    padding: .55rem .7rem;
}

.ea4itm-profile-panel--compact strong {
    margin: 0;
}

.ea4itm-profile-panel--compact .ea4itm-profile-actions {
    gap: .55rem;
    flex-wrap: wrap;
}

.ea4itm-profile-panel--compact #ea4itm-profile-status {
    margin-top: 0;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .ea4itm-minimum-grid--profile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ea4itm-profile-panel--compact {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .ea4itm-minimum-grid,
    .ea4itm-minimum-grid--profile {
        grid-template-columns: 1fr;
    }
    .ea4itm-profile-panel--compact {
        grid-column: auto;
    }
}

/* 1.0.0-beta4 — acceso en tres niveles: Básica / Experto / Avanzada. */
.ea4itm-rc.ea4itm-mode-basic .ea4itm-expert-only {
    display: none !important;
}

.ea4itm-rc.ea4itm-mode-basic .ea4itm-minimum-grid--profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ea4itm-rc.ea4itm-mode-basic .ea4itm-generate-card {
    padding-top: 1rem;
}

@media (max-width: 900px) {
    .ea4itm-mode-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
 * 1.0.0-beta4 — compactación de los tres bloques superiores
 * ========================================================= */
.ea4itm-card--top {
    padding: .8rem 1rem;
    margin-bottom: .65rem;
}

.ea4itm-card--top > h3,
.ea4itm-card--top .ea4itm-section-heading {
    margin-bottom: .55rem;
}

/* 1. Equipo y compatibilidad: título/contador + seis campos. */
.ea4itm-equipment-card .ea4itm-section-heading {
    align-items: center;
}

.ea4itm-compat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .5rem;
}

.ea4itm-equipment-card .ea4itm-compat-grid label > span {
    margin-bottom: .18rem;
    font-size: .82rem;
    line-height: 1.1;
    white-space: nowrap;
}

.ea4itm-equipment-card .ea4itm-compat-grid select {
    min-width: 0;
    padding: .48rem .42rem;
    font-size: .9rem;
}

.ea4itm-equipment-card .ea4itm-notice--compat {
    margin-top: .55rem;
    padding: .45rem .65rem;
    font-size: .84rem;
    line-height: 1.25;
}

/* 2. Tipo de configuración: título + selector en una fila. */
.ea4itm-mode-card .ea4itm-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.ea4itm-mode-card .ea4itm-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 38px;
    padding: .45rem .65rem;
    text-align: center;
}

.ea4itm-mode-card .ea4itm-choice input {
    margin: 0;
    flex: 0 0 auto;
}

.ea4itm-mode-card .ea4itm-choice strong {
    display: inline;
    line-height: 1.15;
}

.ea4itm-mode-card .ea4itm-choice > span {
    display: none;
}

/* 3. Datos mínimos: etiqueta y campo en horizontal; ayuda debajo. */
.ea4itm-data-card .ea4itm-minimum-grid {
    gap: .55rem .8rem;
}

.ea4itm-data-card .ea4itm-minimum-grid > label {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas:
        "caption control"
        "help help";
    align-items: center;
    column-gap: .55rem;
    row-gap: .15rem;
    min-width: 0;
}

.ea4itm-data-card .ea4itm-minimum-grid > label > span {
    grid-area: caption;
    margin: 0;
    white-space: nowrap;
    font-weight: 600;
}

.ea4itm-data-card .ea4itm-minimum-grid > label > input {
    grid-area: control;
    min-width: 0;
    padding: .5rem .6rem;
}

.ea4itm-data-card .ea4itm-minimum-grid > label > small {
    grid-area: help;
    margin: 0;
    min-height: 1.25em;
    line-height: 1.2;
}

/* En Experto se conserva Perfil radioaficionado, pero más compacto. */
.ea4itm-data-card .ea4itm-profile-panel--compact {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "profile-title profile-action"
        "profile-status profile-status";
    align-items: center;
    gap: .2rem .55rem;
    padding: .42rem .55rem;
}

.ea4itm-data-card .ea4itm-profile-panel--compact > strong {
    grid-area: profile-title;
    white-space: nowrap;
}

.ea4itm-data-card .ea4itm-profile-panel--compact .ea4itm-profile-actions {
    grid-area: profile-action;
}

.ea4itm-data-card .ea4itm-profile-panel--compact #ea4itm-profile-status {
    grid-area: profile-status;
    font-size: .82rem;
}

.ea4itm-data-card .ea4itm-security-switch {
    margin-top: .45rem;
    padding: .35rem 0 0;
}

@media (max-width: 980px) {
    .ea4itm-compat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ea4itm-card--top {
        padding: .75rem .8rem;
    }

    .ea4itm-compat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ea4itm-mode-card .ea4itm-mode-grid {
        grid-template-columns: 1fr;
    }

    .ea4itm-data-card .ea4itm-minimum-grid,
    .ea4itm-data-card .ea4itm-minimum-grid--profile {
        grid-template-columns: 1fr;
    }

    .ea4itm-data-card .ea4itm-profile-panel--compact {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    .ea4itm-compat-grid {
        grid-template-columns: 1fr;
    }

    .ea4itm-data-card .ea4itm-minimum-grid > label {
        grid-template-columns: 1fr;
        grid-template-areas:
            "caption"
            "control"
            "help";
    }
}
