.profile-performance{overflow:hidden;margin:20px 0 28px;background:var(--panel)}
.performance-toolbar{padding:18px 22px;display:flex;gap:16px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
.chart-bases,.chart-ranges,.trade-legend{display:flex;gap:4px}.chart-bases{padding:4px;border-radius:10px;background:var(--soft)}
.profile-performance button{min-height:44px;font-size:13px}.chart-bases button,.chart-ranges button,.trade-legend button{border:0;padding:8px 13px;color:var(--muted)}
.chart-bases button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:0 1px 4px #0001}.chart-ranges button[aria-pressed=true]{background:var(--selected);color:var(--green)}
.performance-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px}.performance-main{min-width:0;padding:24px 14px 12px}
.performance-headline{display:flex;justify-content:space-between;gap:12px;padding:0 12px}.metric-caption,#profile-date{display:block;font-size:12px;color:var(--muted)}
#profile-value{display:block;font-size:38px;line-height:1.3;letter-spacing:-1.4px;font-weight:550;font-variant-numeric:tabular-nums;margin:4px 0}
.trade-legend{align-self:start}.buy-text{color:var(--green)!important}.sell-text{color:var(--red)!important}.trade-legend button[aria-pressed=false]{opacity:.5;text-decoration:line-through}
.profile-plot{position:relative;margin:16px 0 0;aspect-ratio:860/340;min-height:160px;touch-action:pan-y;outline-offset:-2px}
.profile-plot .profile-chart{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible}
.plot-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 6}.plot-label{fill:var(--muted);font-size:12px;font-family:inherit}
.equity-line{fill:none;stroke:var(--green);stroke-width:2.6;stroke-linejoin:round;vector-effect:non-scaling-stroke}.equity-area{fill:url(#profile-equity-fill)}.equity-point{fill:var(--green)}
.profile-crosshair{stroke:var(--muted);stroke-width:1;stroke-dasharray:4 4;pointer-events:none}.profile-selected-dot{fill:var(--panel);stroke:var(--green);stroke-width:2;pointer-events:none}
.trade-markers{position:absolute;inset:0;pointer-events:none}.profile-performance .trade-marker{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;padding:0;border:0;display:grid;place-items:center;background:transparent;pointer-events:auto;z-index:1;border-radius:50%}
.trade-marker span{display:block;background:var(--panel);border:1px solid currentColor;border-radius:6px;font-weight:650;font-size:11px;padding:2px 4px;min-width:22px;box-shadow:0 2px 6px #0001}.trade-marker.buy{color:var(--green)}.trade-marker.sell{color:var(--red)}
.trade-marker:hover span,.trade-marker[aria-pressed=true] span{background:var(--selected);box-shadow:0 0 0 2px var(--panel),0 0 0 3px currentColor}.trade-marker[aria-pressed=true]{z-index:2}
.chart-scrubber{display:flex;gap:12px;align-items:center;padding:0 14px;color:var(--muted);font-size:11px}.chart-scrubber input{min-height:44px;min-width:0;flex:1;width:auto}.chart-scrubber span{white-space:nowrap}
.chart-caption{display:flex;justify-content:space-between;gap:10px;padding:8px 14px 0;font-size:11px;color:var(--muted)}
.day-activity{border-left:1px solid var(--line);padding:24px 16px;background:var(--soft);min-width:0}.day-heading,.day-totals{display:flex;justify-content:space-between;gap:10px;align-items:center}.day-heading h3{font-size:19px}.day-heading>span{font-size:11px;color:var(--muted)}.day-totals{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.day-trades{max-height:310px;overflow:auto;margin-top:8px}
.profile-performance .trade-ticket{width:100%;display:flex;gap:8px;text-align:left;align-items:center;border:0;border-bottom:1px solid var(--line);padding:13px 0;border-radius:0}.trade-direction{font-size:15px}.trade-ticket.buy .trade-direction{color:var(--green)}.trade-ticket.sell .trade-direction{color:var(--red)}.trade-ticket strong{font-size:12px}.trade-ticket small{font-size:10px;display:block;margin-top:2px}.trade-ticket-amount{margin-left:auto;text-align:right;font-size:12px;font-variant-numeric:tabular-nums}.trade-ticket:hover{background:var(--hover)}
.day-empty{padding:35px 0;text-align:center;font-size:13px;color:var(--muted)}.day-empty span{display:block;font-size:34px;margin-bottom:10px}.flow-note{font-size:11px;color:var(--muted);padding-top:12px;border-top:1px solid var(--line);margin-top:12px}
.profile-exposure{display:flex;gap:8px;align-items:center;padding:16px 22px;overflow:auto;border-top:1px solid var(--line)}.profile-exposure>span{font-size:12px;color:var(--muted);white-space:nowrap;margin-right:6px}.profile-exposure button{display:flex;gap:8px;align-items:center;white-space:nowrap;padding:8px 12px}.profile-exposure button[aria-pressed=true]{background:var(--selected);border-color:var(--green)}.exposure-dot{width:16px;height:16px;border-radius:50%;background:conic-gradient(var(--green) var(--share),var(--line) 0)}
.profile-method{padding:0 22px 12px;border-top:1px solid var(--line)}.profile-method summary{cursor:pointer;min-height:44px;display:list-item;padding:12px 0;color:var(--muted);font-size:12px}.profile-method p{max-width:850px;font-size:12px;color:var(--muted);line-height:1.7;margin:6px 0 12px;overflow-wrap:anywhere}
.plot-empty{position:absolute;inset:30px 0;display:grid;place-content:center;text-align:center;background:var(--panel);font-size:13px;color:var(--muted)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.profile-performance :focus-visible{outline:2px solid var(--green);outline-offset:2px}.profile-performance .trade-marker:focus-visible{outline-offset:-2px}
.profile-head .eyebrow{margin-bottom:4px}.profile-head h1{font-size:28px}.profile-head .primary{min-height:44px}.profile-summary.stats{margin:18px 0}.profile-summary .stat strong{font-size:24px}.profile-summary .stat{padding:18px 20px}.profile-summary .stat span{font-size:12px}
.trader-mini-chart{width:120px;min-width:100px}.trader-mini-chart .spark{width:120px;height:38px;display:block}.trader-mini-chart .spark path{fill:none;stroke:var(--green);stroke-width:2;vector-effect:non-scaling-stroke}
.profile-tabs{margin:20px 0 0}.profile-tabs button{min-height:44px;font-size:14px}.profile-patterns{display:flex;gap:20px;flex-wrap:wrap;margin:12px 0}.profile-patterns span{color:var(--muted);font-size:12px}.profile-patterns b{color:var(--ink);font-size:14px}.profile-section-heading{font-size:20px;margin:20px 0}
@media(max-width:1100px){.performance-layout{grid-template-columns:minmax(0,1fr) 240px}.performance-toolbar{padding:14px}.performance-main{padding:20px 4px 10px}}
@media(max-width:850px){.performance-layout{grid-template-columns:1fr}.day-activity{border-left:0;border-top:1px solid var(--line);padding:18px}.day-trades{max-height:220px}.performance-toolbar{flex-wrap:wrap}.chart-ranges{margin-left:auto}.performance-main{padding:18px 6px 10px}.profile-plot{min-height:0;aspect-ratio:860/400}.profile-exposure{padding:12px}.chart-caption{font-size:10px}.profile-summary .stat{padding:14px}.profile-summary .stat strong{font-size:21px}}
@media(max-width:500px){.performance-toolbar{gap:8px;padding:10px}.chart-bases,.chart-ranges{justify-content:space-between;flex:1}.chart-ranges{width:100%;flex-basis:100%}.profile-performance .chart-ranges button{padding:8px 10px}.performance-headline{padding:0 8px;flex-wrap:wrap}.trade-legend{gap:0}.trade-legend button{padding:8px;font-size:12px}#profile-value{font-size:32px}.profile-plot{aspect-ratio:860/500}.profile-method{padding:0 14px 10px}.profile-summary .stat small{font-size:10px}.profile-head p.mono{font-size:10px}.chart-caption>span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.profile-performance *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

@media(max-width:850px){.profile-plot .plot-label{font-size:18px}}
@media(max-width:500px){.profile-plot .plot-label{font-size:25px}}

.pattern-dashboard{display:grid;grid-template-columns:1fr 1.5fr;gap:20px;margin:22px 0}.pattern-big{font-size:44px;letter-spacing:-2px;margin:18px 0 0}.pattern-big small{font-size:22px;margin-left:4px}.pattern-caption{font-size:12px;color:var(--muted)}.side-balance{height:10px;border-radius:8px;background:var(--red);margin-top:24px;overflow:hidden}.side-balance i{display:block;height:100%;background:var(--green);border-right:2px solid var(--panel)}.pattern-markets{max-height:235px;overflow:auto;margin-top:15px}.pattern-market{position:relative;display:flex;justify-content:space-between;align-items:center;min-height:48px;gap:12px;border-bottom:1px solid var(--line);padding:10px 0;font-size:13px}.pattern-market>i{position:absolute;bottom:0;left:0;height:3px;background:var(--green)}.pattern-market:hover{background:var(--soft)}.regime-bars{margin:25px 0}.regime-row{display:grid;grid-template-columns:125px minmax(0,1fr) 100px 60px;gap:12px;align-items:center;min-height:48px;font-size:13px}.regime-track{position:relative;height:28px;background:linear-gradient(to right,transparent calc(50% - .5px),var(--line) calc(50% - .5px),var(--line) calc(50% + .5px),transparent calc(50% + .5px))}.regime-track i{position:absolute;top:6px;height:16px;border-radius:3px}.regime-track .gain{background:var(--green)}.regime-track .loss{background:var(--red)}.regime-row strong{text-align:right;font-weight:500;font-variant-numeric:tabular-nums}.regime-row small{text-align:right}
@media(max-width:760px){.pattern-dashboard{grid-template-columns:1fr}.regime-row{grid-template-columns:90px minmax(0,1fr) 65px;gap:8px;font-size:11px}.regime-row small{display:none}.regime-panel{padding:16px}}

.profile-head p.mono{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(440px,65vw)}.profile-back{margin:12px 0 16px}.profile-performance #profile-unpin{min-height:28px;font-size:11px;padding:3px 8px}.profile-summary.stats{margin-top:24px}
