/* AC10 — screenshot scanner, exchange-inspired graphite and yellow. */
:root{--bg:#181a20;--surface:#20232b;--raised:#2b2f38;--text:#eaecef;--muted:#a3aab8;--line:#30343e;--accent:#f0b90b;background:#101217;scrollbar-color:#4c5260 var(--bg)}
.app{border-color:#343944;border-radius:24px;box-shadow:0 24px 64px #0005}.app-header{height:76px;padding-inline:22px;border-bottom:1px solid #252932;gap:8px}.brand-symbol{width:35px;height:27px}.brand-wordmark{width:137px}.header-quota{background:#29271e;color:#d8c781;padding:7px 9px;border-radius:6px;font-size:11px}.quota-count{color:#f0b90b;font-size:11px}
.main-view{padding:25px 22px 0}.upload-heading{display:block;margin:0 0 24px}.upload-heading h2{font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.55px}.upload-heading p{font-size:13px;line-height:1.6;margin-top:9px;color:var(--muted)}
.upload-block{position:relative;margin-bottom:4px}.upload-target{position:relative;display:block;height:312px;padding:0;border:0;border-radius:12px;text-align:center;background:#1b1e26;overflow:hidden;isolation:isolate}.upload-target::before{content:"";position:absolute;inset:0;background:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);background-size:38px 38px;pointer-events:none}.upload-target:hover{background-color:#1f232c}.upload-target:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.scanner-corner{position:absolute;width:30px;height:30px;border-top:2px solid #c9a52f;border-left:2px solid #c9a52f;border-radius:12px 0 0 0;z-index:3;pointer-events:none}.corner-tl{left:0;top:0}.corner-tr{right:0;top:0;transform:rotate(90deg)}.corner-br{right:0;bottom:0;transform:rotate(180deg)}.corner-bl{left:0;bottom:0;transform:rotate(270deg)}.upload-target:hover .scanner-corner,.upload-target.dragging .scanner-corner{border-color:var(--accent)}
.scanner-content{position:absolute;inset:37px 16px 52px;display:flex;align-items:center;flex-direction:column;z-index:1;pointer-events:none}.scanner-file{width:35px;height:35px;stroke:#c1c7d0;stroke-width:1.4;margin-bottom:17px}.scanner-title{font-size:18px;font-weight:650;line-height:1.4;letter-spacing:-.3px}.scanner-help{font-size:12px;line-height:1.6;color:var(--muted);margin-top:9px}.scanner-choose{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--accent);color:#181a20;border-radius:8px;min-height:42px;padding:0 17px;font-size:13px;font-weight:700;margin-top:22px}.scanner-choose .icon{width:17px;height:17px}.upload-target:hover .scanner-choose{background:#f8d33a}.upload-target:active .scanner-choose{transform:translateY(1px)}.upload-formats{position:absolute;left:0;right:0;bottom:19px;text-align:center;font-size:11px;color:#a3aab8;z-index:1;pointer-events:none}.scanner-motion{position:absolute;right:8px;top:8px;width:36px;height:36px;padding:8px;background:transparent;color:#a3aab8;z-index:4;border-radius:6px}.scanner-motion .icon{width:18px;height:18px}.scanner-motion:hover{color:var(--text);background:var(--raised)}.has-image .scanner-motion{display:none}
.upload-sources{align-items:center;padding:0;min-height:54px;margin-top:4px}.upload-sources>span{font-size:11px;color:var(--muted)}.camera-trigger{font-size:12px;color:#eaecef;padding-left:4px;gap:7px}.camera-trigger .icon{width:16px;height:16px}
.reference-example{flex:none;margin:0;border-bottom:1px solid var(--line)}.reference-example summary{min-height:62px;display:flex;align-items:center;gap:12px;padding:9px 0}.reference-example summary>img{width:50px;height:34px;border-radius:4px;object-fit:contain;flex:none;background:#0b0d11}.reference-example summary>span{display:flex;flex-direction:column;gap:4px;flex:1}.reference-example summary strong{font-size:12px;font-weight:550;color:var(--text);line-height:1.4}.reference-example summary>span>span{font-size:11px;color:var(--muted)}.reference-example summary>.icon{width:16px;height:16px;color:var(--muted)}.reference-example[open] summary>.icon{transform:rotate(90deg)}.example-content{width:100%;padding:12px 0 18px}.example-content a{color:var(--accent)}.app.has-image .reference-example{display:none}
.settings{margin-top:8px}.settings summary{min-height:74px;padding:14px 0}.settings summary strong{font-size:14px;font-weight:600;letter-spacing:0}.settings-description{font-size:11px;margin-top:6px}.settings summary>.icon{color:var(--muted)}.settings-body{padding:7px 0 22px}.field-row{gap:12px;margin-bottom:20px}.select-field{height:66px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:0 12px}.select-field+label{padding-left:12px}.select-field select{padding:28px 20px 11px 0;font-size:13px;font-weight:600}.select-field>span{font-size:11px}.select-field>.icon,.select-field:last-child>.icon{right:12px}.custom-field{margin-bottom:20px}.segments{border-radius:8px;background:#222630;padding:3px;gap:3px}.segments span{border-radius:6px;font-weight:550;min-height:38px;color:#a3aab8}.segments input:checked+span{background:#3b3520;color:#f7cf48}.segments label:hover span{box-shadow:inset 0 0 0 1px #6e6750}
#home-view .form-action{display:none}.app.has-image #home-view .form-action{display:flex}.primary{height:52px;border-radius:10px;justify-content:center;font-size:14px;font-weight:700;gap:10px;color:#181a20;background:var(--accent)}.primary:hover:not(:disabled){background:#f8d33a}.primary:disabled{background:#30343e;color:#a3aab8}.primary.busy{background:#4e4529;color:#f4d776}.form-action{padding:20px 0 22px}.form-action>p{color:var(--muted)}.image-preview{height:282px}.image-preview>img{height:232px}.image-caption{font-size:11px}.app.has-image .upload-heading{margin-bottom:20px}.app.has-image .settings{border-top:1px solid var(--line)}.has-image.upload-block{margin-bottom:8px}
.bottom-nav{min-height:74px;background:#181a20;border-top:1px solid #2b3039;padding-top:9px}.bottom-nav button{font-size:11px;color:#969eae;gap:6px}.bottom-nav .icon{width:21px;height:21px}.bottom-nav button.active,.bottom-nav button.active .icon{color:var(--accent)}.bottom-nav button.active::after{display:none}.bottom-nav button:hover{background:#20242d}.report-copy,.profile-intro p,.profile-note{color:var(--muted)}.report-note,.profile-data>div{border-color:var(--line)}.report-chart{overflow:hidden;border-radius:8px}.text-button{color:var(--accent)}
.review-tools h1{font-size:23px;line-height:1.4;letter-spacing:-.5px}.review-tools>p{font-size:14px;line-height:1.8}.studio-logo{margin-bottom:52px}.preview-controls{margin-top:35px}.state-dot{width:6px;height:6px;border-radius:50%;transform:none}.state-choice{border-color:var(--line)}.studio-note{margin-top:45px}.mobile-demo{background:#101217}
@media(max-width:700px){:root{background:var(--bg)}.app{border:0;border-radius:0;box-shadow:none}.app-header{height:calc(72px + env(safe-area-inset-top))}.main-view{padding-top:23px}.bottom-nav{margin-top:18px}}
@media(max-width:360px){.app-header{padding-inline:18px}.brand-symbol{width:30px}.brand-wordmark{width:127px}.header-quota{font-size:11px;padding:6px}.main-view{padding-inline:18px}.upload-heading h2{font-size:23px}.upload-heading p{font-size:12px}.upload-target{height:298px}.scanner-content{top:30px}.scanner-title{font-size:17px}.scanner-choose{margin-top:19px;font-size:12px}.upload-sources>span{font-size:11px}.camera-trigger{font-size:11px}.reference-example summary{gap:10px}.reference-example summary strong{font-size:11px}.reference-example summary>img{width:43px;height:30px}}
@media(prefers-reduced-motion:reduce){.scanner-motion{display:none}}

.title-row h2{font-size:24px;letter-spacing:-.55px}.profile-intro img{width:50px;height:40px;object-fit:contain;object-position:left center}.history-item strong{font-size:16px}.history-item{padding:21px 0}.history-item .icon{width:18px}

/* AC11 — open scanner aperture, separate primary action, restrained chrome. */
:root{--bg:#15171c;--surface:#1d2027;--raised:#282c35;--line:#2c3038;--muted:#a7adb8;--accent:#f2c438;background:#0d0f13;scrollbar-color:#414751 var(--bg)}
.app-header{border-bottom:0;height:80px;padding-inline:24px}.header-quota{background:none;border-radius:0;padding:0;font-size:11px;color:var(--muted)}.quota-count{color:var(--text);font-weight:650}.brand-symbol{width:34px}.brand-wordmark{width:137px}
.main-view{padding:18px 24px 0}.upload-heading{margin:0 0 27px}.upload-heading h2{font-size:23px;font-weight:650;letter-spacing:-.55px}.app:not(.has-image) #upload-intro{display:none}
.upload-target{height:264px;border-radius:0;background:none;overflow:hidden}.upload-target::before{display:none}.upload-target:hover{background:#ffffff02}.scanner-corner{width:32px;height:32px;border-width:1.5px;border-color:#9b9e9f;border-radius:11px 0 0 0}.upload-target:hover .scanner-corner{border-color:#e7c46b}
.scanner-content{inset:49px 18px 48px}.scanner-file{width:30px;height:30px;stroke:#d5d7dc;stroke-width:1.35;margin-bottom:20px}.scanner-title{font-size:17px;font-weight:550;letter-spacing:-.25px}.scanner-help{font-size:12px;line-height:1.65;margin-top:10px;color:var(--muted)}.upload-formats{font-size:11px;bottom:18px;color:#a7adb8}.scanner-motion{right:5px;top:5px;color:#8f96a3}
.upload-choice{margin-top:23px;height:50px;border-radius:10px;font-size:14px;font-weight:650}.primary:hover:not(:disabled){background:#f6d15c}.has-image .upload-choice{display:none}.upload-sources{justify-content:center;min-height:49px;margin:4px 0 7px}.camera-trigger{font-size:12px;color:#c1c6ce;padding:0;min-height:44px;gap:8px}.camera-trigger .icon{width:17px;height:17px}
.reference-example{border:0;margin-top:0}.reference-example summary{min-height:64px;gap:13px;border-bottom:1px solid var(--line)}.reference-example summary>img{width:47px;height:34px;background:none;border-radius:3px;opacity:.85}.reference-example summary strong{font-size:13px;font-weight:500}.reference-example summary>span>span{font-size:11px}.reference-example summary>.icon{width:15px}.settings{margin-top:0}.settings summary{min-height:77px;padding:17px 0}.settings summary strong{font-weight:550;font-size:14px}.settings-description{font-size:12px;margin-top:5px}
.bottom-nav{background:var(--bg);border-top:1px solid #272b33;min-height:72px;margin-top:12px}.bottom-nav button{font-size:11px;gap:7px;font-weight:500}.bottom-nav .icon{width:20px;height:20px;stroke-width:1.5}.bottom-nav button.active .icon{color:#f2c438}.bottom-nav button.active{color:#e9d58f}.bottom-nav button:hover{background:none;color:var(--text)}.segments input:checked+span{background:#383329;color:#ead28b}.segments{background:#22252d}.primary{color:#1c1b15}.app.has-image .upload-heading h2{font-size:23px}.app.has-image .upload-heading p{font-size:12px;margin-top:8px}.app.has-image .settings{border-color:var(--line)}
@media(max-width:700px){.app-header{height:calc(76px + env(safe-area-inset-top))}.main-view{padding-top:18px}.app{background:var(--bg)}}
@media(max-width:360px){.app-header{padding-inline:20px}.brand-symbol{width:30px}.brand-wordmark{width:127px}.header-quota{padding:0}.main-view{padding-inline:20px}.upload-target{height:254px}.scanner-content{top:44px}.scanner-title{font-size:17px}.upload-heading{margin-bottom:24px}.reference-example summary strong{font-size:12px}.reference-example summary>span>span{font-size:11px}.upload-heading h2{font-size:22px}}

/* AC13 — one optical surface from empty aperture to the user's image. */
.scanner-frame,.watch-frame,.snapshot-outline{
  --frame-cut:14px;
  --frame-outline:polygon(var(--frame-cut) 0,calc(100% - var(--frame-cut)) 0,100% var(--frame-cut),
    100% calc(100% - var(--frame-cut)),calc(100% - var(--frame-cut)) 100%,var(--frame-cut) 100%,
    0 calc(100% - var(--frame-cut)),0 var(--frame-cut));
}
#home-view .scanner-frame,.watch-frame{--frame-cut:12px;--corner-stroke:2.5}
.scanner-frame{position:relative}
.scanner-stage{position:relative;height:264px;border-radius:0;clip-path:var(--frame-outline);isolation:isolate;background:radial-gradient(ellipse at 50% 0%,#252a34 0%,#1a1d24 48%,#17191f 100%);box-shadow:inset 0 1px 0 #ffffff08,inset 0 -1px 0 #ffffff04;overflow:hidden}
.scanner-stage::before{content:"";position:absolute;inset:0;border:1px solid #ffffff05;border-radius:inherit;pointer-events:none;z-index:3}
.upload-target,.upload-target:hover{height:100%;background:none;border-radius:0;overflow:visible;isolation:auto}
.upload-target:focus-visible{outline-offset:-5px}
.scanner-content{inset:0;justify-content:center;padding:0 12px;z-index:2;text-shadow:none}
.scanner-file{width:46px;height:46px;stroke:#c9cdd4;stroke-width:1.25;margin-bottom:23px}
.scanner-title{font-size:16px;font-weight:550;letter-spacing:-.2px}
.scanner-help{font-size:12px;line-height:1.65;margin-top:9px;color:#a7adb8}
.scanner-title::before,.scanner-help::before{display:none}
/* The glyph's inner edge runs from (16,2) to (2,16), matching the panel bevel. */
.scanner-corner{
  --corner-size:calc(var(--frame-cut) * 3);
  --corner-offset:calc(var(--frame-cut) / -7);
  width:var(--corner-size);height:var(--corner-size);border:0;border-radius:0;
  color:#b5b6b0;z-index:4;transition:color .2s;
}
.scanner-corner svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:var(--corner-stroke,2);stroke-linecap:butt;stroke-linejoin:miter}
.corner-tl,.corner-bl{left:var(--corner-offset)}
.corner-tr,.corner-br{right:var(--corner-offset)}
.corner-tl,.corner-tr{top:var(--corner-offset)}
.corner-bl,.corner-br{bottom:var(--corner-offset)}
.scanner-frame:has(.upload-target:hover) .scanner-corner,.scanner-frame:has(.dragging) .scanner-corner{color:#e4d8ab}
.scanner-motion{top:5px;right:5px;width:40px;height:40px;color:#969da9}
.scanner-motion .icon{width:14px;height:14px}
.scanner-meta{display:flex;justify-content:space-between;gap:8px;margin-top:12px;font-size:11px;line-height:1.5;color:#a7adb8}
.scanner-meta .upload-formats{position:static;font-size:11px;text-align:left}
.upload-choice{margin-top:20px}
.has-image .scanner-meta{display:none}
.image-preview{position:absolute;inset:8px;border:0;border-radius:12px;height:auto;background:#111318;overflow:hidden}
.image-preview>img{display:block;width:100%;height:100%;object-fit:contain}
.image-caption{height:49px;border:0;background:none;padding:0;gap:10px}
.image-caption #image-name{font-size:11px;color:var(--muted)}
.app.has-image .upload-heading{margin-bottom:27px}
.app.has-image #upload-intro{display:none}
.app.image-arrived #analyze-button:not(:disabled){transition:background-color .25s}
@media(max-width:360px){.scanner-stage{height:254px}.scanner-title{font-size:15px}.scanner-help{max-width:210px}.scanner-meta{justify-content:center}.app.has-image .upload-heading{margin-bottom:24px}}
@media(prefers-reduced-motion:reduce){.scanner-motion{display:none}}

/* Individual SVG candles from historical OHLC. */
.ambient-chart{display:none}
body[data-motion="chart"] .ambient-chart{display:block;position:absolute;inset:14px 4px 27px;pointer-events:none;z-index:0;mask-image:radial-gradient(ellipse 55% 27% at 50% 54%,#0001 35%,#0009 82%,#000 100%)}
.ambient-chart svg{display:block;width:100%;height:100%;overflow:visible}
:root{--candle-up:#0ecb81;--candle-down:#ff4b45}
.chart-candle{color:var(--candle-up);opacity:.32}
.chart-candle.down{color:var(--candle-down);opacity:.38}
.candle-wick{fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-dasharray:1;animation:candle-wick-in .48s ease-out var(--candle-delay) both}
.candle-body{fill:currentColor;transform-box:fill-box;transform-origin:center bottom;animation:candle-body-in .55s cubic-bezier(.16,1,.3,1) var(--candle-delay) both}
.chart-candle.down .candle-body{transform-origin:center top}
body[data-motion="chart"] .scanner-stage{background:#191c22}
body[data-motion="chart"] .has-image .ambient-chart{display:none}
.scanner-paused .candle-wick,.scanner-paused .candle-body{animation-play-state:paused}
@keyframes candle-wick-in{from{stroke-dashoffset:1;opacity:0}to{stroke-dashoffset:0;opacity:1}}
@keyframes candle-body-in{from{transform:scaleY(.02);opacity:0}25%{opacity:1}to{transform:scaleY(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.candle-wick,.candle-body{animation:none;transform:none;stroke-dashoffset:0;opacity:1}}

/* Streaming uses one retained SVG window, with softly disappearing edge candles. */
.ambient-chart svg{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.chart-streaming .candle-wick,.chart-streaming .candle-body{animation:none}

/* Decorative TP outcome. Random amounts are explicitly labelled as a demo. */
.take-profit-demo{display:none;position:absolute;inset:0;pointer-events:none;z-index:1}
body[data-motion="chart"] .take-profit-demo{display:block}
body[data-motion="chart"] .has-image .take-profit-demo{display:none}
.tp-overlay{mask-image:radial-gradient(ellipse 55% 27% at 50% 54%,#0001 35%,#000 82%);position:absolute;inset:14px 4px 27px;width:calc(100% - 8px);height:calc(100% - 41px);overflow:visible}
#tp-line{stroke:#a1afa22b;stroke-width:.75;stroke-dasharray:3 5;fill:none}
#tp-label{font-family:inherit;font-size:11px;font-weight:500;fill:#a1afa266}
#tp-touch{fill:#a1afa280;r:2}
.tp-hit #tp-line{stroke:#a1afa257;stroke-dasharray:3 5}
.tp-hit #tp-label{fill:#a1afa280}
.tp-profit{position:absolute;left:20px;top:20px;opacity:0;display:flex;flex-direction:row;align-items:baseline;gap:8px;padding:0;background:none;color:#0ecb81}
.tp-profit strong{font-size:12px;line-height:1.4;font-weight:500;letter-spacing:0;font-variant-numeric:tabular-nums}
.tp-profit strong span{font-size:11px;font-weight:500;letter-spacing:0;margin-left:3px}
@media(prefers-reduced-motion:reduce){.take-profit-demo{display:none!important}}

/* Compact parameters: fields, risk scale, neutral segmented control. */
#settings{border-top:1px solid var(--line)}
.settings-body{padding:20px 0 0}
.settings .field-row{gap:12px;margin:0;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.settings .select-field{height:64px;padding:0;border:1px solid #353942;border-radius:8px;background:#1c1f25}
.settings .select-field>span{position:absolute;top:9px;left:12px;font-size:11px;line-height:16px;color:var(--muted)}
.settings .select-field select{height:100%;padding:27px 29px 9px 12px;background:none;font-size:14px;font-weight:550;border-radius:8px}
.settings .select-field>.icon{right:12px;bottom:14px;width:12px;height:12px;color:var(--muted)}
.settings .select-field:focus-within{border-color:#8b929e}
.field-note{font-size:11px;line-height:17px;color:var(--muted);margin-top:8px}
.settings .custom-field{margin:14px 0 0}.custom-field input{height:44px;background:#1c1f25}
.settings .parameter-group{margin:20px 0 0}
.settings .parameter-group legend{padding:0;margin:0 0 6px;font-size:12px;line-height:18px;color:var(--muted);font-weight:500}
.parameter-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.parameter-choice{position:relative;cursor:pointer;min-width:0}
.parameter-choice input{position:absolute;opacity:0;width:1px;height:1px;inset:0}
.choice-face{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;color:var(--muted);border-radius:6px;transition:color .15s}
.choice-face strong{font-size:12px;line-height:18px;font-weight:500;white-space:nowrap}
.parameter-choice input:checked+.choice-face{color:var(--text)}
.parameter-choice:hover .choice-face{color:var(--text)}
.parameter-choice input:focus-visible+.choice-face{outline:2px solid #c4c9d2;outline-offset:2px}
.risk-options{gap:6px}
.risk-options .choice-face{position:relative;flex-direction:column;justify-content:center;gap:2px;min-height:58px;padding:5px 4px 9px;border-radius:3px}
.risk-options .choice-face small{font-size:11px;line-height:16px;font-variant-numeric:tabular-nums;color:var(--muted)}
.risk-options .choice-face:after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:#3f444d;transition:background .15s}
.risk-options input:checked+.choice-face:after{height:2px;background:#d9dde4}
.risk-options input:checked+.choice-face strong{font-weight:600}
.risk-options .parameter-choice:hover .choice-face:after{background:#848b96}
.risk-options .parameter-choice:has(input:checked):hover .choice-face:after{background:#d9dde4}
.settings .parameter-group+.parameter-group{margin-top:18px}
.style-options{gap:2px;padding:3px;background:#202329;border-radius:8px}
.style-options .choice-face{min-height:38px;justify-content:center;padding:0 4px;transition:background .15s,color .15s}
.style-options input:checked+.choice-face{background:#3a3e46;color:#f1f2f4}
.settings .trading-style-group legend{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:32px;margin-bottom:6px}
#parameter-help-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-6px -13px -6px 0;padding:0;background:none;color:var(--muted);border-radius:6px}
#parameter-help-toggle .icon{width:16px;height:16px}
#parameter-help-toggle:hover,#parameter-help-toggle[aria-expanded="true"]{color:var(--text)}
#parameter-help-toggle:focus-visible{outline:1px solid #bdc4d0;outline-offset:-4px}
.parameter-help{position:fixed;inset:auto;margin:0;width:min(278px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.parameter-help::backdrop{background:transparent;pointer-events:none}
.help-styles,.help-styles dd,.parameter-help p{margin:0}
.help-styles>div,.help-risk>p:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.help-styles>div{padding-block:6px}
.help-styles dt{font-weight:650}
.help-styles dd,.help-risk{color:var(--muted)}
.help-styles [aria-current="true"] dt{color:var(--accent)}
.help-risk{margin-top:5px;padding-top:9px;border-top:1px solid var(--line)}
.help-risk strong{font-weight:600;color:var(--text)}
.parameter-help #risk-description{margin-top:3px;font-size:11px}
#home-view .form-action{display:flex;margin-top:0;padding-top:10px}
@media(max-width:360px){.parameter-options{gap:3px}.choice-face{gap:6px}.choice-face strong{font-size:11px}.settings .select-field select{font-size:13px}.style-options{gap:2px}}
@media(prefers-reduced-motion:reduce){.choice-face,.style-options .choice-face,.risk-options .choice-face:after{transition:none}}
/* Custom pickers share a quiet floating surface; browser select UI stays hidden. */
.picker-trigger{position:relative;display:flex;flex-direction:column;justify-content:center;gap:4px;width:100%;height:100%;padding:8px 30px 8px 12px;text-align:left;background:none;border-radius:8px}
.picker-trigger>span{font-size:11px;line-height:16px;font-weight:400;color:var(--muted)}
.picker-trigger>strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:20px;font-weight:550;color:var(--text)}
.picker-trigger>.icon{position:absolute;right:12px;bottom:15px;width:12px;height:12px;color:var(--muted);transition:transform .15s}
.picker-trigger[aria-expanded="true"]>.icon{transform:rotate(180deg)}
.picker-trigger:focus-visible{outline:1px solid #b1b8c5;outline-offset:3px}
.parameter-picker{position:fixed;inset:auto;margin:0;padding:0;border:1px solid #383d47;border-radius:12px;background:#1a1d23;color:var(--text);box-shadow:0 12px 32px #0007;overflow:hidden;font-family:Manrope,sans-serif}
.parameter-picker:popover-open{display:flex;flex-direction:column}
.parameter-picker::backdrop{background:transparent}
.picker-header{display:flex;align-items:center;justify-content:space-between;padding:2px 6px 0 16px;flex:none;min-height:46px}
.picker-header h3{font-size:13px;font-weight:600;line-height:20px;letter-spacing:0}
#picker-close,#search-clear{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;background:none;color:var(--muted);border-radius:6px;padding:0}
#picker-close .icon,#search-clear .icon{width:16px;height:16px}
#ticker-tools{flex:none}
.picker-search{display:flex;align-items:center;gap:9px;margin:0 12px;border:1px solid #3d424c;border-radius:7px;background:#15181e;padding-left:11px;height:44px}
.picker-search:focus-within{border-color:#9199a6}
.picker-search>.icon{width:16px;height:16px;color:var(--muted)}
#ticker-search{background:none;border:0;outline:0;min-width:0;width:100%;height:100%;padding:0 4px 0 0;font-size:13px;color:var(--text)}
#ticker-search::placeholder{color:var(--muted)}
#ticker-search::-webkit-search-cancel-button{display:none}
.ticker-categories{display:flex;gap:16px;overflow-x:auto;padding:0 16px;scrollbar-width:thin;scrollbar-color:#484e58 transparent;flex:none}
.ticker-categories button{position:relative;min-height:42px;flex:none;padding:0 0 2px;background:none;font-size:11px;font-weight:500;color:var(--muted)}
.ticker-categories button[aria-pressed="true"]{color:#f0f1f3}
.ticker-categories button[aria-pressed="true"]:after{content:'';position:absolute;height:2px;background:#d1d6df;bottom:5px;left:0;right:0;border-radius:1px}
.picker-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:2px 4px;overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:6px 8px 8px;border-top:1px solid #30353e;scrollbar-width:thin;scrollbar-color:#484e58 transparent}
.picker-option{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;min-height:57px;padding:8px 9px;background:none;color:#dde1e7;border-radius:7px;text-align:left}
.picker-option>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.picker-option strong{font-size:12px;line-height:18px;font-weight:550;white-space:nowrap}
.picker-option small{font-size:11px;line-height:15px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picker-option>.icon{width:14px;height:14px;opacity:0;color:#e4d28d;flex:none}
.picker-option[aria-pressed="true"]{background:#2a2e36;color:#f3f4f6}
.picker-option[aria-pressed="true"]>.icon{opacity:1}
.picker-option:hover{background:#252931}
.picker-auto{grid-column:1/-1;min-height:52px;margin-bottom:4px}
.picker-empty{grid-column:1/-1;margin:0;padding:24px 12px;text-align:center;font-size:12px;line-height:1.7;color:var(--muted)}
.picker-footer{flex:none;border-top:1px solid #30353e;padding:0 12px}
#ticker-custom{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:0 4px;background:none;font-size:12px;color:#ced3dc;text-align:left}
#ticker-custom>.icon{width:15px;height:15px;color:var(--muted)}
.parameter-picker button:focus-visible{outline:1px solid #bdc4d0;outline-offset:-2px}
@media(max-width:360px){.picker-trigger>strong{font-size:13px}.ticker-categories{gap:14px;padding-inline:14px}.picker-option{padding-inline:7px}.picker-option strong{font-size:11px}.picker-option>.icon{width:12px;height:12px}}
@media(prefers-reduced-motion:reduce){.picker-trigger>.icon{transition:none}}

.ticker-categories{gap:18px}
.ticker-categories button{font-size:13px;min-height:46px}
#ticker-custom{min-height:48px;font-size:13px}

/* Three compact upload sources. */
.upload-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px;padding:0 16px;margin:20px 0 23px;min-height:0}
.source-button{display:flex;align-items:center;flex-direction:column;gap:9px;padding:0;background:none;color:var(--muted);font-size:12px;line-height:18px;font-weight:500;border-radius:8px}
.source-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#22252c;color:#b9c0cb;transition:background .15s,color .15s}
.source-icon .icon{width:21px;height:21px;stroke-width:1.6}
.source-button:hover .source-icon,.source-button[aria-expanded="true"] .source-icon{background:#2d313a;color:var(--text)}
.source-button:hover{color:var(--text)}
.source-button:focus-visible{outline:1px solid #bdc4d0;outline-offset:5px}
.image-link-panel { display: grid; grid-template-rows: 0fr; opacity: 0; }
.image-link-panel:not([inert]) { grid-template-rows: 1fr; opacity: 1; }
.image-link-clip { min-height: 0; overflow: hidden; }
.image-link-content { padding: 4px 2px 14px; }
.image-link-row { display: flex; align-items: center; gap: 3px; padding: 5px; background: var(--surface); border-block: 1px solid var(--line); }
.image-link-field { flex: 1; min-width: 0; display: grid; gap: 2px; padding-inline: 8px 0; text-align: start; }
.image-link-field span { color: var(--muted); font-size: 11px; line-height: 1.4; }
#image-link { min-width: 0; width: 100%; padding: 0; height: 25px; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 16px; }
#image-link::placeholder { color: var(--muted); }
.image-link-row:has(input:focus) { border-block-end-color: var(--accent); }
.image-link-row button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; }
#load-image-link { position: relative; isolation: isolate; color: var(--accent); }
#load-image-link::before { content: ''; position: absolute; z-index: -1; inset: 5px; background: #383120; clip-path: polygon(0 0,calc(100% - 6px) 0,100% 6px,100% 100%,0 100%); }
#load-image-link:disabled { opacity: .55; }
#close-image-link { color: var(--muted); }
#close-image-link .icon { width: 16px; height: 16px; }
#image-link-error { margin: 8px 0 0; font-size: 12px; line-height: 18px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .image-link-panel { transition: grid-template-rows 210ms cubic-bezier(.23,.7,.25,1), opacity 160ms ease; }
  .image-link-panel:not([inert]) { transition-duration: 275ms, 220ms; }
}

@media(prefers-reduced-motion:reduce){.source-icon{transition:none}}

.style-duration{display:flex;align-items:center;gap:7px;margin:10px 0 6px;font-size:12px;line-height:18px;color:var(--muted)}
.style-duration .icon{width:15px;height:15px;flex:none;stroke-width:1.6}

/* Brand accents identify the upload frame and current parameter choices. */
.source-icon{color:#d1d6df}
.risk-options input:checked+.choice-face strong{color:var(--accent)}
.risk-options input:checked+.choice-face:after,.risk-options .parameter-choice:has(input:checked):hover .choice-face:after{background:var(--accent)}
.style-options input:checked+.choice-face{background:#30343d;color:var(--accent)}
.picker-trigger>strong{color:#f2f3f5}

.scanner-corner{color:var(--accent)}
.scanner-frame:has(.upload-target:hover) .scanner-corner,.scanner-frame:has(.dragging) .scanner-corner{color:#f6d15c}

/* Result: observation, annotated evidence, then the next condition to watch. */
#result-view{padding-top:0}
.result-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.result-topline .back-link{margin:0;font-size:12px}
.result-topline>span{font-size:11px;color:var(--muted)}
.result-instrument{display:flex;align-items:center;justify-content:space-between;gap:12px}
.result-instrument h2{font-size:23px;line-height:30px;letter-spacing:-.5px;font-weight:650}
.result-instrument h2 span{color:var(--muted);font-weight:500;font-size:18px}
.result-timeframe{font-size:12px;color:var(--muted);padding:5px 9px;border:1px solid var(--line);border-radius:6px}
.result-finding{font-size:23px;font-weight:600;line-height:1.35;letter-spacing:-.5px;margin:21px 0 12px;text-wrap:balance}
.result-intro{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.result-intro strong,.result-next p strong{color:var(--text);font-weight:600;white-space:nowrap}
.result-figure{margin:22px 0 0}
.result-chart-toolbar{display:flex;justify-content:space-between;align-items:center;min-height:38px;font-size:11px;color:var(--muted)}
#report-levels-toggle{display:flex;align-items:center;gap:6px;min-height:38px;padding:0 0 0 10px;background:none;color:var(--muted);font-size:12px}
#report-levels-toggle[aria-pressed="true"]{color:var(--accent)}
#report-levels-toggle .icon{width:13px;height:13px;opacity:0}
#report-levels-toggle[aria-pressed="true"] .icon{opacity:1}
#result-view .report-chart{margin:0 -8px;background:#191c22;border-radius:8px;padding:9px 2px 5px;overflow:hidden}
.report-chart .report-grid{stroke:#2b3039;stroke-width:.6}
.report-axis{fill:#a7adb8;font:11px Manrope,sans-serif}
.report-candle path{stroke-width:1;stroke:currentColor}
.report-candle rect{fill:currentColor}
.report-candle.positive{color:var(--candle-up)}.report-candle.negative{color:var(--candle-down)}
.report-support rect{fill:#d3d9df;opacity:.045}
.report-support path{stroke:#a7adb8;stroke-dasharray:4 4;stroke-width:1}
.report-confirmation path{stroke:#f2c438;stroke-dasharray:4 4;stroke-width:1;opacity:.5}
.report-touch{fill:#191c22;stroke:#eaecef;stroke-width:1.4}
.report-last{fill:#f2c438}
.report-chart[data-level="support"] .report-support path{stroke:#eaecef;stroke-width:1.3}
.report-chart[data-level="confirmation"] .report-confirmation path{opacity:1;stroke-width:1.4}
.report-chart[data-level="confirmation"] .report-touch{opacity:.3}
.hide-levels .report-annotation{visibility:hidden}
.result-figure figcaption{font-size:11px;color:var(--muted);margin-top:9px}
.result-levels{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.result-level{display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:none;border-radius:0;border-bottom:1px solid #353942;padding:8px 0 12px;text-align:left;color:var(--muted)}
.result-level[aria-pressed="true"]{border-bottom-color:var(--accent);color:var(--text)}
.level-name{display:flex;align-items:center;gap:6px;font-size:11px;line-height:16px}
.level-name .icon{width:11px;height:11px}
.result-level strong{font-size:19px;line-height:24px;font-weight:600;letter-spacing:-.2px;font-variant-numeric:tabular-nums}
.level-explanation{min-height:64px;font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0 0}
.result-next{margin-top:21px;border-top:1px solid var(--line);padding-top:22px}
.result-next>h3{font-size:17px;line-height:24px;font-weight:600;margin:0 0 16px;letter-spacing:-.2px}
.next-step{display:flex;gap:11px;align-items:flex-start}
.next-step>.icon{width:18px;height:18px;color:var(--accent);flex:none;margin-top:2px}
.result-next h4{font-size:13px;font-weight:600;line-height:21px;margin:0 0 6px}
.next-step h4{color:var(--accent)}
.result-next p{font-size:12px;line-height:1.75;color:var(--muted);margin:0}
.result-cancel{margin:18px 0 0 29px}
.result-details{margin-top:22px;border-block:1px solid var(--line)}
.result-details summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;font-size:12px;min-height:52px;cursor:pointer}
.result-details summary::-webkit-details-marker{display:none}
.result-details summary .icon{width:14px;height:14px;color:var(--muted)}
.result-details[open] summary .icon{transform:rotate(180deg)}
.result-details p{font-size:12px;line-height:1.75;color:var(--muted);margin:0 0 14px}
.result-details strong{font-weight:600;color:var(--text)}
.result-demo-note{font-size:11px;line-height:1.7;color:var(--muted);margin:17px 0 20px}
#result-view>.result-new{margin:0 0 18px}
@media(max-width:360px){.result-finding{font-size:21px}.result-levels{gap:14px}.result-chart-toolbar{font-size:11px}.level-explanation{min-height:80px}}

/* Telegram supplies the brand header; keep the quota beside the task title. */
.upload-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
.upload-heading>p{grid-column:1/-1}
.app{padding-top:env(safe-area-inset-top)}

/* Instrument and interval menus share a header and row treatment. */
.parameter-picker { border-radius: 8px; }
.parameter-picker .picker-header {
  min-height: 50px; gap: 4px; padding: 0; padding-inline: 14px 4px; border-bottom: 1px solid var(--line);
}
.parameter-picker .picker-header h3 { font-size: 14px; font-weight: 650; }
.parameter-picker #picker-close { min-width: 44px; height: 44px; }
.parameter-picker .picker-search {
  flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent;
}
.picker-search:focus-within > .icon { color: var(--accent); }
.picker-search:has(input:focus-visible) { box-shadow: inset 0 -1px var(--accent); }
#ticker-search { font-size: 16px; }
#search-clear { min-width: 40px; height: 44px; }
.picker-market {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 2px 10px; padding: 9px 14px 5px; color: var(--muted); font-size: 11px; line-height: 16px;
}
.parameter-picker .picker-results {
  grid-template-columns: minmax(0,1fr); gap: 0; padding: 0 14px 4px; border: 0;
}
.parameter-picker .picker-option {
  gap: 10px; min-height: 44px; padding: 4px 0; border-radius: 0; text-align: start;
  border-bottom: 1px solid var(--line);
}
.parameter-picker[data-kind="ticker"] .picker-option:last-child { border-bottom-color: transparent; }
.parameter-picker[data-kind="ticker"] .picker-option > span {
  flex: 1; display: grid; grid-template-columns: minmax(5.75em, 35%) minmax(0,1fr);
  align-items: baseline; gap: 10px;
}
.parameter-picker[data-kind="ticker"] .picker-auto > span { display: block; }
.parameter-picker .picker-option strong {
  font-size: 14px; line-height: 20px; font-weight: 650; unicode-bidi: isolate;
}
.parameter-picker[data-kind="ticker"] .picker-option small { font-size: 13px; line-height: 18px; }
.parameter-picker[data-kind="ticker"] .quote { font-size: .78em; color: var(--muted); font-weight: 500; }
.parameter-picker .picker-option[aria-pressed="true"] {
  color: var(--accent); background: transparent; box-shadow: none;
}
.parameter-picker .picker-option > .icon { width: 15px; height: 15px; color: var(--accent); }
@media (hover:hover) {
  .parameter-picker .picker-option:hover { background: #23262d; }
}

.parameter-picker .interval-results { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
.interval-results .picker-option { justify-content: flex-start; }
.interval-results .picker-option strong { white-space: normal; font-variant-numeric: tabular-nums; }
.interval-results .picker-option:nth-last-child(-n+2) { border-bottom-color: transparent; }
.interval-results .picker-auto { margin: 0; }
.interval-results .picker-auto > span { flex-flow: row wrap; gap: 2px 10px; align-items: baseline; }
.interval-results .picker-auto > .icon { margin-inline-start: auto; }

/* Motion follows the surface: anchored controls unfold, centered dialogs settle. */
@media (prefers-reduced-motion: no-preference) {
  :is(dialog, [popover]) {
    --entry-offset: 6px;
    opacity: 0;
    translate: 0 var(--entry-offset);
    pointer-events: none;
    transition: opacity 110ms ease-in, translate 110ms ease-in;
    transition-behavior: allow-discrete;
    transition-property: opacity, translate, display, overlay;
  }
  .parameter-picker { --entry-offset: -5px; }
  .parameter-picker[data-above] { --entry-offset: 5px; }
  :is(dialog[open], [popover]:popover-open) {
    opacity: 1;
    translate: 0;
    pointer-events: auto;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(.2,.75,.25,1);
  }
  dialog::backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease-out;
    transition-behavior: allow-discrete;
    transition-property: opacity, display, overlay;
  }
  dialog[open]::backdrop { opacity: 1; pointer-events: auto; }
  @starting-style {
    :is(dialog[open], [popover]:popover-open):not(.parameter-picker) { opacity: 0; translate: 0 var(--entry-offset); }
    dialog[open]::backdrop { opacity: 0; }
  }
  .report-detail:not([hidden]) {
    animation: panel-arrive 160ms cubic-bezier(.2,.75,.25,1);
  }
  @keyframes panel-arrive { from { opacity: .3; translate: 0 -3px; } }
}
