/* QRSENAL v0.4.3 adaptive analytics selector */
.analytics-native-select{display:none!important}
.analytics-workbench{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;align-items:start;margin-top:14px}
.analytics-workbench[data-mode="overview"]{grid-template-columns:minmax(0,1fr)}
.analytics-workbench[data-mode="overview"] .qr-analytics-rail{display:none}
.analytics-stage{min-width:0;position:relative}
.analytics-snapshot{position:absolute;inset:0;z-index:3;pointer-events:none;background:#090b10;opacity:1;transition:opacity .12s ease}
.analytics-snapshot.leaving{opacity:0}
.analytics-updating{visibility:hidden}
.qr-analytics-rail{position:sticky;top:16px;border:1px solid #27303d;background:#11161e;border-radius:16px;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.18)}
.qr-rail-head{padding:15px 15px 9px}.qr-rail-head strong{display:block;font-size:15px}.qr-rail-head small{display:block;margin-top:3px;color:#8794a7;font-size:11px}
.qr-rail-tools{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:7px;padding:0 10px 9px}
.qr-rail-tools input,.qr-rail-tools select{height:38px;border:1px solid #2b3544;background:#0d1219;color:#f3f6fb;border-radius:10px;padding:0 10px;font:inherit;font-size:12px;outline:none}
.qr-rail-tools input:focus,.qr-rail-tools select:focus{border-color:#6886ef;box-shadow:0 0 0 3px rgba(104,134,239,.12)}
.qr-rail-list{max-height:calc(100vh - 280px);overflow:auto;padding:0 7px 8px;scrollbar-width:thin}
.qr-rail-item{width:100%;min-height:60px;display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:8px 9px;border:1px solid transparent;border-radius:11px;background:transparent;color:inherit;text-align:left;cursor:pointer;transition:background-color .1s linear,border-color .1s linear;transform:none!important;-webkit-tap-highlight-color:transparent}
.qr-rail-item:hover{background:#171e29;border-color:#2f3a4a}.qr-rail-item:active{background:#1b2431}.qr-rail-item.selected,.qr-rail-item.selected:hover{background:#1a2746;border-color:#5578ed;box-shadow:inset 3px 0 0 #7190ff}
.qr-rail-thumb{width:42px;height:42px;border-radius:8px;background:#fff;display:grid;place-items:center;overflow:hidden}.qr-rail-thumb canvas,.qr-rail-thumb img{display:block!important;width:38px!important;height:38px!important}
.qr-rail-copy{min-width:0}.qr-rail-copy strong{display:block;font-size:13px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qr-rail-copy small{display:block;margin-top:4px;color:#7f8c9f;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qr-rail-stat{text-align:right;min-width:42px}.qr-rail-stat b{display:block;font-size:12px}.qr-rail-stat small{display:block;color:#788598;font-size:9px;margin-top:2px}
.qr-rail-check{width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:#202938;color:#9fb2ff;font-size:12px;font-weight:800}.qr-rail-item.selected .qr-rail-check{background:#5578ed;color:#fff}
.qr-rail-empty{padding:18px 12px;color:#8490a2;font-size:12px;text-align:center}
.analytics-workbench[data-mode="compare"] .native-compare-picker{display:none!important}
.analytics-toolbar .analytics-controls{margin-left:auto}
.analytics-toolbar button,.analytics-toolbar .btn{transform:none!important;transition:background-color .1s linear,border-color .1s linear,color .1s linear!important}.analytics-toolbar button:hover,.analytics-toolbar .btn:hover{transform:none!important}
.mobile-qr-selector{display:none}
.mobile-qr-sheet-wrap[hidden]{display:none!important}

@media(max-width:1000px){.analytics-workbench{grid-template-columns:250px minmax(0,1fr)}.qr-rail-tools{grid-template-columns:1fr}}

@media(max-width:760px){
  .analytics-workbench{grid-template-columns:1fr;gap:10px;margin-top:8px}
  .qr-analytics-rail{display:none!important}
  .mobile-qr-selector{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 13px;border:1px solid #2b3542;background:#11161e;border-radius:14px;min-width:0}
  .mobile-qr-selector[hidden]{display:none!important}
  .mobile-qr-selector-copy{min-width:0;display:block}
  .mobile-qr-selector-title{display:block;font-size:15px;line-height:1.2;color:#f7f9fc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-qr-selector-meta{display:block;margin-top:3px;color:#8490a2;font-size:11px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-qr-selector-count{display:block;margin-top:4px;color:#8fa9ff;font-size:10px;font-weight:800}
  .mobile-change-qr{min-height:42px;border:1px solid #3a4760;background:#1a2230;color:#fff;border-radius:11px;padding:0 12px;font-size:12px;font-weight:800;white-space:nowrap}

  .analytics-toolbar{padding:9px!important;margin-bottom:8px!important;gap:7px!important;border-radius:14px!important}
  .analytics-toolbar .segmented,.analytics-toolbar .range-chips{width:100%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;overflow:visible}
  .analytics-toolbar .segmented button,.analytics-toolbar .range-chips button{padding:8px 5px;white-space:nowrap;font-size:12px}
  .metric-row-v4{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:10px!important}
  .metric-v4{min-height:80px!important;padding:12px!important;border-radius:13px!important}
  .metric-v4 strong{font-size:24px!important;margin:4px 0 2px!important;line-height:1.02!important;overflow-wrap:anywhere}
  .metric-v4 span{font-size:9px!important}.metric-v4 small{font-size:10px!important;line-height:1.2}
  .analytics-main-grid,.analytics-grid-v4,.analytics-grid-v4.secondary{gap:10px!important;margin-bottom:10px!important}
  .analytics-panel-v4{padding:14px!important;border-radius:13px!important}
  .analytics-trend{min-height:240px!important}.line-wrap{height:170px!important}.line-wrap svg{height:145px!important}
  .analytics-workbench[data-mode="detail"] .detail-heading{display:none!important}

  .mobile-qr-sheet-wrap{position:fixed;inset:0;z-index:2200;display:block}
  .mobile-qr-sheet-backdrop{position:absolute;inset:0;background:rgba(2,5,9,.72);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
  .mobile-qr-sheet{position:absolute;left:0;right:0;bottom:0;max-height:min(82dvh,760px);display:flex;flex-direction:column;background:#10151d;border:1px solid #303847;border-bottom:0;border-radius:22px 22px 0 0;padding:8px 12px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -24px 70px rgba(0,0,0,.48)}
  .mobile-qr-sheet-handle{width:42px;height:4px;background:#46505f;border-radius:99px;margin:2px auto 8px}
  .mobile-qr-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:3px 2px 10px}
  .mobile-qr-sheet-head h2{margin:0;font-size:21px}.mobile-qr-sheet-head p{margin:4px 0 0;color:#8793a5;font-size:12px}
  .mobile-sheet-close{width:38px;height:38px;border:0;border-radius:50%;background:#1c2430;color:#fff;font-size:26px;line-height:1;display:grid;place-items:center}
  .mobile-qr-sheet-tools{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:8px;padding:0 0 10px}
  .mobile-qr-sheet-tools input,.mobile-qr-sheet-tools select{min-width:0;height:44px;border:1px solid #303a49;background:#0b1017;color:#fff;border-radius:11px;padding:0 12px;font-size:16px;outline:none}
  .mobile-qr-sheet-list{overflow-y:auto;-webkit-overflow-scrolling:touch;display:grid;gap:6px;padding-bottom:6px;min-height:0}
  .mobile-qr-sheet-item{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr) auto 30px;align-items:center;gap:10px;min-height:66px;padding:8px 9px;border:1px solid #252e3a;border-radius:13px;background:#141a22;color:#fff;text-align:left;-webkit-tap-highlight-color:transparent}
  .mobile-qr-sheet-item.selected{background:#1a2746;border-color:#587cf2}
  .mobile-qr-sheet-thumb{width:48px;height:48px;border-radius:9px;background:#fff;display:grid;place-items:center;overflow:hidden}.mobile-qr-sheet-thumb canvas,.mobile-qr-sheet-thumb img{width:42px!important;height:42px!important;display:block!important}
  .mobile-qr-sheet-copy{min-width:0}.mobile-qr-sheet-copy strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-qr-sheet-copy small{display:block;margin-top:4px;font-size:10px;color:#7f8c9f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-qr-sheet-stat{text-align:right}.mobile-qr-sheet-stat b{display:block;font-size:12px}.mobile-qr-sheet-stat small{display:block;color:#748195;font-size:9px;margin-top:1px}
  .mobile-qr-sheet-check{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#202938;color:#9fb2ff;font-weight:900}
  .mobile-qr-sheet-item.selected .mobile-qr-sheet-check{background:#587cf2;color:#fff}
  .mobile-qr-sheet-empty{padding:26px 12px;text-align:center;color:#8490a2;font-size:12px}
  .mobile-sheet-done{width:100%;min-height:46px;margin-top:8px}
  html.mobile-sheet-open,html.mobile-sheet-open body{overflow:hidden!important}
}
