/* DOVYR Economic Intelligence — compact institutional interface.
 * Scoped to .ei-page-active and modal .ei-backdrop; no global styling. */
.dash-main.ei-page-active{overflow-y:auto!important;overscroll-behavior-y:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#3b494e transparent}
.dash-main.ei-page-active .ei-page{box-sizing:border-box;max-width:1400px;min-height:100%;margin:0 auto;padding:22px 26px 36px;color:#f0f0ed;font-family:inherit;--ei-border:rgba(230,239,238,.1);--ei-muted:#8d9b9f;--ei-acid:#d8ff3e;animation:ei-in .22s ease-out both}
.dash-main.ei-page-active .ei-page *,.ei-backdrop *{box-sizing:border-box}
@keyframes ei-in{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.ei-head{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-bottom:19px;border-bottom:1px solid var(--ei-border)}
.ei-overline{display:block;font-size:9px;letter-spacing:.15em;font-weight:680;color:#929da1;line-height:1.4}
.ei-head h1{margin:6px 0 5px;font-size:clamp(26px,2.4vw,33px);letter-spacing:-.055em;font-weight:600;line-height:1.12}
.ei-head h1 span{color:#adb8b6}.ei-head p{margin:0;color:#9ca8ab;font-size:12px;line-height:1.5}
.ei-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ei-head-actions button{height:34px;padding:0 13px;border-radius:7px;background:#171d20;color:#dee2df;border:1px solid #313b3e;font:inherit;font-size:11px;font-weight:590;cursor:pointer;white-space:nowrap;transition:background .09s ease}
.ei-head-actions button:hover{background:#222c30}
.ei-source{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:15px 0 18px;color:#9aa5a8;font-size:10px;line-height:1.4}
.ei-dot{width:6px;height:6px;border-radius:50%;background:#91c5a8;flex:none}.ei-dot.ei-warn{background:#d8af70}
.ei-source-end{margin-left:auto;color:#849397}
.ei-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:15px}
.ei-section-head h2{font-size:17px;font-weight:550;line-height:1.1;letter-spacing:-.03em;margin:6px 0 0;color:#f0f0ed}
.ei-section-head>span{color:#98a4a7;font-size:11px}
.ei-filters{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(120px,1fr));gap:9px;margin-bottom:14px}
.ei-filters label{display:flex;flex-direction:column;gap:6px;color:#9da8a9;font-weight:620;font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.ei-filters select,.ei-filters input{min-width:0;height:36px;padding:0 11px;background:#141b1e;color:#e2e7e4;border:1px solid #303a3e;border-radius:7px;font:inherit;font-size:11px;letter-spacing:0;outline:0}
.ei-filters :is(select,input):focus-visible{border-color:#879f70}
.ei-table{border:1px solid #30393c;background:#111619;border-radius:11px;overflow:hidden}
.ei-table-header,.ei-row{display:grid;grid-template-columns:93px minmax(210px,1fr) 58px 74px 88px 88px 86px 18px;gap:12px;align-items:center;padding:0 17px}
.ei-table-header{height:43px;color:#8e9a9e;font-size:9px;letter-spacing:.085em;font-weight:660;background:#151b1e;border-bottom:1px solid #30383b}
.ei-row{width:100%;min-height:67px;text-align:left;border:0;border-bottom:1px solid rgba(239,246,244,.07);color:#dce1df;font:inherit;font-size:12px;background:transparent;cursor:pointer;transition:background .08s ease}
.ei-row:last-child{border-bottom:0}.ei-row:hover,.ei-row:focus-visible{background:#20292b;outline:0}
.ei-time b,.ei-time small,.ei-event-title strong,.ei-event-title small{display:block}
.ei-time b{font-size:13px;font-weight:590;font-variant-numeric:tabular-nums}.ei-time small,.ei-event-title small{font-size:10px;color:#8e9ca0;margin-top:6px;line-height:1.25}
.ei-event-title strong{font-size:12px;line-height:1.3;font-weight:570;color:#e9eae6}
.ei-currency{font-weight:680;color:#cbd5d3}.ei-impact{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-width:46px;height:23px;padding:0 7px;border:1px solid #414b4d;background:#20272a;border-radius:5px;font-size:10px;font-weight:640;color:#cbd2d1}
.ei-impact.ei-high{border-color:#704c4c;background:#352326;color:#efaaa8}.ei-impact.ei-medium{border-color:#655a3d;background:#332d20;color:#dec08d}
.ei-numbers{font-variant-numeric:tabular-nums;color:#cbd0ce}.ei-numbers em{display:none}.ei-actual{font-variant-numeric:tabular-nums;color:#919fa2}.ei-known{color:#d8e3dc;font-weight:650}.ei-go{font-size:16px;color:#9ba5a9}
.ei-empty{padding:46px 20px;text-align:center;font-size:12px;color:#9da9ad}
.ei-foot{font-size:10px;line-height:1.65;color:#7f8b90;margin-top:17px}
.ei-backdrop{position:fixed;inset:0;z-index:22000;background:rgba(0,0,0,.71);backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:center;padding:16px;color:#f2f0e9;font-family:inherit}
.ei-dialog{width:min(780px,100%);max-height:min(90vh,900px);overflow:auto;border-radius:13px;border:1px solid #3b464a;background:#101619;box-shadow:0 24px 90px rgba(0,0,0,.5);scrollbar-width:thin;scrollbar-color:#445256 transparent}
.ei-dialog-body{padding:18px 23px 20px}.ei-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:10px}.ei-dialog-bar button{width:30px;height:30px;background:#1b2427;color:#eff2ed;border:1px solid #334044;border-radius:7px;font-size:19px;cursor:pointer}
.ei-dialog-title{padding:10px 0 16px}.ei-dialog-title h2{font-size:25px;letter-spacing:-.04em;font-weight:590;line-height:1.18;margin:10px 0 7px}.ei-dialog-title p{font-size:11px;color:#9da9ab;margin:0}
.ei-dialog-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #2f393c;border-bottom:1px solid #2f393c;padding:12px 0;gap:0}
.ei-dialog-stats>div{padding:4px 18px;border-left:1px solid #2d383a}.ei-dialog-stats>div:first-child{border:0;padding-left:0}.ei-dialog-stats small{display:block;color:#88969a;letter-spacing:.11em;font-size:9px}.ei-dialog-stats strong{display:block;margin-top:7px;font-size:18px;font-weight:570;color:#ecede8;word-break:break-word}
.ei-dialog-switch{display:flex;align-items:center;gap:7px;border-bottom:1px solid #30383b;margin-top:14px;padding-bottom:14px;flex-wrap:wrap}
.ei-dialog-switch button{background:#192124;color:#9ba7a9;border:1px solid #333d40;border-radius:7px;padding:8px 12px;font-size:11px;font-weight:600;cursor:pointer}
.ei-dialog-switch button.on{color:#d9ff8f;background:#222a22;border-color:#52633e}.ei-dialog-switch>span{font-size:10px;color:#a7b2b4;margin-left:auto}
.ei-dialog-copy{display:grid;gap:0}.ei-dialog-copy section{border-bottom:1px solid #293438;padding:16px 0}.ei-dialog-copy section>span{font-size:9px;letter-spacing:.12em;color:#89969a;font-weight:660}.ei-dialog-copy h3{margin:7px 0 8px;color:#ecefeb;font-size:15px;letter-spacing:-.025em;font-weight:590}.ei-dialog-copy p{margin:0;color:#c1cbca;font-size:12px;line-height:1.65}
.ei-pairs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.ei-pairs>div{padding:9px 11px;background:#182024;border:1px solid #2d383c;border-radius:6px;display:flex;flex-direction:column;gap:5px}.ei-pairs strong{font-size:11px;color:#e5ede9}.ei-pairs span,.ei-pairs small{font-size:10px;line-height:1.4;color:#a1adae}
.ei-disclaimer{font-size:11px;line-height:1.55;color:#bac5c4;border-left:2px solid #738e68;padding:11px 12px;background:#19211f;margin-top:14px}
.ei-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:17px}.ei-dialog-footer>span{font-size:10px;color:#8f9fa1}.ei-dialog-footer>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ei-dialog-footer button{height:33px;padding:0 12px;border:1px solid #3e4a4d;border-radius:7px;background:#20292c;color:#f0f0ec;font:inherit;font-size:11px;font-weight:650;cursor:pointer}
.ei-dialog-footer button#ei-done{background:#d8ff3e;border-color:#d8ff3e;color:#101516}.ei-dialog-footer button:disabled{opacity:.45;cursor:not-allowed}.ei-ai-error{margin:12px 0 0;color:#e0aaaa;font-size:10px}
@media(max-width:1220px){.ei-table-header,.ei-row{grid-template-columns:85px minmax(185px,1fr) 48px 60px 76px 76px 76px 12px;gap:7px;padding:0 11px}}
@media(max-width:940px){.ei-table-header,.ei-row{grid-template-columns:70px minmax(160px,1fr) 48px 65px 70px 12px;gap:7px}.ei-table-header span:nth-child(6),.ei-table-header span:nth-child(7),.ei-row>.ei-numbers:nth-child(6),.ei-row>.ei-actual{display:none}.ei-filters{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.dash-main.ei-page-active .ei-page{padding:14px 13px 28px}.ei-head{flex-direction:column;align-items:start}.ei-filters{grid-template-columns:1fr 1fr}.ei-table-header,.ei-row{grid-template-columns:54px minmax(110px,1fr) 38px 42px 12px;gap:6px;padding:0 8px}.ei-table-header span:nth-child(5),.ei-row>.ei-numbers{display:none}.ei-row{min-height:68px}.ei-impact{min-width:35px;font-size:9px}.ei-dialog-body{padding:14px}.ei-dialog-title h2{font-size:20px}.ei-pairs{grid-template-columns:1fr}.ei-dialog-footer{align-items:start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.dash-main.ei-page-active .ei-page{animation:none!important}}

/* Focus 1.2: trading event reader, no news feed */
.ei-asset-hint{display:inline-block;margin-left:8px;color:#a8c5a0;font-size:10px;font-weight:590;letter-spacing:0}
.ei-quick{margin:16px 0 2px;padding:13px 15px;background:#18211e;border:1px solid #3a503d;border-radius:8px}
.ei-quick .ei-overline{color:#bad984}
.ei-quick p{margin:8px 0 0;font-size:12px;line-height:1.65;color:#d6e0d9}
.ei-row:focus-visible{outline:2px solid #c7f06a;outline-offset:-2px}
@media(max-width:940px){.ei-asset-hint{display:block;margin-left:0;margin-top:3px}}

/* Daily navigation 1.3: bounded to the week provided by the source */
.ei-daybar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:11px 13px;margin:2px 0 17px;background:#141b1d;border:1px solid #2d393b;border-radius:10px}
.ei-day-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ei-day-controls button{height:32px;padding:0 13px;border:1px solid #3a4548;border-radius:7px;background:#192124;color:#cbd4d2;font:inherit;font-size:11px;font-weight:610;cursor:pointer}
.ei-day-controls button:first-child,.ei-day-controls button:nth-child(4){font-size:22px;line-height:1;padding:0 10px}
.ei-day-controls button:hover:not(:disabled){background:#273333}
.ei-day-controls button.on{background:#242f21;border-color:#647b40;color:#ddff83}
.ei-day-controls button:disabled{opacity:.28;cursor:not-allowed}
.ei-day-controls input[type=date]{height:32px;min-width:132px;max-width:145px;color-scheme:dark;color:#e7ebe8;background:#192124;border:1px solid #3a4548;border-radius:7px;padding:0 8px;font:inherit;font-size:11px}
.ei-day-info{display:flex;align-items:flex-end;flex-direction:column;gap:4px;text-align:right}
.ei-day-info strong{font-size:12px;color:#edf1ec;font-weight:650;text-transform:capitalize}
.ei-day-info span{font-size:10px;color:#8f9c9f}
@media(max-width:900px){.ei-day-info{align-items:flex-start;text-align:left}}
@media(max-width:620px){.ei-daybar{padding:10px}.ei-day-controls{gap:5px}.ei-day-controls button{padding:0 9px}.ei-day-controls input[type=date]{min-width:125px;max-width:140px}}

/* Economic Calendar 1.4 — isolated scroll viewport. The historic dashboard grid
 * uses a 62px topbar row even after modules replace its innerHTML. Setting the
 * calendar mode to block avoids trapping the calendar in that virtual row. */
.dash-main.ei-page-active{
  display:block!important;
  height:100dvh!important;
  max-height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
.dash-main.ei-page-active>.ei-page{
  display:block;
  height:100%!important;
  min-height:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#465256 transparent;
}
.dash-main.ei-page-active>.ei-page::-webkit-scrollbar{width:9px}
.dash-main.ei-page-active>.ei-page::-webkit-scrollbar-thumb{background:#364348;border:2px solid #0a0f11;border-radius:9px}
.dash-main.ei-page-active>.ei-page::-webkit-scrollbar-track{background:#0a0f11}
.ei-backdrop .ei-dialog{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
