* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 12px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-stats-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
    margin-top: 4px;
}

.app-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.header-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    min-width: 0;
}

.hstat {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.hstat-label {
    color: #aaa;
    margin-right: 3px;
}

.hstat-unit {
    color: #bbb;
    font-size: 10px;
    margin-left: 1px;
}

.hstat span:not(.hstat-label):not(.help-icon) {
    font-weight: 700;
    color: #333;
}

.status {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.status.disconnected {
    background: #fee;
    color: #c33;
}

.status.connected {
    background: #efe;
    color: #3c3;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #5568d3;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.sound-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.section-title {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: 5px;
    padding: 3px 5px;
    margin-left: -5px;
    transition: background 0.15s;
}

.section-header:hover {
    background: rgba(255,255,255,0.12);
}

.section-header:hover .section-title {
    color: rgba(255,255,255,1);
}

.section-header:hover .collapse-btn {
    color: rgba(255,255,255,0.9);
}

.section-wrap {
    margin-bottom: 8px;
}

.section-wrap.hidden {
    display: none;
}

.section-body {
    display: grid;
    grid-template-rows: 1fr;
    overflow: hidden;
    transition: grid-template-rows 0.28s ease;
}

.section-body > * {
    min-height: 0;
    /* Grid items default to min-width: auto (= content size). Without this
       the inner wrapper grows to fit a wide table, breaking horizontal
       scrolling and stretching the filter bar past the export button. */
    min-width: 0;
    /* Without border-box, an inner wrapper's padding survives the grid
       collapse and leaves a residual band of background. */
    box-sizing: border-box;
}

.section-body.collapsed {
    grid-template-rows: 0fr;
}

.collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    padding: 0 2px;
    line-height: 1;
    margin-left: auto;
    transition: transform 0.2s, color 0.15s;
    flex-shrink: 0;
}

.collapse-btn:hover {
    color: rgba(255,255,255,0.9);
}

.collapse-btn.collapsed {
    transform: rotate(-90deg);
}

.repeater-log-scroll {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    max-height: 160px;
    overflow: auto;
}

.repeater-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.repeater-log-table th {
    position: sticky;
    top: 0;
    background: #e4e4e4;
    color: #666;
    font-weight: 600;
    text-align: left;
    padding: 5px 10px;
    border-bottom: 1px solid #d0d0d0;
}

.repeater-log-table th[data-sort-key] {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}

.repeater-log-table th[data-sort-key]:hover {
    background: #d8d8ee;
    color: #667eea;
}

.repeater-log-table th.sort-asc::after { content: ' ↑'; }
.repeater-log-table th.sort-desc::after { content: ' ↓'; }

.repeater-log-table td {
    padding: 4px 10px;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.repeater-log-table tr:last-child td {
    border-bottom: none;
}

.rl-id {
    font-weight: 700;
    white-space: nowrap;
}

.rl-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    flex-shrink: 0;
}

.rl-num {
    text-align: right;
}

.rl-time {
    text-align: center;
}

.repeater-log-table th:not(:first-child):last-child {
    text-align: center;
}

.repeater-log-table th:not(:first-child):not(:last-child) {
    text-align: right;
}

.chart-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 8px 8px 4px;
}

.rssi-chart {
    width: 100%;
    height: 180px;
    display: block;
    overflow: visible;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 4px 0 2px;
    font-size: 11px;
    color: #555;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-val {
    opacity: 0.6;
    font-size: 10px;
}

.legend-nf {
    width: 18px;
    height: 9px;
    border-radius: 2px;
    background: rgba(140, 140, 140, 0.35);
    border: 1px solid rgba(120, 120, 120, 0.5);
    flex-shrink: 0;
}

.msg-table-scroll {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.msg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    white-space: nowrap;
}

.msg-table th,
.msg-table td {
    border: 1px solid #e8e8e8;
}

.msg-table th {
    position: sticky;
    top: 0;
    background: #e4e4e4;
    color: #555;
    font-weight: 600;
    text-align: center;
    padding: 3px 6px;
    z-index: 1;
}

.msg-table td {
    padding: 1px 5px;
    color: #444;
}


