#chart-analyzer-tools{position:relative}#chart-analyzer-tools[data-phase=processing]>.chart-result{position:absolute;top:0;left:0;width:100%;visibility:hidden}.chart-intro{display:flex;align-items:center;gap:12px}.chart-version{padding:3px 8px;color:var(--brand-text);background:var(--brand-soft);border-radius:6px;font-size:var(--font-label-size);font-weight:500}.chart-upload-form{width:min(640px,100%);margin:28px auto 0;padding:24px;border:1px solid #e1e6ef;border-radius:20px;background:#fff;box-shadow:0 8px 28px rgb(var(--brand-deep-rgb),.05)}.chart-upload-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;text-align:left}.chart-upload-heading h2{margin:0;font-size:var(--font-section-size);font-weight:700}.chart-upload-heading .chart-formats-help{width:44px;height:44px;margin:-8px;cursor:help}.chart-formats-help>span{display:grid;place-items:center;width:23px;height:23px;border:1.5px solid currentColor;border-radius:50%;font-size:14px;font-weight:700}.chart-upload-panel{position:relative;padding:34px 24px 22px;border:2px dashed #cbd4e4;border-radius:14px;background:#fbfcff;text-align:center;transition:border-color .15s ease,background .15s ease}.chart-upload-panel[data-dragging=true]{border-color:var(--brand-primary);background:var(--brand-light)}.chart-upload-mark{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 18px;border-radius:20px;color:var(--brand-primary);background:var(--brand-light)}.chart-upload-mark svg{width:40px;height:40px}.chart-upload-hint{margin:0 0 12px;color:var(--brand-text);font-size:var(--font-body-size)}.chart-file-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 18px;overflow:hidden;cursor:pointer;font-size:var(--font-button-size);font-weight:700;background:#fff}.chart-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.chart-file-button:focus-within{outline:2px solid var(--brand-focus);outline-offset:4px}.chart-file-button:has(input:disabled){opacity:.55}.chart-upload-status{margin-bottom:20px}.chart-upload-file{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:10px;font-size:var(--font-secondary-size)}.chart-upload-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.chart-upload-state{flex-shrink:0;color:#687480}.chart-loading-progress{display:block;width:100%;height:7px;margin:0;border:0;border-radius:999px;overflow:hidden;appearance:none;background:#e8ecf4;color:var(--brand-primary)}.chart-loading-progress::-webkit-progress-bar{border-radius:999px;background:#e8ecf4}.chart-loading-progress::-webkit-progress-value{border-radius:999px;background:var(--brand-primary)}.chart-loading-progress::-moz-progress-bar{border-radius:999px;background:var(--brand-primary)}.chart-loading-progress:indeterminate{background:linear-gradient(90deg,#e8ecf4 0 30%,var(--brand-primary) 45% 55%,#e8ecf4 70% 100%);background-size:200% 100%;animation:chart-loading 1.5s ease-in-out infinite}.chart-loading-progress:indeterminate::-webkit-progress-bar{background:transparent}.chart-processing .chart-loading-progress{width:min(320px,100%)}@keyframes chart-loading{from{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.chart-loading-progress:indeterminate{animation:none}}.chart-upload-comparison{margin-top:20px}.chart-upload-preview{display:block;max-width:100%;max-height:420px;border-radius:6px;object-fit:contain}.chart-upload-comparison>.chart-geometry-control{justify-content:flex-end;margin-bottom:6px}.chart-image-details{margin:8px 0;color:#687480;font-size:var(--font-label-size);font-variant-numeric:tabular-nums}.chart-text-button{min-height:44px;padding:8px 10px;color:var(--brand-text);background:transparent;border-radius:7px;white-space:normal;text-align:center}.chart-text-button:hover{background:var(--brand-soft)}.chart-text-button:focus-visible,.chart-geometry-control:focus-within,.chart-diagnostics summary:focus-visible{outline:2px solid var(--brand-focus);outline-offset:3px}.chart-upload-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) auto;align-items:end;gap:12px;margin-top:24px}.chart-timeframe-field{min-width:0}.chart-timeframe-field label{display:block;margin-bottom:7px}.chart-timeframe-field select{width:100%;height:48px;padding:10px 36px 10px 13px;border:1px solid #bac4cc;border-radius:9px;background:#fff;font-size:16px}.chart-timeframe-field select[aria-invalid=true]{border-color:#bc2338;background:#fff0f2}.chart-upload-controls .button{display:flex;align-items:center;justify-content:center;gap:16px;min-height:48px;border-radius:9px}.chart-upload-controls .button:disabled{opacity:.55;cursor:not-allowed}.chart-processing{display:flex;width:min(640px,100%);margin:28px auto 0;min-height:max(440px,55vh);padding:54px 24px;flex-direction:column;align-items:center;justify-content:center;gap:24px;border:1px solid var(--brand-line);border-radius:14px;background:radial-gradient(ellipse at 50% 42%,var(--brand-light),var(--brand-soft) 66%);color:var(--brand-text);text-align:center;scroll-margin-top:90px}.chart-folding-mark{width:112px;height:112px;overflow:visible;filter:drop-shadow(0 14px 14px rgb(var(--brand-glow),.15))}.chart-fold-stem{fill:var(--brand-deep)}.chart-fold-top,.chart-fold-middle{fill:var(--brand-primary);transform-box:fill-box;transform-origin:left center;animation:chart-fold 2.4s ease-in-out infinite}.chart-fold-middle{animation-delay:.17s}.chart-fold-facet{fill:var(--brand-deep);opacity:.38}.chart-processing-heading{margin:0;font-size:var(--font-section-size);font-weight:700}.chart-processing-stage{min-height:1.6em;max-width:40ch;font-size:var(--font-secondary-size);font-weight:600}.chart-processing .button{min-width:112px;min-height:44px;border-radius:9px;background:#fff}.chart-result{margin-top:0;scroll-margin-top:90px}.chart-result-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.chart-result-heading h2{margin:0}.chart-unresolved-status{margin:20px 0 0;color:var(--brand-text);font-size:var(--font-body-size);line-height:1.6}.chart-result-heading .button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;border-radius:9px}.chart-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0 12px;border:1px solid #e3e7ef;border-radius:12px;overflow:hidden}.chart-summary>div{min-width:0;padding:16px 18px}.chart-summary>div+div{border-left:1px solid #e3e7ef}.chart-summary dt{margin-bottom:5px;color:#6c7783;font-size:var(--font-label-size);font-weight:500}.chart-summary dd{margin:0;font-size:17px;font-weight:700;overflow-wrap:anywhere}.chart-scale-note{display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 0 22px;color:#687480;font-size:var(--font-secondary-size)}.chart-line-notice{margin:20px 0 0;padding:12px 16px;border:1px solid #e6cc86;border-radius:9px;background:#fff9e8;color:#755519;font-size:var(--font-secondary-size);line-height:1.6}.chart-gap-fill-note{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:12px 0 0;color:#525d68;font-size:var(--font-label-size);font-variant-numeric:tabular-nums}.chart-gap-fill-note strong{font-weight:600}.chart-estimate-help{display:inline-flex;align-items:center}.chart-estimate-help .info-trigger{min-width:44px;min-height:44px;color:var(--brand-text)}.chart-reconstruction-panel{min-width:0;margin-top:20px;padding:16px;border:1px solid #fff;border-radius:12px;background:#fff}.chart-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;min-height:44px}.chart-panel-heading h3{margin:0;font-size:20px;font-weight:700}.chart-panel-footer{display:flex;flex-wrap:wrap;align-items:flex-end;gap:4px 16px;margin-top:10px}.chart-ohlc-readout{display:flex;flex:1 1 420px;align-items:flex-end;justify-content:flex-end;min-width:0;min-height:3em;line-height:1.5;margin:0;color:#414141;font-size:var(--font-label-size);font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}.chart-interactive{position:relative;width:100%;height:560px;min-width:0;background:#000}.chart-interactive::after{content:"";position:absolute;inset:0;z-index:3;border:1px solid #fff;pointer-events:none}.chart-attribution{flex:1 1 420px;min-width:0;margin:0;color:#414141;font-size:var(--font-label-size)}.chart-attribution a{color:var(--brand-card)}.chart-original{position:relative;width:fit-content;max-width:100%;margin:0 auto;line-height:0}.chart-original>img{display:block;width:auto;height:auto}.chart-original>canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.chart-geometry-control{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;color:#505e6c;font-size:var(--font-label-size)}.chart-geometry-control input{width:18px;height:18px;accent-color:var(--r-ink, #16181d);flex-shrink:0}.chart-source-section{margin-top:32px;padding-top:26px;border-top:1px solid #e3e7ef}.chart-source-section>h2{margin:0;font-size:var(--font-section-size);font-weight:700}.chart-source-section .chart-upload-comparison{margin-top:12px;padding:14px 18px 18px;border:1px solid #e3e7ef;border-radius:12px;background:#f8faff}.chart-source-section .chart-upload-preview{max-height:780px}.chart-source-section .chart-geometry-control{margin-bottom:10px}.chart-diagnostics{margin-top:22px;padding:18px 0;border-top:1px solid #e3e7ef}.chart-diagnostics summary{min-height:32px;color:#505e6c;font-size:var(--font-nav-size);font-weight:600;cursor:pointer}.chart-diagnostics dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:12px 0 20px}.chart-diagnostics dl>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #edf0f3}.chart-diagnostics dt{color:#687480;font-size:var(--font-secondary-size)}.chart-diagnostics dd{margin:0;font-variant-numeric:tabular-nums}#chart-analyzer-tools [hidden],.chart-upload-preview[hidden]{display:none!important}@keyframes chart-fold{0%,12%,82%,100%{transform:perspective(240px) rotateY(0deg)}38%,48%{transform:perspective(240px) rotateY(-78deg)}}@media(prefers-reduced-motion:reduce){.chart-fold-top,.chart-fold-middle{animation:none}}@media(max-width:700px){.chart-upload-form{padding:18px 16px;border-radius:16px}.chart-upload-panel{padding:26px 16px 18px}.chart-upload-heading{gap:8px}.chart-upload-controls{grid-template-columns:minmax(0,1fr) auto;gap:12px}.chart-timeframe-field{grid-column:1 / -1}.chart-timeframe-field{width:100%}.chart-upload-controls>.button{flex:1}.chart-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-summary>div:nth-child(3){border-left:0;grid-column:1 / -1}.chart-summary>div:nth-child(n+3){border-top:1px solid #e3e7ef}.chart-summary>div{padding:13px}.chart-panel-heading{flex-wrap:wrap}.chart-reconstruction-panel{padding:12px}.chart-interactive{height:420px}.chart-upload-preview{max-height:360px}.chart-ohlc-readout{min-height:4.5em}.chart-diagnostics dl{grid-template-columns:minmax(0,1fr)}.chart-processing{min-height:max(370px,55vh);padding:40px 16px;gap:20px}.chart-source-section{margin-top:26px;padding-top:22px}.chart-source-section .chart-upload-comparison{padding:10px}.chart-source-section .chart-upload-preview{max-height:580px}}
