/* ETF observation desk. Scoped to preserve existing analysis modules. */
.etf-shell{--etf-line:#e2d9ca;color:var(--ink);padding-top:8px;min-width:0}
.etf-shell [hidden]{display:none!important}
.etf-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:12px 0 22px}
.etf-kicker{margin:0 0 8px;color:var(--gold);font-size:11px;font-weight:700;letter-spacing:2px}
.etf-head h2{font-family:"Noto Serif SC","Source Han Serif SC","Songti SC",serif;font-size:29px;font-weight:600;letter-spacing:1px;margin:0 0 10px}
.etf-subtitle{margin:0;color:var(--ink-soft);font-size:13px;line-height:1.8;max-width:760px}
.etf-actions{display:flex;gap:8px;flex-shrink:0;padding-top:6px}
.etf-shell button,.etf-shell input,.etf-shell select{font:inherit}
.etf-button{border:1px solid #cfc2ad;background:var(--paper);color:var(--ink);border-radius:9px;padding:10px 14px;cursor:pointer;white-space:nowrap;line-height:1.2}
.etf-button:hover:not(:disabled){background:#f0e7d7;border-color:var(--gold)}
.etf-button:disabled{cursor:default;opacity:.5}
.etf-button-primary{background:var(--navy);border-color:var(--navy);color:#fffdf7}
.etf-button-primary:hover:not(:disabled){background:#374b5c;border-color:#374b5c}
.etf-shell :focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.etf-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;border-top:1px solid var(--etf-line);padding:13px 0 15px;font-size:12px;color:var(--ink-soft)}
.etf-meta strong{font-weight:600;color:var(--ink)}
.etf-state{display:inline-flex;align-items:center;gap:6px;color:#426553;font-weight:600}
.etf-state:before{content:"";width:6px;height:6px;border-radius:100%;background:currentColor}
.etf-state.is-warning{color:#9b671f}.etf-state.is-error{color:var(--red)}
.etf-alert{margin:0 0 16px;padding:12px 16px;border:1px solid #e9d2a4;border-left:3px solid var(--gold);border-radius:8px;background:#fff7e9;color:#77541f;font-size:13px;line-height:1.8}
.etf-alert.is-error{border-color:#e7c3bf;border-left-color:var(--red);background:#fcf0ee;color:#953c35}
.etf-alert p{margin:0}.etf-alert p+p{margin-top:5px}
.etf-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 20px}
.etf-metric{border:1px solid var(--etf-line);border-radius:14px;background:var(--paper);padding:22px 24px;min-width:0;box-shadow:var(--shadow-sm)}
.etf-metric-label{color:var(--ink-soft);font-size:12px;margin:0 0 15px;letter-spacing:.5px}
.etf-metric-value{display:flex;align-items:baseline;gap:8px;line-height:1.2;min-width:0}
.etf-metric-value strong{font-size:34px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.etf-metric-value span{font-size:12px;color:var(--ink-soft)}
.etf-metric-foot{margin:14px 0 0;color:var(--ink-soft);font-size:12px;line-height:1.65}
.etf-metric-foot.etf-historical{color:#8b611f;font-weight:600}
.etf-quality{display:block;font-size:10px;color:#966721;line-height:1.8}
.etf-positive{color:var(--red)!important}.etf-negative{color:var(--teal)!important}
.etf-workspace{border:1px solid var(--etf-line);border-radius:16px;background:var(--paper);padding:22px 24px;margin-bottom:20px;box-shadow:var(--shadow-sm)}
.etf-chart-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.etf-chart-toolbar h3{font-size:17px;margin:0;font-weight:600}.etf-chart-toolbar p{font-size:12px;line-height:1.6;color:var(--ink-soft);margin:7px 0 0}
.etf-chart-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.etf-ranges{display:flex;gap:2px;padding:3px;background:#f0eadd;border-radius:8px;border:1px solid #e7ddcb}
.etf-range{background:transparent;border:0;padding:7px 12px;border-radius:5px;font-size:12px!important;color:var(--ink-soft);cursor:pointer}
.etf-range[aria-pressed="true"]{background:var(--paper);color:var(--ink);box-shadow:0 2px 5px #31281a12;font-weight:600}
.etf-period{margin:8px 0 26px;padding:18px 20px 14px;border:1px solid #e4d9c7;border-radius:12px;background:#f8f4ec}
.etf-period-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 20px}
.etf-period-label{display:block;color:var(--ink-soft);font-size:11px;margin-bottom:6px;letter-spacing:1px}
.etf-period-head strong{font-size:17px;font-weight:600;letter-spacing:.2px;font-variant-numeric:tabular-nums}
.etf-period-head p{font-size:11px;color:var(--ink-soft);line-height:1.65;margin:7px 0 0}
.etf-date-fields{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--ink-soft)}
.etf-date-fields label{display:flex;align-items:center;gap:7px}.etf-date-fields input{min-width:0;border:1px solid #d6c9b3;background:var(--paper);border-radius:7px;padding:8px 9px;color:var(--ink);font-size:12px;max-width:150px}
.etf-dual-range{position:relative;height:38px;margin:15px 7px 0;isolation:isolate}
.etf-range-rail{position:absolute;left:0;right:0;top:16px;height:6px;border-radius:8px;background:linear-gradient(to right,#e4dbcb 0%,#e4dbcb var(--etf-range-start),#b28c4e var(--etf-range-start),#b28c4e var(--etf-range-end),#e4dbcb var(--etf-range-end),#e4dbcb 100%)}
.etf-dual-range input[type=range]{position:absolute;inset:0;width:100%;height:38px;margin:0;padding:0;background:transparent;appearance:none;-webkit-appearance:none;pointer-events:none;outline:none}
.etf-dual-range input[type=range]::-webkit-slider-runnable-track{height:6px;background:transparent}
.etf-dual-range input[type=range]::-moz-range-track{height:6px;background:transparent}
.etf-dual-range input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin-top:-8px;border-radius:50%;border:3px solid var(--paper);background:#a47a36;box-shadow:0 1px 5px #31281a40;pointer-events:auto;cursor:ew-resize}
.etf-dual-range input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:3px solid var(--paper);background:#a47a36;box-shadow:0 1px 5px #31281a40;pointer-events:auto;cursor:ew-resize}
.etf-dual-range input[type=range]:focus-visible{z-index:4!important;outline:none}.etf-dual-range input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--gold);outline-offset:3px}.etf-dual-range input[type=range]:focus-visible::-moz-range-thumb{outline:2px solid var(--gold);outline-offset:3px}
.etf-dual-range input[type=range]:disabled::-webkit-slider-thumb{background:#baae99;cursor:default}
.etf-range-limits{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
@media(max-width:760px){.etf-period{padding:15px 13px 12px}.etf-period-head strong{font-size:15px}.etf-date-fields{width:100%;gap:7px}.etf-date-fields label{flex:1;display:block;min-width:0}.etf-date-fields input{display:block;width:100%;max-width:none;box-sizing:border-box;margin-top:5px;font-size:12px;padding:9px 6px}.etf-range-limits span:nth-child(2){display:none}.etf-ranges{flex-wrap:wrap}.etf-chart-controls{width:100%}.etf-dual-range{margin-top:12px}.etf-dual-range input[type=range]::-webkit-slider-thumb{width:26px;height:26px;margin-top:-10px}.etf-dual-range input[type=range]::-moz-range-thumb{width:20px;height:20px}}
.etf-chart-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.etf-chart-block{min-width:0;padding:24px 26px 20px;border:1px solid var(--etf-line);border-radius:16px;background:var(--paper);box-shadow:var(--shadow-sm)}
.etf-chart-block h4{font-size:18px;font-weight:600;margin:0 0 12px;letter-spacing:.3px}.etf-chart-block h4:before{content:"01";display:inline-block;margin-right:12px;color:var(--gold);font-size:12px;letter-spacing:1px;vertical-align:middle}.etf-chart-block+.etf-chart-block h4:before{content:"02"}
.etf-chart-block .etf-chart-note{color:var(--ink-soft);font-size:11px;line-height:1.6;margin:0 0 20px;min-height:0}
.etf-canvas-wrap{position:relative;height:340px;min-width:0}
.etf-canvas-wrap canvas{width:100%!important;max-width:100%;height:340px!important}
.etf-empty{display:flex;align-items:center;justify-content:center;text-align:center;min-height:340px;font-size:13px;line-height:1.8;color:var(--ink-soft);padding:20px;background:#f8f5ee;border-radius:8px}
#etfCharts.etf-workspace{background:transparent;border:0;padding:0;box-shadow:none}.etf-chart-toolbar{padding:4px 2px;margin-bottom:18px}.etf-chart-caption{margin:14px 0 0;font-size:11px;color:var(--ink-soft);line-height:1.7}
.etf-table-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.etf-table-head h3{font-size:17px;margin:0}.etf-table-head p{font-size:12px;line-height:1.6;color:var(--ink-soft);margin:7px 0 0}
.etf-filter-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.etf-search,.etf-sort{border:1px solid #d7cbb7;border-radius:8px;padding:9px 11px;background:var(--paper-strong);color:var(--ink);font-size:12px!important;min-height:37px}
.etf-search{width:190px;min-width:0}.etf-sort{max-width:100%}
.etf-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--etf-line);border-radius:10px;scrollbar-color:#cbbb9d #f7f2e8}
.etf-table{width:100%;min-width:850px;border-collapse:collapse;margin:0;font-size:12px}
.etf-table thead{background:#f1ebdf}.etf-table th{font-size:11px;color:var(--ink-soft);font-weight:600;text-align:right;padding:12px 14px;white-space:nowrap;border-bottom:1px solid var(--etf-line)}
.etf-table td{text-align:right;padding:13px 14px;border-bottom:1px solid #eee7dc;font-variant-numeric:tabular-nums;white-space:nowrap;background:transparent}
.etf-table th:first-child,.etf-table td:first-child{text-align:left;min-width:240px}
.etf-table tr:last-child td{border-bottom:0}.etf-table tbody tr:hover{background:#f8f3e9}.etf-table tbody tr.is-selected{background:#f4ead6}
.etf-fund-button{border:0;background:none;color:var(--ink);font-size:12px!important;cursor:pointer;padding:0;text-align:left;white-space:normal;line-height:1.65}
.etf-fund-button:hover{color:var(--gold)}.etf-fund-button span{display:block;color:var(--ink-soft);font-size:10px;letter-spacing:.4px;font-weight:400}
.etf-unavailable{color:#9b9181}.etf-table-empty{text-align:center!important;padding:28px!important;color:var(--ink-soft)}
.etf-table-tip{font-size:11px;color:var(--ink-soft);margin:12px 0 0;line-height:1.75}
.etf-method{border:1px solid var(--etf-line);border-radius:12px;background:#f7f2e8;padding:17px 20px;margin-bottom:8px}
.etf-method summary{font-size:13px;font-weight:600;cursor:pointer;line-height:1.8}
.etf-method ol{padding-left:21px;font-size:12px;line-height:1.9;color:var(--ink-soft);margin:12px 0 2px}.etf-method li+li{margin-top:6px}
.etf-loading{opacity:.65;pointer-events:none}.etf-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.etf-head h2{font-size:26px}.etf-metric{padding:20px 18px}.etf-metric-value strong{font-size:29px}.etf-workspace{padding:20px}.etf-chart-grid{gap:18px}}
@media(max-width:760px){.etf-head{display:block;margin-top:8px}.etf-actions{margin-top:16px}.etf-meta{gap:8px 14px;line-height:1.6}.etf-metrics{grid-template-columns:1fr;gap:9px}.etf-metric{padding:17px 18px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 12px}.etf-metric-label{margin:0;font-size:12px}.etf-metric-value{grid-column:2;grid-row:1 / span 2}.etf-metric-value strong{font-size:27px}.etf-metric-foot{margin:0;grid-column:1;font-size:11px;max-width:200px}.etf-workspace{padding:17px 14px}.etf-chart-grid{grid-template-columns:1fr;gap:25px}.etf-chart-toolbar{align-items:flex-start}.etf-canvas-wrap,.etf-canvas-wrap canvas{height:260px!important}.etf-empty{min-height:260px}.etf-chart-block{padding:19px 14px 16px;border-radius:13px}.etf-chart-block h4{font-size:16px}.etf-chart-block .etf-chart-note{min-height:auto}.etf-filter-group{width:100%}.etf-search{flex:1;width:120px}.etf-sort{flex:0 1 auto}.etf-method{padding:14px}.etf-range{padding:7px 10px}.etf-head h2{font-size:24px}.etf-subtitle{font-size:12px}}
@media(max-width:360px){.etf-metric{display:block}.etf-metric-value{margin:10px 0}.etf-metric-foot{max-width:none}.etf-sort{width:100%}.etf-search{width:100%;flex:auto}}
@media(max-width:760px){.tabs.etf-enabled-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.tabs.etf-enabled-tabs .tab{padding-left:3px;padding-right:3px;font-size:11px}}

/* Export approval and quiet end-of-page data notes. */
.etf-data-notes{margin:24px 0 8px;padding:20px 22px;border:1px solid #dce6ea;border-radius:14px;background:#f7fafb}
.etf-data-notes>h3{margin:0 0 12px;font-size:15px;font-weight:650;color:#45606e}.etf-data-notes .etf-meta{border-top:0;padding:0 0 12px;margin:0;gap:8px 18px}.etf-data-notes .etf-alert{margin:0;background:#fff;border-color:#e2e8e9;border-left-color:#b1bfc5;color:#687b86;font-size:12px}.etf-data-notes .etf-alert.is-error{border-left-color:#aa4e46;color:#98463f}
body.etf-export-open{overflow:hidden}.etf-export-overlay{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;padding:24px;background:#142e40a8;box-sizing:border-box}
.etf-export-dialog{box-sizing:border-box;width:min(470px,100%);max-height:calc(100dvh - 48px);overflow:auto;padding:27px;background:#fff;border:1px solid #dce6e9;border-radius:20px;box-shadow:0 24px 80px #122b4030;color:#1b3445}
.etf-export-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.etf-export-eyebrow{margin:0 0 7px;color:#537c7a;font-size:12px;letter-spacing:.5px}.etf-export-dialog h3{font-size:24px;font-weight:650;line-height:1.4;margin:0}.etf-export-close{width:44px;height:44px;flex:none;border:1px solid #dce5e8;border-radius:10px;background:#f5f8fa;color:#425b6c;font-size:25px!important;cursor:pointer}
.etf-export-dialog #etfExportHelp{font-size:14px;line-height:1.8;color:#617b88;margin:17px 0 11px}.etf-export-scope{font-size:13px;line-height:1.7;color:#356b66;background:#eef6f3;border:1px solid #d8e8e3;border-radius:9px;padding:10px 13px;overflow-wrap:anywhere;margin:0 0 22px}
.etf-export-dialog form>label{display:block;font-size:14px;font-weight:600;margin:0 0 9px}.etf-export-dialog input[type=password]{box-sizing:border-box;width:100%;min-height:50px;padding:12px 14px;border:1px solid #c6d5dc;border-radius:10px;background:#fbfcfd;color:#203e50;font-size:16px;outline-offset:3px}
.etf-export-status{min-height:23px;font-size:13px;line-height:1.7;color:#a14f45;margin:12px 0}.etf-export-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.etf-export-dialog footer button{min-height:46px;padding-inline:18px}.etf-export-dialog .etf-button-primary{background:#1c3c4d;border-color:#1c3c4d}
@media(max-width:760px){.etf-data-notes{padding:17px 15px}.etf-export-overlay{padding:12px}.etf-export-dialog{padding:22px 20px;max-height:calc(100dvh - 24px);border-radius:17px}.etf-export-dialog h3{font-size:22px}}
