/* One static palette and frame for all three exploratory analysis dialogs. */
html.ly-workspace body .analysis-overlay{padding:18px!important;background:rgba(3,5,12,.76)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:none!important;align-items:center!important}
html.ly-workspace body .analysis-dialog{width:min(1080px,100%)!important;height:min(92dvh,1000px)!important;max-height:calc(100dvh - 36px)!important;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(233,185,110,.22)!important;border-radius:24px!important;color:#e4ebf4;background:linear-gradient(155deg,rgba(255,255,255,.035),transparent 38%),rgba(10,14,25,.98)!important;box-shadow:0 1px 0 #ffffff0f inset,0 30px 100px -24px #000d!important;font:14px/1.6 var(--ly-font,system-ui,"Microsoft YaHei",sans-serif);backdrop-filter:none!important;animation:none!important}
.analysis-dialog *{box-sizing:border-box;font-size:inherit}.analysis-dialog :is(button,input,select,summary){font-family:inherit}.analysis-dialog :focus-visible{outline:2px solid #f0cd8a;outline-offset:3px}
html.ly-workspace body .analysis-dialog .analysis-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:14px 22px!important;border-bottom:1px solid #ffffff14;background:#101824!important}
html.ly-workspace body .analysis-dialog .analysis-header :is(h2,#bp-title,#gap-title){display:block;font-size:18px;font-weight:650;line-height:1.4;color:#f0ce91;margin:0}
html.ly-workspace body .analysis-dialog .analysis-header :is(small,p){display:block;font-size:12px;color:#a6b7c9;line-height:1.6;margin:4px 0 0}
html.ly-workspace body .analysis-dialog .analysis-header>button{flex:none;min-height:42px;width:42px;height:42px;padding:0;font-size:24px;line-height:1;border-radius:9px;border:1px solid #405063;background:#172333;color:#dce5ef}
html.ly-workspace body .analysis-dialog .analysis-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px!important;background:transparent!important;scrollbar-width:thin;scrollbar-color:#435268 transparent}
.analysis-dialog .analysis-scope{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.analysis-dialog .analysis-scope>span{font-size:12px;color:#92a6ba;margin-left:5px}
html.ly-workspace body .analysis-dialog :is(button,input,select){min-width:0;border:1px solid #405065;border-radius:9px;background:#172333;color:#dce5ef;font-size:13px;line-height:1.5;box-shadow:none;transition:none}
html.ly-workspace body .analysis-dialog button{padding:8px 13px;min-height:40px;cursor:pointer}.analysis-dialog button:disabled{opacity:.45;cursor:default}
html.ly-workspace body .analysis-dialog :is(input[type=number],input[type=search],select){min-height:44px;padding:9px 11px;border-color:#3c495a;background:#090f1a;font-size:15px;color:#edf3fa}
html.ly-workspace body .analysis-dialog :is(.analysis-scope button.active,.bp-primary){color:#21170a;border-color:#d9b46e;background:linear-gradient(135deg,#f3d49a,#dba34f);font-weight:650}
.analysis-dialog .analysis-filter-card{margin:0 0 14px;border:1px solid #344052;border-radius:12px;background:#111a29}.analysis-dialog .analysis-filter-card>summary{min-height:44px;padding:11px 14px;cursor:pointer;color:#e7c991;font-size:13px}.analysis-dialog .analysis-filter-card>summary strong{font-weight:600;font-size:13px}.analysis-dialog .analysis-filter-card>summary>span{color:#a8bacb;font-size:12px;margin-left:14px}.analysis-dialog .analysis-filter-card[open]>summary{border-bottom:1px solid #303e50;margin-bottom:10px}.analysis-dialog .analysis-filter-content{padding:0 14px 14px}
html.ly-workspace body .analysis-dialog .analysis-filter-card label{font-size:13px;color:#c0d0e0}
html.ly-workspace body .analysis-dialog .analysis-summary{display:grid;gap:10px;margin:0 0 10px}.analysis-dialog .analysis-summary>div{padding:10px 12px;border:1px solid #354255;border-radius:10px;background:#131e2d}.analysis-dialog .analysis-summary :is(span,small){display:block;font-size:12px;color:#a6b9cb}.analysis-dialog .analysis-summary strong{color:#edd29d;font-size:22px;line-height:1.5;font-weight:650}
html.ly-workspace body .analysis-dialog table{font-size:13px}.analysis-dialog table th{background:#1a283b!important;color:#e6c68e;font-size:12px}.analysis-dialog table td{font-size:13px;color:#dce6f1}.analysis-dialog table small{display:block;font-size:11px;color:#98adc1}
html.ly-workspace body .analysis-dialog .analysis-footer{flex:none;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 22px!important;border-top:1px solid #ffffff14;background:#101824!important}.analysis-dialog .analysis-footer>span{font-size:12px;color:#a6b9cb;flex:1}.analysis-dialog .analysis-footer>button:last-child{margin-left:auto;white-space:nowrap}
.analysis-dialog.mpr-dialog .mpr-controls{padding:0;border:0}.analysis-dialog.mpr-dialog .mpr-results{padding:0}.analysis-dialog.mpr-dialog .mpr-hint{font-size:12px}.analysis-dialog .gap-checks{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px}.analysis-dialog .gap-checks label{display:flex;gap:7px;align-items:center;font-size:13px}.analysis-dialog .gap-checks input{accent-color:#dfb56e;width:17px;height:17px}.analysis-dialog .gap-averages{display:flex;gap:10px 22px;flex-wrap:wrap;padding:13px;border:1px solid #344052;background:#111a29;border-radius:10px;margin:12px 0}.analysis-dialog .gap-averages span{font-size:12px;color:#9fb4c8}.analysis-dialog .gap-averages b{color:#e8d0a4;font-weight:600}
@media(max-width:640px){html.ly-workspace body .analysis-overlay{padding:8px!important}html.ly-workspace body .analysis-dialog{height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:16px!important}html.ly-workspace body .analysis-dialog .analysis-header,html.ly-workspace body .analysis-dialog .analysis-footer{padding:11px 14px!important}html.ly-workspace body .analysis-dialog .analysis-body{padding:14px!important}.analysis-dialog .analysis-scope>span{flex-basis:100%;margin:0}.analysis-dialog .analysis-filter-card>summary>span{display:block;margin:4px 0 0}.analysis-dialog .analysis-summary strong{font-size:19px}}

/* Match the existing sequence dialog even after the workspace palette loads. */
html.ly-workspace body #app .analysis-dialog{--dialog-line:rgba(196,214,238,.12);--dialog-field:rgba(4,7,15,.48);font:400 14px/1.65 var(--ly-font);background:linear-gradient(155deg,rgba(255,255,255,.035),transparent 38%),rgba(10,14,25,.97)!important}
html.ly-workspace body #app .analysis-dialog .analysis-header{padding:18px 24px!important;min-height:0;background:linear-gradient(100deg,rgba(233,185,110,.055),transparent 75%)!important;border-bottom:1px solid var(--dialog-line)}
html.ly-workspace body #app .analysis-dialog .analysis-header :is(h2,#bp-title,#gap-title){font:600 23px/1.4 var(--ly-serif);letter-spacing:.045em;color:var(--ly-gold-2)}
html.ly-workspace body #app .analysis-dialog .analysis-header :is(small,p){font:400 12px/1.6 var(--ly-font);color:var(--ly-muted)}
html.ly-workspace body #app .analysis-dialog .analysis-body{padding:20px 24px!important}
html.ly-workspace body #app .analysis-dialog button{min-height:42px;padding:9px 16px;border:1px solid var(--ly-line-2);border-radius:12px;color:var(--ly-text-2);background:rgba(255,255,255,.035);font:500 13px/1.5 var(--ly-font);box-shadow:0 1px 0 #ffffff06 inset}
html.ly-workspace body #app .analysis-dialog .analysis-header>button{flex:0 0 40px;display:grid;place-items:center;min-height:40px;width:40px;height:40px;padding:0!important;border-radius:50%!important;font:400 24px/1 var(--ly-font);background:rgba(255,255,255,.035)!important}
html.ly-workspace body #app .analysis-dialog :is(input[type=number],input[type=search],select){min-height:44px;padding:10px 12px;border:1px solid rgba(196,214,238,.18);border-radius:12px;background:var(--dialog-field);color:var(--ly-text);font:400 14px/1.5 var(--ly-font);font-variant-numeric:tabular-nums}
html.ly-workspace body #app .analysis-dialog :is(.analysis-scope button.active,.bp-primary){color:#251b10;border-color:rgba(248,220,170,.55);background:linear-gradient(135deg,#f8dcaa,#e9b96e 55%,#c98f45);font-weight:650}
html.ly-workspace body #app .analysis-dialog .analysis-filter-card{border:1px solid var(--dialog-line);border-radius:16px;background:rgba(255,255,255,.018)}
html.ly-workspace body #app .analysis-dialog .analysis-filter-card>summary{padding:13px 18px;color:var(--ly-gold-2)}
html.ly-workspace body #app .analysis-dialog .analysis-filter-card[open]>summary{margin-bottom:12px;border-bottom:1px solid var(--dialog-line)}
html.ly-workspace body #app .analysis-dialog .analysis-summary>div{padding:11px 14px;border:1px solid var(--dialog-line);border-radius:12px;background:rgba(255,255,255,.025)}
html.ly-workspace body #app .analysis-dialog .analysis-summary strong{font-family:var(--ly-num);font-size:22px;font-weight:500;color:var(--ly-gold-2)}
html.ly-workspace body #app .analysis-dialog :is(.bp-table-wrap,.mpr-table-wrap){border-color:var(--dialog-line);border-radius:14px}
html.ly-workspace body #app .analysis-dialog table th{background:rgba(233,185,110,.055)!important;color:var(--ly-gold-2);font-weight:500}
html.ly-workspace body #app .analysis-dialog .analysis-footer{padding:14px 24px!important;border-top:1px solid var(--dialog-line);background:rgba(255,255,255,.018)!important}
html.ly-workspace body #app .analysis-dialog .analysis-footer>button:last-child{color:var(--ly-text)!important;border-color:var(--ly-line-2)!important;background:rgba(255,255,255,.055)!important;border-radius:12px!important;box-shadow:none!important}
@media(max-width:640px){html.ly-workspace body #app .analysis-dialog .analysis-header,html.ly-workspace body #app .analysis-dialog .analysis-footer{padding:12px 14px!important}html.ly-workspace body #app .analysis-dialog .analysis-body{padding:14px!important}html.ly-workspace body #app .analysis-dialog .analysis-header :is(h2,#bp-title,#gap-title){font-size:20px}html.ly-workspace body #app .analysis-dialog .analysis-summary strong{font-size:19px}html.ly-workspace body #app .analysis-dialog :is(input[type=number],input[type=search],select){font-size:16px}}
html.ly-workspace body #app .analysis-dialog .analysis-summary span{display:inline-block;margin-right:8px;color:var(--ly-muted);font-size:12px}
html.ly-workspace body #app .analysis-dialog .analysis-summary strong{display:inline}
html.ly-workspace body #app .analysis-dialog .analysis-summary small{display:block;color:var(--ly-muted);font-size:12px}
html.ly-workspace body #app .analysis-dialog .analysis-summary strong>small{display:inline;margin-left:6px}
html.ly-workspace body #app .analysis-dialog :is(.bp-tabs,.bp-lengths) button:is(.active,[aria-selected=true],[aria-pressed=true]){color:var(--ly-gold-2);border-color:var(--ly-line-gold);background:rgba(233,185,110,.1)}
html.ly-workspace body #app .analysis-dialog table tbody>tr{background:rgba(255,255,255,.012)}
html.ly-workspace body #app .analysis-dialog table tbody>tr:nth-child(even){background:rgba(255,255,255,.025)}
/* Native select popups need an opaque palette instead of inherited translucent fields. */
html.ly-workspace body #app .analysis-dialog select{color-scheme:dark;color:#c4cfdf!important}
html.ly-workspace body #app .analysis-dialog select option{background-color:#111825!important;color:#c4cfdf!important;font-weight:400}
html.ly-workspace body #app .analysis-dialog select option:checked{background-color:#3a3023!important;color:#edcf97!important}
