/* QSO MAP v0.4.1 — MULTI + HELP hotfix */
.lang-switch{display:inline-flex;align-items:center;margin:0;padding:0;border:0}
.lang-switch select{height:34px;min-width:58px;padding:0 22px 0 10px;border:1px solid #c8d2dc;border-radius:10px;background:#fff;color:#162235;font:800 12px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.lang-switch select:hover{border-color:#8ba2b8;background:#f8fbfd}
.top-actions{gap:7px}
.help-modal{width:min(980px,94vw)!important;max-width:980px!important}
.help-modal .modal-body{padding:14px 16px 18px!important}
.help-wrap{color:#182435}
.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.help-card{border:1px solid #d6e0e8;border-radius:13px;background:linear-gradient(180deg,#fff,#f8fbfd);padding:13px 15px;box-shadow:0 2px 8px rgba(15,23,42,.035)}
.help-card h3,.help-tips h3{margin:0 0 7px;color:#0e4267;font-size:15px;line-height:1.25}
.help-card p{margin:0;color:#44566a;font-size:13px;line-height:1.52}
.help-tips{margin-top:12px;border:1px solid #bed8e9;border-left:5px solid #1682bd;border-radius:13px;background:#f2f9fd;padding:12px 15px}
.help-tips ul{margin:5px 0 0;padding-left:20px;color:#34475a;font-size:13px;line-height:1.55}
.help-tips li+li{margin-top:4px}
.help-footer{margin-top:13px;text-align:right;color:#75879a;font-size:11px;font-weight:700;letter-spacing:.02em}
@media(max-width:900px){.help-grid{grid-template-columns:1fr}.lang-switch select{min-width:54px}.top-actions{gap:5px}}
@media(max-width:640px){.lang-switch select{height:32px;min-width:50px;padding-left:8px}.help-modal .modal-body{padding:10px!important}.help-card{padding:11px 12px}}

/* v0.4.1 – file picker text must stay readable inside compact drop zone */
#tab-data .drop-zone .file-label > span{color:#fff!important;font-size:inherit!important;font-weight:800!important;}

/* v0.5.0 — AI statistics */
.ai-launch-card{margin:12px 0 4px;padding:12px;border:1px solid #c8d7e3;border-radius:14px;background:linear-gradient(135deg,#f7fbff,#eef7ff);display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 2px 8px rgba(15,23,42,.035)}
.ai-launch-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.ai-launch-copy strong{font-size:14px;color:#123f60}.ai-launch-copy span{font-size:11px;line-height:1.35;color:#637487}
.ai-btn{background:linear-gradient(135deg,#6d28d9,#2563eb)!important;color:#fff!important;border-color:transparent!important;white-space:nowrap;box-shadow:0 4px 12px rgba(79,70,229,.18)}.ai-btn:hover{filter:brightness(1.05)}
.ai-modal{width:min(1120px,96vw)!important;max-width:1120px!important}.ai-modal .modal-body{padding:14px 16px 18px!important}
.ai-wrap{display:flex;flex-direction:column;gap:12px;color:#162235}.ai-privacy{border:1px solid #b8d9cc;border-left:5px solid #1f9d69;border-radius:12px;background:#f1fbf6;padding:10px 12px;color:#315b4b;font-size:12px;line-height:1.45}
.ai-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.ai-metric{min-width:0;border:1px solid #d5e0e9;border-radius:13px;background:#fff;padding:10px 11px;box-shadow:0 2px 8px rgba(15,23,42,.03)}.ai-metric span{display:block;color:#6b7c8e;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.ai-metric strong{display:block;margin-top:3px;color:#102f4a;font-size:20px;line-height:1.15}.ai-metric small{display:block;margin-top:3px;color:#8a98a7;font-size:10px}
.ai-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ai-card{border:1px solid #d5e0e9;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdff);padding:13px 14px;box-shadow:0 2px 9px rgba(15,23,42,.03)}.ai-card h3{margin:0;color:#103e60;font-size:15px}.ai-card p{margin:5px 0 0;color:#56687b;font-size:12px;line-height:1.5}.ai-list{margin:9px 0 0;padding-left:19px;color:#34475a;font-size:12.5px;line-height:1.5}.ai-list li+li{margin-top:5px}
.ai-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}.ai-section-head span{color:#7a8999;font-size:11px;text-align:right}
.ai-table-wrap{overflow:auto;border:1px solid #e0e7ed;border-radius:10px}.ai-table{width:100%;border-collapse:collapse;background:#fff;font-size:12px}.ai-table th,.ai-table td{padding:7px 8px;border-bottom:1px solid #e9eef2;text-align:right;white-space:nowrap}.ai-table th{color:#657689;font-size:10px;text-transform:uppercase;letter-spacing:.03em;background:#f7fafc}.ai-table th:first-child,.ai-table td:first-child{text-align:left}.ai-table tbody tr:last-child td{border-bottom:0}.ai-table tbody tr:hover{background:#f8fbfd}
.ai-hours{height:132px;display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:4px;align-items:end;padding-top:8px}.ai-hour{display:grid;grid-template-rows:1fr 16px;gap:4px;height:100%;min-width:0}.ai-hour-bar{height:100%;display:flex;align-items:flex-end;border-radius:5px 5px 3px 3px;background:#eef3f7;overflow:hidden}.ai-hour-bar i{display:block;width:100%;min-height:1px;background:linear-gradient(180deg,#38bdf8,#2563eb);border-radius:4px 4px 0 0}.ai-hour span{font-size:9px;color:#718196;text-align:center}
.ai-model-card{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#f7f3ff,#eef6ff);border-color:#d7cdf7}.ai-model-card h3{color:#4c2a87}.ai-model-result{border:1px solid #cfd9e3;border-radius:14px;background:#fff;padding:14px 16px;color:#283a4c;font-size:13px;line-height:1.55}.ai-model-result.hidden{display:none}.ai-model-result.loading{color:#5b6f83;background:#f8fbfd}.ai-model-result.error{border-color:#efb6b6;background:#fff6f6;color:#8b2f2f}.ai-response-head{display:flex;align-items:center;gap:9px;margin-bottom:8px}.ai-response-head>span{font-size:24px}.ai-response-head div{display:flex;flex-direction:column}.ai-response-head b{color:#362265;font-size:15px}.ai-response-head small{color:#8995a3;font-size:10px}.ai-summary{margin:8px 0 12px;font-size:13.5px;color:#203548}.ai-model-result h4{margin:12px 0 5px;color:#214d6d;font-size:13px}.ai-model-result ul{margin:4px 0 0;padding-left:20px}.ai-model-result li+li{margin-top:4px}.ai-aggregate-note{margin-top:12px;padding-top:9px;border-top:1px solid #e3e8ed;color:#7b8997;font-size:10.5px}
@media(max-width:1050px){.ai-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ai-two-col{grid-template-columns:1fr}.ai-modal{width:min(900px,96vw)!important}}
@media(max-width:650px){.ai-launch-card,.ai-model-card{align-items:stretch;flex-direction:column}.ai-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-hours{gap:2px}.ai-hour span{font-size:8px}.ai-section-head{align-items:flex-start;flex-direction:column}.ai-section-head span{text-align:left}}

/* v0.5.2 — expanded local smart statistics */
.ai-record-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.ai-record-grid .ai-metric{background:linear-gradient(180deg,#fff,#f8fbff)}
.ai-distance-bars{display:flex;flex-direction:column;gap:9px;margin-top:4px}
.ai-distance-row{display:grid;grid-template-columns:112px minmax(90px,1fr) 52px 52px;align-items:center;gap:8px;font-size:11.5px;color:#41556a}
.ai-distance-row>span{font-weight:700;white-space:nowrap}.ai-distance-row>b{text-align:right;color:#173a55}.ai-distance-row>small{text-align:right;color:#7f8d9c}
.ai-distance-track{height:10px;background:#eef3f7;border-radius:999px;overflow:hidden}.ai-distance-track i{display:block;height:100%;min-width:2px;background:linear-gradient(90deg,#38bdf8,#2563eb);border-radius:inherit}
.ai-mini-list{display:flex;flex-direction:column;gap:0;border:1px solid #e0e7ed;border-radius:10px;overflow:hidden;background:#fff}.ai-mini-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 9px;border-bottom:1px solid #edf1f4;font-size:12px}.ai-mini-list>div:last-child{border-bottom:0}.ai-mini-list span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3f5368}.ai-mini-list strong{color:#163a55;white-space:nowrap}
.ai-chip-list{display:flex;flex-wrap:wrap;gap:6px}.ai-chip-list>span{display:inline-flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid #dae4eb;border-radius:999px;background:#fff;color:#354b5f;font-size:11.5px}.ai-chip-list b{color:#123f60}
.ai-empty{padding:12px;border:1px dashed #d4dee6;border-radius:10px;color:#7b8998;background:#fbfdff;font-size:12px}
.ai-continent-code{display:inline-block;min-width:24px;color:#1d6fa5}.ai-day-table{margin-top:12px;max-height:180px;overflow:auto}.ai-day-table .ai-table th:last-child,.ai-day-table .ai-table td:last-child{text-align:right}
@media(max-width:1050px){.ai-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.ai-record-grid{grid-template-columns:1fr}.ai-distance-row{grid-template-columns:92px minmax(70px,1fr) 42px}.ai-distance-row>small{display:none}}


/* v0.5.3 — smart statistics launcher: button only */
.ai-btn-only{display:flex!important;width:100%;align-items:center;justify-content:center;margin:12px 0 4px;padding:10px 14px!important;border-radius:12px!important;font-weight:800!important}

/* v0.5.4 — Smart Stats Color UI */
.ai-btn-only{
  position:relative;overflow:hidden;
  min-height:42px;
  background:linear-gradient(135deg,#7c3aed 0%,#4f46e5 48%,#0ea5e9 100%)!important;
  border:1px solid rgba(67,56,202,.28)!important;
  box-shadow:0 7px 18px rgba(79,70,229,.24),inset 0 1px 0 rgba(255,255,255,.22)!important;
  text-shadow:0 1px 1px rgba(37,24,94,.28);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.ai-btn-only::before{content:'✦';font-size:15px;margin-right:8px;color:#fff7b2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.22))}
.ai-btn-only::after{content:'';position:absolute;inset:-40% auto -40% -28%;width:24%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);transition:left .35s ease}
.ai-btn-only:hover{transform:translateY(-1px);filter:saturate(1.08) brightness(1.03);box-shadow:0 9px 22px rgba(79,70,229,.30),inset 0 1px 0 rgba(255,255,255,.28)!important}
.ai-btn-only:hover::after{left:115%}

.ai-modal{border:1px solid #cbd7e2!important;border-radius:18px!important;box-shadow:0 28px 78px rgba(15,23,42,.34)!important}
.ai-modal .modal-head{position:relative;overflow:hidden;padding:15px 18px!important;background:linear-gradient(135deg,#18254f 0%,#3b2f80 47%,#075985 100%)!important;border-bottom:0!important}
.ai-modal .modal-head::after{content:'';position:absolute;right:-42px;top:-60px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(125,211,252,.25),rgba(125,211,252,0) 68%);pointer-events:none}
.ai-modal .modal-title{color:#fff!important;font-weight:900;letter-spacing:.01em}.ai-modal .modal-sub{color:#dbeafe!important}.ai-modal .modal-close{color:#fff!important;opacity:.88}.ai-modal .modal-close:hover{opacity:1}
.ai-modal .modal-body{background:linear-gradient(180deg,#f8fbff 0%,#f5f7fb 100%)!important}

.ai-privacy{position:relative;overflow:hidden;border:1px solid #b9e6cf!important;border-left:5px solid #10b981!important;background:linear-gradient(135deg,#effcf6,#f4fbff)!important;color:#25624c!important;box-shadow:0 3px 10px rgba(16,185,129,.07)}
.ai-privacy::after{content:'';position:absolute;right:-18px;top:-28px;width:90px;height:90px;border-radius:50%;background:rgba(16,185,129,.06)}

.ai-metrics .ai-metric,.ai-record-grid .ai-metric{position:relative;overflow:hidden;border-width:1px!important;transition:transform .15s ease,box-shadow .15s ease}
.ai-metrics .ai-metric:hover,.ai-record-grid .ai-metric:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(15,23,42,.10)}
.ai-metrics .ai-metric::before,.ai-record-grid .ai-metric::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:13px 0 0 13px}
.ai-metrics .ai-metric strong,.ai-record-grid .ai-metric strong{font-weight:900}

.ai-metrics .ai-metric:nth-child(1){background:linear-gradient(145deg,#eff6ff,#fff);border-color:#bfdbfe}.ai-metrics .ai-metric:nth-child(1)::before{background:#2563eb}.ai-metrics .ai-metric:nth-child(1) strong{color:#1d4ed8}
.ai-metrics .ai-metric:nth-child(2){background:linear-gradient(145deg,#ecfdf5,#fff);border-color:#a7f3d0}.ai-metrics .ai-metric:nth-child(2)::before{background:#10b981}.ai-metrics .ai-metric:nth-child(2) strong{color:#047857}
.ai-metrics .ai-metric:nth-child(3){background:linear-gradient(145deg,#fff7ed,#fff);border-color:#fed7aa}.ai-metrics .ai-metric:nth-child(3)::before{background:#f97316}.ai-metrics .ai-metric:nth-child(3) strong{color:#c2410c}
.ai-metrics .ai-metric:nth-child(4){background:linear-gradient(145deg,#f5f3ff,#fff);border-color:#ddd6fe}.ai-metrics .ai-metric:nth-child(4)::before{background:#8b5cf6}.ai-metrics .ai-metric:nth-child(4) strong{color:#6d28d9}
.ai-metrics .ai-metric:nth-child(5){background:linear-gradient(145deg,#ecfeff,#fff);border-color:#a5f3fc}.ai-metrics .ai-metric:nth-child(5)::before{background:#06b6d4}.ai-metrics .ai-metric:nth-child(5) strong{color:#0e7490}
.ai-metrics .ai-metric:nth-child(6){background:linear-gradient(145deg,#fffbea,#fff);border-color:#fde68a}.ai-metrics .ai-metric:nth-child(6)::before{background:#eab308}.ai-metrics .ai-metric:nth-child(6) strong{color:#a16207}

.ai-card{position:relative;overflow:hidden;border-radius:16px!important;box-shadow:0 5px 16px rgba(15,23,42,.055)!important;transition:box-shadow .16s ease,transform .16s ease}
.ai-card::before{content:'';position:absolute;left:0;top:0;right:0;height:4px;background:#94a3b8}
.ai-card:hover{box-shadow:0 8px 22px rgba(15,23,42,.085)!important}
.ai-card h3{font-weight:900!important;letter-spacing:.005em}.ai-section-head span{font-weight:600}

.ai-card-insights{background:linear-gradient(145deg,#f6f2ff 0%,#fff 42%)!important;border-color:#d8ccff!important}.ai-card-insights::before{background:linear-gradient(90deg,#7c3aed,#a855f7)}.ai-card-insights h3{color:#6d28d9!important}
.ai-card-insights .ai-list{list-style:none;padding-left:0;margin-top:10px}.ai-card-insights .ai-list li{position:relative;margin:0!important;padding:8px 10px 8px 31px;border-radius:10px;color:#3f3c59;background:rgba(124,58,237,.055)}.ai-card-insights .ai-list li+li{margin-top:6px!important}.ai-card-insights .ai-list li::before{content:'✦';position:absolute;left:10px;top:8px;color:#8b5cf6;font-weight:900}

.ai-card-records{background:linear-gradient(145deg,#fff9ed,#fff 40%)!important;border-color:#f7dca0!important}.ai-card-records::before{background:linear-gradient(90deg,#f59e0b,#fb923c)}.ai-card-records h3{color:#b45309!important}
.ai-card-records .ai-metric:nth-child(4n+1)::before{background:#f59e0b}.ai-card-records .ai-metric:nth-child(4n+2)::before{background:#ef4444}.ai-card-records .ai-metric:nth-child(4n+3)::before{background:#8b5cf6}.ai-card-records .ai-metric:nth-child(4n+4)::before{background:#0ea5e9}
.ai-card-records .ai-metric{border-color:#eadfca!important;background:rgba(255,255,255,.88)!important}

.ai-card-utc{background:linear-gradient(145deg,#eef8ff,#fff 42%)!important;border-color:#bfddf5!important}.ai-card-utc::before{background:linear-gradient(90deg,#0ea5e9,#2563eb)}.ai-card-utc h3{color:#0369a1!important}
.ai-card-distance{background:linear-gradient(145deg,#f7f2ff,#fff 42%)!important;border-color:#d9c8f5!important}.ai-card-distance::before{background:linear-gradient(90deg,#8b5cf6,#6366f1)}.ai-card-distance h3{color:#6d28d9!important}
.ai-card-band{background:linear-gradient(145deg,#effcf5,#fff 36%)!important;border-color:#bce7ce!important}.ai-card-band::before{background:linear-gradient(90deg,#10b981,#22c55e)}.ai-card-band h3{color:#047857!important}
.ai-card-mode{background:linear-gradient(145deg,#eefafa,#fff 36%)!important;border-color:#b8e3e6!important}.ai-card-mode::before{background:linear-gradient(90deg,#06b6d4,#14b8a6)}.ai-card-mode h3{color:#0f766e!important}
.ai-card-continent{background:linear-gradient(145deg,#fff7ed,#fff 36%)!important;border-color:#f6d0ac!important}.ai-card-continent::before{background:linear-gradient(90deg,#f97316,#f59e0b)}.ai-card-continent h3{color:#c2410c!important}
.ai-card-rare{background:linear-gradient(145deg,#fffbea,#fff 40%)!important;border-color:#f2dd96!important}.ai-card-rare::before{background:linear-gradient(90deg,#eab308,#f59e0b)}.ai-card-rare h3{color:#a16207!important}
.ai-card-repeaters{background:linear-gradient(145deg,#fdf2f8,#fff 40%)!important;border-color:#f2c4dc!important}.ai-card-repeaters::before{background:linear-gradient(90deg,#ec4899,#a855f7)}.ai-card-repeaters h3{color:#be185d!important}

.ai-card .ai-table-wrap{border-color:rgba(148,163,184,.30)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
.ai-card .ai-table th{font-weight:900!important;color:#526274!important;background:#f8fafc!important}
.ai-card-band .ai-table th{background:#ecfdf5!important;color:#047857!important}.ai-card-mode .ai-table th{background:#ecfeff!important;color:#0f766e!important}.ai-card-continent .ai-table th{background:#fff7ed!important;color:#c2410c!important}
.ai-table tbody tr:hover{background:#f2f8ff!important}
.ai-table tbody tr:nth-child(even){background:rgba(248,250,252,.62)}

.ai-hours{padding:10px 2px 0!important}.ai-hour-bar{background:linear-gradient(180deg,#edf4fa,#e6edf5)!important;border:1px solid rgba(148,163,184,.12)}.ai-hour-bar i{background:linear-gradient(180deg,#22d3ee 0%,#38bdf8 35%,#2563eb 100%)!important;box-shadow:0 -2px 8px rgba(14,165,233,.18)}.ai-hour:hover .ai-hour-bar i{filter:saturate(1.18) brightness(1.05)}.ai-hour span{font-weight:700!important;color:#64748b!important}

.ai-distance-track{height:12px!important;background:#edf1f7!important;box-shadow:inset 0 1px 2px rgba(15,23,42,.05)}
.ai-distance-row:nth-child(1) .ai-distance-track i{background:linear-gradient(90deg,#38bdf8,#0ea5e9)!important}
.ai-distance-row:nth-child(2) .ai-distance-track i{background:linear-gradient(90deg,#22c55e,#10b981)!important}
.ai-distance-row:nth-child(3) .ai-distance-track i{background:linear-gradient(90deg,#a3e635,#65a30d)!important}
.ai-distance-row:nth-child(4) .ai-distance-track i{background:linear-gradient(90deg,#facc15,#f59e0b)!important}
.ai-distance-row:nth-child(5) .ai-distance-track i{background:linear-gradient(90deg,#fb923c,#f97316)!important}
.ai-distance-row:nth-child(6) .ai-distance-track i{background:linear-gradient(90deg,#c084fc,#7c3aed)!important}
.ai-distance-row>b{font-weight:900!important}

.ai-chip-list>span{border-color:#f2d68a!important;background:linear-gradient(180deg,#fffdf4,#fff8db)!important;box-shadow:0 2px 5px rgba(161,98,7,.06)}.ai-chip-list>span:nth-child(3n+2){border-color:#d8c8f7!important;background:linear-gradient(180deg,#fbf9ff,#f4efff)!important}.ai-chip-list>span:nth-child(3n){border-color:#bfe3d2!important;background:linear-gradient(180deg,#f6fff9,#ecfdf5)!important}.ai-chip-list b{color:#9a6700!important}
.ai-mini-list{border-color:#ecd0df!important}.ai-mini-list>div:nth-child(odd){background:#fffafd}.ai-mini-list>div:hover{background:#fdf2f8}.ai-mini-list>div span b{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#fce7f3;color:#be185d;font-size:10px}.ai-mini-list strong{color:#9d174d!important}
.ai-continent-code{display:inline-grid!important;place-items:center;min-width:31px!important;height:22px;margin-right:4px;border-radius:999px;background:#fff0e4;color:#c2410c!important;font-size:10px;font-weight:900}

@media(max-width:650px){
  .ai-modal{border-radius:13px!important}.ai-modal .modal-head{padding:12px 14px!important}
  .ai-metrics .ai-metric,.ai-record-grid .ai-metric{padding-left:13px}
  .ai-btn-only{min-height:40px}
}


/* v0.5.5 - interactive Smart Stats + log story */
.ai-filter-hint{display:block;margin-top:4px;font-weight:700;color:#1f6f55}
.ai-clickable{cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,background .14s ease,filter .14s ease}
.ai-clickable:hover{filter:saturate(1.06);box-shadow:0 5px 14px rgba(15,23,42,.10)}
.ai-table tr.ai-clickable:hover{background:#eaf5ff!important;box-shadow:inset 4px 0 0 #3b82f6}
.ai-hour.ai-clickable:hover{transform:translateY(-2px)}
.ai-distance-row.ai-clickable{border-radius:9px;padding:4px 6px;margin-left:-6px;margin-right:-6px}
.ai-distance-row.ai-clickable:hover{background:rgba(99,102,241,.06)}
.ai-chip-list>span.ai-clickable:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(161,98,7,.14)!important}
.ai-mini-list>div.ai-clickable:hover{transform:translateX(2px)}
.ai-card-story{background:linear-gradient(145deg,#faf7ff,#fff 44%)!important;border-color:#d9cbfb!important}.ai-card-story::before{background:linear-gradient(90deg,#7c3aed,#6366f1)}.ai-card-story h3{color:#6d28d9!important}
.ai-story{display:grid;gap:6px;margin-top:9px}.ai-story p{margin:0!important;padding:8px 10px;border-radius:10px;background:rgba(124,58,237,.055);color:#3e4357!important;line-height:1.45!important}.ai-story p b{display:inline-grid;place-items:center;width:19px;height:19px;margin-right:5px;border-radius:50%;background:#ede9fe;color:#6d28d9;font-size:10px}
.ai-card-moments{background:linear-gradient(145deg,#fff9ed,#fff 44%)!important;border-color:#f4d6a5!important}.ai-card-moments::before{background:linear-gradient(90deg,#f59e0b,#f97316)}.ai-card-moments h3{color:#b45309!important}
.ai-moment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}.ai-moment-grid .ai-metric{background:rgba(255,255,255,.9)!important;border-color:#eedfc7!important}.ai-moment-grid .ai-metric::before{background:#f59e0b}.ai-moment-grid .ai-metric:nth-child(even)::before{background:#f97316}
@media(max-width:650px){.ai-moment-grid{grid-template-columns:1fr}.ai-filter-hint{margin-top:6px}}

/* v0.5.6 — Smart stats controls */
.ai-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:2px 0 0}.ai-toolbar-state{min-height:32px;display:flex;align-items:center}.ai-toolbar-actions{display:flex;gap:7px;flex-wrap:wrap;margin-left:auto}.ai-active-filter{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:6px 8px 6px 11px;border-radius:999px;background:linear-gradient(135deg,#eef2ff,#f5f3ff);border:1px solid #c7d2fe;color:#4338ca;font-size:12px;font-weight:700;box-shadow:0 2px 7px rgba(79,70,229,.08)}.ai-active-filter span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-active-filter button{width:22px;height:22px;border:0;border-radius:50%;background:#6366f1;color:white;font-size:16px;line-height:20px;cursor:pointer;padding:0}.ai-tool-btn{border:1px solid #bfdbfe;background:linear-gradient(135deg,#eff6ff,#f8fbff);color:#1d4ed8;border-radius:9px;padding:7px 10px;font-weight:800;font-size:12px;cursor:pointer;box-shadow:0 2px 7px rgba(37,99,235,.07)}.ai-tool-btn:hover{transform:translateY(-1px);box-shadow:0 4px 10px rgba(37,99,235,.12)}.ai-tool-btn-clear{border-color:#fecaca;background:linear-gradient(135deg,#fff1f2,#fff7ed);color:#b42318}.ai-clickable{cursor:pointer}.ai-clickable:hover{filter:brightness(.985)}
@media(max-width:650px){.ai-toolbar{align-items:stretch}.ai-toolbar-state,.ai-toolbar-actions{width:100%}.ai-toolbar-actions{margin-left:0}.ai-tool-btn{flex:1}.ai-active-filter{max-width:100%}}

/* v0.5.7 — colorful sidebar + Smart Stats quick controls + design themes */
body[data-qso-theme="tota"]{--qso-sidebar-bg1:#fff8e8;--qso-sidebar-bg2:#f4e5ba;--qso-sidebar-line:#d7bd78;--qso-top1:#fff9e7;--qso-top2:#ead49a;--qso-design:#bd861b;--qso-design-soft:#fff5d8}
body[data-qso-theme="radio"]{--qso-sidebar-bg1:#f3f9ff;--qso-sidebar-bg2:#dceeff;--qso-sidebar-line:#9ec8ea;--qso-top1:#f6fbff;--qso-top2:#d7ebfb;--qso-design:#247db7;--qso-design-soft:#e8f5ff}
body[data-qso-theme="outdoor"]{--qso-sidebar-bg1:#f4fbf2;--qso-sidebar-bg2:#dcefd6;--qso-sidebar-line:#a8c99a;--qso-top1:#f8fcf5;--qso-top2:#dcebd4;--qso-design:#348047;--qso-design-soft:#eaf7e8}
body[data-qso-theme="night"]{--qso-sidebar-bg1:#111827;--qso-sidebar-bg2:#09111f;--qso-sidebar-line:#33445f;--qso-top1:#111827;--qso-top2:#0a1220;--qso-design:#7dd3fc;--qso-design-soft:#16243a}
body[data-qso-theme="bota"]{--qso-sidebar-bg1:#0d2235;--qso-sidebar-bg2:#071523;--qso-sidebar-line:#45627f;--qso-top1:#10283b;--qso-top2:#071725;--qso-design:#9bc9f5;--qso-design-soft:#152c42}
body[data-qso-theme="classic"]{--qso-sidebar-bg1:#faf8f4;--qso-sidebar-bg2:#e9e3da;--qso-sidebar-line:#b9afa4;--qso-top1:#fbfaf7;--qso-top2:#e8e2da;--qso-design:#365a7b;--qso-design-soft:#edf2f6}
body:not([data-qso-theme]){--qso-sidebar-bg1:#fff8e8;--qso-sidebar-bg2:#f4e5ba;--qso-sidebar-line:#d7bd78;--qso-top1:#fff9e7;--qso-top2:#ead49a;--qso-design:#bd861b;--qso-design-soft:#fff5d8}

body[data-qso-theme] .topbar{background:linear-gradient(180deg,var(--qso-top1),var(--qso-top2))!important;border-bottom-color:var(--qso-sidebar-line)!important}
body[data-qso-theme] #sidebar.sidebar{background:linear-gradient(180deg,var(--qso-sidebar-bg1) 0%,var(--qso-sidebar-bg2) 100%)!important;border-right-color:var(--qso-sidebar-line)!important}
body[data-qso-theme] #sidebar .tabs{background:rgba(255,255,255,.56)!important;border-bottom-color:rgba(100,116,139,.22)!important;backdrop-filter:blur(7px)}

/* Three tabs are deliberately different colors: data / display / statistics. */
#sidebar .tab{position:relative;border-bottom-width:0!important;padding-top:13px;padding-bottom:13px;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
#sidebar .tab::after{content:'';position:absolute;left:12px;right:12px;bottom:5px;height:3px;border-radius:99px;opacity:.25;transition:opacity .16s ease,transform .16s ease}
#sidebar .tab[data-tab="data"]{color:#236ba0}#sidebar .tab[data-tab="data"]::after{background:#2f8ed0}
#sidebar .tab[data-tab="display"]{color:#207b58}#sidebar .tab[data-tab="display"]::after{background:#2ca66f}
#sidebar .tab[data-tab="stats"]{color:#7048a8}#sidebar .tab[data-tab="stats"]::after{background:#8b5cf6}
#sidebar .tab[data-tab="data"].active{background:linear-gradient(180deg,#eef8ff,#dff1ff)!important;color:#0f659d!important;box-shadow:inset 0 0 0 1px rgba(47,142,208,.18)}
#sidebar .tab[data-tab="display"].active{background:linear-gradient(180deg,#effbf5,#def4e8)!important;color:#08744c!important;box-shadow:inset 0 0 0 1px rgba(44,166,111,.17)}
#sidebar .tab[data-tab="stats"].active{background:linear-gradient(180deg,#f7f2ff,#ebe3ff)!important;color:#6630a8!important;box-shadow:inset 0 0 0 1px rgba(139,92,246,.16)}
#sidebar .tab.active::after{opacity:1;transform:scaleX(1.04)}

#tab-data.active{background:linear-gradient(180deg,rgba(238,248,255,.80),rgba(255,255,255,.34) 160px,transparent 430px)}
#tab-display.active{background:linear-gradient(180deg,rgba(238,251,245,.82),rgba(255,255,255,.34) 160px,transparent 430px)}
#tab-stats.active{background:linear-gradient(180deg,rgba(247,242,255,.84),rgba(255,255,255,.34) 160px,transparent 430px)}
#tab-data .section-title{color:#1d6f9f!important}#tab-display .section-title{color:#197450!important}#tab-stats .section-title{color:#6d3aa5!important}
#tab-data .drop-zone,#tab-data .lookup-card,#tab-display .quality-legend,#tab-stats .headline-card,#tab-stats .metric-list,#tab-stats .table-wrap,#tab-stats .rank-list{box-shadow:0 3px 10px rgba(15,23,42,.045)}

/* Design chooser – compact launcher + floating menu inspired by the supplied mockup. */
.design-picker{position:relative;z-index:35;margin:10px 12px 2px}
.design-launch{width:100%;min-height:36px;display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid color-mix(in srgb,var(--qso-design) 45%,#d6dde5);border-radius:11px;background:rgba(255,255,255,.82);color:#263548;font:800 12px/1.1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;box-shadow:0 2px 8px rgba(15,23,42,.06)}
.design-launch:hover{background:#fff;box-shadow:0 4px 11px rgba(15,23,42,.09)}
.design-launch-icon{font-size:15px}.design-launch>strong{margin-left:auto;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--qso-design);font-size:11px}.design-caret{color:#6b7280;font-size:11px}
.design-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;padding:10px;border:1px solid #d4dde7;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 16px 34px rgba(15,23,42,.22);backdrop-filter:blur(10px)}
.design-option{width:100%;display:grid;grid-template-columns:31px 1fr 12px;align-items:center;gap:7px;min-height:44px;margin:0 0 7px;padding:7px 11px;border:1px solid #d9e0e7;border-radius:13px;background:linear-gradient(180deg,#fbfcfd,#f4f6f8);color:#1f2c40;font:800 13px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;text-align:left;cursor:pointer;box-shadow:0 2px 7px rgba(15,23,42,.055);transition:transform .13s ease,box-shadow .13s ease,border-color .13s ease,background .13s ease}
.design-option:last-child{margin-bottom:0}.design-option:hover{transform:translateY(-1px);background:#fff;box-shadow:0 5px 11px rgba(15,23,42,.09)}.design-option.active{border-color:#3b82f6;background:linear-gradient(180deg,#eaf5ff,#dceeff);box-shadow:inset 0 0 0 1px rgba(59,130,246,.16),0 4px 11px rgba(59,130,246,.10)}
.design-option-icon{display:grid;place-items:center;font-size:18px}.design-option i{width:8px;height:8px;border-radius:50%;background:transparent}.design-option.active i{background:#3b82f6;box-shadow:0 0 0 3px #dbeafe}

/* Quick Smart Stats controls directly below the main launcher. */
.smart-side-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin:7px 0 6px}
.smart-side-btn{min-height:38px;padding:7px 8px;border-radius:10px;font:800 11px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,filter .14s ease;white-space:normal}
.smart-side-refresh{border:1px solid #a7d2f1;background:linear-gradient(135deg,#eff8ff,#e1f1ff);color:#176b9f;box-shadow:0 2px 7px rgba(14,116,180,.08)}
.smart-side-clear{border:1px solid #f1b5bd;background:linear-gradient(135deg,#fff3f4,#fff8f1);color:#a53b46;box-shadow:0 2px 7px rgba(185,50,63,.07)}
.smart-side-btn:not(:disabled):hover{transform:translateY(-1px);filter:saturate(1.06);box-shadow:0 5px 11px rgba(15,23,42,.11)}
.smart-side-btn:disabled{cursor:not-allowed;opacity:.42;filter:grayscale(.25);box-shadow:none}
.smart-side-clear.is-active{border-color:#e78d99;background:linear-gradient(135deg,#ffe8eb,#fff0e5);color:#972f3a}
.ai-btn-only.has-smart-filter{box-shadow:0 8px 20px rgba(79,70,229,.30),0 0 0 2px rgba(245,158,11,.34),inset 0 1px 0 rgba(255,255,255,.25)!important}

@media(max-width:650px){
  .design-picker{margin:8px 10px 0}.design-menu{position:fixed;left:10px;right:10px;top:78px;max-width:340px;margin:auto}.smart-side-actions{grid-template-columns:1fr}.smart-side-btn{min-height:36px}
}


/* v0.5.8 — Night Ops is a real dark/night theme, not a pale blue variant. */
body[data-qso-theme="night"]{background:#070d17;color:#e7eef8}
body[data-qso-theme="night"] .topbar{color:#e7eef8!important;box-shadow:0 4px 18px rgba(0,0,0,.30)}
body[data-qso-theme="night"] .brand-title{color:#f4f8ff!important}
body[data-qso-theme="night"] .brand-sub{color:#91a4bd!important}
body[data-qso-theme="night"] .brand-sub strong{color:#e6f4ff!important}
body[data-qso-theme="night"] .brand-sub a,body[data-qso-theme="night"] .app-credit a{color:#7dd3fc!important}
body[data-qso-theme="night"] #sidebar.sidebar{color:#dbe7f5!important;box-shadow:8px 0 24px rgba(0,0,0,.18)}
body[data-qso-theme="night"] #sidebar .tabs{background:rgba(7,13,23,.72)!important;border-bottom-color:#29384d!important}
body[data-qso-theme="night"] #sidebar .tab{color:#8fa6bf!important}
body[data-qso-theme="night"] #sidebar .tab[data-tab="data"]{color:#73c7ff!important}
body[data-qso-theme="night"] #sidebar .tab[data-tab="display"]{color:#68d7a2!important}
body[data-qso-theme="night"] #sidebar .tab[data-tab="stats"]{color:#c4a7ff!important}
body[data-qso-theme="night"] #sidebar .tab[data-tab="data"].active{background:linear-gradient(180deg,#132c42,#102235)!important;color:#9bddff!important;box-shadow:inset 0 0 0 1px rgba(76,180,240,.22)}
body[data-qso-theme="night"] #sidebar .tab[data-tab="display"].active{background:linear-gradient(180deg,#102d27,#0d241f)!important;color:#8ee9bd!important;box-shadow:inset 0 0 0 1px rgba(74,210,150,.20)}
body[data-qso-theme="night"] #sidebar .tab[data-tab="stats"].active{background:linear-gradient(180deg,#291d43,#211735)!important;color:#d6c1ff!important;box-shadow:inset 0 0 0 1px rgba(170,125,255,.20)}
body[data-qso-theme="night"] #tab-data.active{background:linear-gradient(180deg,rgba(20,48,69,.40),rgba(12,22,37,.18) 180px,transparent 430px)}
body[data-qso-theme="night"] #tab-display.active{background:linear-gradient(180deg,rgba(18,53,42,.35),rgba(12,22,37,.18) 180px,transparent 430px)}
body[data-qso-theme="night"] #tab-stats.active{background:linear-gradient(180deg,rgba(49,32,77,.37),rgba(12,22,37,.18) 180px,transparent 430px)}
body[data-qso-theme="night"] #tab-data .section-title{color:#73c7ff!important}
body[data-qso-theme="night"] #tab-display .section-title{color:#68d7a2!important}
body[data-qso-theme="night"] #tab-stats .section-title{color:#c4a7ff!important}
body[data-qso-theme="night"] label,body[data-qso-theme="night"] .check{color:#b7c6d8!important}
body[data-qso-theme="night"] .muted,body[data-qso-theme="night"] .message.muted,body[data-qso-theme="night"] .drop-zone span{color:#8294aa!important}
body[data-qso-theme="night"] input[type=text],body[data-qso-theme="night"] input[type=password],body[data-qso-theme="night"] select{background:#0b1423!important;color:#e6eef8!important;border-color:#33445d!important;box-shadow:none!important}
body[data-qso-theme="night"] input::placeholder{color:#60758d!important}
body[data-qso-theme="night"] .drop-zone,body[data-qso-theme="night"] .lookup-card,body[data-qso-theme="night"] .quality-legend{background:#0c1626!important;border-color:#304159!important;color:#dce7f5!important}
body[data-qso-theme="night"] .drop-zone.drag,body[data-qso-theme="night"] .drop-zone:focus{background:#11263b!important;border-color:#58b9ef!important}
body[data-qso-theme="night"] .lookup-main{color:#dce7f5!important}
body[data-qso-theme="night"] .lookup-copy{color:#8396ad!important}
body[data-qso-theme="night"] .lookup-status{background:#091321!important;border-color:#2c3d53!important;color:#9fb1c6!important}
body[data-qso-theme="night"] .lookup-accounts{border-color:#2a3a50!important}
body[data-qso-theme="night"] .lookup-accounts summary{color:#7dd3fc!important}
body[data-qso-theme="night"] .btn{background:#172337!important;color:#e8f0fa!important;border-color:#3b4d65!important;box-shadow:0 2px 6px rgba(0,0,0,.18)!important}
body[data-qso-theme="night"] .btn.ghost{background:#111c2d!important}
body[data-qso-theme="night"] .btn.primary{background:#167447!important;border-color:#24905d!important;color:#fff!important}
body[data-qso-theme="night"] .btn.danger{background:#321820!important;border-color:#70404a!important;color:#ffd5da!important}
body[data-qso-theme="night"] .mini-summary div,body[data-qso-theme="night"] .stat{background:#0b1423!important;border-color:#293950!important;color:#e7eef8!important}
body[data-qso-theme="night"] .mini-summary span,body[data-qso-theme="night"] .stat span{color:#8193a9!important}
body[data-qso-theme="night"] .headline-card{background:linear-gradient(135deg,#0e1e31,#0a1422)!important;border-color:#2b4663!important;color:#edf5ff!important}
body[data-qso-theme="night"] .headline-call{color:#f2f7ff!important}
body[data-qso-theme="night"] .metric-list,body[data-qso-theme="night"] .table-wrap,body[data-qso-theme="night"] .rank-list{background:#0b1423!important;border-color:#293950!important;color:#dce7f5!important}
body[data-qso-theme="night"] .metric-list div,body[data-qso-theme="night"] .rank-item,body[data-qso-theme="night"] th,body[data-qso-theme="night"] td{border-color:#26364b!important}
body[data-qso-theme="night"] .metric-list span,body[data-qso-theme="night"] .rank-item .sub{color:#8496ac!important}
body[data-qso-theme="night"] .table-wrap table{color:#dde8f5!important}
body[data-qso-theme="night"] thead{background:#101c2d!important;color:#9bb0c7!important}
body[data-qso-theme="night"] .legend-item{background:#0d1727!important;border-color:#2b3c53!important;color:#d9e5f2!important}
body[data-qso-theme="night"] .app-credit{border-color:#293950!important;color:#75889f!important}
body[data-qso-theme="night"] .sidebar-edge-toggle{background:#101c2d!important;color:#cfe4f8!important;border-color:#3b4e67!important;box-shadow:0 4px 15px rgba(0,0,0,.35)!important}
body[data-qso-theme="night"] .sidebar-edge-toggle:hover{background:#17283e!important;color:#fff!important}
body[data-qso-theme="night"] .design-launch{background:#101c2d!important;color:#e7eef8!important;border-color:#40536c!important;box-shadow:0 4px 12px rgba(0,0,0,.18)!important}
body[data-qso-theme="night"] .design-launch:hover{background:#16263b!important}
body[data-qso-theme="night"] .design-launch>strong{color:#7dd3fc!important}
body[data-qso-theme="night"] .design-caret{color:#8fa3ba!important}
body[data-qso-theme="night"] .design-menu{background:rgba(9,17,30,.97)!important;border-color:#394b63!important;box-shadow:0 18px 42px rgba(0,0,0,.48)!important}
body[data-qso-theme="night"] .design-option{background:linear-gradient(180deg,#111d2e,#0d1726)!important;color:#dce8f5!important;border-color:#314158!important;box-shadow:0 2px 8px rgba(0,0,0,.18)!important}
body[data-qso-theme="night"] .design-option:hover{background:#17263a!important}
body[data-qso-theme="night"] .design-option.active{border-color:#4ba7dc!important;background:linear-gradient(180deg,#15324a,#11283d)!important;box-shadow:inset 0 0 0 1px rgba(75,167,220,.18),0 4px 12px rgba(0,0,0,.25)!important}
body[data-qso-theme="night"] .smart-side-refresh{border-color:#305b79!important;background:linear-gradient(135deg,#10263a,#102033)!important;color:#8fd8ff!important}
body[data-qso-theme="night"] .smart-side-clear{border-color:#68404a!important;background:linear-gradient(135deg,#2a1720,#251923)!important;color:#ffb9c2!important}
body[data-qso-theme="night"] .top-actions .btn,body[data-qso-theme="night"] .top-actions select{background:#131f31!important;color:#e7eef8!important;border-color:#40526a!important}
body[data-qso-theme="night"] .top-actions .status-pill{box-shadow:none!important}
/* Dim only the raster basemap; markers, labels, routes and popups remain vivid/readable. */
body[data-qso-theme="night"] #map .leaflet-tile-pane{filter:brightness(.62) saturate(.72) contrast(1.08)}
body[data-qso-theme="night"] #map{background:#07111e!important}
body[data-qso-theme="night"] .leaflet-control-zoom a,body[data-qso-theme="night"] .leaflet-control-attribution{background:#0e1929!important;color:#d7e3f1!important;border-color:#33445c!important}
body[data-qso-theme="night"] .leaflet-control-attribution a{color:#7dd3fc!important}

/* v0.5.9 — richer colorful sidebar, especially TOTA Design */
body[data-qso-theme="tota"] #sidebar.sidebar{
  background:
    radial-gradient(circle at 14% 7%,rgba(255,255,255,.92),transparent 21%),
    linear-gradient(180deg,#fff8df 0%,#ffecc0 43%,#f2d98f 100%)!important;
  box-shadow:8px 0 26px rgba(121,85,18,.13);
}
body[data-qso-theme="tota"] #sidebar .tabs{
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,249,230,.72))!important;
  border-bottom-color:#ddc47d!important;
}
body[data-qso-theme="tota"] .design-launch{
  background:linear-gradient(135deg,#fffdf7,#fff0c7)!important;
  border-color:#d7aa4f!important;
  box-shadow:0 3px 10px rgba(155,103,9,.11)!important;
}
body[data-qso-theme="tota"] .design-launch:hover{background:linear-gradient(135deg,#fff,#ffe7aa)!important}

/* Make each tab feel like its own colored workspace. */
body[data-qso-theme="tota"] #tab-data.active{
  background:linear-gradient(180deg,rgba(222,242,255,.82),rgba(255,255,255,.24) 230px,transparent 520px)!important;
}
body[data-qso-theme="tota"] #tab-display.active{
  background:linear-gradient(180deg,rgba(220,247,231,.84),rgba(255,255,255,.24) 230px,transparent 520px)!important;
}
body[data-qso-theme="tota"] #tab-stats.active{
  background:linear-gradient(180deg,rgba(242,232,255,.88),rgba(255,246,218,.34) 300px,transparent 590px)!important;
}

/* Section titles become visible color bands instead of plain text. */
body[data-qso-theme="tota"] #tab-data .section-title,
body[data-qso-theme="tota"] #tab-display .section-title,
body[data-qso-theme="tota"] #tab-stats .section-title{
  margin-top:16px!important;
  padding:7px 9px!important;
  border-radius:9px!important;
  letter-spacing:.10em!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.50),0 2px 6px rgba(15,23,42,.035);
}
body[data-qso-theme="tota"] #tab-data .section-title{
  color:#0b679a!important;background:linear-gradient(90deg,#dff3ff,#eff9ff 74%,transparent)!important;border-left:4px solid #2c9bd7;
}
body[data-qso-theme="tota"] #tab-display .section-title{
  color:#176f4c!important;background:linear-gradient(90deg,#dcf6e8,#effbf5 74%,transparent)!important;border-left:4px solid #31a86f;
}
body[data-qso-theme="tota"] #tab-stats .section-title{
  color:#6d2aa6!important;background:linear-gradient(90deg,#efe3ff,#f8f1ff 70%,#fff4d4)!important;border-left:4px solid #8b5cf6;
}

/* DATA tab: stronger blue/green/gold cards. */
body[data-qso-theme="tota"] #tab-data .drop-zone{
  background:linear-gradient(145deg,#f4fbff,#e6f5ff)!important;
  border-color:#7ec1e8!important;
  box-shadow:0 4px 12px rgba(28,126,181,.09)!important;
}
body[data-qso-theme="tota"] #tab-data .drop-icon{color:#1286c5!important}
body[data-qso-theme="tota"] #tab-data .lookup-card{
  background:linear-gradient(145deg,#f4fbff,#eef8ff)!important;
  border-color:#b7d9ee!important;
}
body[data-qso-theme="tota"] #tab-data input[type=text],
body[data-qso-theme="tota"] #tab-data input[type=password],
body[data-qso-theme="tota"] #tab-data select{
  background:#fff!important;border-color:#b8cddd!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)!important;
}
body[data-qso-theme="tota"] #tab-data .mini-summary div:nth-child(1){background:linear-gradient(145deg,#eaf6ff,#dff0ff)!important;border-color:#9fcbea!important}
body[data-qso-theme="tota"] #tab-data .mini-summary div:nth-child(1) strong{color:#0b72b5!important}
body[data-qso-theme="tota"] #tab-data .mini-summary div:nth-child(2){background:linear-gradient(145deg,#eafaf1,#dff5e9)!important;border-color:#9fd5b5!important}
body[data-qso-theme="tota"] #tab-data .mini-summary div:nth-child(2) strong{color:#168150!important}
body[data-qso-theme="tota"] #tab-data .mini-summary div:nth-child(3){background:linear-gradient(145deg,#fff8df,#ffedb4)!important;border-color:#e3bf62!important}
body[data-qso-theme="tota"] #tab-data .mini-summary div:nth-child(3) strong{color:#a66a00!important}

/* DISPLAY tab: visibly green, but keep map controls readable. */
body[data-qso-theme="tota"] #tab-display select{
  background:linear-gradient(180deg,#fff,#f2fbf6)!important;border-color:#a9d4bb!important;
}
body[data-qso-theme="tota"] #tab-display .quality-legend{
  background:linear-gradient(145deg,#f3fbf6,#e9f8ef)!important;border-color:#acd8bd!important;
  box-shadow:0 3px 10px rgba(38,130,77,.06)!important;
}
body[data-qso-theme="tota"] #tab-display .legend-item{
  background:linear-gradient(180deg,#fff,#f2faf5)!important;border-color:#b9d9c6!important;
}

/* STATS tab: make the overview genuinely colorful. */
body[data-qso-theme="tota"] #tab-stats .headline-card{
  background:linear-gradient(135deg,#fff7dc 0%,#ffe8aa 58%,#ffdfa0 100%)!important;
  border-color:#dfa939!important;
  border-left:5px solid #c98908!important;
  box-shadow:0 5px 15px rgba(159,104,4,.11)!important;
}
body[data-qso-theme="tota"] #tab-stats .headline-call{color:#18263c!important;text-shadow:0 1px 0 rgba(255,255,255,.7)}
body[data-qso-theme="tota"] #tab-stats .headline-ref{color:#0b6ea8!important}

body[data-qso-theme="tota"] #tab-stats .stats-primary .stat:nth-child(1){
  background:linear-gradient(145deg,#e8f5ff,#d9edff)!important;border-color:#91c5e8!important;border-top:4px solid #2588c6!important;
}
body[data-qso-theme="tota"] #tab-stats .stats-primary .stat:nth-child(1) strong{color:#0c6ea9!important}
body[data-qso-theme="tota"] #tab-stats .stats-primary .stat:nth-child(2){
  background:linear-gradient(145deg,#e9faf0,#daf4e5)!important;border-color:#91d0aa!important;border-top:4px solid #2ca66f!important;
}
body[data-qso-theme="tota"] #tab-stats .stats-primary .stat:nth-child(2) strong{color:#16794e!important}

body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(1){background:linear-gradient(145deg,#f2eaff,#e8ddff)!important;border-color:#c5acef!important;border-top:3px solid #8b5cf6!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(1) strong{color:#7136bb!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(2){background:linear-gradient(145deg,#e7f8ff,#d9f2ff)!important;border-color:#a1d4e9!important;border-top:3px solid #22a6d6!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(2) strong{color:#087da7!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(3){background:linear-gradient(145deg,#fff2de,#ffe7c4)!important;border-color:#e7c28d!important;border-top:3px solid #ef9a2d!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(3) strong{color:#b96909!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(4){background:linear-gradient(145deg,#fff0ef,#ffe1df)!important;border-color:#e9aaa6!important;border-top:3px solid #e85d57!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(4) strong{color:#b83d38!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(5){background:linear-gradient(145deg,#e9faf5,#d9f5eb)!important;border-color:#9bd6bf!important;border-top:3px solid #20a574!important}
body[data-qso-theme="tota"] #tab-stats .stats-quick .stat:nth-child(5) strong{color:#117654!important}

body[data-qso-theme="tota"] #tab-stats .metric-list{
  border-color:#d9c9a5!important;box-shadow:0 3px 10px rgba(95,72,23,.055)!important;
}
body[data-qso-theme="tota"] #tab-stats .metric-list div:nth-child(1){background:#f4faff!important}
body[data-qso-theme="tota"] #tab-stats .metric-list div:nth-child(2){background:#f2fbf6!important}
body[data-qso-theme="tota"] #tab-stats .metric-list div:nth-child(3){background:#fff7ea!important}
body[data-qso-theme="tota"] #tab-stats .metric-list div:nth-child(4){background:#f8f2ff!important}
body[data-qso-theme="tota"] #tab-stats .metric-list div:nth-child(1) strong{color:#176f9f!important}
body[data-qso-theme="tota"] #tab-stats .metric-list div:nth-child(2) strong{color:#247a52!important}
body[data-qso-theme="tota"] #tab-stats .metric-list div:nth-child(3) strong{color:#a76508!important}
body[data-qso-theme="tota"] #tab-stats .metric-list div:nth-child(4) strong{color:#6f42a5!important}

body[data-qso-theme="tota"] #tab-stats .table-wrap{
  background:#fffaf0!important;border-color:#dbc892!important;box-shadow:0 3px 10px rgba(113,82,17,.055)!important;
}
body[data-qso-theme="tota"] #tab-stats .table-wrap thead{
  background:linear-gradient(90deg,#fff0bd,#f5e5ff)!important;color:#684a18!important;
}
body[data-qso-theme="tota"] #tab-stats .table-wrap tbody tr:nth-child(odd){background:rgba(255,249,231,.72)}
body[data-qso-theme="tota"] #tab-stats .table-wrap tbody tr:nth-child(even){background:rgba(244,249,255,.72)}
body[data-qso-theme="tota"] #tab-stats .table-wrap tbody tr:hover{background:#eaf6ff!important}

body[data-qso-theme="tota"] #topDx{
  background:linear-gradient(180deg,#f4fbff,#edf7ff)!important;border-color:#a9cfe7!important;
}
body[data-qso-theme="tota"] #topDx .rank-item:nth-child(odd){background:rgba(255,255,255,.58)}
body[data-qso-theme="tota"] #topDx .rank-item strong{color:#0b6f9f!important}
body[data-qso-theme="tota"] #dxccList{
  background:linear-gradient(180deg,#f6fbf5,#edf7e9)!important;border-color:#b8d3a7!important;
}
body[data-qso-theme="tota"] #dxccList .rank-item:nth-child(odd){background:rgba(255,255,255,.58)}
body[data-qso-theme="tota"] #dxccList .rank-item strong{color:#4d7b28!important}

/* Smart controls are intentionally vivid because they are primary analysis actions. */
body[data-qso-theme="tota"] .smart-side-refresh{
  background:linear-gradient(135deg,#e5f5ff,#cfeaff)!important;border-color:#7fc3ea!important;color:#0872aa!important;
}
body[data-qso-theme="tota"] .smart-side-clear{
  background:linear-gradient(135deg,#fff0ed,#ffe3dc)!important;border-color:#e7a79a!important;color:#b34639!important;
}

/* Slightly richer non-night themes too, without changing their identity. */
body[data-qso-theme="radio"] #sidebar.sidebar{box-shadow:8px 0 24px rgba(34,111,166,.11)}
body[data-qso-theme="outdoor"] #sidebar.sidebar{box-shadow:8px 0 24px rgba(45,115,62,.10)}
body[data-qso-theme="bota"] #sidebar.sidebar{box-shadow:8px 0 24px rgba(92,88,58,.10)}
body[data-qso-theme="classic"] #sidebar.sidebar{box-shadow:8px 0 24px rgba(54,90,123,.09)}

/* v0.6.0 — Multi Import */
.import-format-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:8px 0 2px}
.import-format-chips span{display:inline-flex;align-items:center;justify-content:center;min-width:48px;padding:3px 8px;border-radius:999px;border:1px solid #b9d6e8;background:rgba(255,255,255,.72);color:#245a78!important;font-size:10px;font-weight:800;letter-spacing:.04em}
.import-report{margin:9px 0 12px;padding:9px 10px;border:1px solid #b8d7e8;border-radius:11px;background:linear-gradient(145deg,#f7fcff,#edf8ff);box-shadow:0 3px 10px rgba(25,102,145,.06);font-size:11px}
.import-report.hidden{display:none}
.import-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.import-head>div:first-child{display:flex;min-width:0;flex-direction:column;gap:2px}
.import-head strong{color:#0b699c;font-size:11px}
.import-head span{color:#5f7688}
.import-mini{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.import-mini span{padding:2px 6px;border:1px solid #c8dce8;border-radius:999px;background:#fff;color:#415b6b;font-size:9px;white-space:nowrap}
.import-report details{margin-top:7px;border-top:1px solid #d4e5ef;padding-top:6px}
.import-report summary{cursor:pointer;color:#276c93;font-weight:700}
.import-files{display:grid;gap:5px;margin-top:6px}
.import-file{display:flex;flex-direction:column;gap:2px;padding:6px 7px;border:1px solid #d1e3ed;border-radius:8px;background:rgba(255,255,255,.70)}
.import-file b{overflow-wrap:anywhere;color:#213b4a;font-size:10px}
.import-file>span{color:#6c7e88;font-size:9px}
.import-file.bad{border-color:#edc2bd;background:#fff4f2}
.import-file.bad b,.import-file.bad span{color:#a9473d}
.import-format{display:inline-flex;margin-right:4px;padding:1px 5px;border-radius:999px;background:#dff2ff;color:#0b6c9f!important;font-size:8px;font-weight:900;letter-spacing:.04em}
body[data-qso-theme="night"] .import-format-chips span{background:#101e31;border-color:#35516d;color:#8ed7ff!important}
body[data-qso-theme="night"] .import-report{background:linear-gradient(145deg,#0d1a2b,#0a1524);border-color:#30465e;box-shadow:none}
body[data-qso-theme="night"] .import-head strong,body[data-qso-theme="night"] .import-report summary{color:#7dd3fc}
body[data-qso-theme="night"] .import-head span,body[data-qso-theme="night"] .import-file>span{color:#879bb0}
body[data-qso-theme="night"] .import-mini span,body[data-qso-theme="night"] .import-file{background:#0b1423;border-color:#2b3e54;color:#dce8f5}
body[data-qso-theme="night"] .import-file b{color:#dce8f5}
body[data-qso-theme="night"] .import-format{background:#12324a;color:#8fdbff!important}
body[data-qso-theme="night"] .import-file.bad{background:#2a171c;border-color:#70404a}
body[data-qso-theme="night"] .import-file.bad b,body[data-qso-theme="night"] .import-file.bad span{color:#ffb7bf}
body[data-qso-theme="tota"] .import-report{background:linear-gradient(145deg,#f4fbff,#e7f6ff);border-color:#95c9e5}
body[data-qso-theme="tota"] .import-format-chips span:nth-child(1){background:#e8f4ff;border-color:#9fc8e8;color:#126da4!important}
body[data-qso-theme="tota"] .import-format-chips span:nth-child(2){background:#e9f9ef;border-color:#9fd5b5;color:#17764d!important}
body[data-qso-theme="tota"] .import-format-chips span:nth-child(3){background:#f4eaff;border-color:#c6acef;color:#7137b6!important}


/* v0.6.2 — compact Multi Import: keep the Data tab inside a normal desktop viewport */
#tab-data .drop-zone{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr) auto!important;
  grid-template-areas:"icon title button" "icon chips button"!important;
  align-items:center!important;
  column-gap:8px!important;
  row-gap:3px!important;
  padding:9px 10px!important;
  text-align:left!important;
}
#tab-data .drop-zone .drop-icon{grid-area:icon;font-size:18px!important;line-height:1!important;margin:0!important}
#tab-data .drop-zone>strong{grid-area:title;min-width:0;font-size:12px;line-height:1.2}
#tab-data .drop-zone>span:not(.file-label){display:none!important}
#tab-data .drop-zone .import-format-chips{
  grid-area:chips;justify-content:flex-start!important;flex-wrap:nowrap!important;
  gap:4px!important;margin:0!important;min-width:0
}
#tab-data .drop-zone .import-format-chips span{min-width:auto!important;padding:2px 7px!important;font-size:9px!important;line-height:1.25}
#tab-data .drop-zone .file-label{grid-area:button;margin:0!important;align-self:center;padding:8px 10px!important;white-space:nowrap}
#tab-data>.message{padding:5px 2px!important;font-size:10px!important;line-height:1.25}

.import-report{margin:6px 0 8px!important;padding:6px 8px!important;border-radius:10px!important}
.import-summary-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px 7px;min-width:0}
.import-summary-main{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.import-summary-main strong{color:#0b699c;font-size:10px;flex:0 0 auto}
.import-summary-main>span{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#5f7688;font-size:10px}
.import-mini{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end;gap:4px!important}
.import-mini span{padding:1px 5px!important;font-size:8px!important;line-height:1.45}
.import-more{margin:0!important;padding:0!important;border:0!important;min-width:0}
.import-more summary{list-style:none;cursor:pointer;color:#276c93;font-size:9px;font-weight:800;white-space:nowrap;padding:2px 0}
.import-more summary::-webkit-details-marker{display:none}
.import-more summary::before{content:'›';display:inline-block;margin-right:3px;font-size:13px;line-height:.7;transform-origin:center;transition:transform .12s ease}
.import-more[open]{grid-column:1/-1;border-top:1px solid #d4e5ef!important;padding-top:5px!important;margin-top:1px!important}
.import-more[open] summary::before{transform:rotate(90deg)}
.import-more .import-files{margin-top:5px!important}
.import-file{padding:5px 6px!important}

body[data-qso-theme="night"] .import-summary-main strong,body[data-qso-theme="night"] .import-more summary{color:#7dd3fc!important}
body[data-qso-theme="night"] .import-summary-main>span{color:#879bb0!important}
body[data-qso-theme="night"] .import-more[open]{border-top-color:#2b3e54!important}

/* Small-height desktops get a little extra breathing room without removing scrolling when it is really needed. */
@media (min-width:851px) and (max-height:900px){
  #tab-data{padding-top:11px!important;padding-bottom:10px!important}
  #tab-data .section-title{margin-top:14px!important;margin-bottom:7px!important}
  #tab-data .form-grid{margin-bottom:7px!important}
  #tab-data .check{padding:5px 0!important}
}

/* v0.7.0 — Log Tools */
.log-tools-bar{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:6px;margin:5px 0 7px}
.log-tool-btn{min-height:34px;border:1px solid #bfd3e4;border-radius:10px;background:linear-gradient(135deg,#f7fbff,#edf6fd);color:#194f73;font:800 11px/1.1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 8px;cursor:pointer;box-shadow:0 2px 6px rgba(15,23,42,.06);transition:.14s ease}
.log-tool-btn:hover{transform:translateY(-1px);box-shadow:0 5px 11px rgba(15,23,42,.10)}
.log-tool-health.is-ok{border-color:#9fd5b0;background:linear-gradient(135deg,#f1fbf4,#e9f8ef);color:#17653a}
.log-tool-health.is-warn{border-color:#efc778;background:linear-gradient(135deg,#fff9e8,#fff2ca);color:#8a5a08}
.log-tool-health.is-bad{border-color:#efaaa9;background:linear-gradient(135deg,#fff2f2,#ffe6e6);color:#9c3030}
.log-health-icon{font-size:12px}.log-tool-btn strong{font-size:10px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:rgba(255,255,255,.78);display:inline-flex;align-items:center;justify-content:center}

.csv-map-wrap{display:grid;gap:12px}.csv-map-note{padding:10px 12px;border:1px solid #cfe0ec;border-radius:11px;background:#f5faff;color:#40576a;font-size:13px;line-height:1.45}
.csv-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.csv-map-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;align-items:center;font-size:12px;font-weight:800;color:#24364a}.csv-map-row select{width:100%;min-width:0;height:36px;border:1px solid #c8d7e2;border-radius:9px;background:#fff;color:#1d2a38;padding:0 9px}
.csv-map-error{padding:8px 10px;border-radius:9px;background:#fff0f0;border:1px solid #efb3b3;color:#a32b2b;font-weight:800;font-size:12px}.csv-map-actions{display:flex;justify-content:flex-end;gap:8px}

.diag-wrap{display:grid;gap:12px}.diag-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;border:1px solid #cbd8e3;background:#f7fafc}.diag-summary.ok{border-color:#a7d9b7;background:#effaf3}.diag-summary.warn{border-color:#efd28f;background:#fff8e8}.diag-summary.bad{border-color:#efb0b0;background:#fff1f1}.diag-summary span{font-size:12px;color:#64748b;font-weight:800}
.diag-list{display:grid;gap:7px}.diag-item{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:start;gap:9px;padding:10px 11px;border:1px solid #d8e0e7;border-radius:11px;background:#fff}.diag-error{border-left:5px solid #dc4c4c}.diag-warn{border-left:5px solid #e5a31a}.diag-info{border-left:5px solid #3c8ed8}.diag-icon{font-size:13px;padding-top:2px}.diag-copy{display:grid;gap:2px}.diag-copy strong{font-size:13px;color:#1f2f3d}.diag-copy span,.diag-copy small{font-size:11px;color:#607184;line-height:1.35}.diag-item>b{font-size:13px;color:#24364a}.diag-empty{padding:18px;border:1px solid #b7dec2;border-radius:12px;background:#f1faf4;color:#17653a;text-align:center;font-weight:800}.diag-actions{display:flex;justify-content:flex-end}

body[data-qso-theme="night"] .log-tool-btn{border-color:#304b65;background:linear-gradient(135deg,#13283a,#0f2030);color:#b9dbf4}
body[data-qso-theme="night"] .log-tool-health.is-ok{border-color:#315e48;background:linear-gradient(135deg,#13291f,#10251d);color:#9ce0b5}
body[data-qso-theme="night"] .log-tool-health.is-warn{border-color:#725d2d;background:linear-gradient(135deg,#2b2414,#271f11);color:#f4d487}
body[data-qso-theme="night"] .log-tool-health.is-bad{border-color:#6c3940;background:linear-gradient(135deg,#2d171c,#261419);color:#ffb6bf}
body[data-qso-theme="night"] .csv-map-note,body[data-qso-theme="night"] .diag-summary,body[data-qso-theme="night"] .diag-item{background:#102131;color:#d8e8f4;border-color:#2a455c}
body[data-qso-theme="night"] .csv-map-row{color:#d8e8f4}body[data-qso-theme="night"] .csv-map-row select{background:#0f1d2a;color:#e7f2fa;border-color:#35546c}body[data-qso-theme="night"] .diag-copy strong,body[data-qso-theme="night"] .diag-item>b{color:#e7f2fa}body[data-qso-theme="night"] .diag-copy span,body[data-qso-theme="night"] .diag-copy small{color:#9db5c7}

@media(max-width:760px){.csv-map-grid{grid-template-columns:1fr}.csv-map-row{grid-template-columns:105px minmax(0,1fr)}}
@media(max-width:430px){.log-tools-bar{grid-template-columns:1fr 1fr}.log-tool-btn{font-size:10.5px;padding:5px 6px}.csv-map-row{grid-template-columns:1fr;gap:4px}}

/* v0.8.0 — Multi Log + Performance Engine */
.multi-log-manager{margin:8px 0 10px;padding:10px;border:1px solid rgba(94,139,181,.25);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(245,249,252,.9));box-shadow:0 6px 18px rgba(20,56,82,.06)}
.multi-log-manager.hidden{display:none}
.multi-log-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.multi-log-head>div{min-width:0}.multi-log-head strong{display:block;font-size:13px;color:#17324a}.multi-log-meta{display:block;font-size:11px;color:#6b7d8e;margin-top:1px}
.multi-log-list{display:grid;gap:6px;max-height:172px;overflow:auto;padding-right:2px}.multi-log-row{display:grid;grid-template-columns:auto 11px minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:6px 7px;border:1px solid rgba(90,120,145,.16);border-radius:10px;background:rgba(255,255,255,.72)}
.multi-log-row.is-off{opacity:.58}.multi-log-row input[type=checkbox]{margin:0}.multi-log-color{width:10px;height:28px;border-radius:7px}.multi-log-copy{min-width:0}.multi-log-name{display:block;font-weight:800;font-size:11px;color:#20384e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.multi-log-sub{display:block;font-size:10px;color:#718191;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.multi-log-count{font-size:10px;font-weight:800;color:#425a70;white-space:nowrap}.multi-log-remove{border:0;background:transparent;color:#9a5360;cursor:pointer;font-size:15px;line-height:1;padding:2px 3px;border-radius:6px}.multi-log-remove:hover{background:#feecef;color:#b4233d}
.multi-log-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin-top:7px}.multi-log-actions .log-tool-btn{padding:6px 5px;font-size:10px;justify-content:center}.multi-log-actions .log-tool-btn:disabled{opacity:.45;cursor:not-allowed}
.performance-badge{display:inline-flex;align-items:center;gap:3px;padding:3px 6px;border-radius:999px;background:#fff3cd;color:#805b00;border:1px solid #f3d56b;font-weight:800;font-size:9px;white-space:nowrap}.performance-badge.hidden{display:none}
.performance-status{position:absolute;z-index:650;top:12px;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 32px));padding:9px 11px;border-radius:12px;background:rgba(15,31,46,.93);box-shadow:0 10px 28px rgba(0,0,0,.24);color:#fff;backdrop-filter:blur(8px);pointer-events:none}.performance-status.hidden{display:none}.performance-status-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px}.performance-status-row strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.performance-status-row span{font-weight:800;color:#bde9ff}.performance-track{height:5px;margin-top:7px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.17)}.performance-track i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#38bdf8,#22c55e);transition:width .14s linear}
.compare-wrap{display:grid;gap:12px}.compare-selects{display:grid;grid-template-columns:1fr 1fr;gap:8px}.compare-selects label{font-size:11px;font-weight:700;color:#516476}.compare-selects select{margin-top:4px;width:100%}.compare-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.compare-card{padding:10px;border-radius:12px;background:#f7fafc;border:1px solid #dce6ee}.compare-card span{display:block;font-size:10px;color:#6b7d8e}.compare-card strong{display:block;font-size:18px;color:#17324a;margin-top:2px}.compare-table{width:100%;border-collapse:collapse;font-size:11px}.compare-table th,.compare-table td{padding:7px 8px;border-bottom:1px solid #e3eaf0;text-align:right}.compare-table th:first-child,.compare-table td:first-child{text-align:left}.compare-table thead th{font-size:10px;text-transform:uppercase;color:#6b7d8e}.compare-winner{font-weight:900;color:#087a56}.compare-note{padding:9px 10px;border-radius:10px;background:#eef7ff;color:#24516f;font-size:11px;line-height:1.45}
.session-toast{font-size:11px;color:#3b5267}
body[data-qso-theme="night"] .multi-log-manager{background:linear-gradient(180deg,rgba(19,31,48,.96),rgba(12,24,39,.96));border-color:#31465f}.night .multi-log-row,body[data-qso-theme="night"] .multi-log-row{background:rgba(25,41,61,.9);border-color:#334c68}.night .multi-log-name,body[data-qso-theme="night"] .multi-log-name,.night .multi-log-head strong,body[data-qso-theme="night"] .multi-log-head strong{color:#e5eef7}.night .multi-log-sub,body[data-qso-theme="night"] .multi-log-sub,.night .multi-log-meta,body[data-qso-theme="night"] .multi-log-meta,.night .multi-log-count,body[data-qso-theme="night"] .multi-log-count{color:#9fb4c8}
@media(max-height:820px){.multi-log-list{max-height:125px}.multi-log-manager{padding:8px}.multi-log-row{padding:5px 6px}.multi-log-actions{margin-top:5px}}
@media(max-width:700px){.compare-selects{grid-template-columns:1fr}.compare-summary{grid-template-columns:1fr 1fr}.multi-log-actions{grid-template-columns:1fr}.performance-status{top:8px}}
.multi-log-manager.is-empty{margin:4px 0 6px;padding:0;border:0;background:transparent;box-shadow:none}
.multi-log-manager.is-empty .multi-log-head,.multi-log-manager.is-empty .multi-log-list,.multi-log-manager.is-empty #compareLogsBtn,.multi-log-manager.is-empty #saveSessionBtn{display:none}
.multi-log-manager.is-empty .multi-log-actions{grid-template-columns:1fr;margin-top:0}
.multi-log-manager.is-empty #restoreSessionBtn{min-height:30px;padding:5px 8px}

/* v0.8.2 — Multi-log placement, direct map legend and compact manager */
#tab-data>.multi-log-manager{margin:0 0 8px!important;border-left:4px solid #8b5cf6!important;box-shadow:0 4px 14px rgba(91,72,156,.08)!important}
#tab-data>.multi-log-manager .multi-log-head{margin-bottom:6px}
#tab-data>.multi-log-manager .multi-log-list{max-height:138px}
#tab-data>.multi-log-manager .multi-log-actions{margin-top:6px}
#tab-data>.multi-log-manager .multi-log-row{position:relative;overflow:hidden}
#tab-data>.multi-log-manager .multi-log-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:transparent}

.map-log-legend{position:absolute;z-index:650;top:12px;right:12px;display:flex;flex-direction:column;gap:5px;max-width:min(300px,34vw);padding:7px 8px;border:1px solid rgba(84,104,124,.26);border-radius:12px;background:rgba(255,255,255,.90);box-shadow:0 4px 15px rgba(16,38,58,.16);backdrop-filter:blur(5px);pointer-events:none}
.map-log-legend.hidden{display:none}
.map-log-chip{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;font-size:10px;color:#23384b}
.map-log-chip>i{width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.map-log-chip>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.map-log-chip>small{font-size:9px;color:#6b7d8d;font-weight:700;white-space:nowrap}
.map-log-more{align-self:flex-end;padding:1px 5px;border-radius:999px;background:#eef2ff;color:#5b4ab2;font-size:9px;font-weight:900}
body[data-qso-theme="night"] .map-log-legend{background:rgba(10,21,35,.91);border-color:#38516b;box-shadow:0 5px 18px rgba(0,0,0,.35)}
body[data-qso-theme="night"] .map-log-chip{color:#e4eef8}body[data-qso-theme="night"] .map-log-chip>small{color:#9db0c3}body[data-qso-theme="night"] .map-log-more{background:#1a2940;color:#c8d8f4}
@media(max-width:760px){.map-log-legend{top:10px;right:8px;max-width:46vw;padding:6px}.map-log-chip:nth-child(n+4){display:none}.map-log-chip{font-size:9px}.map-log-chip>b{font-size:9px}}


/* v0.8.3 — BOTA Design, original user-supplied bunker artwork */
body[data-qso-theme="bota"]{--qso-sidebar-bg1:#111827;--qso-sidebar-bg2:#09111f;--qso-sidebar-line:#33445f;--qso-top1:#111827;--qso-top2:#0a1220;--qso-design:#7dd3fc;--qso-design-soft:#16243a}
body[data-qso-theme="bota"]{background:#070d17;color:#e7eef8}
body[data-qso-theme="bota"] .topbar{color:#e7eef8!important;box-shadow:0 4px 18px rgba(0,0,0,.30)}
body[data-qso-theme="bota"] .brand-title{color:#f4f8ff!important}
body[data-qso-theme="bota"] .brand-sub{color:#91a4bd!important}
body[data-qso-theme="bota"] .brand-sub strong{color:#e6f4ff!important}
body[data-qso-theme="bota"] .brand-sub a,body[data-qso-theme="bota"] .app-credit a{color:#7dd3fc!important}
body[data-qso-theme="bota"] #sidebar.sidebar{color:#dbe7f5!important;box-shadow:8px 0 24px rgba(0,0,0,.18)}
body[data-qso-theme="bota"] #sidebar .tabs{background:rgba(7,13,23,.72)!important;border-bottom-color:#29384d!important}
body[data-qso-theme="bota"] #sidebar .tab{color:#8fa6bf!important}
body[data-qso-theme="bota"] #sidebar .tab[data-tab="data"]{color:#73c7ff!important}
body[data-qso-theme="bota"] #sidebar .tab[data-tab="display"]{color:#68d7a2!important}
body[data-qso-theme="bota"] #sidebar .tab[data-tab="stats"]{color:#c4a7ff!important}
body[data-qso-theme="bota"] #sidebar .tab[data-tab="data"].active{background:linear-gradient(180deg,#132c42,#102235)!important;color:#9bddff!important;box-shadow:inset 0 0 0 1px rgba(76,180,240,.22)}
body[data-qso-theme="bota"] #sidebar .tab[data-tab="display"].active{background:linear-gradient(180deg,#102d27,#0d241f)!important;color:#8ee9bd!important;box-shadow:inset 0 0 0 1px rgba(74,210,150,.20)}
body[data-qso-theme="bota"] #sidebar .tab[data-tab="stats"].active{background:linear-gradient(180deg,#291d43,#211735)!important;color:#d6c1ff!important;box-shadow:inset 0 0 0 1px rgba(170,125,255,.20)}
body[data-qso-theme="bota"] #tab-data.active{background:linear-gradient(180deg,rgba(20,48,69,.40),rgba(12,22,37,.18) 180px,transparent 430px)}
body[data-qso-theme="bota"] #tab-display.active{background:linear-gradient(180deg,rgba(18,53,42,.35),rgba(12,22,37,.18) 180px,transparent 430px)}
body[data-qso-theme="bota"] #tab-stats.active{background:linear-gradient(180deg,rgba(49,32,77,.37),rgba(12,22,37,.18) 180px,transparent 430px)}
body[data-qso-theme="bota"] #tab-data .section-title{color:#73c7ff!important}
body[data-qso-theme="bota"] #tab-display .section-title{color:#68d7a2!important}
body[data-qso-theme="bota"] #tab-stats .section-title{color:#c4a7ff!important}
body[data-qso-theme="bota"] label,body[data-qso-theme="bota"] .check{color:#b7c6d8!important}
body[data-qso-theme="bota"] .muted,body[data-qso-theme="bota"] .message.muted,body[data-qso-theme="bota"] .drop-zone span{color:#8294aa!important}
body[data-qso-theme="bota"] input[type=text],body[data-qso-theme="bota"] input[type=password],body[data-qso-theme="bota"] select{background:#0b1423!important;color:#e6eef8!important;border-color:#33445d!important;box-shadow:none!important}
body[data-qso-theme="bota"] input::placeholder{color:#60758d!important}
body[data-qso-theme="bota"] .drop-zone,body[data-qso-theme="bota"] .lookup-card,body[data-qso-theme="bota"] .quality-legend{background:#0c1626!important;border-color:#304159!important;color:#dce7f5!important}
body[data-qso-theme="bota"] .drop-zone.drag,body[data-qso-theme="bota"] .drop-zone:focus{background:#11263b!important;border-color:#58b9ef!important}
body[data-qso-theme="bota"] .lookup-main{color:#dce7f5!important}
body[data-qso-theme="bota"] .lookup-copy{color:#8396ad!important}
body[data-qso-theme="bota"] .lookup-status{background:#091321!important;border-color:#2c3d53!important;color:#9fb1c6!important}
body[data-qso-theme="bota"] .lookup-accounts{border-color:#2a3a50!important}
body[data-qso-theme="bota"] .lookup-accounts summary{color:#7dd3fc!important}
body[data-qso-theme="bota"] .btn{background:#172337!important;color:#e8f0fa!important;border-color:#3b4d65!important;box-shadow:0 2px 6px rgba(0,0,0,.18)!important}
body[data-qso-theme="bota"] .btn.ghost{background:#111c2d!important}
body[data-qso-theme="bota"] .btn.primary{background:#167447!important;border-color:#24905d!important;color:#fff!important}
body[data-qso-theme="bota"] .btn.danger{background:#321820!important;border-color:#70404a!important;color:#ffd5da!important}
body[data-qso-theme="bota"] .mini-summary div,body[data-qso-theme="bota"] .stat{background:#0b1423!important;border-color:#293950!important;color:#e7eef8!important}
body[data-qso-theme="bota"] .mini-summary span,body[data-qso-theme="bota"] .stat span{color:#8193a9!important}
body[data-qso-theme="bota"] .headline-card{background:linear-gradient(135deg,#0e1e31,#0a1422)!important;border-color:#2b4663!important;color:#edf5ff!important}
body[data-qso-theme="bota"] .headline-call{color:#f2f7ff!important}
body[data-qso-theme="bota"] .metric-list,body[data-qso-theme="bota"] .table-wrap,body[data-qso-theme="bota"] .rank-list{background:#0b1423!important;border-color:#293950!important;color:#dce7f5!important}
body[data-qso-theme="bota"] .metric-list div,body[data-qso-theme="bota"] .rank-item,body[data-qso-theme="bota"] th,body[data-qso-theme="bota"] td{border-color:#26364b!important}
body[data-qso-theme="bota"] .metric-list span,body[data-qso-theme="bota"] .rank-item .sub{color:#8496ac!important}
body[data-qso-theme="bota"] .table-wrap table{color:#dde8f5!important}
body[data-qso-theme="bota"] thead{background:#101c2d!important;color:#9bb0c7!important}
body[data-qso-theme="bota"] .legend-item{background:#0d1727!important;border-color:#2b3c53!important;color:#d9e5f2!important}
body[data-qso-theme="bota"] .app-credit{border-color:#293950!important;color:#75889f!important}
body[data-qso-theme="bota"] .sidebar-edge-toggle{background:#101c2d!important;color:#cfe4f8!important;border-color:#3b4e67!important;box-shadow:0 4px 15px rgba(0,0,0,.35)!important}
body[data-qso-theme="bota"] .sidebar-edge-toggle:hover{background:#17283e!important;color:#fff!important}
body[data-qso-theme="bota"] .design-launch{background:#101c2d!important;color:#e7eef8!important;border-color:#40536c!important;box-shadow:0 4px 12px rgba(0,0,0,.18)!important}
body[data-qso-theme="bota"] .design-launch:hover{background:#16263b!important}
body[data-qso-theme="bota"] .design-launch>strong{color:#7dd3fc!important}
body[data-qso-theme="bota"] .design-caret{color:#8fa3ba!important}
body[data-qso-theme="bota"] .design-menu{background:rgba(9,17,30,.97)!important;border-color:#394b63!important;box-shadow:0 18px 42px rgba(0,0,0,.48)!important}
body[data-qso-theme="bota"] .design-option{background:linear-gradient(180deg,#111d2e,#0d1726)!important;color:#dce8f5!important;border-color:#314158!important;box-shadow:0 2px 8px rgba(0,0,0,.18)!important}
body[data-qso-theme="bota"] .design-option:hover{background:#17263a!important}
body[data-qso-theme="bota"] .design-option.active{border-color:#4ba7dc!important;background:linear-gradient(180deg,#15324a,#11283d)!important;box-shadow:inset 0 0 0 1px rgba(75,167,220,.18),0 4px 12px rgba(0,0,0,.25)!important}
body[data-qso-theme="bota"] .smart-side-refresh{border-color:#305b79!important;background:linear-gradient(135deg,#10263a,#102033)!important;color:#8fd8ff!important}
body[data-qso-theme="bota"] .smart-side-clear{border-color:#68404a!important;background:linear-gradient(135deg,#2a1720,#251923)!important;color:#ffb9c2!important}
body[data-qso-theme="bota"] .top-actions .btn,body[data-qso-theme="bota"] .top-actions select{background:#131f31!important;color:#e7eef8!important;border-color:#40526a!important}
body[data-qso-theme="bota"] .top-actions .status-pill{box-shadow:none!important}
body[data-qso-theme="bota"] #map .leaflet-tile-pane{filter:brightness(.62) saturate(.72) contrast(1.08)}
body[data-qso-theme="bota"] #map{background:#07111e!important}
body[data-qso-theme="bota"] .leaflet-control-zoom a,body[data-qso-theme="bota"] .leaflet-control-attribution{background:#0e1929!important;color:#d7e3f1!important;border-color:#33445c!important}
body[data-qso-theme="bota"] .leaflet-control-attribution a{color:#7dd3fc!important}
body[data-qso-theme="bota"] .import-format-chips span{background:#101e31;border-color:#35516d;color:#8ed7ff!important}
body[data-qso-theme="bota"] .import-report{background:linear-gradient(145deg,#0d1a2b,#0a1524);border-color:#30465e;box-shadow:none}
body[data-qso-theme="bota"] .import-head strong,body[data-qso-theme="bota"] .import-report summary{color:#7dd3fc}
body[data-qso-theme="bota"] .import-head span,body[data-qso-theme="bota"] .import-file>span{color:#879bb0}
body[data-qso-theme="bota"] .import-mini span,body[data-qso-theme="bota"] .import-file{background:#0b1423;border-color:#2b3e54;color:#dce8f5}
body[data-qso-theme="bota"] .import-file b{color:#dce8f5}
body[data-qso-theme="bota"] .import-format{background:#12324a;color:#8fdbff!important}
body[data-qso-theme="bota"] .import-file.bad{background:#2a171c;border-color:#70404a}
body[data-qso-theme="bota"] .import-file.bad b,body[data-qso-theme="bota"] .import-file.bad span{color:#ffb7bf}
body[data-qso-theme="bota"] .import-summary-main strong,body[data-qso-theme="bota"] .import-more summary{color:#7dd3fc!important}
body[data-qso-theme="bota"] .import-summary-main>span{color:#879bb0!important}
body[data-qso-theme="bota"] .import-more[open]{border-top-color:#2b3e54!important}
body[data-qso-theme="bota"] .log-tool-btn{border-color:#304b65;background:linear-gradient(135deg,#13283a,#0f2030);color:#b9dbf4}
body[data-qso-theme="bota"] .log-tool-health.is-ok{border-color:#315e48;background:linear-gradient(135deg,#13291f,#10251d);color:#9ce0b5}
body[data-qso-theme="bota"] .log-tool-health.is-warn{border-color:#725d2d;background:linear-gradient(135deg,#2b2414,#271f11);color:#f4d487}
body[data-qso-theme="bota"] .log-tool-health.is-bad{border-color:#6c3940;background:linear-gradient(135deg,#2d171c,#261419);color:#ffb6bf}
body[data-qso-theme="bota"] .csv-map-note,body[data-qso-theme="bota"] .diag-summary,body[data-qso-theme="bota"] .diag-item{background:#102131;color:#d8e8f4;border-color:#2a455c}
body[data-qso-theme="bota"] .csv-map-row{color:#d8e8f4}body[data-qso-theme="bota"] .csv-map-row select{background:#0f1d2a;color:#e7f2fa;border-color:#35546c}body[data-qso-theme="bota"] .diag-copy strong,body[data-qso-theme="bota"] .diag-item>b{color:#e7f2fa}body[data-qso-theme="bota"] .diag-copy span,body[data-qso-theme="bota"] .diag-copy small{color:#9db5c7}
body[data-qso-theme="bota"] .multi-log-manager{background:linear-gradient(180deg,rgba(19,31,48,.96),rgba(12,24,39,.96));border-color:#31465f}body[data-qso-theme="bota"] .multi-log-row,body[data-qso-theme="bota"] .multi-log-row{background:rgba(25,41,61,.9);border-color:#334c68}body[data-qso-theme="bota"] .multi-log-name,body[data-qso-theme="bota"] .multi-log-name,body[data-qso-theme="bota"] .multi-log-head strong,body[data-qso-theme="bota"] .multi-log-head strong{color:#e5eef7}body[data-qso-theme="bota"] .multi-log-sub,body[data-qso-theme="bota"] .multi-log-sub,body[data-qso-theme="bota"] .multi-log-meta,body[data-qso-theme="bota"] .multi-log-meta,body[data-qso-theme="bota"] .multi-log-count,body[data-qso-theme="bota"] .multi-log-count{color:#9fb4c8}
body[data-qso-theme="bota"] .map-log-legend{background:rgba(10,21,35,.91);border-color:#38516b;box-shadow:0 5px 18px rgba(0,0,0,.35)}
body[data-qso-theme="bota"] .map-log-chip{color:#e4eef8}body[data-qso-theme="bota"] .map-log-chip>small{color:#9db0c3}body[data-qso-theme="bota"] .map-log-more{background:#1a2940;color:#c8d8f4}

body[data-qso-theme="bota"]{background:#071421!important;color:#d5e9fb!important}
body[data-qso-theme="bota"] #sidebar.sidebar{
  background:
    radial-gradient(ellipse at center bottom,rgba(118,182,239,.18) 0%,rgba(118,182,239,.10) 24%,rgba(118,182,239,0) 58%),
    linear-gradient(180deg,rgba(9,27,43,.97) 0%,rgba(10,29,46,.93) 46%,rgba(9,26,41,.72) 72%,rgba(7,19,33,.18) 100%),
    url('../images/bota-bunker.jpg') center calc(100% - 12px) / 98% auto no-repeat,
    #081827!important;
  border-right:1px solid #3a5874!important;box-shadow:7px 0 25px rgba(0,0,0,.28)!important;
}
body[data-qso-theme="bota"] #sidebar .tabs{background:rgba(12,31,48,.91)!important;border-color:#3c5b76!important}
body[data-qso-theme="bota"] #sidebar .tab{color:#a7c7e8!important}
body[data-qso-theme="bota"] #sidebar .tab.active{background:linear-gradient(180deg,#203b55,#112b41)!important;color:#eaf6ff!important;box-shadow:inset 0 -3px 0 #83b9ef!important}
body[data-qso-theme="bota"] .design-launch{background:linear-gradient(115deg,#152e45,#0b1e31)!important;border-color:#5b7c9b!important;color:#d8eaff!important}
body[data-qso-theme="bota"] .design-launch>strong{color:#a9d5ff!important}
body[data-qso-theme="bota"] .design-menu{background:#0b1d30!important;border-color:#456987!important}
body[data-qso-theme="bota"] .design-option{background:#10273c!important;color:#dceeff!important;border-color:#385670!important}
body[data-qso-theme="bota"] .design-option.active{background:#1b3d5e!important;border-color:#88bdee!important}
body[data-qso-theme="bota"] #tab-data.active,body[data-qso-theme="bota"] #tab-display.active,body[data-qso-theme="bota"] #tab-stats.active{background:transparent!important}
body[data-qso-theme="bota"] #sidebar .section-title{color:#a5d7ff!important}
body[data-qso-theme="bota"] #sidebar .drop-zone,body[data-qso-theme="bota"] #sidebar .multi-log-manager{background:rgba(10,28,45,.93)!important;border-color:#385974!important}
body[data-qso-theme="bota"] #sidebar .multi-log-row{background:rgba(20,44,66,.95)!important;border-color:#3b5b75!important}
body[data-qso-theme="bota"] #sidebar .multi-log-head strong,body[data-qso-theme="bota"] #sidebar .multi-log-name{color:#e4f3ff!important}
body[data-qso-theme="bota"] #sidebar .multi-log-sub,body[data-qso-theme="bota"] #sidebar .multi-log-meta{color:#a7bfd3!important}
body[data-qso-theme="bota"] #sidebar .log-tool-btn{background:#17334b!important;color:#c3e5ff!important;border-color:#48708b!important}
body[data-qso-theme="bota"] #map .leaflet-tile-pane{filter:brightness(.70) saturate(.78) contrast(1.07)}
body[data-qso-theme="bota"] #map{background:#071827!important}
body[data-qso-theme="bota"] .topbar{box-shadow:0 3px 16px rgba(0,0,0,.26)!important}
body[data-qso-theme="bota"] .brand-title,body[data-qso-theme="bota"] .brand-sub strong{color:#e6f4ff!important}
body[data-qso-theme="bota"] .brand-sub{color:#9ebbd4!important}
body[data-qso-theme="bota"] .brand-sub a{color:#99cfff!important}
.brand-theme-logo{display:none;align-items:center;justify-content:center;margin-left:14px;padding:4px 10px;border-radius:12px;border:1px solid rgba(125,211,252,.24);background:linear-gradient(135deg,rgba(10,28,45,.78),rgba(14,34,54,.58));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 6px 16px rgba(0,0,0,.16)}
.brand-theme-logo img{display:block;height:38px;width:auto;opacity:.96;filter:drop-shadow(0 2px 6px rgba(0,0,0,.28))}
body[data-qso-theme="bota"] .brand-theme-logo{display:flex}
@media(max-width:900px){.brand-theme-logo{margin-left:10px;padding:4px 8px}.brand-theme-logo img{height:32px}}
@media(max-width:720px){.brand-theme-logo{display:none!important}}
body[data-qso-theme="bota"] .design-picker,body[data-qso-theme="bota"] .panel,body[data-qso-theme="bota"] .section-card,body[data-qso-theme="bota"] .table-wrap,body[data-qso-theme="bota"] .rank-list{position:relative;z-index:1}
@media(max-width:650px){body[data-qso-theme="bota"] #sidebar.sidebar{background:radial-gradient(ellipse at center bottom,rgba(118,182,239,.17) 0%,rgba(118,182,239,.09) 24%,rgba(118,182,239,0) 58%),linear-gradient(180deg,rgba(9,27,43,.97) 0%,rgba(10,29,46,.93) 46%,rgba(9,26,41,.68) 72%,rgba(7,19,33,.14) 100%),url('../images/bota-bunker.jpg') center calc(100% - 22px) / 96% auto no-repeat,#081827!important}}

/* v0.8.4 – BOTA Design Polish: affects BOTA only */
body[data-qso-theme="bota"] .brand-theme-logo{
  display:flex!important; margin-left:16px; padding:0; border:0;
  border-radius:0; background:transparent; box-shadow:none;
  flex:0 0 auto; align-self:center;
}
body[data-qso-theme="bota"] .brand-theme-logo img{
  height:51px;max-width:82px;width:auto;object-fit:contain;opacity:1;
  filter:drop-shadow(0 1px 3px rgba(153,205,248,.22));
}
body[data-qso-theme="bota"] #tab-data .app-credit{display:none!important}
body[data-qso-theme="bota"] #map .leaflet-tile-pane{
  filter:brightness(.64) saturate(.74) contrast(1.07)!important;
}
body[data-qso-theme="bota"] #sidebar.sidebar{
  background:
    radial-gradient(ellipse at center bottom,rgba(94,162,224,.07) 0%,rgba(94,162,224,0) 61%),
    linear-gradient(180deg,rgba(9,27,43,.97) 0%,rgba(10,29,46,.92) 45%,rgba(9,26,41,.51) 72%,rgba(7,19,33,.02) 100%),
    url('../images/bota-bunker.jpg') center calc(100% - 12px) / 98% auto no-repeat,
    #081827!important;
}
@media(max-width:650px){
  body[data-qso-theme="bota"] #sidebar.sidebar{
    background:
      radial-gradient(ellipse at center bottom,rgba(94,162,224,.06),transparent 61%),
      linear-gradient(180deg,rgba(9,27,43,.97) 0%,rgba(10,29,46,.92) 45%,rgba(9,26,41,.48) 72%,rgba(7,19,33,.01) 100%),
      url('../images/bota-bunker.jpg') center calc(100% - 22px) / 96% auto no-repeat,
      #081827!important;
  }
  body[data-qso-theme="bota"] .brand-theme-logo img{height:41px;max-width:65px}
}
@media(max-width:720px){body[data-qso-theme="bota"] .brand-theme-logo{display:none!important}}

/* v0.8.5 – BOTA Layout Cleanup. Independent scrolling content and visible artwork footer. */
body[data-qso-theme="bota"] #sidebar.sidebar{
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
  background:#081827!important;min-height:0!important;
}
body[data-qso-theme="bota"] #sidebar .tabs,
body[data-qso-theme="bota"] #sidebar .design-picker{flex:0 0 auto!important}
body[data-qso-theme="bota"] #sidebar .tab-panel{min-height:0!important}
body[data-qso-theme="bota"] #sidebar .tab-panel.active{
  flex:1 1 auto!important;overflow-x:hidden!important;overflow-y:auto!important;
  scrollbar-width:thin;scrollbar-color:#4c7394 #0a1b2b;
  padding-bottom:22px!important;
}
body[data-qso-theme="bota"] #sidebar .tab-panel:not(.active){display:none!important}
.bota-art-footer{display:none}
body[data-qso-theme="bota"] #sidebar .bota-art-footer{
  display:block!important;flex:0 0 clamp(145px,21vh,205px)!important;
  width:100%!important;pointer-events:none!important;
  border-top:1px solid rgba(117,173,216,.18);
  background:linear-gradient(180deg,rgba(8,24,39,.06),rgba(8,24,39,.01)),url('../images/bota-bunker.jpg') center bottom/100% auto no-repeat,#081827;
  box-shadow:0 -11px 25px rgba(5,18,31,.18);
}
/* v0.9.3.1: NOTE content is controlled by its <details> section, not permanently hidden in BOTA. */
body[data-qso-theme="bota"] #tab-display .smart-fold[open] > .display-note{display:block!important;color:#c4dbee!important;background:rgba(13,34,52,.90);border:1px solid #3b5c76;border-radius:9px;padding:9px 11px;margin:6px 0 2px}
body[data-qso-theme="bota"] #tab-display .smart-fold[open] > .display-note .muted{color:#c4dbee!important}
body[data-qso-theme="bota"] #tab-data .append-mode-row{
  border:1px solid #31516c;border-radius:9px;background:rgba(18,43,64,.82);
  margin:7px 2px 12px;padding:7px 10px;
}
body[data-qso-theme="bota"] #tab-data .append-mode-row .check{margin:0!important}
body[data-qso-theme="bota"] #tab-stats .table-wrap:has(#bandTable){max-height:152px;overflow:auto!important}
body[data-qso-theme="bota"] #tab-stats #bandTable th,
body[data-qso-theme="bota"] #tab-stats #bandTable td{padding-top:5px!important;padding-bottom:5px!important}
body[data-qso-theme="bota"] #tab-stats #topDx{
  max-height:175px!important;overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin;scrollbar-color:#4c7394 #0c2033;
}
body[data-qso-theme="bota"] #tab-stats .rank-item{padding-top:7px!important;padding-bottom:7px!important}
@media(max-height:700px){body[data-qso-theme="bota"] #sidebar .bota-art-footer{flex-basis:135px!important}}

/* v0.8.6 — BOTA visibility, progress and bunker-blue palette */
body[data-qso-theme="bota"] #sidebar .tab-panel.active{
  scrollbar-width:none!important;
  scrollbar-color:transparent transparent!important;
  overscroll-behavior:contain;
}
body[data-qso-theme="bota"] #sidebar .tab-panel.active::-webkit-scrollbar{width:0!important;height:0!important}
body[data-qso-theme="bota"] #sidebar .tab-panel.active:focus-within{scrollbar-width:thin!important;scrollbar-color:#6697bb #0a1b2b!important}
body[data-qso-theme="bota"] #sidebar .tab-panel.active:focus-within::-webkit-scrollbar{width:5px!important}
body[data-qso-theme="bota"] #sidebar .tab-panel.active:focus-within::-webkit-scrollbar-thumb{background:#6697bb;border-radius:9px}
body[data-qso-theme="bota"] #sidebar .btn.danger,
body[data-qso-theme="bota"] #sidebar #clearBtn,
body[data-qso-theme="bota"] #sidebar .smart-side-clear{
  background:linear-gradient(130deg,#22435e,#173149)!important;
  border-color:#547e9f!important;
  color:#d3edff!important;
  box-shadow:inset 0 1px 0 rgba(195,225,255,.08)!important;
}
body[data-qso-theme="bota"] #sidebar .btn.danger:hover,
body[data-qso-theme="bota"] #sidebar #clearBtn:hover{background:linear-gradient(130deg,#305775,#1b3b57)!important;border-color:#83afd1!important}
body[data-qso-theme="bota"] #sidebar .smart-side-clear:disabled{opacity:.52!important}
body[data-qso-theme="bota"] .performance-status{background:rgba(10,28,45,.96);border:1px solid #577fa2;color:#e3f3ff}
body[data-qso-theme="bota"] .performance-track i{background:linear-gradient(90deg,#518bc1,#b3e5ff)}

/* v0.8.7 – BOTA compact controls, adaptive visible scrolling. */
body[data-qso-theme="bota"] #tab-data .append-mode-row{margin:4px 8px 9px!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body[data-qso-theme="bota"] #tab-data .append-mode-row .check{display:flex!important;align-items:center;gap:6px;font-size:11px!important;line-height:1.35!important;color:#bddbf0!important}
body[data-qso-theme="bota"] #tab-data .append-mode-row input{flex:0 0 auto;margin:0!important;accent-color:#76b7e1}
body[data-qso-theme="bota"].qso-has-logs #sidebar .tab-panel.active{overflow-y:auto!important;scrollbar-width:thin!important;scrollbar-color:#789fbd #0b2031!important;scrollbar-gutter:stable}
body[data-qso-theme="bota"].qso-has-logs #sidebar .tab-panel.active::-webkit-scrollbar{width:7px!important;height:7px!important}
body[data-qso-theme="bota"].qso-has-logs #sidebar .tab-panel.active::-webkit-scrollbar-thumb{background:#789fbd!important;border-radius:10px!important}
body[data-qso-theme="bota"].qso-has-logs #sidebar .tab-panel.active::-webkit-scrollbar-track{background:#0b2031!important}
body[data-qso-theme="bota"]:not(.qso-has-logs) #sidebar .tab-panel.active{overflow-y:auto!important;scrollbar-width:none!important}
body[data-qso-theme="bota"]:not(.qso-has-logs) #sidebar .tab-panel.active::-webkit-scrollbar{width:0!important}
body[data-qso-theme="bota"] #tab-stats .table-wrap:has(#bandTable){max-height:none!important;overflow:visible!important}
body[data-qso-theme="bota"] #tab-stats #topDx{max-height:none!important;overflow:visible!important}
body[data-qso-theme="bota"]:not(.qso-has-logs) #sidebar .bota-art-footer{flex-basis:clamp(105px,16vh,165px)!important}
body[data-qso-theme="bota"] #sidebar .tab-panel.active{padding-bottom:32px!important}
body[data-qso-theme="bota"] #sidebar .tab-panel.active > :last-child{margin-bottom:10px!important}
body[data-qso-theme="bota"] #sidebar .section-title{color:#b4d9f4!important;border-color:rgba(125,172,208,.28)!important}
body[data-qso-theme="bota"] #sidebar .tab.active{background:linear-gradient(180deg,#294966,#142f48)!important;color:#e6f5ff!important;border-color:#82b9df!important}
body[data-qso-theme="bota"] #sidebar input:focus-visible,body[data-qso-theme="bota"] #sidebar select:focus-visible,body[data-qso-theme="bota"] #sidebar button:focus-visible{outline:2px solid #9bd0f2!important;outline-offset:2px}

/* v0.8.8 — BOTA footer: correctly fitted artwork; adaptive scrolling stays intact. */
body[data-qso-theme="bota"] #sidebar .bota-art-footer{
  flex:0 0 clamp(196px,25vh,245px)!important;
  min-height:0!important;
  border-top:0!important;
  background:
    linear-gradient(180deg,#081827 0%,rgba(8,24,39,.22) 14%,rgba(8,24,39,0) 32%),
    url('../images/bota-footer-fit.jpg') center bottom/100% 100% no-repeat,
    #081827!important;
  box-shadow:none!important;
}
@media(max-height:700px){
  body[data-qso-theme="bota"] #sidebar .bota-art-footer{
    flex-basis:clamp(145px,26vh,190px)!important;
  }
}
body[data-qso-theme="bota"]:not(.qso-has-logs) #sidebar .bota-art-footer{
  flex-basis:clamp(196px,25vh,245px)!important;
}
@media(max-height:700px){
  body[data-qso-theme="bota"]:not(.qso-has-logs) #sidebar .bota-art-footer{
    flex-basis:clamp(145px,26vh,190px)!important;
  }
}
/* If a panel is longer than the space above the footer, keep it scrollable. */
body[data-qso-theme="bota"] #sidebar .tab-panel.active{
  min-height:0!important;overflow-y:auto!important;
}

/* v0.8.9 – Smart Sidebar, shared across all themes */
.topbar{overflow:visible!important}
.topbar-design-picker{flex:0 0 auto;position:relative;z-index:2000;margin:0 12px!important;width:clamp(142px,10vw,172px)}
.topbar-design-picker .design-launch{min-height:34px;padding:6px 9px;font-size:11px;gap:6px;white-space:nowrap}
.topbar-design-picker .design-launch>strong{font-size:11px;max-width:110px;margin-left:auto}
.topbar-design-picker .design-launch [data-i18n="design.title"]{display:none}
.topbar-design-picker .design-menu{position:absolute!important;z-index:3000;left:0;right:auto;top:calc(100% + 7px);min-width:205px;width:max-content;max-width:min(275px,90vw)}
.topbar-design-picker .design-option{width:100%}
.smart-fold{min-width:0;display:block;margin:0 0 9px}
.smart-fold>summary.section-title{display:flex!important;align-items:center;justify-content:space-between;gap:6px;list-style:none!important;cursor:pointer;user-select:none;margin:9px 0 4px!important;padding:7px 7px!important;border-radius:8px}
.smart-fold>summary.section-title::-webkit-details-marker{display:none}
.smart-fold>summary.section-title:after{content:'⌄';font-size:16px;font-weight:900;color:inherit;opacity:.78;line-height:1;transition:transform .16s ease}
.smart-fold[open]>summary.section-title:after{transform:rotate(180deg)}
.smart-fold>summary.section-title:hover{background:rgba(120,170,206,.12)}
.smart-fold-content{min-width:0;padding:0 1px 7px}
.smart-fold:not([open]){margin-bottom:2px}
/* Avoid hiding details summaries via legacy styling. */
body[data-qso-theme="bota"] .smart-fold>summary.section-title{color:#b4d9f4!important}
body[data-qso-theme="bota"] #sidebar .tab-panel.active{scrollbar-gutter:auto}
@media(max-width:1250px){.topbar-design-picker{width:143px;margin:0 6px!important}.topbar-design-picker .design-launch-icon{display:none}}
@media(max-width:880px){.topbar-design-picker{width:115px}.topbar-design-picker .design-launch>strong{max-width:90px}.topbar-design-picker .design-launch{padding:5px}}
@media(max-width:650px){.topbar-design-picker{width:112px;margin:0 4px!important}.topbar-design-picker .design-menu{position:fixed!important;top:62px!important;left:8px!important;right:auto!important;max-width:270px!important;margin:0!important}}

/* v0.8.9.1 – BOTA visibility polish + bunker picker icon */
.design-option-icon .bota-theme-icon{width:24px;height:24px;display:block;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.16))}
body[data-qso-theme="bota"] .lookup-summary .lookup-summary-title,
body[data-qso-theme="bota"] .lookup-summary-title{color:#acd9f6!important;opacity:1!important;text-shadow:none!important}
body[data-qso-theme="bota"] .lookup-summary-meta,
body[data-qso-theme="bota"] #lookupCompactStatus{color:#a3c6df!important;opacity:1!important}
body[data-qso-theme="bota"] .lookup-summary{color:#b9dff9!important}
body[data-qso-theme="bota"] .lookup-summary::marker{color:#a9d8f5!important}

/* v0.9.0 – BOTA smart statistics integration. Unchanged in other themes. */
body[data-qso-theme="bota"] .ai-modal{border:1px solid #597e9d!important;box-shadow:0 28px 80px rgba(3,14,27,.65)!important}
body[data-qso-theme="bota"] .ai-modal .modal-head{background:linear-gradient(110deg,#0d2235,#204461 70%,#31658b)!important;border-bottom:1px solid #6286a3!important;padding-right:145px!important}
body[data-qso-theme="bota"] .ai-modal .modal-head::after{width:113px;height:75px;right:24px;top:8px;border-radius:0;background:url('../images/okbota-logo.png') center/contain no-repeat!important;opacity:.95}
body[data-qso-theme="bota"] .ai-modal .modal-body{background:linear-gradient(180deg,#0d2032,#102c41)!important;color:#d8e9f7!important}
body[data-qso-theme="bota"] .ai-modal .ai-wrap{color:#daeaf6!important}
body[data-qso-theme="bota"] .ai-modal .ai-card,body[data-qso-theme="bota"] .ai-modal .ai-metric,body[data-qso-theme="bota"] .ai-modal .ai-model-result{background:linear-gradient(155deg,#17334b,#102638)!important;border-color:#41627f!important;box-shadow:0 2px 8px rgba(0,0,0,.16)!important}
body[data-qso-theme="bota"] .ai-modal .ai-metric strong,body[data-qso-theme="bota"] .ai-modal .ai-card h3,body[data-qso-theme="bota"] .ai-modal .ai-card h4,body[data-qso-theme="bota"] .ai-modal .ai-mini-list strong,body[data-qso-theme="bota"] .ai-modal .ai-chip-list b{color:#d7efff!important}
body[data-qso-theme="bota"] .ai-modal .ai-metric span,body[data-qso-theme="bota"] .ai-modal .ai-metric small,body[data-qso-theme="bota"] .ai-modal .ai-card p,body[data-qso-theme="bota"] .ai-modal .ai-section-head span{color:#9ebdd6!important}
body[data-qso-theme="bota"] .ai-modal .ai-list,body[data-qso-theme="bota"] .ai-modal .ai-mini-list span,body[data-qso-theme="bota"] .ai-modal .ai-distance-row,body[data-qso-theme="bota"] .ai-modal .ai-summary{color:#cbdeee!important}
body[data-qso-theme="bota"] .ai-modal .ai-privacy,body[data-qso-theme="bota"] .ai-modal .ai-active-filter{background:#183b51!important;color:#c7e7f9!important;border-color:#43718e!important}
body[data-qso-theme="bota"] .ai-modal .ai-table-wrap,body[data-qso-theme="bota"] .ai-modal .ai-mini-list,body[data-qso-theme="bota"] .ai-modal .ai-empty{background:#102738!important;border-color:#42607b!important;color:#cce2f3!important}
body[data-qso-theme="bota"] .ai-modal .ai-table{background:#102738!important;color:#d7e8f5!important}
body[data-qso-theme="bota"] .ai-modal .ai-table th{background:#23445d!important;color:#c1ddf0!important}
body[data-qso-theme="bota"] .ai-modal .ai-table td,body[data-qso-theme="bota"] .ai-modal .ai-table th,body[data-qso-theme="bota"] .ai-modal .ai-mini-list>div{border-color:#365772!important}
body[data-qso-theme="bota"] .ai-modal .ai-table tbody tr:hover{background:#23425b!important}
body[data-qso-theme="bota"] .ai-modal .ai-chip-list>span{background:#19364c!important;border-color:#416783!important;color:#c5dceb!important}
body[data-qso-theme="bota"] .ai-modal .ai-distance-track,body[data-qso-theme="bota"] .ai-modal .ai-hour-bar{background:#29445b!important}
body[data-qso-theme="bota"] .ai-modal .ai-hour-bar i,body[data-qso-theme="bota"] .ai-modal .ai-distance-track i{background:linear-gradient(180deg,#a1d6fa,#447fa8)!important}
body[data-qso-theme="bota"] .ai-modal .ai-tool-btn{background:#1e425d!important;border:1px solid #6385a1!important;color:#e0f2ff!important}
@media(max-width:700px){body[data-qso-theme="bota"] .ai-modal .modal-head{padding-right:94px!important}body[data-qso-theme="bota"] .ai-modal .modal-head::after{width:70px;right:12px}}

/* v0.9.4 – responsive header and mobile map/sidebar; all themes */
.responsive-more-actions{display:contents}
.responsive-more-btn{display:none!important}
.responsive-tools-menu[hidden]{display:none!important}
.topbar .top-actions{min-width:0;display:flex;align-items:center;gap:5px!important}
.topbar .top-actions .btn{white-space:nowrap!important;flex-shrink:0;line-height:1.15!important}
.topbar .brand{min-width:0;flex-shrink:1}
.topbar .brand-sub{max-width:275px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1600px){
  .topbar{gap:7px!important;padding-left:11px!important;padding-right:11px!important}
  .topbar .brand-title{font-size:18px!important}
  .topbar .brand-sub{font-size:10px!important}
  .topbar .top-actions .btn{padding:8px 9px!important;font-size:12px!important;min-height:34px!important}
  .topbar-design-picker{width:132px!important;margin:0 4px!important}
  .topbar .brand-theme-logo img{height:34px}
}
@media(max-width:1450px){
  .responsive-more-btn{display:inline-flex!important;align-items:center;justify-content:center}
  .responsive-more-actions{display:flex;flex-direction:column;gap:6px}
  .responsive-tools-menu:not([hidden]){display:flex!important;position:absolute;top:calc(100% + 5px);right:10px;z-index:6000;flex-direction:column;gap:7px;min-width:185px;max-width:min(300px,90vw);padding:10px;border:1px solid #496078;border-radius:13px;background:#102133;box-shadow:0 12px 35px #0008}
  .responsive-tools-menu .btn{display:flex!important;justify-content:flex-start;width:100%;min-height:39px!important;color:#e8f4ff!important;background:#1b344d!important;border:1px solid #435f7b!important}
  .topbar{position:relative;flex-wrap:nowrap!important}
  .topbar .top-actions{margin-left:auto}
  .topbar .top-actions .status-pill{font-size:10px!important;padding:5px 7px!important;white-space:nowrap}
}
@media(max-width:1050px){
  .topbar .brand-sub{max-width:180px}
  .topbar .brand-theme-logo{display:none!important}
  .topbar .top-actions .btn{padding:7px!important}
  .topbar .top-actions #fitBtn span{display:none}
  .topbar-design-picker{width:114px!important}
}
@media(max-width:700px){
  html,body{height:100%;overflow:hidden!important}
  .topbar{height:56px!important;min-height:56px!important;padding:5px 8px!important;gap:4px!important;flex-wrap:nowrap!important}
  .topbar .brand{gap:5px!important;flex:1 1 auto;min-width:0}
  .topbar .brand-mark{font-size:23px!important}
  .topbar .brand-title{font-size:13px!important;white-space:nowrap}
  .topbar .brand-sub{display:none!important}
  .topbar-design-picker{width:97px!important;min-width:97px!important;margin:0 2px!important}
  .topbar-design-picker .design-launch{padding:5px!important;font-size:10px!important}
  .topbar-design-picker .design-launch>strong{font-size:10px!important;max-width:77px!important}
  .topbar .top-actions{flex:0 0 auto;gap:3px!important}
  .topbar .top-actions .status-pill,.topbar .top-actions #exportBtn,.topbar .top-actions #fitBtn,.topbar .top-actions #reportPdfBtn,.topbar .top-actions .lang-switch,.topbar .top-actions #qrzAdminBtn{display:none!important}
  .topbar .top-actions #sidebarToggleBtn{font-size:0!important;min-width:39px!important;height:38px!important}
  .topbar .top-actions #sidebarToggleBtn::before{content:'☰';font-size:21px!important}
  .topbar .top-actions #sidebarToggleBtn span{display:none!important}
  .topbar .top-actions #responsiveMoreBtn{font-size:20px!important;min-width:38px!important;height:38px!important}
  .topbar .top-actions #responsiveMoreBtn span{display:none!important}
  .responsive-tools-menu:not([hidden]){right:8px;top:54px;max-height:calc(100dvh - 75px);overflow:auto}
  .responsive-tools-menu::before{content:'Další nástroje';font-size:12px;font-weight:800;color:#cce6fb;padding:2px 4px}
  .responsive-tools-menu #exportBtn,.responsive-tools-menu #fitBtn,.responsive-tools-menu #reportPdfBtn,.responsive-tools-menu .lang-switch,.responsive-tools-menu #qrzAdminBtn{display:flex!important}
  .app-shell{position:relative!important;display:block!important;height:calc(100dvh - 56px)!important;min-height:0!important;overflow:hidden!important}
  #map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important}
  #sidebar.sidebar{position:absolute!important;z-index:1050!important;top:0!important;left:0!important;bottom:0!important;height:100%!important;width:min(355px,90vw)!important;max-width:90vw!important;transform:translateX(0)!important;transition:transform .22s ease!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding-bottom:env(safe-area-inset-bottom)!important}
  body.sidebar-collapsed #sidebar.sidebar{transform:translateX(-105%)!important;pointer-events:none!important}
  #sidebarEdgeBtn{position:fixed!important;left:0!important;top:calc(50% + 25px)!important;z-index:1080!important;width:25px!important}
  body:not(.sidebar-collapsed) #sidebarEdgeBtn{left:min(355px,90vw)!important;transform:translateX(-100%)!important}
  #sidebar .tab-panel.active{min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  .ai-modal,.help-modal{width:96vw!important;max-width:96vw!important;max-height:90dvh!important}
}
@media(max-width:390px){.topbar-design-picker{width:82px!important;min-width:82px!important}.topbar .brand-title{font-size:12px!important}.topbar .top-actions #sidebarToggleBtn{min-width:34px!important}.topbar .top-actions #responsiveMoreBtn{min-width:34px!important}}
