:root {
    --bg: #03080d;
    --bg-2: #071018;
    --panel: rgba(7, 16, 24, .94);
    --panel-2: rgba(9, 21, 31, .96);
    --panel-soft: rgba(14, 27, 38, .78);
    --line: #20323f;
    --line-soft: rgba(85, 117, 136, .18);
    --text: #e8edf1;
    --muted: #91a0aa;
    --blue: #27b7ff;
    --blue-2: #087ac5;
    --green: #35d04d;
    --green-2: #0c8b2d;
    --yellow: #ffd434;
    --red: #ff4f43;
    --purple: #bc6cff;
    --shadow: 0 18px 50px rgba(0, 0, 0, .32);
    --radius: 7px;
    --sidebar: 218px;
    --rightbar: 340px;
    --header-height: 116px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -20%, rgba(18, 99, 139, .13), transparent 42%),
        linear-gradient(180deg, #020609 0, #061019 52%, #03090e 100%);
    color: var(--text);
    font: 14px/1.42 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(56, 113, 143, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 113, 143, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-link { margin-left: auto; color: var(--blue); font-size: 12px; font-weight: 600; }

.topbar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(390px, 1.35fr) minmax(190px, .58fr) minmax(180px, .58fr) minmax(340px, .92fr);
    height: var(--header-height);
    border-bottom: 1px solid #1a3444;
    background: rgba(2, 8, 13, .93);
    box-shadow: 0 5px 25px rgba(0,0,0,.35);
}
.brand-block, .status-block, .latest-block, .station-block {
    min-width: 0;
    border-right: 1px solid rgba(61, 91, 109, .22);
}
.brand-block {
    display: flex;
    align-items: center;
    gap: 19px;
    padding: 14px 30px;
}
.brand-antenna {
    display: grid;
    place-items: center;
    width: 65px;
    height: 76px;
    color: var(--blue);
    filter: drop-shadow(0 0 10px rgba(39,183,255,.28));
}
.brand-antenna .icon { width: 60px; height: 69px; stroke-width: 1.4; }
.brand-title {
    font-size: clamp(21px, 1.6vw, 29px);
    font-weight: 780;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.brand-station {
    margin-top: 4px;
    font-size: clamp(18px, 1.35vw, 24px);
    color: #a9b2b9;
    letter-spacing: .01em;
}
.brand-station strong { color: var(--blue); font-weight: 700; }
.status-block, .latest-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 9px 15px;
}
.online-line { color: var(--green); font-weight: 750; font-size: 14px; }
.online-dot {
    display: inline-block;
    width: 11px; height: 11px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(53,208,77,.12), 0 0 14px rgba(53,208,77,.8);
}
.top-date { margin-top: 10px; font-size: 13px; }
.top-clock { font-size: 17px; font-weight: 700; letter-spacing: .03em; }
.eyebrow { color: #b8c2c8; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.latest-call { margin: 3px 0; color: var(--green); font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.station-block { display: flex; align-items: center; justify-content: space-between; padding: 8px 22px; }
.station-meta { font-size: 12px; line-height: 1.55; min-width: 0; }
.station-meta span { color: #9ca8b0; }
.station-meta strong { color: #fff; }
.station-seal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    border: 2px solid #8e7932;
    border-left-color: var(--blue);
    border-radius: 50%;
    color: white;
    background: radial-gradient(circle, #102230 0, #061018 60%, #020609 100%);
    box-shadow: inset 0 0 18px rgba(39,183,255,.11), 0 0 18px rgba(0,0,0,.4);
}
.station-seal::before, .station-seal::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.station-seal strong { font-size: 14px; z-index: 1; }
.station-seal small { font-size: 7px; letter-spacing: .14em; color: #b9c5cc; z-index: 1; }
.seal-wave { color: var(--blue); font-size: 28px; line-height: .8; transform: rotate(-15deg); }

.app-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(620px, 1fr) var(--rightbar);
    gap: 10px;
    align-items: start;
    padding: 10px 12px 8px;
    min-height: calc(100vh - var(--header-height) - 52px);
}
.app-shell-simple { grid-template-columns: var(--sidebar) minmax(620px, 1fr); }
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(8,18,27,.97), rgba(4,11,17,.96));
    box-shadow: inset 0 1px rgba(255,255,255,.018), 0 8px 24px rgba(0,0,0,.17);
}
.panel-title {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(65,92,108,.27);
    font-size: 13px;
    font-weight: 760;
    letter-spacing: .012em;
}
.title-marker { margin-right: 9px; color: var(--blue); font-size: 21px; }

.sidebar {
    position: sticky;
    top: 10px;
    min-height: calc(100vh - var(--header-height) - 72px);
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
}
.sidebar-heading { padding: 16px 11px 9px; font-size: 12px; font-weight: 700; }
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #d2d9dd;
    font-size: 13px;
    transition: .16s ease;
}
.nav-item:hover { border-color: rgba(39,183,255,.26); background: rgba(18,72,109,.22); color: white; }
.nav-item.active { border-color: #14569b; background: linear-gradient(90deg, rgba(14,75,135,.64), rgba(11,39,81,.64)); color: white; box-shadow: inset 3px 0 var(--blue); }
.nav-item.active .icon { color: var(--blue); }
.callsign-counter {
    margin: auto 0 12px;
    padding: 17px 10px;
    text-align: center;
    border: 1px solid rgba(65,92,108,.24);
    border-radius: 6px;
    background: rgba(9,18,24,.74);
}
.callsign-counter span { display: block; color: #c4ccd1; font-size: 11px; font-weight: 700; }
.callsign-counter strong { display: block; margin: 10px 0 16px; color: var(--green); font-size: 27px; }
.callsign-counter small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.logout-link { margin-top: 3px; color: #ff6e65; }

.workspace { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.qso-form-panel { overflow: visible; }
.qso-form {
    display: grid;
    grid-template-columns: 1.05fr .92fr .95fr .78fr .84fr;
    gap: 13px 16px;
    padding: 13px 16px 12px;
}
.field { position: relative; display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.field > span { color: #dce3e7; font-size: 12px; font-weight: 600; }
.field > span b { color: var(--red); }
.field small { color: var(--muted); font-size: 11px; }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select {
    width: 100%;
    height: 36px;
    min-width: 0;
    padding: 0 11px;
    border: 1px solid #2a3b47;
    border-radius: 5px;
    outline: 0;
    background: linear-gradient(180deg, #111b23, #0a1218);
    color: #edf2f5;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { height: auto; min-height: 90px; padding: 10px 11px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus, .filter-bar select:focus {
    border-color: #178ad1;
    box-shadow: 0 0 0 3px rgba(39,183,255,.09);
    background: #0d1820;
}
.field input[readonly] { color: #9eabb3; }
.input-with-action { display: grid; grid-template-columns: 1fr 36px; }
.input-with-action input { border-radius: 5px 0 0 5px; border-color: #1c8c3a; }
.input-with-action button {
    display: grid; place-items: center;
    padding: 0;
    border: 1px solid #176eae;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    background: #0d3150;
    color: var(--blue);
    cursor: pointer;
}
.input-with-action .icon { width: 17px; }
.callsign-field { z-index: 20; }
.suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 275px;
    overflow: auto;
    border: 1px solid #28536d;
    border-radius: 6px;
    background: #07131c;
    box-shadow: 0 18px 35px rgba(0,0,0,.6);
}
.suggestion-item { width: 100%; padding: 9px 11px; border: 0; border-bottom: 1px solid rgba(75,107,125,.22); text-align: left; background: transparent; cursor: pointer; }
.suggestion-item:hover, .suggestion-item.active { background: rgba(19,91,137,.34); }
.suggestion-item strong { color: var(--green); font-size: 14px; }
.suggestion-item span { display: block; margin-top: 2px; color: #b8c3ca; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-empty { padding: 11px; color: var(--muted); font-size: 12px; }
.field-reason { grid-column: span 2; }
.field-notes { grid-column: span 3; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; margin-top: -2px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-weight: 730;
    font-size: 12px;
    letter-spacing: .015em;
    cursor: pointer;
    transition: transform .13s, filter .13s, border-color .13s;
}
.btn:hover { filter: brightness(1.14); transform: translateY(-1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { min-width: 214px; border-color: #1cbe44; background: linear-gradient(90deg, #0b8c2c, #26c643); color: white; box-shadow: 0 0 18px rgba(28,190,68,.13); }
.btn-secondary { border-color: #344650; background: linear-gradient(180deg, #1a252e, #111921); color: #c6d0d6; }
.btn-filter { min-width: 102px; border-color: #21445a; background: #0d2738; color: var(--blue); }
.btn-wide { width: 100%; }

.records-panel { min-width: 0; overflow: hidden; }
.records-heading { min-height: 35px; padding-top: 8px; padding-bottom: 4px; border-bottom: 0; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 170px 165px 108px; gap: 10px; padding: 4px 14px 10px; }
.search-control { position: relative; }
.search-control .icon { position: absolute; top: 8px; left: 10px; width: 17px; color: #7d919d; }
.search-control input { padding-left: 34px; }
.table-wrap { overflow: auto; border-top: 1px solid rgba(56,89,108,.2); }
.data-table { width: 100%; min-width: 1050px; border-collapse: collapse; table-layout: fixed; }
.data-table th { height: 38px; padding: 7px 9px; color: var(--blue); font-size: 10px; letter-spacing: .025em; text-align: left; background: rgba(9,25,36,.8); border-bottom: 1px solid rgba(64,91,107,.25); }
.data-table td { height: 39px; padding: 7px 9px; color: #d2dadf; font-size: 11px; border-bottom: 1px solid rgba(53,78,93,.20); border-right: 1px solid rgba(53,78,93,.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table tbody tr:hover td { background: rgba(17,65,92,.14); color: white; }
.data-table th:nth-child(1) { width: 82px; }
.data-table th:nth-child(2) { width: 58px; }
.data-table th:nth-child(3) { width: 88px; }
.data-table th:nth-child(4) { width: 58px; }
.data-table th:nth-child(5) { width: 87px; }
.data-table th:nth-child(6) { width: 120px; }
.data-table th:nth-child(7), .data-table th:nth-child(8) { width: 61px; }
.data-table th:nth-child(9) { width: 85px; }
.data-table th:nth-child(11) { width: 68px; }
.callsign-link { color: #b6f72c; letter-spacing: .02em; }
.notes-cell { max-width: 210px; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-actions form { margin: 0; }
.icon-btn { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border-radius: 4px; cursor: pointer; }
.icon-btn .icon { width: 15px; height: 15px; }
.edit-btn { border: 1px solid #0e75c4; background: #082d49; color: var(--blue); }
.delete-btn { border: 1px solid #a62a24; background: #3d1110; color: var(--red); }
.empty-state { height: 100px !important; text-align: center; color: var(--muted) !important; }
.pagination-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 14px; color: #b7c1c7; font-size: 11px; }
.pagination { display: flex; align-items: center; gap: 5px; }
.page-btn, .page-current { display: grid; place-items: center; min-width: 34px; height: 31px; padding: 0 11px; border: 1px solid #263b48; border-radius: 4px; background: #0b141b; }
.page-current { border-color: #0f72bc; background: #0a2e4d; color: var(--blue); }
.page-btn.disabled { opacity: .35; pointer-events: none; }

.right-rail { display: flex; min-width: 0; flex-direction: column; gap: 10px; }
.contact-panel { overflow: hidden; }
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.contact-head > strong { color: var(--green); font-size: 25px; letter-spacing: .02em; }
.license-badge { padding: 7px 11px; border-radius: 5px; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.license-badge.active { color: #77ff8d; background: rgba(9,112,38,.37); }
.license-badge.warning { color: #ffdf62; background: rgba(123,88,7,.37); }
.license-badge.expired { color: #ff7a72; background: rgba(130,25,20,.38); }
.license-badge.unknown { color: #aab7bf; background: rgba(70,85,94,.28); }
.contact-details { padding: 2px 16px 8px; }
.contact-details > div { display: flex; align-items: center; gap: 10px; min-height: 29px; color: #d8dfe3; font-size: 12px; }
.contact-details .icon { width: 16px; color: #9baeBA; }
.contact-details > div:nth-child(1) .icon { color: var(--green); }
.contact-details > div:nth-child(2) .icon { color: var(--yellow); }
.contact-details b { font-weight: 500; }
.license-note { margin: 8px 15px 14px; padding: 10px 12px; border-radius: 5px; font-size: 11px; }
.license-note strong { display: block; margin-bottom: 3px; }
.license-note span { color: #d8dde0; }
.license-note.active { border: 1px solid #9d7a00; background: rgba(56,43,3,.28); color: var(--yellow); }
.license-note.warning { border: 1px solid #b67b08; background: rgba(72,43,4,.32); color: var(--yellow); }
.license-note.expired { border: 1px solid #a22b25; background: rgba(75,17,14,.32); color: var(--red); }
.license-note.unknown { border: 1px solid #3c5360; background: rgba(37,53,62,.22); color: #b4c1c8; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px 14px 14px; }
.stat-card { min-height: 69px; display: grid; grid-template-columns: 35px 1fr; grid-template-rows: 1fr 1fr; align-items: center; padding: 9px 10px; border: 1px solid rgba(60,83,97,.18); border-radius: 6px; background: linear-gradient(145deg, rgba(13,26,34,.96), rgba(7,15,21,.96)); }
.stat-card .icon { grid-row: 1 / 3; width: 27px; height: 27px; }
.stat-card strong { align-self: end; font-size: 21px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card span { align-self: start; color: #c3ccd1; font-size: 10px; }
.stat-wide { grid-column: 1 / -1; }
.stat-green .icon { color: var(--green); }
.stat-blue .icon { color: var(--blue); }
.stat-cyan .icon { color: #50d9ff; }
.stat-purple .icon { color: var(--purple); }
.activity-list { display: flex; flex-direction: column; gap: 0; padding: 10px 16px 14px; }
.activity-item { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; color: #b8c3ca; font-size: 11px; }
.activity-dot { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(53,208,77,.45); }

.footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border-top: 1px solid #19303e; color: #aab5bc; background: rgba(3,10,15,.88); font-size: 12px; text-align: center; }
.footer-separator { color: #536670; }
.flash { margin-bottom: 0; padding: 11px 14px; border-radius: 5px; border: 1px solid; font-size: 12px; }
.flash-success { border-color: #23833b; background: rgba(11,88,31,.28); color: #8effa3; }
.flash-error { border-color: #a83831; background: rgba(105,24,20,.31); color: #ffaca6; }
.flash-warning { border-color: #a97913; background: rgba(96,64,8,.28); color: #ffe37b; }
.flash-info { border-color: #286c93; background: rgba(12,68,99,.26); color: #8edcff; }

.settings-workspace { max-width: 1180px; padding-right: 2px; }
.content-panel { overflow: hidden; }
.content-panel > h2, .content-panel > p, .content-panel > .backup-grid, .content-panel > .notice-box, .content-panel > .feature-list, .content-panel > .version-box { margin-left: 20px; margin-right: 20px; }
.content-panel h2 { margin-top: 22px; margin-bottom: 8px; font-size: 22px; }
.lead { color: #afbbc2; line-height: 1.65; }
.content-grid-two { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 26px; padding: 20px; }
.settings-form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.password-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 15px; padding: 20px; }
.upload-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 175px; padding: 22px; border: 1px dashed #307493; border-radius: 7px; background: rgba(11,41,58,.2); text-align: center; cursor: pointer; transition: .15s; }
.upload-zone:hover { border-color: var(--blue); background: rgba(18,76,105,.24); }
.upload-zone .icon { width: 43px; height: 43px; margin-bottom: 12px; color: var(--blue); }
.upload-zone strong { font-size: 16px; }
.upload-zone span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.csv-help-card { padding: 18px; border: 1px solid rgba(61,93,110,.28); border-radius: 7px; background: rgba(8,18,25,.78); }
.csv-help-card h3 { margin: 2px 0 10px; font-size: 14px; }
.csv-help-card p { color: #aebbc2; }
.code-table { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.code-table > div { padding: 10px; border-radius: 5px; background: rgba(16,33,43,.72); color: #b7c2c8; font-size: 11px; }
.code-table strong { display: block; margin-bottom: 4px; color: white; }
code { color: #68d3ff; }
.mini-stat { margin-top: 22px; padding: 14px; text-align: center; border-top: 1px solid rgba(72,99,114,.25); }
.mini-stat span, .mini-stat small { display: block; color: var(--muted); }
.mini-stat strong { display: block; margin: 3px; color: var(--green); font-size: 30px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
.result-stats > div { padding: 18px; border: 1px solid rgba(66,96,113,.26); border-radius: 6px; text-align: center; background: rgba(11,23,31,.75); }
.result-stats strong { display: block; color: var(--green); font-size: 28px; }
.result-stats span { color: var(--muted); }
.backup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 25px; margin-bottom: 22px; }
.backup-card { min-height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; border: 1px solid #274353; border-radius: 7px; background: linear-gradient(145deg, rgba(12,31,42,.92), rgba(5,14,20,.96)); text-align: center; transition: .16s; }
.backup-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.backup-card .icon { width: 38px; height: 38px; color: var(--blue); }
.backup-card strong { font-size: 16px; }
.backup-card span { color: var(--muted); font-size: 11px; }
.notice-box { margin-bottom: 20px; padding: 13px 15px; border: 1px solid #766115; border-radius: 5px; background: rgba(79,62,5,.23); color: #d9d3af; }
.about-content { padding-bottom: 23px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 23px; }
.feature-list > div { display: flex; gap: 12px; padding: 15px; border: 1px solid rgba(65,94,110,.25); border-radius: 6px; background: rgba(11,24,32,.72); }
.feature-list .icon { color: var(--blue); }
.feature-list span { display: flex; flex-direction: column; color: var(--muted); }
.feature-list strong { color: white; }
.version-box { margin-top: 20px; padding: 16px; border-left: 3px solid var(--green); background: rgba(9,38,22,.28); }
.version-box span, .version-box small { color: var(--muted); }
.version-box strong { margin: 0 10px; color: var(--green); }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-shell, .install-shell { width: min(440px, 100%); position: relative; z-index: 2; }
.install-shell { width: min(820px, 100%); padding: 30px 0; }
.auth-card { padding: 27px; border: 1px solid #244252; border-radius: 10px; background: linear-gradient(145deg, rgba(8,20,29,.98), rgba(3,10,15,.98)); box-shadow: 0 28px 80px rgba(0,0,0,.55); }
.install-card { padding: 30px; }
.auth-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.auth-logo { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #196b98; border-radius: 50%; color: var(--blue); font-size: 36px; background: #071824; }
.auth-brand h1 { margin: 0; font-size: 20px; }
.auth-brand p { margin: 3px 0 0; color: var(--muted); }
.login-form { display: flex; flex-direction: column; gap: 15px; }
.auth-footnote { margin: 20px 0 0; color: #71838e; font-size: 11px; text-align: center; }
.install-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.install-form .full, .install-form .btn-wide, .form-section-title { grid-column: 1 / -1; }
.form-section-title { margin-top: 8px; padding: 10px 0 4px; border-bottom: 1px solid rgba(74,103,118,.25); color: var(--blue); font-weight: 750; }
.install-success { padding: 20px 8px 5px; text-align: center; }
.success-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border: 2px solid var(--green); border-radius: 50%; color: var(--green); font-size: 34px; }
.install-success h2 { margin: 0 0 9px; }
.install-success p { color: var(--muted); }
.help-text { font-size: 11px; }

@media (max-width: 1280px) {
    :root { --sidebar: 200px; --rightbar: 305px; }
    .topbar { grid-template-columns: minmax(330px, 1.2fr) 175px 175px 320px; }
    .brand-block { padding-left: 20px; gap: 12px; }
    .brand-antenna { width: 50px; }
    .brand-antenna .icon { width: 48px; }
    .app-shell { grid-template-columns: var(--sidebar) minmax(560px, 1fr) var(--rightbar); }
    .qso-form { grid-template-columns: repeat(4, 1fr); }
    .qso-form .field:nth-of-type(5) { grid-column: span 1; }
    .field-reason { grid-column: span 1; }
    .field-notes { grid-column: span 3; }
}

@media (max-width: 1080px) {
    :root { --header-height: auto; }
    .topbar { grid-template-columns: 1.4fr .6fr .65fr; height: auto; }
    .station-block { display: none; }
    .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
    .right-rail { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; }
    .activity-panel { grid-column: 1 / -1; }
    .qso-form { grid-template-columns: repeat(3, 1fr); }
    .field-reason { grid-column: span 1; }
    .field-notes { grid-column: span 2; }
}

@media (max-width: 780px) {
    body { font-size: 13px; }
    .topbar { grid-template-columns: 1fr; }
    .brand-block { min-height: 90px; border-right: 0; }
    .brand-title { font-size: 21px; white-space: normal; }
    .brand-station { font-size: 18px; }
    .status-block, .latest-block { display: none; }
    .app-shell, .app-shell-simple { display: block; padding: 8px; }
    .sidebar { position: static; min-height: auto; margin-bottom: 9px; padding: 8px; }
    .sidebar-heading, .callsign-counter, .logout-link { display: none; }
    .nav-list { display: flex; flex-direction: row; overflow-x: auto; padding-bottom: 2px; }
    .nav-item { min-width: max-content; min-height: 38px; padding: 7px 10px; }
    .nav-item .icon { width: 17px; }
    .workspace { gap: 8px; }
    .qso-form { grid-template-columns: 1fr 1fr; gap: 11px; }
    .field-reason, .field-notes { grid-column: span 2; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar .search-control { grid-column: 1 / -1; }
    .right-rail { display: block; }
    .right-rail > .panel { margin-top: 8px; }
    .footer { flex-direction: column; gap: 2px; }
    .footer-separator { display: none; }
    .content-grid-two, .backup-grid, .feature-list { grid-template-columns: 1fr; }
    .form-grid, .password-form, .install-form { grid-template-columns: 1fr; }
    .form-grid .full, .password-form > *, .install-form .full, .install-form .btn-wide, .form-section-title { grid-column: 1; }
    .result-stats { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .brand-block { padding: 12px; }
    .brand-antenna { width: 44px; height: 55px; }
    .brand-antenna .icon { width: 42px; height: 50px; }
    .qso-form { grid-template-columns: 1fr; padding: 12px; }
    .field-reason, .field-notes { grid-column: 1; }
    .form-actions { flex-direction: column; }
    .btn, .btn-primary { width: 100%; min-width: 0; }
    .filter-bar { grid-template-columns: 1fr; }
    .filter-bar .search-control { grid-column: 1; }
    .pagination-row { align-items: flex-start; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-wide { grid-column: 1; }
    .auth-body { padding: 12px; }
    .auth-card, .install-card { padding: 20px 16px; }
}

/* =========================================================
   ESTADÍSTICAS AVANZADAS · v1.3
   ========================================================= */
.statistics-shell {
    grid-template-columns: var(--sidebar) minmax(760px, 1fr);
}

.statistics-workspace {
    gap: 12px;
}

.statistics-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 132px;
    padding: 24px 28px;
    border: 1px solid #203b4d;
    border-radius: 9px;
    background:
        radial-gradient(circle at 82% 15%, rgba(39,183,255,.15), transparent 31%),
        linear-gradient(130deg, rgba(11,32,46,.98), rgba(4,12,18,.98));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 15px 40px rgba(0,0,0,.24);
}

.statistics-kicker,
.statistics-panel-kicker {
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.statistics-hero h1 {
    margin: 4px 0 5px;
    font-size: clamp(25px, 2.3vw, 37px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

.statistics-hero p {
    max-width: 720px;
    margin: 0;
    color: #a9b6be;
    font-size: 13px;
}

.range-selector {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    flex: 0 0 auto;
    border: 1px solid #264150;
    border-radius: 7px;
    background: rgba(4,13,20,.76);
}

.range-selector a {
    min-width: 72px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #9eafb9;
    text-align: center;
    font-size: 11px;
    font-weight: 720;
    transition: .16s ease;
}

.range-selector a:hover {
    color: #fff;
    background: rgba(25,84,119,.24);
}

.range-selector a.active {
    border-color: #137dbc;
    color: #fff;
    background: linear-gradient(180deg, #126b9f, #0c456f);
    box-shadow: 0 0 18px rgba(39,183,255,.16);
}

.statistics-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 10px;
}

.kpi-card {
    position: relative;
    min-height: 112px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 16px 15px;
    border: 1px solid #203442;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(10,23,33,.98), rgba(5,12,18,.98));
    box-shadow: inset 0 1px rgba(255,255,255,.018);
}

.kpi-card::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -35px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    opacity: .08;
    background: currentColor;
    filter: blur(2px);
}

.kpi-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}

.kpi-icon .icon {
    width: 21px;
    height: 21px;
}

.kpi-card div {
    min-width: 0;
}

.kpi-card small {
    display: block;
    color: #94a5af;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    white-space: nowrap;
}

.kpi-card strong {
    display: block;
    margin: 4px 0 1px;
    overflow: hidden;
    color: #f5f8fa;
    font-size: clamp(19px, 1.45vw, 26px);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi-card div > span {
    display: block;
    overflow: hidden;
    color: #899ba6;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi-blue { color: var(--blue); }
.kpi-green { color: var(--green); }
.kpi-purple { color: var(--purple); }
.kpi-yellow { color: var(--yellow); }
.kpi-cyan { color: #22d3c5; }
.kpi-red { color: #ff704d; }

.statistics-chart-panel,
.statistics-card {
    overflow: hidden;
}

.statistics-panel-heading {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(66,98,116,.24);
}

.statistics-panel-heading.compact {
    min-height: 61px;
}

.statistics-panel-heading h2 {
    margin: 2px 0 0;
    color: #edf3f6;
    font-size: 16px;
    line-height: 1.15;
}

.statistics-period-label {
    padding: 7px 10px;
    border: 1px solid #25485d;
    border-radius: 5px;
    color: #a9bdc8;
    background: #091923;
    font-size: 10px;
    font-weight: 700;
}

.trend-chart-wrap {
    padding: 10px 14px 7px;
}

.trend-chart {
    display: block;
    width: 100%;
    height: 300px;
}

.chart-grid-line {
    stroke: rgba(99,132,151,.18);
    stroke-width: 1;
}

.chart-axis-label {
    fill: #7f929e;
    font-size: 11px;
}

.chart-line {
    fill: none;
    stroke: #27b7ff;
    stroke-width: 4;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 7px rgba(39,183,255,.45));
}

.chart-point {
    fill: #071018;
    stroke: #55c8ff;
    stroke-width: 3;
}

.chart-empty,
.statistics-empty {
    padding: 38px 20px;
    color: #82949f;
    text-align: center;
    font-size: 12px;
}

.statistics-grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.ranking-bars,
.region-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 17px 18px 20px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border: 1px solid #27495c;
    border-radius: 6px;
    color: var(--blue);
    background: #091923;
    font-size: 10px;
    font-weight: 800;
}

.ranking-data {
    min-width: 0;
}

.ranking-data > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 6px;
}

.ranking-data strong {
    color: #dce7ec;
    font-size: 11px;
}

.ranking-data span {
    color: #94a7b2;
    font-size: 10px;
}

.ranking-track,
.region-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #0b1922;
    box-shadow: inset 0 1px 4px rgba(0,0,0,.65);
}

.ranking-track span,
.region-track span {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: linear-gradient(90deg, #087ac5, #27b7ff);
    box-shadow: 0 0 10px rgba(39,183,255,.3);
}

.donut-layout {
    min-height: 292px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 20px 22px 24px;
}

.donut-chart {
    position: relative;
    width: 178px;
    height: 178px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 0 34px rgba(39,183,255,.10);
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid #273c49;
    border-radius: 50%;
    background: radial-gradient(circle, #0b1b25, #061018);
    box-shadow: inset 0 0 17px rgba(0,0,0,.7);
}

.donut-chart > div {
    position: relative;
    z-index: 1;
    text-align: center;
}

.donut-chart strong {
    display: block;
    font-size: 29px;
    line-height: 1;
}

.donut-chart span {
    color: #91a4ae;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donut-legend > div {
    display: grid;
    grid-template-columns: 10px minmax(55px, 1fr) 54px 44px;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(72,103,120,.14);
    font-size: 10px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.donut-legend strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donut-legend span {
    color: #91a4ae;
    text-align: right;
}

.donut-legend b {
    color: #eef4f7;
    text-align: right;
}

.region-row > div:first-child {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.region-row > div:first-child > span {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
}

.region-row strong {
    overflow: hidden;
    color: #d7e2e7;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.region-row b {
    color: #9babb4;
    text-align: right;
    font-size: 10px;
}

.region-track span {
    background: linear-gradient(90deg, #0d8e31, #35d04d);
    box-shadow: 0 0 10px rgba(53,208,77,.25);
}

.hour-chart {
    min-height: 292px;
    display: grid;
    grid-template-columns: repeat(24, minmax(9px, 1fr));
    align-items: end;
    gap: 4px;
    padding: 26px 16px 17px;
}

.hour-column {
    min-width: 0;
    display: grid;
    grid-template-rows: 20px 205px 20px;
    align-items: end;
    text-align: center;
}

.hour-value {
    min-height: 16px;
    color: #8da2ae;
    font-size: 8px;
}

.hour-bar-wrap {
    position: relative;
    height: 195px;
    display: flex;
    align-items: flex-end;
    overflow: visible;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(39,183,255,.015), rgba(39,183,255,.055));
}

.hour-bar-wrap > span {
    position: relative;
    width: 100%;
    min-height: 3px;
    display: block;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #2fc4ff, #0a5c92);
    box-shadow: 0 0 8px rgba(39,183,255,.24);
    transition: filter .15s, transform .15s;
}

.hour-bar-wrap > span:hover {
    filter: brightness(1.25);
    transform: scaleX(1.14);
}

.hour-bar-wrap i {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    z-index: 4;
    display: none;
    width: max-content;
    max-width: 120px;
    padding: 5px 7px;
    border: 1px solid #2a556d;
    border-radius: 4px;
    color: #dff5ff;
    background: #06141d;
    box-shadow: 0 8px 18px rgba(0,0,0,.45);
    font-size: 9px;
    font-style: normal;
    transform: translateX(-50%);
}

.hour-bar-wrap > span:hover i {
    display: block;
}

.hour-column small {
    color: #70838f;
    font-size: 8px;
}

.statistics-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 720;
}

.statistics-back-link .icon {
    width: 15px;
    height: 15px;
}

.statistics-table-wrap {
    overflow: auto;
}

.statistics-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.statistics-table th {
    padding: 11px 14px;
    color: #72cfff;
    background: rgba(9,27,39,.82);
    border-bottom: 1px solid rgba(64,96,114,.25);
    text-align: left;
    font-size: 9px;
    letter-spacing: .06em;
}

.statistics-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(64,96,114,.15);
    color: #cdd8de;
    font-size: 10px;
}

.statistics-table tbody tr:hover td {
    background: rgba(20,72,101,.15);
    color: #fff;
}

.statistics-callsign {
    color: var(--green);
    font-size: 12px;
    letter-spacing: .025em;
}

.rank-medal {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid #2c4655;
    border-radius: 50%;
    color: #a8b8c1;
    background: #0a1720;
    font-size: 9px;
    font-weight: 800;
}

.rank-1 {
    border-color: #aa8a1d;
    color: #ffe45e;
    background: rgba(118,85,4,.23);
}

.rank-2 {
    border-color: #748590;
    color: #dce6eb;
    background: rgba(99,114,123,.18);
}

.rank-3 {
    border-color: #945526;
    color: #f3aa70;
    background: rgba(107,54,20,.22);
}

@media (max-width: 1450px) {
    .statistics-kpis {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 1050px) {
    .statistics-shell {
        grid-template-columns: 1fr;
    }

    .statistics-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .statistics-grid-main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .statistics-hero {
        padding: 20px 18px;
    }

    .range-selector {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .range-selector a {
        min-width: 0;
        padding: 8px 5px;
    }

    .statistics-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .donut-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .donut-legend {
        width: 100%;
    }

    .hour-chart {
        overflow-x: auto;
        grid-template-columns: repeat(24, 26px);
    }

    .trend-chart {
        min-width: 660px;
    }

    .trend-chart-wrap {
        overflow-x: auto;
    }
}

@media (max-width: 500px) {
    .statistics-kpis {
        grid-template-columns: 1fr;
    }

    .statistics-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   REPETIDORAS DE CHILE · v1.4
   ========================================================= */
.repeaters-shell {
    grid-template-columns: var(--sidebar) minmax(820px, 1fr);
}

.repeaters-workspace {
    gap: 11px;
}

.repeaters-hero {
    position: relative;
    min-height: 102px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    padding: 18px 22px;
    background:
        linear-gradient(90deg, rgba(6,27,42,.98), rgba(4,14,22,.97)),
        radial-gradient(circle at 77% 20%, rgba(39,183,255,.16), transparent 35%);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.repeaters-hero::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -32px;
    width: 440px;
    height: 100px;
    opacity: .18;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(39,183,255,.22) 31%, transparent 33%) 0 0 / 95px 44px;
    transform: skewX(-18deg);
    pointer-events: none;
}

.repeaters-hero-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid #176d9d;
    border-radius: 12px;
    color: var(--blue);
    background: rgba(4,21,32,.78);
    box-shadow: 0 0 24px rgba(39,183,255,.13);
}

.repeaters-hero-icon .icon {
    width: 39px;
    height: 39px;
}

.repeaters-hero-copy,
.repeaters-source {
    position: relative;
    z-index: 1;
}

.repeaters-hero-copy > span,
.repeaters-source small {
    color: var(--blue);
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .13em;
}

.repeaters-hero-copy h1 {
    margin: 2px 0 3px;
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1;
}

.repeaters-hero-copy p {
    margin: 0;
    color: #9baeb9;
    font-size: 12px;
}

.repeaters-source {
    min-width: 205px;
    padding: 13px 15px;
    border: 1px solid #234051;
    border-radius: 7px;
    background: rgba(4,14,21,.75);
}

.repeaters-source strong,
.repeaters-source span {
    display: block;
}

.repeaters-source strong {
    margin: 4px 0 2px;
    color: #f3f7f9;
    font-size: 16px;
}

.repeaters-source span {
    color: #889ca7;
    font-size: 9px;
}

.repeaters-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    gap: 10px;
}

.repeater-kpi {
    min-height: 94px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    overflow: hidden;
    border: 1px solid #1e3442;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(9,23,33,.99), rgba(5,12,18,.99));
    box-shadow: inset 0 1px rgba(255,255,255,.02);
}

.repeater-kpi > span {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: rgba(255,255,255,.022);
}

.repeater-kpi .icon {
    width: 23px;
    height: 23px;
}

.repeater-kpi strong,
.repeater-kpi b,
.repeater-kpi small {
    display: block;
}

.repeater-kpi strong {
    color: #f4f8fa;
    font-size: 25px;
    line-height: 1;
}

.repeater-kpi b {
    margin: 4px 0 1px;
    font-size: 11px;
}

.repeater-kpi small {
    color: #879aa5;
    font-size: 9px;
}

.kpi-total { color: #27b7ff; }
.kpi-vhf { color: #27b7ff; }
.kpi-uhf { color: #35d04d; }
.kpi-dmr { color: #bc6cff; }
.kpi-echolink { color: #ffd434; }

.repeater-filters {
    padding: 14px 16px 16px;
}

.repeater-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.repeater-filter-heading > div span,
.repeater-list-heading > div span {
    display: block;
    color: var(--blue);
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .1em;
}

.repeater-filter-heading > div strong,
.repeater-list-heading > div strong {
    display: block;
    margin-top: 2px;
    color: #d9e4e9;
    font-size: 12px;
}

.repeater-filter-heading .button {
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 8px 12px;
    font-size: 9px;
}

.repeater-filter-heading .icon {
    width: 14px;
    height: 14px;
}

.repeater-filter-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr .7fr .8fr .9fr minmax(220px, 1.6fr);
    gap: 10px;
}

.repeater-filter-grid label,
.repeater-list-tools label {
    min-width: 0;
}

.repeater-filter-grid label > span,
.repeater-list-tools label > span {
    display: block;
    margin-bottom: 5px;
    color: #9aabb5;
    font-size: 9px;
    font-weight: 700;
}

.repeater-filter-grid select,
.repeater-filter-grid input,
.repeater-list-tools select {
    width: 100%;
    min-height: 37px;
    padding: 8px 10px;
    border: 1px solid #253d4c;
    border-radius: 5px;
    color: #d7e1e6;
    background: #0a1720;
    font-size: 10px;
    outline: none;
}

.repeater-filter-grid select:focus,
.repeater-filter-grid input:focus,
.repeater-list-tools select:focus {
    border-color: #168ac8;
    box-shadow: 0 0 0 2px rgba(39,183,255,.09);
}

.repeater-search-field > div {
    position: relative;
}

.repeater-search-field .icon {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 15px;
    height: 15px;
    color: #6e8592;
    transform: translateY(-50%);
}

.repeater-search-field input {
    padding-left: 34px;
}

.repeater-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(330px, .75fr);
    gap: 10px;
}

.repeater-map-panel {
    position: relative;
    min-height: 515px;
    overflow: hidden;
}

.repeaters-map {
    width: 100%;
    height: 515px;
    background: #061019;
}

.repeater-map-legend {
    position: absolute;
    left: 13px;
    bottom: 48px;
    z-index: 500;
    display: grid;
    gap: 7px;
    min-width: 126px;
    padding: 11px 12px;
    border: 1px solid #2a485a;
    border-radius: 6px;
    color: #cbd8de;
    background: rgba(4,16,24,.90);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    backdrop-filter: blur(5px);
}

.repeater-map-legend strong {
    color: var(--blue);
    font-size: 9px;
    letter-spacing: .08em;
}

.repeater-map-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
}

.marker-sample {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.marker-vhf { color: #27b7ff; background: #27b7ff; }
.marker-uhf { color: #35d04d; background: #35d04d; }
.marker-dmr { color: #bc6cff; background: #bc6cff; }
.marker-echolink { color: #ffd434; background: #ffd434; }

.repeater-map-notice {
    position: absolute;
    right: 12px;
    bottom: 11px;
    z-index: 500;
    max-width: 600px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255,212,52,.32);
    border-radius: 5px;
    color: #b8b08a;
    background: rgba(23,20,5,.88);
    font-size: 8px;
    line-height: 1.4;
    backdrop-filter: blur(4px);
}

.repeater-map-notice .icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: #ffd434;
}

.repeater-detail-panel {
    min-height: 515px;
    overflow: hidden;
}

.repeater-detail-empty {
    min-height: 515px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 30px;
    color: #7f939e;
    text-align: center;
}

.repeater-detail-empty .icon {
    width: 58px;
    height: 58px;
    color: #1b7fad;
}

.repeater-detail-empty strong {
    color: #c7d5dc;
    font-size: 15px;
}

.repeater-detail-empty span {
    max-width: 250px;
    font-size: 10px;
    line-height: 1.45;
}

.repeater-detail-header {
    min-height: 112px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    border-bottom: 1px solid #203440;
    background:
        linear-gradient(135deg, rgba(10,40,58,.85), rgba(4,14,21,.95)),
        radial-gradient(circle at 80% 20%, rgba(39,183,255,.18), transparent 38%);
}

.repeater-detail-header > div {
    min-width: 0;
}

.repeater-detail-header span:first-child {
    color: var(--blue);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
}

.repeater-detail-header h2 {
    margin: 4px 0 3px;
    color: #43c6ff;
    font-size: 20px;
    line-height: 1.05;
}

.repeater-detail-header p {
    margin: 0;
    overflow: hidden;
    color: #96a8b2;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repeater-detail-status,
.repeater-expiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.status-active {
    color: #49dc5c !important;
}

.status-warning {
    color: #ffd434 !important;
}

.status-expired {
    color: #ff6b57 !important;
}

.status-unknown {
    color: #8499a5 !important;
}

.repeater-detail-body {
    padding: 9px 15px 4px;
}

.repeater-detail-row {
    min-height: 31px;
    display: grid;
    grid-template-columns: 22px 92px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(70,102,119,.18);
}

.repeater-detail-row > span {
    color: #65cfff;
    text-align: center;
    font-size: 12px;
}

.repeater-detail-row small {
    color: #8ea0aa;
    font-size: 8px;
}

.repeater-detail-row strong {
    overflow-wrap: anywhere;
    color: #d5e0e5;
    text-align: right;
    font-size: 9px;
    font-weight: 620;
}

.repeater-detail-row a {
    color: var(--blue);
}

.repeater-detail-notes {
    margin: 9px 15px;
    padding: 10px 11px;
    border: 1px solid #2b4656;
    border-radius: 5px;
    background: #081722;
}

.repeater-detail-notes strong {
    color: var(--blue);
    font-size: 8px;
    letter-spacing: .08em;
}

.repeater-detail-notes p {
    margin: 5px 0 0;
    color: #99abb5;
    font-size: 9px;
    line-height: 1.45;
}

.repeater-detail-actions {
    padding: 7px 15px 15px;
}

.repeater-detail-actions button {
    width: 100%;
    min-height: 34px;
    border: 1px solid #176da0;
    border-radius: 5px;
    color: #8edcff;
    background: linear-gradient(180deg, #0b2940, #081d2e);
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
}

.repeater-detail-actions button:hover {
    border-color: #2abaff;
    color: #fff;
}

.repeater-list-panel {
    overflow: hidden;
}

.repeater-list-heading {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #203541;
}

.repeater-list-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.repeater-list-tools label {
    display: grid;
    grid-template-columns: auto 70px;
    align-items: center;
    gap: 7px;
}

.repeater-list-tools label > span {
    margin: 0;
}

.repeater-list-tools select {
    min-height: 31px;
    padding: 5px 7px;
}

.repeater-table-wrap {
    overflow: auto;
}

.repeater-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

.repeater-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 11px;
    border-bottom: 1px solid #24404f;
    color: #54c6ff;
    background: #081823;
    text-align: left;
    font-size: 8px;
    letter-spacing: .05em;
}

.repeater-table td {
    max-width: 210px;
    padding: 9px 11px;
    overflow: hidden;
    border-bottom: 1px solid rgba(65,97,114,.15);
    color: #c7d3d9;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
}

.repeater-row {
    cursor: pointer;
    transition: background .12s;
}

.repeater-row:hover td,
.repeater-row.selected td {
    background: rgba(22,101,143,.15);
}

.repeater-row.selected td {
    color: #fff;
}

.repeater-row td:first-child strong {
    color: #d4ff38;
    font-size: 10px;
}

.repeater-status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.repeater-band {
    display: inline-block;
    min-width: 56px;
    padding: 3px 6px;
    border-radius: 4px;
    text-align: center;
    font-size: 8px;
    font-weight: 800;
}

.band-vhf {
    color: #61cfff;
    background: rgba(20,117,177,.25);
}

.band-uhf {
    color: #56df67;
    background: rgba(26,124,43,.26);
}

.band-dmr {
    color: #d696ff;
    background: rgba(132,51,184,.28);
}

.repeater-pagination {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 14px;
    color: #8497a2;
    font-size: 9px;
}

.repeater-pagination > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.repeater-pagination button,
.repeater-pagination > div span {
    min-width: 65px;
    min-height: 31px;
    display: grid;
    place-items: center;
    padding: 5px 9px;
    border: 1px solid #244151;
    border-radius: 5px;
    color: #9db0ba;
    background: #091720;
    font-size: 9px;
}

.repeater-pagination button {
    cursor: pointer;
}

.repeater-pagination button:hover:not(:disabled) {
    border-color: #167daf;
    color: #fff;
}

.repeater-pagination button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.repeater-pagination > div span {
    min-width: 50px;
    border-color: #126ea2;
    color: #67ceff;
}

.repeater-leaflet-icon {
    background: transparent;
    border: 0;
}

.repeater-map-marker {
    position: relative;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 50% 50% 50% 4px;
    color: #27b7ff;
    background: currentColor;
    box-shadow: 0 0 12px currentColor, 0 4px 8px rgba(0,0,0,.45);
    transform: rotate(-45deg);
}

.repeater-map-marker i {
    width: 7px;
    height: 7px;
    border: 2px solid #061019;
    border-radius: 50%;
    background: #e9f7ff;
}

.repeater-map-marker.marker-uhf { color: #35d04d; }
.repeater-map-marker.marker-dmr { color: #bc6cff; }
.repeater-map-marker.marker-echolink { color: #ffd434; }

.leaflet-container {
    font-family: inherit;
}

.leaflet-control-zoom a {
    border-color: #244454 !important;
    color: #cbe9f7 !important;
    background: #061721 !important;
}

.leaflet-control-attribution {
    color: #657983 !important;
    background: rgba(4,14,20,.78) !important;
    font-size: 7px !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    color: #dce7ec;
    background: #081923;
    box-shadow: 0 10px 30px rgba(0,0,0,.55);
}

.repeater-popup {
    min-width: 190px;
    display: grid;
    gap: 4px;
}

.repeater-popup strong {
    color: #52caff;
    font-size: 13px;
}

.repeater-popup span,
.repeater-popup b,
.repeater-popup small {
    font-size: 9px;
}

.repeater-popup span {
    color: #95a7b1;
}

.repeater-popup b {
    color: #eaf0f3;
}

.repeater-map-error {
    height: 100%;
    display: grid;
    place-items: center;
    padding: 30px;
    color: #95a7b1;
    text-align: center;
}

@media (max-width: 1500px) {
    .repeaters-kpis {
        grid-template-columns: repeat(5, minmax(120px, 1fr));
    }

    .repeater-filter-grid {
        grid-template-columns: repeat(5, minmax(110px, 1fr));
    }

    .repeater-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    .repeaters-shell {
        grid-template-columns: 1fr;
    }

    .repeater-map-grid {
        grid-template-columns: 1fr;
    }

    .repeater-detail-panel,
    .repeater-detail-empty {
        min-height: auto;
    }

    .repeaters-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .repeaters-hero {
        grid-template-columns: 52px 1fr;
    }

    .repeaters-hero-icon {
        width: 50px;
        height: 50px;
    }

    .repeaters-source {
        grid-column: 1 / -1;
    }

    .repeater-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .repeater-search-field {
        grid-column: 1 / -1;
    }

    .repeaters-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .repeater-map-notice {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

@media (max-width: 520px) {
    .repeaters-kpis,
    .repeater-filter-grid {
        grid-template-columns: 1fr;
    }

    .repeater-filter-heading,
    .repeater-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .repeater-filter-heading .button {
        width: 100%;
    }

    .repeaters-map {
        height: 430px;
    }

    .repeater-map-panel {
        min-height: 430px;
    }

    .repeater-map-legend {
        bottom: 90px;
    }

    .repeater-list-tools {
        width: 100%;
    }
}

/* =========================================================
   LOGO OFICIAL CA3HRS · v1.4.1
   ========================================================= */
.station-seal.station-logo {
    width: 94px;
    height: 94px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(190, 145, 64, .82);
    border-radius: 11px;
    background: #050704;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .82),
        0 0 18px rgba(173, 119, 38, .20),
        inset 0 0 12px rgba(0, 0, 0, .45);
}

.station-seal.station-logo::before,
.station-seal.station-logo::after {
    display: none;
}

.station-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1250px) {
    .station-seal.station-logo {
        width: 84px;
        height: 84px;
    }
}

/* =========================================================
   IDENTIDAD COBRE / GRAFITO · v1.5
   ========================================================= */
:root {
    --bg: #080908;
    --bg-2: #0d0f10;
    --panel: rgba(17, 17, 15, .96);
    --panel-2: rgba(22, 21, 18, .97);
    --panel-soft: rgba(28, 25, 20, .80);
    --line: #3a3026;
    --line-soft: rgba(197, 139, 65, .15);
    --text: #eee9e1;
    --muted: #a79d91;

    /* Se conserva el nombre de variable para no romper módulos existentes. */
    --blue: #c68a40;
    --blue-2: #875025;

    --copper: #c68a40;
    --copper-light: #e1a85f;
    --copper-dark: #70401f;
    --copper-soft: rgba(198, 138, 64, .13);
    --copper-glow: rgba(198, 138, 64, .24);

    --green: #48cf65;
    --green-2: #188538;
    --yellow: #ddb84f;
    --red: #ff6255;
    --purple: #b77af2;
    --shadow: 0 18px 50px rgba(0, 0, 0, .42);
}

body {
    background:
        radial-gradient(circle at 49% -18%, rgba(179, 112, 39, .14), transparent 40%),
        radial-gradient(circle at 92% 18%, rgba(123, 74, 28, .06), transparent 31%),
        linear-gradient(180deg, #060706 0, #0b0d0e 48%, #070809 100%);
    color: var(--text);
}

body::before {
    opacity: .18;
    background-image:
        linear-gradient(rgba(178, 123, 56, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(178, 123, 56, .04) 1px, transparent 1px);
}

.text-link,
.title-marker,
.brand-station strong {
    color: var(--copper-light);
}

.topbar {
    border-bottom-color: #3d2c1e;
    background:
        linear-gradient(90deg, rgba(9, 10, 9, .97), rgba(15, 13, 10, .97));
    box-shadow:
        0 5px 27px rgba(0, 0, 0, .46),
        inset 0 -1px rgba(198, 138, 64, .05);
}

.brand-block,
.status-block,
.latest-block,
.station-block {
    border-right-color: rgba(167, 117, 57, .18);
}

.brand-antenna {
    color: var(--copper);
    filter: drop-shadow(0 0 10px rgba(198, 138, 64, .28));
}

.brand-title {
    color: #f2ede5;
}

.brand-station {
    color: #aca397;
}

.station-meta span {
    color: #a89d90;
}

.panel {
    border-color: var(--line);
    background:
        linear-gradient(145deg, rgba(20, 19, 16, .98), rgba(10, 11, 11, .97));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .018),
        0 10px 28px rgba(0, 0, 0, .22);
}

.panel-title {
    border-bottom-color: rgba(174, 122, 59, .20);
    color: #e8e0d6;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(13, 14, 13, .76), rgba(7, 8, 8, .84));
}

.sidebar-heading {
    color: #b8ada0;
    letter-spacing: .04em;
}

.nav-item {
    color: #d0c8be;
}

.nav-item:hover {
    border-color: rgba(198, 138, 64, .34);
    background:
        linear-gradient(90deg, rgba(94, 57, 25, .25), rgba(34, 28, 21, .18));
    color: #fff8ee;
    box-shadow: inset 2px 0 rgba(225, 168, 95, .35);
}

.nav-item:hover .icon {
    color: var(--copper-light);
}

.nav-item.active {
    border-color: #875326;
    background:
        linear-gradient(90deg, rgba(104, 58, 22, .72), rgba(47, 34, 21, .72));
    color: #fff8ef;
    box-shadow:
        inset 3px 0 var(--copper-light),
        0 0 17px rgba(198, 138, 64, .08);
}

.nav-item.active .icon {
    color: var(--copper-light);
    filter: drop-shadow(0 0 5px rgba(198, 138, 64, .24));
}

.callsign-counter {
    border-color: rgba(168, 113, 49, .27);
    background:
        linear-gradient(160deg, rgba(26, 22, 17, .86), rgba(11, 12, 11, .88));
}

.callsign-counter span {
    color: #c8bcae;
}

.callsign-counter strong {
    color: var(--copper-light);
    text-shadow: 0 0 14px rgba(198, 138, 64, .18);
}

.field > span {
    color: #ddd5cb;
}

.field input,
.field select,
.field textarea,
.filter-bar input,
.filter-bar select {
    border-color: #40362d;
    background:
        linear-gradient(180deg, #191815, #111210);
    color: #f0ebe4;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 3px rgba(198, 138, 64, .10);
    background: #191713;
}

.field input[readonly] {
    color: #a99f94;
}

.input-with-action input {
    border-color: #74603f;
}

.input-with-action button {
    border-color: #8a5726;
    background:
        linear-gradient(180deg, #57331a, #2e2117);
    color: var(--copper-light);
}

.input-with-action button:hover {
    background:
        linear-gradient(180deg, #71431e, #3a2818);
}

.suggestions {
    border-color: #73502d;
    background: #121310;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .66);
}

.suggestion-item {
    border-bottom-color: rgba(164, 112, 51, .17);
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(112, 68, 28, .34);
}

.btn-primary {
    border-color: #d4964b;
    background:
        linear-gradient(90deg, #8b4c20, #ca8740 58%, #df9f54);
    color: #fff8ef;
    box-shadow:
        0 0 20px rgba(198, 138, 64, .16),
        inset 0 1px rgba(255, 255, 255, .12);
}

.btn-primary:hover {
    filter: brightness(1.09);
}

.btn-secondary {
    border-color: #4b4036;
    background:
        linear-gradient(180deg, #28241f, #171714);
    color: #d8d0c6;
}

.btn-filter {
    border-color: #71502f;
    background:
        linear-gradient(180deg, #392719, #211a14);
    color: var(--copper-light);
}

.search-control .icon {
    color: #9c8d7e;
}

.table-wrap {
    border-top-color: rgba(163, 111, 51, .17);
}

.data-table th {
    color: var(--copper-light);
    background:
        linear-gradient(180deg, rgba(33, 27, 20, .96), rgba(21, 20, 17, .96));
    border-bottom-color: rgba(182, 126, 59, .25);
}

.data-table td {
    color: #d7d0c7;
    border-bottom-color: rgba(127, 101, 72, .18);
    border-right-color: rgba(127, 101, 72, .10);
}

.data-table tbody tr:hover td {
    background: rgba(113, 67, 27, .16);
    color: #fffaf2;
}

.edit-btn {
    border-color: #9b602d;
    background: #3b2819;
    color: var(--copper-light);
}

.page-btn,
.page-current {
    border-color: #453a30;
    background: #151512;
}

.page-current {
    border-color: #9a612f;
    background: #382619;
    color: var(--copper-light);
}

.stat-card {
    border-color: rgba(152, 112, 70, .19);
    background:
        linear-gradient(145deg, rgba(27, 24, 20, .97), rgba(13, 14, 13, .97));
}

.stat-blue .icon,
.stat-cyan .icon {
    color: var(--copper-light);
}

.contact-details .icon {
    color: #ad9e8d;
}

.activity-panel .panel-title,
.stats-panel .panel-title,
.contact-panel .panel-title {
    color: #e9e1d7;
}

.activity-item {
    color: #bfb4a7;
}

.footer {
    border-top-color: #3a2b1e;
    color: #ada397;
    background: rgba(8, 9, 8, .93);
}

.footer-separator {
    color: #695849;
}

/* Páginas generales y formularios auxiliares */
.content-panel,
.auth-card,
.backup-card,
.csv-help-card,
.feature-list > div,
.result-stats > div {
    border-color: rgba(155, 109, 56, .25);
}

.upload-zone {
    border-color: #80552b;
    background: rgba(73, 45, 21, .17);
}

.upload-zone:hover {
    border-color: var(--copper-light);
    background: rgba(98, 58, 24, .24);
}

.backup-card {
    background:
        linear-gradient(145deg, rgba(30, 25, 20, .94), rgba(12, 13, 12, .97));
}

.auth-card {
    border-color: #4a3828;
    background:
        linear-gradient(145deg, rgba(22, 20, 17, .99), rgba(8, 9, 9, .99));
}

/* Estadísticas: identidad cobre sin alterar los colores funcionales del gráfico circular. */
.statistics-hero {
    border-color: #4b3827;
    background:
        radial-gradient(circle at 82% 15%, rgba(198, 138, 64, .16), transparent 31%),
        linear-gradient(130deg, rgba(31, 25, 19, .98), rgba(10, 11, 10, .98));
}

.range-selector {
    border-color: #4e3b2b;
    background: rgba(14, 13, 11, .82);
}

.range-selector a:hover {
    background: rgba(105, 64, 28, .25);
}

.range-selector a.active {
    border-color: #a96b31;
    background:
        linear-gradient(180deg, #9b5d29, #5e391f);
    box-shadow: 0 0 18px rgba(198, 138, 64, .16);
}

.kpi-card {
    border-color: #3f342a;
    background:
        linear-gradient(145deg, rgba(27, 24, 20, .98), rgba(12, 13, 12, .98));
}

/* Repetidoras: identidad cobre; VHF/UHF/DMR/EchoLink conservan sus colores técnicos. */
.repeaters-hero {
    background:
        linear-gradient(90deg, rgba(29, 23, 17, .98), rgba(10, 11, 10, .97)),
        radial-gradient(circle at 77% 20%, rgba(198, 138, 64, .16), transparent 35%);
}

.repeaters-hero-icon {
    border-color: #9d642f;
    color: var(--copper-light);
    background: rgba(28, 21, 15, .80);
    box-shadow: 0 0 24px rgba(198, 138, 64, .13);
}

.repeater-kpi {
    border-color: #3f3429;
    background:
        linear-gradient(145deg, rgba(25, 23, 20, .99), rgba(11, 12, 11, .99));
}

.repeater-filter-grid select,
.repeater-filter-grid input,
.repeater-list-tools select {
    border-color: #43382e;
    color: #ddd6ce;
    background: #171613;
}

.repeater-filter-grid select:focus,
.repeater-filter-grid input:focus,
.repeater-list-tools select:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 2px rgba(198, 138, 64, .10);
}

.repeater-table th {
    color: var(--copper-light);
    background: #211b15;
    border-bottom-color: #5a4028;
}

.repeater-row:hover td,
.repeater-row.selected td {
    background: rgba(104, 61, 25, .17);
}

.repeater-detail-header {
    background:
        linear-gradient(135deg, rgba(51, 34, 20, .87), rgba(12, 13, 12, .96)),
        radial-gradient(circle at 80% 20%, rgba(198, 138, 64, .16), transparent 38%);
}

.repeater-detail-header h2 {
    color: var(--copper-light);
}

.repeater-detail-row > span {
    color: var(--copper-light);
}

.repeater-detail-actions button {
    border-color: #9a622f;
    color: #e8b876;
    background:
        linear-gradient(180deg, #442b18, #261d15);
}

.repeater-detail-actions button:hover {
    border-color: #d0944c;
}

/* El mapa conserva sus marcadores técnicos. */
.marker-vhf,
.repeater-map-marker.marker-vhf {
    color: #27b7ff;
    background: #27b7ff;
}

.marker-uhf,
.repeater-map-marker.marker-uhf {
    color: #35d04d;
    background: #35d04d;
}

.marker-dmr,
.repeater-map-marker.marker-dmr {
    color: #bc6cff;
    background: #bc6cff;
}

.marker-echolink,
.repeater-map-marker.marker-echolink {
    color: #ffd434;
    background: #ffd434;
}

/* Logo: integra el borde con la nueva identidad. */
.station-seal.station-logo {
    border-color: rgba(198, 145, 68, .88);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .86),
        0 0 20px rgba(198, 138, 64, .23),
        inset 0 0 12px rgba(0, 0, 0, .48);
}

/* =========================================================
   CABECERA OPERATIVA Y ACCESOS RÁPIDOS · v1.6
   ========================================================= */
:root {
    --header-height: 118px;
}

.topbar.topbar-command {
    display: grid;
    grid-template-columns: minmax(265px, .72fr) minmax(650px, 2.25fr) 118px;
    align-items: stretch;
    height: var(--header-height);
    border-bottom: 1px solid #4b321f;
    background:
        radial-gradient(circle at 78% 130%, rgba(177, 103, 35, .20), transparent 30%),
        linear-gradient(90deg, rgba(7, 9, 9, .98), rgba(16, 14, 11, .98) 46%, rgba(8, 10, 10, .98));
    box-shadow:
        0 8px 32px rgba(0, 0, 0, .48),
        inset 0 -1px rgba(205, 145, 70, .05);
}

.station-identity {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 13px 22px 13px 32px;
    border-right: 1px solid rgba(184, 122, 55, .17);
}

.station-identity::after {
    content: "";
    position: absolute;
    right: 0;
    top: 17px;
    bottom: 17px;
    width: 1px;
    background: linear-gradient(transparent, rgba(209, 149, 77, .32), transparent);
}

.station-identity-label {
    color: var(--copper);
    font-size: 10px;
    font-weight: 820;
    letter-spacing: .12em;
}

.station-identity-call {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin: 2px 0 5px;
    color: #e9ddca;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 2.5vw, 46px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: .045em;
    text-shadow: 0 0 16px rgba(198, 138, 64, .14);
}

.station-spark {
    position: absolute;
    display: block;
    background: var(--copper-light);
    box-shadow: 0 0 10px rgba(225, 168, 95, .72);
    transform: rotate(45deg);
}

.station-spark::before,
.station-spark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
}

.station-spark::before {
    transform: scaleX(.20);
}

.station-spark::after {
    transform: scaleY(.20);
}

.station-spark-one {
    right: -34px;
    top: -3px;
    width: 10px;
    height: 10px;
}

.station-spark-two {
    right: -53px;
    top: 19px;
    width: 5px;
    height: 5px;
    opacity: .72;
}

.station-identity-location {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #9e9488;
    font-size: 9px;
    font-weight: 720;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.station-identity-location .icon {
    width: 14px;
    height: 14px;
    color: var(--copper);
}

.station-identity-location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-banner {
    align-self: center;
    height: 88px;
    min-width: 0;
    display: grid;
    grid-template-columns: .72fr .72fr 1.15fr 1.35fr;
    margin: 0 12px;
    overflow: hidden;
    border: 1px solid rgba(147, 96, 45, .35);
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(19, 18, 15, .86), rgba(10, 12, 12, .90));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .018),
        0 13px 28px rgba(0, 0, 0, .24);
}

.command-segment {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 17px;
    border-right: 1px solid rgba(173, 116, 53, .16);
}

.command-segment:last-child {
    border-right: 0;
}

.command-segment small,
.command-segment span {
    overflow: hidden;
    color: #998f84;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-segment small {
    margin-top: 2px;
    font-weight: 680;
    letter-spacing: .05em;
}

.command-label {
    color: #b08351;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: .09em;
}

.command-online {
    align-items: center;
    text-align: center;
}

.command-online .online-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border: 1px solid rgba(67, 190, 91, .29);
    border-radius: 5px;
    color: #58d56f;
    background: rgba(18, 70, 31, .18);
    font-size: 10px;
}

.command-online .online-dot {
    width: 8px;
    height: 8px;
    margin-right: 6px;
}

.command-datetime {
    align-items: center;
    text-align: center;
}

.command-datetime .top-date {
    margin: 0 0 2px;
    color: #bfb2a3;
    font-size: 10px;
    font-weight: 720;
}

.command-datetime .top-clock {
    color: #e5d6c4;
    font-family: "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 750;
}

.command-operator {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.command-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid rgba(183, 119, 49, .31);
    border-radius: 50%;
    color: var(--copper);
    background: rgba(84, 48, 20, .17);
}

.command-icon .icon {
    width: 19px;
    height: 19px;
}

.command-operator strong {
    display: block;
    overflow: hidden;
    margin: 2px 0 3px;
    color: #e7dbcc;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-latest strong,
.command-latest span,
.command-latest small {
    display: block;
}

.command-latest .latest-call {
    margin: 1px 0;
    color: #76d953;
    font-size: 17px;
    line-height: 1.12;
}

.command-latest .latest-empty {
    color: #9c9185;
    font-size: 13px;
}

.topbar-logo {
    display: grid;
    place-items: center;
    padding: 9px 13px 9px 0;
}

.topbar-logo img {
    width: 96px;
    height: 96px;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(199, 145, 67, .77);
    border-radius: 50%;
    background: #050604;
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .73),
        0 0 20px rgba(195, 130, 55, .21);
}

/* Accesos rápidos */
.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(5, minmax(135px, 1fr));
    gap: 10px;
}

.dashboard-shortcut {
    --shortcut-accent: var(--copper);
    position: relative;
    min-height: 96px;
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 13px 12px;
    border: 1px solid #443628;
    border-radius: 8px;
    background:
        radial-gradient(circle at 5% 50%, color-mix(in srgb, var(--shortcut-accent) 11%, transparent), transparent 35%),
        linear-gradient(145deg, rgba(26, 23, 19, .98), rgba(11, 12, 11, .98));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .018),
        0 9px 25px rgba(0, 0, 0, .19);
    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.dashboard-shortcut::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -46px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: var(--shortcut-accent);
    opacity: .045;
}

.dashboard-shortcut:hover {
    z-index: 2;
    border-color: color-mix(in srgb, var(--shortcut-accent) 70%, #6d5742);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .025),
        0 13px 30px rgba(0, 0, 0, .28),
        0 0 17px color-mix(in srgb, var(--shortcut-accent) 12%, transparent);
}

.dashboard-shortcut-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid color-mix(in srgb, var(--shortcut-accent) 62%, transparent);
    border-radius: 50%;
    color: var(--shortcut-accent);
    background: color-mix(in srgb, var(--shortcut-accent) 9%, #11110f);
    box-shadow: 0 0 16px color-mix(in srgb, var(--shortcut-accent) 10%, transparent);
}

.dashboard-shortcut-icon .icon {
    width: 23px;
    height: 23px;
}

.dashboard-shortcut-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dashboard-shortcut-copy small,
.dashboard-shortcut-copy strong,
.dashboard-shortcut-copy b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-shortcut-copy small {
    color: #a99d8f;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: .05em;
}

.dashboard-shortcut-copy strong {
    margin: 4px 0 2px;
    color: #eee6dc;
    font-size: clamp(18px, 1.5vw, 25px);
    line-height: 1;
}

.dashboard-shortcut-copy strong em {
    color: #b8aa9a;
    font-size: 10px;
    font-style: normal;
    font-weight: 650;
}

.dashboard-shortcut-copy b {
    color: #81776c;
    font-size: 8px;
    font-weight: 620;
}

.dashboard-shortcut-arrow {
    position: relative;
    z-index: 1;
    align-self: end;
    padding-bottom: 5px;
    color: var(--shortcut-accent);
    font-size: 16px;
    opacity: .62;
    transition: transform .16s ease, opacity .16s ease;
}

.dashboard-shortcut:hover .dashboard-shortcut-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.shortcut-today {
    --shortcut-accent: #57d169;
}

.shortcut-month {
    --shortcut-accent: #cf8437;
}

.shortcut-frequency {
    --shortcut-accent: #df9c48;
}

.shortcut-mode {
    --shortcut-accent: #bd7740;
}

.shortcut-unique {
    --shortcut-accent: #79c76c;
}

/* Filtro ampliado con modo */
.filter-bar {
    grid-template-columns: minmax(210px, 1fr) 140px 135px 145px 108px;
}

/* Compatibilidad para navegadores que todavía no soportan color-mix(). */
@supports not (color: color-mix(in srgb, red, blue)) {
    .dashboard-shortcut {
        background:
            radial-gradient(circle at 5% 50%, rgba(198, 138, 64, .08), transparent 35%),
            linear-gradient(145deg, rgba(26, 23, 19, .98), rgba(11, 12, 11, .98));
    }

    .dashboard-shortcut:hover {
        border-color: #9c6837;
        box-shadow:
            inset 0 1px rgba(255, 255, 255, .025),
            0 13px 30px rgba(0, 0, 0, .28),
            0 0 17px rgba(198, 138, 64, .10);
    }

    .dashboard-shortcut-icon {
        border-color: rgba(198, 138, 64, .55);
        background: rgba(198, 138, 64, .08);
    }
}

@media (max-width: 1450px) {
    .topbar.topbar-command {
        grid-template-columns: minmax(235px, .63fr) minmax(600px, 2.1fr) 106px;
    }

    .station-identity {
        padding-left: 23px;
    }

    .command-banner {
        grid-template-columns: .68fr .70fr 1.05fr 1.28fr;
        margin-left: 8px;
        margin-right: 8px;
    }

    .command-segment {
        padding-left: 12px;
        padding-right: 12px;
    }

    .topbar-logo img {
        width: 88px;
        height: 88px;
    }

    .dashboard-shortcuts {
        grid-template-columns: repeat(3, minmax(155px, 1fr));
    }
}

@media (max-width: 1120px) {
    :root {
        --header-height: auto;
    }

    .topbar.topbar-command {
        grid-template-columns: minmax(235px, 1fr) 96px;
        height: auto;
    }

    .station-identity {
        min-height: 104px;
    }

    .command-banner {
        grid-column: 1 / -1;
        grid-row: 2;
        width: auto;
        height: 80px;
        margin: 0 10px 10px;
    }

    .topbar-logo {
        grid-column: 2;
        grid-row: 1;
    }

    .dashboard-shortcuts {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 780px) {
    .topbar.topbar-command {
        grid-template-columns: minmax(0, 1fr) 86px;
    }

    .station-identity {
        min-height: 92px;
        padding: 11px 15px;
    }

    .station-identity-call {
        font-size: 32px;
    }

    .topbar-logo {
        padding: 7px 9px 7px 0;
    }

    .topbar-logo img {
        width: 76px;
        height: 76px;
    }

    .command-banner {
        height: auto;
        grid-template-columns: 1fr 1fr;
    }

    .command-segment {
        min-height: 70px;
        border-bottom: 1px solid rgba(173, 116, 53, .14);
    }

    .command-segment:nth-child(2) {
        border-right: 0;
    }

    .dashboard-shortcuts {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar .search-control {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .station-identity-call {
        font-size: 29px;
    }

    .station-spark-one,
    .station-spark-two {
        display: none;
    }

    .command-banner {
        grid-template-columns: 1fr;
    }

    .command-segment {
        border-right: 0;
    }

    .dashboard-shortcuts {
        grid-template-columns: 1fr;
    }

    .dashboard-shortcut {
        min-height: 86px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .filter-bar .search-control {
        grid-column: 1;
    }
}

/* =========================================================
   MULTIUSUARIO · v2.0
   ========================================================= */
.sidebar-user {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(198, 138, 64, .24);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(42, 31, 21, .52), rgba(14, 14, 12, .72));
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #9f642f;
    border-radius: 50%;
    color: #e5ad67;
    background: #2d1f15;
    font-size: 11px;
    font-weight: 850;
}

.sidebar-user strong,
.sidebar-user span,
.sidebar-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user strong { color: #f0e8dd; font-size: 12px; }
.sidebar-user span { color: #a99d90; font-size: 9px; }
.sidebar-user small { color: #c68a40; font-size: 8px; text-transform: uppercase; }

.sidebar-subheading {
    margin: 7px 8px 0;
    color: #81766b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
}

.logout-form { margin: 0; }
.logout-nav {
    width: 100%;
    font: inherit;
    cursor: pointer;
}
.logout-nav:hover {
    border-color: rgba(255, 98, 85, .35);
    color: #ffb1a9;
    background: rgba(93, 28, 23, .18);
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 5%, rgba(198, 138, 64, .16), transparent 42%),
        linear-gradient(180deg, #080908, #11100d 55%, #070807);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid #5a4028;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(28, 24, 19, .99), rgba(9, 10, 9, .99));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .52), 0 0 30px rgba(198, 138, 64, .08);
}

.login-logo {
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.login-logo img {
    width: 106px;
    height: 106px;
    object-fit: cover;
    border: 1px solid #b87937;
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(198, 138, 64, .20);
}

.login-heading { text-align: center; }
.login-heading > span {
    color: #c68a40;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
}
.login-heading h1 {
    margin: 5px 0 6px;
    color: #f0e9df;
    font-size: 27px;
}
.login-heading p {
    margin: 0 0 20px;
    color: #a89d91;
    font-size: 11px;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #d8cec1;
    font-size: 10px;
    font-weight: 700;
}

.login-input { position: relative; }
.login-input .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 17px;
    height: 17px;
    color: #b17739;
    transform: translateY(-50%);
}
.login-input input {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px 10px 40px;
    border: 1px solid #4a3b2f;
    border-radius: 7px;
    color: #f1ebe3;
    background: #151512;
    outline: none;
}
.login-input input:focus {
    border-color: #c68a40;
    box-shadow: 0 0 0 3px rgba(198, 138, 64, .10);
}

.login-button {
    min-height: 46px;
    border: 1px solid #df9f54;
    border-radius: 7px;
    color: #fff8ef;
    background: linear-gradient(90deg, #8b4c20, #ca8740 58%, #df9f54);
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.login-alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #71502f;
    border-radius: 6px;
    color: #e8d8c6;
    background: rgba(93, 57, 26, .22);
    font-size: 10px;
}
.login-alert-error { border-color: #9b443a; color: #ffd4cf; background: rgba(103, 30, 24, .25); }
.login-alert-success { border-color: #387a47; color: #d8ffe0; background: rgba(27, 95, 44, .20); }

.login-foot {
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid rgba(198, 138, 64, .15);
    color: #84796d;
    text-align: center;
    font-size: 9px;
}

.account-summary {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 12px;
    margin: 15px 0 20px;
    padding: 14px;
    border: 1px solid #4b3b2d;
    border-radius: 7px;
    background: #131310;
}
.account-summary > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #9d642f;
    border-radius: 50%;
    color: #d89b51;
}
.account-summary .icon { width: 23px; height: 23px; }
.account-summary small,
.account-summary strong,
.account-summary b { display: block; }
.account-summary small { color: #9f9386; font-size: 8px; }
.account-summary strong { color: #eddfce; font-size: 19px; }
.account-summary b { color: #a99e91; font-size: 10px; font-weight: 600; }

.warning-box {
    border-color: rgba(221, 184, 79, .45);
    color: #ebd893;
    background: rgba(102, 78, 17, .16);
}

.credential-banner {
    padding: 16px;
    border: 1px solid #4e914f;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(24, 88, 39, .22), rgba(15, 20, 15, .84));
}
.credential-banner > div:first-child span,
.credential-banner > div:first-child strong { display: block; }
.credential-banner > div:first-child span { color: #60d875; font-size: 8px; letter-spacing: .1em; }
.credential-banner > div:first-child strong { margin-top: 3px; color: #e5ffe9; font-size: 14px; }
.credential-values {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 9px;
    margin: 12px 0 8px;
}
.credential-values label { color: #a4b6a5; font-size: 9px; }
.credential-values input {
    width: 100%;
    margin-top: 4px;
    padding: 9px;
    border: 1px solid #45664a;
    border-radius: 5px;
    color: #effff1;
    background: #101711;
    font-family: monospace;
}
.credential-banner p { margin: 0; color: #91a694; font-size: 9px; }

.temporary-password-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
}
.temporary-password-field button,
.reset-password-form button,
.user-action-button {
    border: 1px solid #79502d;
    border-radius: 5px;
    color: #e0ac6a;
    background: #2c2118;
    cursor: pointer;
}

.user-admin-list {
    display: grid;
    gap: 10px;
    padding-top: 12px;
}
.user-admin-card {
    display: grid;
    grid-template-columns: minmax(210px, 1.1fr) minmax(180px, .8fr) minmax(300px, 1.3fr);
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #40362d;
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(26, 23, 19, .96), rgba(12, 13, 12, .96));
}
.user-disabled { opacity: .66; }
.user-admin-main {
    display: grid;
    grid-template-columns: 43px 1fr;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #98602e;
    border-radius: 50%;
    color: #dda45f;
    background: #2c2017;
    font-size: 10px;
    font-weight: 850;
}
.user-admin-main strong,
.user-admin-main span,
.user-admin-main small { display: block; }
.user-admin-main strong { color: #ede4d8; font-size: 12px; }
.user-admin-main span { color: #b0a497; font-size: 9px; }
.user-admin-main small { color: #8f8378; font-size: 8px; }

.user-admin-status { display: grid; gap: 4px; justify-items: start; }
.user-admin-status > span {
    padding: 3px 6px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
}
.user-admin-status small { color: #877d72; font-size: 8px; }

.user-admin-actions { display: grid; gap: 7px; }
.reset-password-form {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) 34px auto;
    gap: 5px;
}
.reset-password-form input {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #44382e;
    border-radius: 5px;
    color: #e7dfd6;
    background: #141411;
    font-size: 9px;
}
.reset-password-form button,
.user-action-button { min-height: 31px; padding: 6px 9px; font-size: 8px; }
.user-action-button.danger {
    border-color: #8f443b;
    color: #ffaaa2;
    background: rgba(94, 31, 25, .23);
}

@media (max-width: 1100px) {
    .user-admin-card { grid-template-columns: 1fr 1fr; }
    .user-admin-actions { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
    .credential-values,
    .user-admin-card { grid-template-columns: 1fr; }
    .reset-password-form { grid-template-columns: 1fr 36px; }
    .reset-password-form button:last-child { grid-column: 1 / -1; }
}

/* =========================================================
   LOGIN GENERAL RADIOAFICIONADOS · v2.1
   ========================================================= */
.login-page-radio {
    min-height: 100vh;
    overflow-x: hidden;
    background: #071019;
}

.login-page-radio::before {
    display: none;
}

.radio-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(500px, 1.45fr) minmax(390px, .72fr);
    background: #071019;
}

.radio-login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        url('../img/login-radio-chile.webp') left center / cover no-repeat;
}

.radio-login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 8, 13, .03), rgba(2, 8, 13, .16) 42%, rgba(3, 10, 16, .76) 76%, rgba(3, 10, 16, .94)),
        linear-gradient(180deg, rgba(2, 8, 13, .12), transparent 35%, rgba(2, 6, 9, .30) 70%, rgba(2, 5, 8, .93));
}

.radio-login-visual-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 42% 29%, rgba(245, 164, 66, .055), transparent 28%),
        radial-gradient(circle at 82% 60%, rgba(7, 28, 45, .20), transparent 34%);
    pointer-events: none;
}

.radio-login-brand {
    position: relative;
    z-index: 2;
    width: min(510px, 76%);
    display: grid;
    justify-items: center;
    margin-left: 22%;
    padding: 22px;
    text-align: center;
}

.radio-login-brand img {
    width: 172px;
    height: 172px;
    display: block;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .38));
}

.radio-login-brand p {
    margin: 18px 0 16px;
    color: #f0f3f5;
    font-size: clamp(14px, 1.35vw, 21px);
    font-weight: 640;
    letter-spacing: .035em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.radio-login-divider {
    width: min(330px, 92%);
    display: grid;
    grid-template-columns: 1fr 36px 1fr;
    align-items: center;
    gap: 9px;
    color: #f39a2a;
}

.radio-login-divider span {
    height: 2px;
    display: block;
    background: linear-gradient(90deg, transparent, #e99227);
}

.radio-login-divider span:last-child {
    background: linear-gradient(90deg, #e99227, transparent);
}

.radio-login-divider .icon {
    width: 28px;
    height: 28px;
    justify-self: center;
}

.radio-login-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 35px;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 18px 30px;
    color: #d9dfe3;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

.radio-login-footer strong {
    font-size: 14px;
    font-weight: 520;
}

.radio-login-footer span {
    font-size: 13px;
}

.radio-login-access {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 44px;
    border-left: 1px solid rgba(211, 142, 61, .16);
    background:
        radial-gradient(circle at 50% 18%, rgba(201, 132, 53, .10), transparent 37%),
        linear-gradient(160deg, #0b1621, #071019 64%, #090d10);
    box-shadow: -22px 0 60px rgba(0, 0, 0, .32);
}

.radio-login-access::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(198, 138, 64, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 138, 64, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    pointer-events: none;
}

.radio-login-card {
    position: relative;
    z-index: 2;
    width: min(450px, 100%);
    padding: 32px;
    border: 1px solid rgba(198, 138, 64, .36);
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(20, 34, 47, .97), rgba(8, 20, 30, .98));
    box-shadow:
        0 30px 85px rgba(0, 0, 0, .55),
        0 0 34px rgba(198, 138, 64, .08),
        inset 0 1px rgba(255, 255, 255, .025);
}

.radio-login-mobile-logo {
    display: none;
    place-items: center;
    margin-bottom: 15px;
}

.radio-login-mobile-logo img {
    width: 104px;
    height: 104px;
}

.radio-login-heading {
    margin-bottom: 23px;
    text-align: left;
}

.radio-login-heading > span {
    color: #d78b35;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .15em;
}

.radio-login-heading h1 {
    margin: 5px 0 7px;
    color: #f4f6f7;
    font-size: 30px;
    line-height: 1.05;
}

.radio-login-heading p {
    margin: 0;
    color: #9baab4;
    font-size: 11px;
    line-height: 1.55;
}

.radio-login-form {
    display: grid;
    gap: 16px;
}

.radio-login-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #d6dde1;
    font-size: 10px;
    font-weight: 710;
}

.radio-login-input {
    position: relative;
}

.radio-login-input .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    color: #e19a43;
    transform: translateY(-50%);
    pointer-events: none;
}

.radio-login-input input {
    width: 100%;
    min-height: 51px;
    padding: 11px 14px 11px 44px;
    border: 1px solid #354b5c;
    border-radius: 7px;
    color: #f3f6f7;
    background: rgba(16, 34, 48, .86);
    font-size: 13px;
    outline: none;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.radio-login-input input::placeholder {
    color: #778996;
}

.radio-login-input input:focus {
    border-color: #dd923c;
    background: rgba(18, 38, 54, .98);
    box-shadow:
        0 0 0 3px rgba(221, 146, 60, .10),
        0 0 18px rgba(221, 146, 60, .07);
}

.radio-login-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    border: 1px solid #f3a448;
    border-radius: 7px;
    color: #fff;
    background:
        linear-gradient(90deg, #da7c1d, #f49c2d 58%, #e98b20);
    box-shadow:
        0 11px 25px rgba(205, 111, 26, .20),
        inset 0 1px rgba(255, 255, 255, .20);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .025em;
    cursor: pointer;
    transition:
        filter .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.radio-login-button .icon {
    width: 20px;
    height: 20px;
}

.radio-login-button:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow:
        0 15px 30px rgba(205, 111, 26, .25),
        inset 0 1px rgba(255, 255, 255, .22);
}

.radio-login-help {
    display: grid;
    justify-items: center;
    gap: 3px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(198, 138, 64, .14);
    text-align: center;
}

.radio-login-help strong {
    color: #55b9f0;
    font-size: 10px;
    font-weight: 650;
}

.radio-login-help span {
    color: #778994;
    font-size: 9px;
}

.radio-login-access-footer {
    display: none;
}

.login-page-radio .login-alert {
    margin-bottom: 16px;
    border-color: rgba(195, 121, 50, .50);
    color: #f0ddca;
    background: rgba(110, 61, 23, .22);
}

.login-page-radio .login-alert-error {
    border-color: rgba(217, 78, 65, .65);
    color: #ffd7d3;
    background: rgba(107, 30, 25, .30);
}

.login-page-radio .login-alert-success {
    border-color: rgba(62, 160, 80, .56);
    color: #d9ffe1;
    background: rgba(28, 100, 46, .23);
}

@media (max-width: 1050px) {
    .radio-login-shell {
        grid-template-columns: minmax(350px, .92fr) minmax(390px, 1fr);
    }

    .radio-login-brand {
        width: 88%;
        margin-left: 5%;
    }

    .radio-login-brand img {
        width: 145px;
        height: 145px;
    }

    .radio-login-access {
        padding: 30px;
    }
}

@media (max-width: 780px) {
    .radio-login-shell {
        grid-template-columns: 1fr;
    }

    .radio-login-visual {
        display: none;
    }

    .radio-login-access {
        min-height: 100vh;
        padding: 24px;
        background:
            linear-gradient(rgba(3, 11, 18, .87), rgba(3, 11, 18, .95)),
            url('../img/login-radio-chile.webp') left center / cover no-repeat;
    }

    .radio-login-access::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(180deg, rgba(3, 12, 19, .18), rgba(3, 12, 19, .80));
        pointer-events: none;
    }

    .radio-login-card {
        z-index: 3;
    }

    .radio-login-mobile-logo {
        display: grid;
    }

    .radio-login-heading {
        text-align: center;
    }

    .radio-login-access-footer {
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 18px;
        z-index: 3;
        display: grid;
        justify-items: center;
        gap: 3px;
        color: #c8d0d5;
        text-align: center;
        text-shadow: 0 2px 9px rgba(0, 0, 0, .65);
    }

    .radio-login-access-footer strong {
        font-size: 10px;
    }

    .radio-login-access-footer span {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .radio-login-access {
        align-items: start;
        padding: 18px 14px 92px;
    }

    .radio-login-card {
        margin-top: 12px;
        padding: 24px 20px;
        border-radius: 12px;
    }

    .radio-login-heading h1 {
        font-size: 26px;
    }
}

/* =========================================================
   CORRECCIÓN VISUAL LOGIN · v2.2
   ========================================================= */
.radio-login-shell {
    grid-template-columns:
        minmax(680px, 1.35fr)
        minmax(520px, .82fr);
}

.radio-login-visual {
    background:
        url('../img/login-radio-chile.webp')
        left center / cover no-repeat;
}

.radio-login-visual::before {
    background:
        linear-gradient(
            90deg,
            rgba(2, 8, 13, .03),
            rgba(2, 8, 13, .08) 35%,
            rgba(2, 8, 13, .30) 63%,
            rgba(3, 10, 16, .78) 100%
        ),
        linear-gradient(
            180deg,
            rgba(2, 8, 13, .08),
            transparent 45%,
            rgba(2, 6, 9, .88)
        );
}

.radio-login-brand {
    width: min(560px, 70%);
    margin-left: 29%;
    padding: 20px;
}

.radio-login-brand img {
    width: 190px;
    height: 190px;
}

.radio-login-brand p {
    margin-top: 21px;
    font-size: clamp(16px, 1.35vw, 22px);
    letter-spacing: .045em;
}

.radio-login-divider {
    width: min(365px, 94%);
}

.radio-login-footer {
    bottom: 29px;
}

.radio-login-footer strong {
    font-size: 15px;
}

.radio-login-footer span {
    font-size: 14px;
}

.radio-login-access {
    padding: 46px 54px;
}

.radio-login-card {
    width: min(540px, 100%);
    padding: 40px 42px;
    border-radius: 17px;
}

.radio-login-heading {
    margin-bottom: 28px;
}

.radio-login-heading > span {
    font-size: 10px;
}

.radio-login-heading h1 {
    margin-top: 7px;
    font-size: 36px;
}

.radio-login-heading p {
    max-width: 450px;
    font-size: 12px;
}

.radio-login-form {
    gap: 19px;
}

.radio-login-form label > span {
    margin-bottom: 8px;
    font-size: 11px;
}

.radio-login-input .icon {
    left: 16px;
    width: 20px;
    height: 20px;
}

.radio-login-input input {
    min-height: 58px;
    padding-left: 50px;
    font-size: 14px;
}

.radio-login-button {
    min-height: 58px;
    margin-top: 5px;
    font-size: 13px;
}

.radio-login-help {
    margin-top: 24px;
    padding-top: 19px;
}

.radio-login-help strong {
    font-size: 11px;
}

.radio-login-help span {
    font-size: 10px;
}

.login-page-radio .login-alert {
    margin-bottom: 19px;
    padding: 12px 14px;
    font-size: 11px;
}

@media (max-width: 1450px) {
    .radio-login-shell {
        grid-template-columns:
            minmax(570px, 1.2fr)
            minmax(480px, .88fr);
    }

    .radio-login-brand {
        width: min(500px, 76%);
        margin-left: 23%;
    }

    .radio-login-access {
        padding: 38px;
    }

    .radio-login-card {
        width: min(500px, 100%);
        padding: 35px;
    }
}

@media (max-width: 1120px) {
    .radio-login-shell {
        grid-template-columns:
            minmax(440px, .95fr)
            minmax(440px, 1fr);
    }

    .radio-login-brand {
        width: 88%;
        margin-left: 5%;
    }

    .radio-login-brand img {
        width: 155px;
        height: 155px;
    }

    .radio-login-access {
        padding: 28px;
    }
}

@media (max-width: 780px) {
    .radio-login-access {
        padding: 24px 20px 96px;
        background:
            linear-gradient(
                rgba(3, 11, 18, .83),
                rgba(3, 11, 18, .95)
            ),
            url('../img/login-radio-chile.webp')
            left center / cover no-repeat;
    }

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

    .radio-login-heading h1 {
        font-size: 30px;
    }

    .radio-login-input input {
        min-height: 54px;
    }

    .radio-login-button {
        min-height: 54px;
    }
}

@media (max-width: 480px) {
    .radio-login-card {
        padding: 25px 20px;
    }

    .radio-login-heading h1 {
        font-size: 27px;
    }
}


/* =========================================================
   SOLICITUDES DE ACCESO Y CORREO · v2.3
   ========================================================= */
.request-access-button{min-height:43px;display:flex;align-items:center;justify-content:center;gap:9px;margin-top:14px;border:1px solid rgba(85,185,240,.38);border-radius:7px;color:#77cafa;background:rgba(18,68,97,.18);font-size:9px;font-weight:800;letter-spacing:.035em;transition:.16s}.request-access-button:hover{border-color:#55b9f0;color:#fff;background:rgba(25,98,138,.28)}.request-access-button .icon{width:16px;height:16px}
.public-request-page{min-height:100vh;background:linear-gradient(rgba(3,11,18,.88),rgba(3,11,18,.96)),url('../img/login-radio-chile.webp') left center/cover fixed no-repeat}.public-request-page::before{display:none}.public-request-shell{min-height:100vh;display:grid;place-items:center;padding:30px}.public-request-card{width:min(720px,100%);padding:30px;border:1px solid rgba(198,138,64,.42);border-radius:15px;background:linear-gradient(145deg,rgba(18,33,45,.98),rgba(7,18,27,.99));box-shadow:0 32px 90px rgba(0,0,0,.6)}.public-request-logo{width:92px;height:92px;display:block;margin:0 auto 12px}.public-request-kicker{display:block;color:#dd923c;text-align:center;font-size:9px;font-weight:850;letter-spacing:.15em}.public-request-card h1{margin:5px 0 9px;text-align:center;font-size:30px}.public-request-card>p{max-width:580px;margin:0 auto 22px;color:#9caeb8;text-align:center;font-size:11px;line-height:1.55}.public-request-back{display:inline-block;margin-bottom:8px;color:#72c9f7;font-size:10px}.public-request-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.public-request-form label{display:grid;gap:6px}.public-request-form label>span{color:#d6dfe4;font-size:10px;font-weight:700}.public-request-form input,.public-request-form textarea{width:100%;padding:11px 12px;border:1px solid #354c5e;border-radius:7px;color:#f1f5f7;background:#102331;outline:none}.public-request-form textarea{resize:vertical}.public-request-form input:focus,.public-request-form textarea:focus{border-color:#dd923c;box-shadow:0 0 0 3px rgba(221,146,60,.1)}.public-request-form .full{grid-column:1/-1}.public-request-form button,.public-request-main-link{min-height:49px;display:grid;place-items:center;border:1px solid #efa347;border-radius:7px;color:#fff;background:linear-gradient(90deg,#d9791c,#f49b2c);font-size:11px;font-weight:850;cursor:pointer}.request-honeypot{position:absolute!important;left:-9999px!important}.public-request-success{display:grid;justify-items:center;gap:9px;padding:23px;border:1px solid #3c8b50;border-radius:9px;color:#dcffe4;background:rgba(27,105,46,.22);text-align:center}.public-request-success strong{font-size:18px}.public-request-success span{color:#b7d5bd;font-size:11px}.public-request-success a{margin-top:8px;padding:10px 16px;border-radius:5px;color:white;background:#d98429;font-size:10px;font-weight:800}.single-column{grid-template-columns:1fr}.password-rule{color:#8fa1ab;font-size:9px}.setup-password-card{width:min(520px,100%)}
.nav-badge{min-width:22px;height:20px;display:grid;place-items:center;margin-left:auto;padding:0 5px;border-radius:10px;color:#fff;background:#d77928;font-size:8px;box-shadow:0 0 9px rgba(215,121,40,.25)}.panel-count{display:inline-grid;place-items:center;min-width:25px;height:21px;margin-left:8px;padding:0 6px;border-radius:11px;color:#fff;background:#79502c;font-size:9px}.user-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.user-summary-grid a{min-height:83px;display:grid;align-content:center;justify-items:center;border:1px solid #443729;border-radius:8px;background:linear-gradient(145deg,#1e1a15,#0d0f0f)}.user-summary-grid strong{color:#e7a252;font-size:24px}.user-summary-grid span{color:#a89b8e;font-size:9px}.user-summary-grid .mail-ok strong{color:#50d06c}.user-summary-grid .mail-pending strong{color:#ffbc47}.request-admin-list{display:grid;gap:10px}.request-admin-card{display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(200px,.9fr) minmax(170px,.8fr) minmax(210px,1fr);align-items:center;gap:13px;padding:14px;border:1px solid #3d3329;border-radius:8px;background:#111412}.request-admin-main{display:flex;align-items:center;gap:10px;min-width:0}.request-admin-main>div:last-child{min-width:0}.request-admin-main strong,.request-admin-main span,.request-admin-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.request-admin-main span{color:#d8d0c7;font-size:11px}.request-admin-main small,.request-official span,.request-official small,.request-user-data{color:#8f9da5;font-size:9px}.request-official{display:grid;gap:3px}.request-official strong{font-size:10px}.official-found strong{color:#4dd267}.official-missing strong{color:#ffb948}.request-user-data{display:grid;gap:4px}.request-user-data small{white-space:normal}.request-admin-actions{display:grid;gap:7px}.request-admin-actions form{display:flex;gap:5px}.request-admin-actions input{min-width:0;width:100%;padding:7px;border:1px solid #3e4850;border-radius:5px;color:#dbe3e7;background:#0c171f}.approve-request-button,.reject-request-button{min-height:34px;border-radius:5px;font-size:8px;font-weight:800;cursor:pointer}.approve-request-button{width:100%;border:1px solid #4a9c5b;color:#e3ffe8;background:#18582a}.reject-request-button{border:1px solid #a54b41;color:#ffd7d3;background:#5c231e}.empty-admin-state{padding:28px;color:#899aa4;text-align:center}.mail-status-card{display:grid;gap:3px;margin-bottom:17px;padding:13px;border:1px solid #4b4135;border-radius:7px}.mail-ready{border-color:#377d48;background:rgba(28,100,45,.17)}.mail-offline{border-color:#a06c32;background:rgba(117,69,24,.16)}.mail-status-card span,.mail-status-card small{color:#9eada6;font-size:9px}
@media(max-width:1250px){.request-admin-card{grid-template-columns:1fr 1fr}.user-summary-grid{grid-template-columns:1fr 1fr}}@media(max-width:720px){.public-request-form{grid-template-columns:1fr}.public-request-form .full{grid-column:1}.request-admin-card{grid-template-columns:1fr}.user-summary-grid{grid-template-columns:1fr 1fr}.public-request-shell{padding:16px}.public-request-card{padding:23px 18px}}@media(max-width:430px){.user-summary-grid{grid-template-columns:1fr}}

/* =========================================================
   TABLA: NOMBRE COMPLETO Y CIUDAD · v2.5
   ========================================================= */
.data-table {
    min-width: 1220px;
}

.data-table th:nth-child(6) {
    width: 165px;
}

.data-table th:nth-child(7) {
    width: 115px;
}

.data-table th:nth-child(8),
.data-table th:nth-child(9) {
    width: 62px;
}

.data-table th:nth-child(10) {
    width: 86px;
}

.data-table th:nth-child(11) {
    width: 220px;
}

.data-table th:nth-child(12) {
    width: 68px;
}

.full-name-cell {
    max-width: 165px;
}

.city-cell {
    max-width: 115px;
    color: #d8c7b1;
}

@media (max-width: 900px) {
    .data-table {
        min-width: 1180px;
    }
}

/* =========================================================
   FILTRO PRINCIPAL POR CIUDAD · v2.6
   ========================================================= */
.filter-bar.filter-bar-city {
    grid-template-columns:
        minmax(260px, 1fr)
        170px
        minmax(170px, 240px)
        108px;
}

.filter-bar-city input[name="city"] {
    min-width: 0;
}

@media (max-width: 780px) {
    .filter-bar.filter-bar-city {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar-city .search-control {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .filter-bar.filter-bar-city {
        grid-template-columns: 1fr;
    }

    .filter-bar-city .search-control {
        grid-column: 1;
    }
}

/* =========================================================
   RADIOCLUB / NODO EN REGISTRO · v2.7
   ========================================================= */
.qso-form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.qso-date-field,
.qso-time-field,
.qso-frequency-field,
.qso-mode-field,
.qso-region-field,
.qso-city-field,
.qso-category-field,
.qso-expiry-field,
.qso-rst-sent-field,
.qso-rst-received-field {
    grid-column: span 1;
}

.radio-node-field {
    grid-column: span 2;
    z-index: 24;
}

.qso-callsign-field,
.qso-name-field {
    grid-column: span 2;
}

.field-reason {
    grid-column: span 2;
}

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

.radio-node-control input {
    border-color: #8a5a2a;
}

.radio-node-control button {
    border-color: #9a622f;
    background: linear-gradient(180deg, #4b2d18, #281d14);
    color: #e0a459;
}

.radio-node-control button:hover {
    color: #fff4e5;
    background: linear-gradient(180deg, #6b401d, #352316);
}

.radio-node-meta {
    min-height: 15px;
    overflow: hidden;
    color: #9f9386 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.radio-node-meta.selected {
    color: #67d879 !important;
}

.radio-node-meta.direct {
    color: #c7b79f !important;
}

.radio-node-meta.manual {
    color: #e0a459 !important;
}

.radio-node-meta.warning {
    color: #ffb65f !important;
}

.radio-node-suggestions {
    max-height: 340px;
    border-color: #76502e;
    background: #12110e;
}

.radio-node-suggestions .suggestion-item:hover {
    background: rgba(124, 75, 29, .32);
}

.radio-node-suggestions .suggestion-item strong {
    color: #e3a453;
}

.radio-node-direct strong {
    color: #70d47e !important;
}

.data-table {
    min-width: 1480px;
}

.data-table th:nth-child(1) { width: 82px; }
.data-table th:nth-child(2) { width: 58px; }
.data-table th:nth-child(3) { width: 205px; }
.data-table th:nth-child(4) { width: 88px; }
.data-table th:nth-child(5) { width: 58px; }
.data-table th:nth-child(6) { width: 90px; }
.data-table th:nth-child(7) { width: 165px; }
.data-table th:nth-child(8) { width: 115px; }
.data-table th:nth-child(9),
.data-table th:nth-child(10) { width: 62px; }
.data-table th:nth-child(11) { width: 86px; }
.data-table th:nth-child(12) { width: 220px; }
.data-table th:nth-child(13) { width: 68px; }

.radio-node-cell {
    max-width: 205px;
    color: #e2b578;
}

@media (max-width: 1380px) {
    .qso-form {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .radio-node-field,
    .qso-callsign-field,
    .qso-name-field {
        grid-column: span 2;
    }

    .field-reason {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .qso-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .radio-node-field,
    .qso-callsign-field,
    .qso-name-field,
    .field-reason,
    .field-notes {
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .qso-form {
        grid-template-columns: 1fr;
    }

    .radio-node-field,
    .qso-callsign-field,
    .qso-name-field,
    .field-reason,
    .field-notes {
        grid-column: 1;
    }

    .radio-node-meta {
        white-space: normal;
    }
}

/* Etiqueta opcional del campo Radioclub / Nodo · v2.7.1 */
.field-optional {
    margin-left: 6px;
    color: #8f8376;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
}

/* =========================================================
   LOGO PERSONAL POR USUARIO · v2.8
   ========================================================= */
.station-logo-panel {
    overflow: hidden;
}

.station-logo-settings {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 24px;
}

.station-logo-preview {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(202, 135, 64, .70);
    border-radius: 18px;
    background:
        radial-gradient(circle, rgba(198, 138, 64, .10), transparent 64%),
        #080a09;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .75),
        0 18px 40px rgba(0, 0, 0, .35),
        0 0 24px rgba(198, 138, 64, .12);
}

.station-logo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.station-logo-copy h2 {
    margin: 0 0 7px;
    color: #f0e8de;
    font-size: 21px;
}

.station-logo-copy > p {
    max-width: 660px;
    margin: 0 0 18px;
    color: #a99e92;
    font-size: 11px;
    line-height: 1.55;
}

.station-logo-upload-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.station-logo-file {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.station-logo-file > span {
    color: #ddd4c9;
    font-size: 10px;
    font-weight: 720;
}

.station-logo-file input {
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #4a3c30;
    border-radius: 7px;
    color: #d9d0c6;
    background: #161613;
}

.station-logo-file input::file-selector-button {
    margin-right: 10px;
    padding: 8px 11px;
    border: 1px solid #94602e;
    border-radius: 5px;
    color: #f0c083;
    background: #382619;
    cursor: pointer;
}

.station-logo-rules {
    grid-column: 1;
    color: #897f74;
    font-size: 9px;
}

.station-logo-upload-form .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    min-width: 165px;
    margin: 0;
}

.station-logo-remove-form {
    margin-top: 13px;
}

.station-logo-remove-form .btn {
    width: auto;
    margin: 0;
}

.sidebar-user-avatar-image {
    padding: 0;
    overflow: hidden;
    border-color: #9c6733;
    background: #080a09;
}

.sidebar-user-avatar-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 760px) {
    .station-logo-settings {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .station-logo-copy > p {
        margin-left: auto;
        margin-right: auto;
    }

    .station-logo-upload-form {
        width: 100%;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .station-logo-rules,
    .station-logo-upload-form .btn {
        grid-column: 1;
        grid-row: auto;
    }

    .station-logo-upload-form .btn,
    .station-logo-remove-form .btn {
        width: 100%;
    }
}

/* =========================================================
   LEGIBILIDAD REPETIDORAS NACIONALES · v2.8.1
   ========================================================= */
.repeaters-page .repeaters-hero-copy > span,
.repeaters-page .repeaters-source small {
    font-size: 11px;
}

.repeaters-page .repeaters-hero-copy h1 {
    font-size: clamp(28px, 2.55vw, 40px);
}

.repeaters-page .repeaters-hero-copy p {
    font-size: 14px;
}

.repeaters-page .repeaters-source strong {
    font-size: 18px;
}

.repeaters-page .repeaters-source span {
    font-size: 11px;
    line-height: 1.45;
}

.repeaters-page .repeater-kpi strong {
    font-size: 28px;
}

.repeaters-page .repeater-kpi b {
    font-size: 13px;
}

.repeaters-page .repeater-kpi small {
    font-size: 11px;
    line-height: 1.35;
}

.repeaters-page .repeater-filter-heading > div span,
.repeaters-page .repeater-list-heading > div span {
    font-size: 11px;
}

.repeaters-page .repeater-filter-heading > div strong,
.repeaters-page .repeater-list-heading > div strong {
    font-size: 14px;
}

.repeaters-page .repeater-filter-heading .button {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 11px;
}

.repeaters-page .repeater-filter-grid label > span,
.repeaters-page .repeater-list-tools label > span {
    font-size: 11px;
}

.repeaters-page .repeater-filter-grid select,
.repeaters-page .repeater-filter-grid input,
.repeaters-page .repeater-list-tools select {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 12px;
}

.repeaters-page .repeater-search-field .icon {
    width: 17px;
    height: 17px;
}

.repeaters-page .repeater-search-field input {
    padding-left: 38px;
}

.repeaters-page .repeater-map-legend {
    min-width: 145px;
    gap: 8px;
    padding: 13px 14px;
}

.repeaters-page .repeater-map-legend strong {
    font-size: 11px;
}

.repeaters-page .repeater-map-legend span {
    font-size: 11px;
}

.repeaters-page .repeater-map-notice {
    max-width: 680px;
    padding: 9px 11px;
    font-size: 10px;
    line-height: 1.5;
}

.repeaters-page .repeater-detail-empty strong {
    font-size: 17px;
}

.repeaters-page .repeater-detail-empty span {
    font-size: 12px;
}

.repeaters-page .repeater-detail-header span:first-child {
    font-size: 10px;
}

.repeaters-page .repeater-detail-header h2 {
    font-size: 24px;
}

.repeaters-page .repeater-detail-header p {
    font-size: 11px;
}

.repeaters-page .repeater-detail-status,
.repeaters-page .repeater-expiry {
    padding: 5px 8px;
    font-size: 10px;
}

.repeaters-page .repeater-detail-row {
    min-height: 38px;
    grid-template-columns: 24px 110px minmax(0, 1fr);
    gap: 9px;
}

.repeaters-page .repeater-detail-row > span {
    font-size: 14px;
}

.repeaters-page .repeater-detail-row small {
    font-size: 10px;
}

.repeaters-page .repeater-detail-row strong {
    font-size: 11px;
    line-height: 1.35;
}

.repeaters-page .repeater-detail-notes strong {
    font-size: 10px;
}

.repeaters-page .repeater-detail-notes p {
    font-size: 11px;
}

.repeaters-page .repeater-detail-actions button {
    min-height: 39px;
    font-size: 11px;
}

.repeaters-page .repeater-list-tools select {
    min-height: 36px;
}

.repeaters-page .repeater-table {
    min-width: 1260px;
}

.repeaters-page .repeater-table th {
    padding: 12px 12px;
    font-size: 10px;
    line-height: 1.3;
}

.repeaters-page .repeater-table td {
    padding: 11px 12px;
    font-size: 11px;
    line-height: 1.35;
}

.repeaters-page .repeater-row td:first-child strong {
    font-size: 12px;
}

.repeaters-page .repeater-band {
    min-width: 64px;
    padding: 4px 7px;
    font-size: 10px;
}

.repeaters-page .repeater-pagination {
    min-height: 60px;
    font-size: 11px;
}

.repeaters-page .repeater-pagination button,
.repeaters-page .repeater-pagination > div span {
    min-height: 35px;
    padding: 6px 10px;
    font-size: 11px;
}

.repeaters-page .repeater-popup {
    min-width: 215px;
    gap: 5px;
}

.repeaters-page .repeater-popup strong {
    font-size: 15px;
}

.repeaters-page .repeater-popup span,
.repeaters-page .repeater-popup b,
.repeaters-page .repeater-popup small {
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 800px) {
    .repeaters-page .repeaters-hero-copy p {
        font-size: 12px;
    }

    .repeaters-page .repeater-filter-grid select,
    .repeaters-page .repeater-filter-grid input {
        font-size: 13px;
    }

    .repeaters-page .repeater-map-notice {
        font-size: 9px;
    }
}

/* =========================================================
   GENERADOR DE TARJETAS QSL · v2.9
   ========================================================= */
.qsl-shell {
    grid-template-columns: var(--sidebar) minmax(850px, 1fr);
}

.qsl-workspace {
    gap: 12px;
}

.qsl-hero {
    min-height: 112px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 19px 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 20%, rgba(198,138,64,.17), transparent 36%),
        linear-gradient(130deg, rgba(32,25,18,.98), rgba(8,11,12,.98));
}

.qsl-hero-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid #9c622e;
    border-radius: 13px;
    color: var(--copper-light);
    background: rgba(60,37,20,.28);
    box-shadow: 0 0 24px rgba(198,138,64,.13);
}

.qsl-hero-icon .icon {
    width: 34px;
    height: 34px;
}

.qsl-hero-copy > span,
.qsl-limit-card small {
    color: var(--copper);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .13em;
}

.qsl-hero-copy h1 {
    margin: 3px 0 5px;
    font-size: clamp(25px, 2.2vw, 36px);
    line-height: 1;
}

.qsl-hero-copy p {
    margin: 0;
    color: #a69b8f;
    font-size: 12px;
}

.qsl-limit-card {
    min-width: 188px;
    padding: 13px 15px;
    border: 1px solid #54402e;
    border-radius: 8px;
    background: rgba(14,15,14,.72);
}

.qsl-limit-card strong,
.qsl-limit-card span {
    display: block;
}

.qsl-limit-card strong {
    margin: 4px 0 2px;
    color: #f2e8dc;
    font-size: 22px;
}

.qsl-limit-card span {
    color: #91867a;
    font-size: 9px;
}

.qsl-editor-grid {
    display: grid;
    grid-template-columns: minmax(330px, .72fr) minmax(570px, 1.55fr);
    gap: 12px;
    align-items: start;
}

.qsl-controls-panel,
.qsl-preview-panel {
    overflow: hidden;
}

.qsl-controls-scroll {
    max-height: 805px;
    overflow: auto;
    display: grid;
    gap: 12px;
    padding: 16px;
    scrollbar-color: #8f5a2a #111;
    scrollbar-width: thin;
}

.qsl-field {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.qsl-field > span {
    color: #ddd4c9;
    font-size: 10px;
    font-weight: 720;
}

.qsl-field > small {
    color: #847b70;
    font-size: 8px;
    line-height: 1.4;
}

.qsl-field input,
.qsl-field select,
.qsl-field textarea {
    width: 100%;
    min-height: 39px;
    padding: 8px 10px;
    border: 1px solid #493b30;
    border-radius: 6px;
    color: #eee7df;
    background: #151613;
    font-size: 10px;
    outline: none;
}

.qsl-field textarea {
    min-height: 74px;
    resize: vertical;
}

.qsl-field input:focus,
.qsl-field select:focus,
.qsl-field textarea:focus {
    border-color: #bf7a37;
    box-shadow: 0 0 0 3px rgba(198,138,64,.09);
}

.qsl-field input[type="color"] {
    min-height: 42px;
    padding: 4px;
}

.qsl-field input[type="range"] {
    min-height: 30px;
    padding: 0;
    accent-color: #cb8740;
}

.qsl-control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qsl-section-label {
    margin-top: 3px;
    padding-top: 12px;
    border-top: 1px solid rgba(177,120,57,.18);
    color: var(--copper);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .12em;
}

.qsl-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.qsl-toggle-grid label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #40352c;
    border-radius: 6px;
    color: #bdb2a6;
    background: #11120f;
    font-size: 9px;
}

.qsl-toggle-grid input {
    accent-color: #ca8740;
}

.qsl-preview-heading,
.qsl-saved-heading {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(177,120,57,.18);
}

.qsl-preview-heading > div span,
.qsl-saved-heading > div span {
    display: block;
    color: var(--copper);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
}

.qsl-preview-heading > div strong,
.qsl-saved-heading > div strong {
    display: block;
    margin-top: 3px;
    color: #e6ddd3;
    font-size: 12px;
}

.qsl-preview-heading .btn {
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 7px 11px;
    font-size: 9px;
}

.qsl-canvas-stage {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
    padding: 19px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(198,138,64,.07), transparent 60%),
        #080b0d;
}

.qsl-canvas-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(198,138,64,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198,138,64,.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

#qslCanvas {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: 650px;
    display: block;
    border: 1px solid #694522;
    border-radius: 5px;
    background: #071019;
    box-shadow:
        0 20px 55px rgba(0,0,0,.52),
        0 0 24px rgba(198,138,64,.10);
}

.qsl-download-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 9px;
    padding: 13px 15px;
    border-top: 1px solid rgba(177,120,57,.15);
}

.qsl-download-actions .btn {
    margin: 0;
}

.qsl-download-actions .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.qsl-editor-status {
    min-height: 35px;
    padding: 9px 15px 12px;
    color: #998e82;
    text-align: center;
    font-size: 9px;
}

.qsl-editor-status.success {
    color: #62d775;
}

.qsl-editor-status.warning {
    color: #e6b850;
}

.qsl-editor-status.error {
    color: #ff7466;
}

.qsl-storage-note {
    color: #83796e;
    font-size: 9px;
}

.qsl-saved-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
    padding: 15px;
}

.qsl-saved-card {
    overflow: hidden;
    border: 1px solid #40352c;
    border-radius: 8px;
    background: linear-gradient(145deg, #171613, #0d0f0e);
    box-shadow: 0 10px 25px rgba(0,0,0,.20);
}

.qsl-saved-image {
    aspect-ratio: 14 / 9;
    display: block;
    overflow: hidden;
    background: #050809;
}

.qsl-saved-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .18s ease;
}

.qsl-saved-image:hover img {
    transform: scale(1.025);
}

.qsl-saved-body {
    padding: 11px;
}

.qsl-saved-body > strong,
.qsl-saved-body > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qsl-saved-body > strong {
    color: #eadfd3;
    font-size: 11px;
}

.qsl-saved-body > span {
    margin-top: 3px;
    color: #857b70;
    font-size: 8px;
}

.qsl-saved-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 10px;
}

.qsl-saved-actions .btn {
    min-height: 32px;
    margin: 0;
    padding: 6px 8px;
    font-size: 8px;
}

.btn-danger {
    border: 1px solid #8d3d34;
    color: #ffaaa1;
    background: linear-gradient(180deg, #42221e, #261513);
}

.btn-danger:hover {
    border-color: #c95749;
    color: #fff;
}

.qsl-empty {
    grid-column: 1 / -1;
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 25px;
    color: #80776d;
    text-align: center;
}

.qsl-empty .icon {
    width: 43px;
    height: 43px;
    color: #9d642f;
}

.qsl-empty strong {
    color: #c7bbae;
    font-size: 13px;
}

.qsl-empty span {
    font-size: 9px;
}

@media (max-width: 1300px) {
    .qsl-editor-grid {
        grid-template-columns: 1fr;
    }

    .qsl-controls-scroll {
        max-height: none;
    }

    .qsl-saved-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .qsl-hero {
        grid-template-columns: 58px 1fr;
    }

    .qsl-limit-card {
        grid-column: 1 / -1;
    }

    .qsl-saved-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .qsl-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qsl-hero-icon {
        justify-self: center;
    }

    .qsl-control-row,
    .qsl-toggle-grid,
    .qsl-download-actions,
    .qsl-saved-grid {
        grid-template-columns: 1fr;
    }

    .qsl-canvas-stage {
        min-height: 310px;
        padding: 10px;
    }

    .qsl-preview-heading,
    .qsl-saved-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .qsl-storage-note {
        white-space: normal;
    }
}