.msg-col-rep {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.msg-sub-rssi,
.msg-sub-snr {
    font-size: 8px;
    color: #bbb;
    font-weight: 600;
    text-align: right;
    padding: 1px 4px 2px;
}

.sig-rssi,
.sig-snr {
    font-weight: 700;
    font-size: 10px;
    text-align: right;
    padding: 1px 4px;
}

.empty-state {
    background: white;
    padding: 50px 40px;
    border-radius: 10px;
    text-align: center;
    color: #888;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.empty-state.hidden {
    display: none;
}

.saved-devices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.saved-devices.hidden {
    display: none;
}

.saved-label {
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
}

.saved-device {
    display: inline-flex;
    align-items: center;
}

.saved-btn {
    background: #f0f0ff;
    color: #667eea;
    border: 1px solid #c8c8f0;
    border-right: none;
    border-radius: 5px 0 0 5px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.saved-btn:hover {
    background: #667eea;
    color: white;
}

.forget-btn {
    background: #fff5f5;
    color: #c33;
    border: 1px solid #e8c0c0;
    border-radius: 0 5px 5px 0;
    padding: 3px 7px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}

.forget-btn:hover {
    background: #c33;
    color: white;
}

/* Clickable signal cells — RSSI+SNR highlight together as a pair */
.sig-rssi,
.sig-snr {
    cursor: pointer;
    user-select: none;
}

.sig-rssi.sig-pair-hover,
.sig-snr.sig-pair-hover {
    background: #eaeaff;
}

.sig-rssi.sig-active,
.sig-snr.sig-active {
    background: #d8d8ff;
}

/* Row animations */
@keyframes rowFlash {
    0%   { background-color: #d8dcff; }
    100% { background-color: transparent; }
}

.row-new {
    animation: rowFlash 0.8s ease-out forwards;
}

.row-removing {
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 0 !important;
    transform: translateX(14px);
    pointer-events: none;
}

/* Combined RX log cell */
.msg-col-rx-head {
    text-align: center;
}

.msg-col-rx {
    white-space: nowrap;
    padding: 2px 3px 2px 5px;
    width: 1px;
    cursor: pointer;
}

.msg-col-rx:hover {
    background: #f0f0ff;
}

.rx-time {
    color: #aaa;
    font-size: 9px;
}

.rx-type {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    margin-left: 4px;
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* Detail row */
.detail-row td {
    background: #f7f7ff;
    border-top: none;
}

.detail-cell {
    padding: 6px 10px !important;
    animation: detailOpen 0.16s ease-out;
}

.detail-content {
    font-size: 11px;
    color: #444;
    line-height: 1.7;
}

.detail-content b {
    color: #888;
    font-weight: 600;
}

.detail-type {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.detail-json {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    background: #f5f5ff;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.detail-sig {
    font-size: 12px;
    color: #444;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e8e8f0;
}

/* JSON syntax highlighting inside .detail-json */
.detail-json .jh-key  { color: #7c3aed; font-weight: 600; }
.detail-json .jh-str  { color: #059669; }
.detail-json .jh-num  { color: #2563eb; }
.detail-json .jh-bool { color: #d97706; }
.detail-json .jh-null { color: #9ca3af; }

.raw-hex {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    background: #eee;
    padding: 1px 4px;
    border-radius: 3px;
    cursor: pointer;
    word-break: break-all;
    white-space: normal;
}

.raw-hex:hover {
    background: #667eea;
    color: white;
}

/* TTL slider */
.ttl-control {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    margin-top: 6px;
    padding-left: 2px;
}

.ttl-sep {
    color: rgba(255,255,255,0.25);
    margin: 0 3px;
}

.rep-filter-input {
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.92);
    color: #333;
    flex: 1 1 80px;
    min-width: 0;
    max-width: 140px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.rep-filter-input:focus {
    border-color: rgba(255,255,255,0.75);
    background: white;
}

.rep-filter-input.has-value {
    background: white;
    border-color: #a8b8f8;
}

.chart-tooltip {
    position: fixed;
    background: rgba(30, 30, 40, 0.92);
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
    padding: 5px 9px;
    border-radius: 6px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ttl-label {
    color: rgba(255,255,255,0.55);
}

#ttlSelect {
    font-size: 12px;
    padding: 2px 4px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
    accent-color: #667eea;
}

.battery-status {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.battery-status.battery-low {
    color: #c33;
}

@keyframes detailOpen {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes detailClose {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-5px); }
}

.detail-row.detail-closing .detail-cell {
    animation: detailClose 0.13s ease-in forwards;
}

.legend-item[data-col] {
    cursor: pointer;
    transition: opacity 0.15s;
}

.legend-item[data-col]:hover {
    opacity: 0.75;
}

.legend-item-selected {
    font-weight: 700;
}

/* ── Help system ─────────────────────────────────────── */

.help-btn {
    background: #f0f0ff;
    color: #667eea;
    border: 1.5px solid #c8c8f0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 3px 10px;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.15s;
}

.help-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.13);
    color: #667eea;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 3px;
    flex-shrink: 0;
    vertical-align: middle;
    user-select: none;
    transition: all 0.15s;
    position: relative;
    top: -1px;
    border: 1px solid rgba(102, 126, 234, 0.22);
}

.help-icon:hover {
    background: #667eea;
    color: white;
}

.help-icon.active {
    background: #667eea;
    color: white;
}

/* The default blue-on-translucent-blue help icon disappears on the
   purple section backgrounds (.ttl-control, .rep-filter-bar). Force a
   white-on-translucent variant in those contexts. The header has a
   white background, so .hstat / .sound-toggle keep the default style. */
.ttl-control .help-icon,
.rep-filter-bar .help-icon {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.28);
}

.ttl-control .help-icon:hover,
.rep-filter-bar .help-icon:hover,
.ttl-control .help-icon.active,
.rep-filter-bar .help-icon.active {
    background: rgba(255, 255, 255, 0.32);
    color: white;
    border-color: rgba(255, 255, 255, 0.45);
}

/* Shared floating tooltip used by help icons */
.help-tip-float {
    white-space: normal !important;
    max-width: 260px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    padding: 8px 11px !important;
    z-index: 1001 !important;
}

/* Help modal */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
}

.help-modal-overlay.hidden {
    display: none;
}

.help-modal {
    background: white;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    padding: 22px 20px 26px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin: auto;
    align-self: center;
}

.help-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #bbb;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.help-modal-close:hover { color: #333; }

.help-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 7px;
    padding-right: 24px;
}

.help-modal-intro {
    color: #666;
    margin-bottom: 16px;
    font-size: 13px;
}

.help-modal p {
    color: #555;
    margin-bottom: 10px;
}

.help-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #667eea;
    margin: 18px 0 8px;
}

.help-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    align-items: baseline;
}

.help-dt {
    font-weight: 700;
    color: #444;
    white-space: nowrap;
    font-size: 12px;
}

.help-dd {
    color: #555;
    font-size: 12px;
}

.help-list {
    padding-left: 16px;
    color: #555;
    font-size: 12px;
}

.help-list li {
    margin-bottom: 6px;
}

/* ── Filter bar & export ────────────────────────────── */

.msg-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0 5px;
}

.msg-filter-bar.hidden {
    display: none;
}

.msg-filter-input {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;
    outline: none;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
}

.msg-filter-input:focus {
    border-color: white;
    background: white;
}

.msg-filter-input.has-value {
    background: white;
    border-color: #a8b8f8;
}

.msg-filter-clear {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 11px;
    padding: 3px 7px;
    transition: all 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.msg-filter-clear:hover {
    background: rgba(255, 255, 255, 0.28);
    color: white;
}

.msg-filter-clear.hidden {
    display: none;
}

.msg-filter-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-filter-count.hidden {
    display: none;
}

.btn-export {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.btn-export:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.rep-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 6px;
}

.rep-filter-label {
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    white-space: nowrap;
}

.rep-filter-bar .rep-filter-input {
    flex: 0 1 180px;
    max-width: 220px;
}

.filter-applied-indicator {
    background: #ff3b3b;
    color: white;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.4), 0 2px 6px rgba(255, 60, 60, 0.35);
    animation: filterAppliedPulse 1.6s ease-in-out infinite;
}

.filter-applied-indicator.hidden {
    display: none;
}

@keyframes filterAppliedPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.4), 0 2px 6px rgba(255, 60, 60, 0.35); }
    50%      { box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.6), 0 2px 10px rgba(255, 60, 60, 0.6); }
}

