.spectrum-dialog{z-index:1210;border:0;padding:0;background:transparent;width:min(1180px,calc(100vw - 36px));max-width:1180px;max-height:calc(100vh - 36px);overflow:visible;color:#18264f}
.spectrum-dialog::backdrop,.spectrum-close-decision::backdrop{background:rgba(28,37,64,.38);backdrop-filter:blur(2px)}
.spectrum-card{display:flex;flex-direction:column;width:100%;height:min(880px,calc(100vh - 42px));max-height:calc(100vh - 42px);overflow:hidden;background:#f6f8fc;border:1px solid #e0e6f1;border-radius:22px;box-shadow:0 24px 70px rgba(28,40,74,.24)}
.spectrum-head{display:flex;align-items:center;gap:14px;flex:0 0 auto;padding:18px 20px;background:#fff;border-bottom:1px solid #e3e8f2;cursor:move}
.spectrum-head-icon{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:14px;background:#eef2ff;color:#24368d;font-size:20px}
.spectrum-head-copy{min-width:0;flex:1}.spectrum-head h2{margin:0;color:#17276f;font-size:20px;line-height:1.2}.spectrum-head p{margin:4px 0 0;color:#69768f;font-size:13px}
.spectrum-close{width:42px;height:42px;flex:0 0 42px;border:0;border-radius:12px;background:#f2f4f8;color:#657187;font-size:18px;cursor:pointer}
.spectrum-body{flex:1;min-height:0;overflow:auto;padding:16px 18px 22px;scrollbar-gutter:stable both-edges}
.spectrum-import-panel{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(230px,1fr) minmax(190px,.72fr) auto;gap:12px;align-items:stretch;background:#fff;border:1px solid #e0e6f1;border-radius:16px;padding:14px;margin-bottom:12px}
.spectrum-import-copy{display:flex;flex-direction:column;justify-content:center;gap:4px}.spectrum-import-copy strong{color:#213479;font-size:14px}.spectrum-import-copy span{color:#758198;font-size:12px;line-height:1.42}
.spectrum-drop{display:flex;align-items:center;gap:10px;min-width:0;border:1px dashed #c9d3e4;border-radius:12px;background:#fbfcff;color:#2b3c7f;padding:10px 12px;text-align:left;cursor:pointer}.spectrum-drop:hover,.spectrum-drop.is-dragover{border-color:#7183cf;background:#f3f6ff}.spectrum-drop>i{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#eef2ff}.spectrum-drop span{display:flex;min-width:0;flex-direction:column;gap:3px}.spectrum-drop strong,.spectrum-drop small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spectrum-drop strong{font-size:12px}.spectrum-drop small{font-size:10px;color:#7a879d}
.spectrum-threshold{display:flex;flex-direction:column;justify-content:center;gap:5px;color:#67748b;font-size:11px;font-weight:750}.spectrum-threshold>div{display:flex;align-items:center;gap:7px}.spectrum-threshold input{width:90px;border:1px solid #d8e0ec;border-radius:10px;background:#fff;color:#273454;padding:8px 9px;font:inherit;font-size:13px}.spectrum-threshold b{color:#43506b}.spectrum-threshold small{font-weight:500;line-height:1.25;color:#8490a3}
.spectrum-import-panel>.primary,.spectrum-foot button{border:1px solid #d8dfeb;border-radius:12px;padding:10px 14px;font-weight:800;cursor:pointer}.spectrum-import-panel>.primary{align-self:center;background:#23358a;color:#fff;border-color:#23358a;min-height:44px}.spectrum-import-panel button:disabled,.spectrum-foot button:disabled{opacity:.52;cursor:default}
.spectrum-message{min-height:0;margin:0 2px 12px;padding:0;color:#68758c;font-size:12px}.spectrum-message:not(:empty){padding:9px 11px;border-radius:10px;background:#f2f5fa}.spectrum-message.is-success{background:#eff8f3;color:#2b704c}.spectrum-message.is-error{background:#fff0f1;color:#a22c39}.spectrum-message.is-info{background:#f2f5fb;color:#53637d}
.spectrum-results{display:grid;gap:12px}.spectrum-empty{display:flex;min-height:230px;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:7px;padding:26px;background:#fff;border:1px dashed #d1d9e7;border-radius:16px;color:#77849a}.spectrum-empty.small{min-height:150px}.spectrum-empty>i{font-size:27px;color:#5267ba}.spectrum-empty strong{color:#2a3974}.spectrum-empty span{max-width:780px;font-size:12px;line-height:1.48}.spectrum-empty code{max-width:100%;overflow:auto;padding:8px 10px;border-radius:9px;background:#f3f5f9;color:#4b5870;font-size:11px}
.spectrum-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.spectrum-kpis>div{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border:1px solid #e0e6ef;border-radius:12px;background:#fff}.spectrum-kpis span{font-size:10px;color:#78849a}.spectrum-kpis strong{font-size:15px;color:#203477;line-height:1.22}.spectrum-kpis small{font-size:10px;color:#7d899f;line-height:1.25}
.spectrum-tabs{display:flex;gap:7px;overflow:auto;padding:2px 0}.spectrum-tabs button{display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #dbe2ed;border-radius:999px;background:#fff;color:#66738a;padding:8px 11px;font-size:11px;font-weight:800;cursor:pointer}.spectrum-tabs button.active{border-color:#7588d0;background:#eef2ff;color:#263b91}
.spectrum-view{min-width:0}.spectrum-chart-card{min-width:0;background:#fff;border:1px solid #e0e6ef;border-radius:15px;padding:13px}.spectrum-chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}.spectrum-chart-head>div{display:flex;flex-direction:column;gap:3px}.spectrum-chart-head strong{color:#233579;font-size:13px}.spectrum-chart-head span{color:#7a879b;font-size:11px}.spectrum-chart-card canvas{display:block;width:100%;height:320px;border:1px solid #edf0f5;border-radius:10px;background:#fff}.spectrum-waterfall-canvas{height:350px!important}.spectrum-waterfall-legend{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:7px;color:#7a879d;font-size:10px}.spectrum-waterfall-legend b{display:block;width:140px;height:8px;border-radius:999px;background:linear-gradient(90deg,hsl(230 78% 52%),hsl(120 78% 47%),hsl(35 82% 47%),hsl(5 78% 42%))}
.spectrum-table-wrap{max-width:100%;overflow:auto;border:1px solid #e0e6ef;border-radius:12px;background:#fff}.spectrum-table{width:100%;min-width:850px;border-collapse:collapse;background:#fff;font-size:11px}.spectrum-table.compact{min-width:620px}.spectrum-table th,.spectrum-table td{padding:9px 10px;border-bottom:1px solid #e9edf4;text-align:left;white-space:nowrap;vertical-align:top}.spectrum-table th{position:sticky;top:0;background:#f6f8fb;color:#647189;z-index:1}.spectrum-table td{color:#2c3855}.spectrum-table td.wrap{white-space:normal;min-width:280px;line-height:1.4}.spectrum-table td strong,.spectrum-table td small{display:block}.spectrum-table td small{font-size:9px;color:#7d899d;margin-top:2px}
.spectrum-badge{display:inline-flex;align-items:center;border:1px solid #dce3ed;border-radius:999px;padding:3px 7px;background:#f5f7fa;color:#66738a;font-size:9px;font-weight:850;text-transform:capitalize}.spectrum-badge.high{background:#fff0f1;border-color:#f0cbd0;color:#a52c39}.spectrum-badge.medium{background:#fff8e8;border-color:#f2dfaa;color:#8a6312}.spectrum-badge.low{background:#eff9f3;border-color:#ccebd8;color:#24724a}.spectrum-badge.source-reported{background:#eef2ff;border-color:#cfd8ff;color:#344a9b}
.spectrum-location-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);gap:12px}.spectrum-view-note,.spectrum-method-note{display:flex;gap:8px;align-items:flex-start;margin-top:9px;padding:9px 11px;border-radius:10px;background:#f5f7fb;color:#6d7a90;font-size:10px;line-height:1.45}.spectrum-method-note{margin-top:0}.spectrum-method-note i{margin-top:2px;color:#5267ba}
.spectrum-foot{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto;padding:13px 18px;background:#fff;border-top:1px solid #e3e8f2}.spectrum-foot>div{margin-right:auto;color:#69768f;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spectrum-foot .secondary{background:#fff;color:#23358a}
.spectrum-analysis-launch{position:relative}.spectrum-launch-dot{width:8px;height:8px;border-radius:50%;background:#aab4c6;box-shadow:0 0 0 3px rgba(170,180,198,.14)}.spectrum-analysis-launch.is-ready .spectrum-launch-dot{background:#20a465;box-shadow:0 0 0 3px rgba(32,164,101,.14)}
.spectrum-close-decision{border:0;background:transparent;padding:0;max-width:min(720px,calc(100vw - 30px));width:min(720px,calc(100vw - 30px))}.spectrum-close-decision .tt-decision-card{overflow:hidden;background:#fff;border:1px solid #e0e6f1;border-radius:20px;box-shadow:0 24px 70px rgba(28,40,74,.24)}.spectrum-close-decision .tt-decision-head{display:flex;align-items:flex-start;gap:13px;padding:18px 20px;border-bottom:1px solid #e5e9f1}.spectrum-close-decision .tt-decision-head h2{margin:0;color:#1c2d76;font-size:19px}.spectrum-close-decision .tt-decision-head p{margin:4px 0 0;color:#758198;font-size:13px}.spectrum-close-decision .tt-decision-icon{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border-radius:13px;background:#eef2ff;color:#26398d}.spectrum-close-decision .tt-decision-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.spectrum-close-decision .tt-decision-actions button{display:flex;align-items:center;gap:11px;min-height:86px;padding:13px;border:1px solid #dce3ee;border-radius:14px;background:#fff;color:#263879;text-align:left;cursor:pointer}.spectrum-close-decision .tt-decision-actions button>i{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:#eef2ff}.spectrum-close-decision .tt-decision-actions span{display:flex;flex-direction:column;gap:4px}.spectrum-close-decision .tt-decision-actions strong{font-size:13px}.spectrum-close-decision .tt-decision-actions small{font-size:11px;color:#78859a;line-height:1.35}.spectrum-close-decision .tt-decision-actions .danger{color:#ad2936}.spectrum-close-decision .tt-decision-actions .danger>i{background:#fff0f1}.spectrum-close-decision .tt-decision-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:1020px){.spectrum-import-panel{grid-template-columns:1fr 1fr}.spectrum-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.spectrum-location-grid{grid-template-columns:1fr}}
@media(max-width:700px){.spectrum-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.spectrum-card{height:calc(100vh - 12px);max-height:calc(100vh - 12px);border-radius:16px}.spectrum-head{padding:13px}.spectrum-head h2{font-size:17px}.spectrum-head p{font-size:11px}.spectrum-body{padding:10px}.spectrum-import-panel,.spectrum-kpis{grid-template-columns:1fr}.spectrum-chart-card canvas{height:280px}.spectrum-location-grid{grid-template-columns:1fr}.spectrum-foot{padding:10px;flex-wrap:wrap}.spectrum-foot>div{width:100%;margin:0}.spectrum-foot button{flex:1;min-width:120px}.spectrum-close-decision .tt-decision-actions{grid-template-columns:1fr}}