@keyframes cellFlash {
    0%   { background-color: #b8f0c8; }
    100% { background-color: transparent; }
}

.sig-rssi.cell-flash,
.sig-snr.cell-flash {
    animation: cellFlash 0.8s ease-out forwards;
}

/* ---- Signal 3D map ---- */

.signal-map-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 4px;
    font-size: 12px;
    color: #555;
}

.signal-map-controls .btn-primary.hidden {
    display: none;
}

.location-status {
    color: #c0c0c0;
    font-weight: 400;
}

.signal-map-hint {
    margin-left: auto;
    color: #c0c0c0;
    font-size: 11px;
}

.map-source-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #c0c0c0;
}

.map-source-select {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    color: #444;
    cursor: pointer;
}

.map-source-select:hover {
    border-color: #bbb;
}

.signal-map-container {
    position: relative;
    width: 100%;
    height: 460px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.signal-map-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}

.signal-map-canvas:active {
    cursor: grabbing;
}

.signal-map-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #777;
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

.signal-map-empty.hidden {
    display: none;
}

.signal-map-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 12px;
    line-height: 1.65;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(4px);
    min-width: 160px;
    pointer-events: none;
}

.signal-map-info.hidden {
    display: none;
}

.smi-name {
    font-size: 13px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
}

.smi-stat {
    color: #555;
}

@media (max-width: 600px) {
    .signal-map-container { height: 340px; }
    .signal-map-hint { display: none; }
}

/* ---- Debug section ---- */

.debug-inner {
    padding: 6px 4px 4px;
}

.debug-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin: 0 0 8px;
    line-height: 1.5;
}

.debug-hint code {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
}

.debug-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.debug-input {
    flex: 0 1 220px;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.debug-input:focus {
    outline: none;
    background: white;
    border-color: white;
}

.debug-feedback {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

