:root{--bg:var(--bg);--paper:var(--paper);--ink:var(--ink);--muted:var(--muted);--green:var(--accent);--pale:var(--soft);--line:var(--line);--red:var(--negative);--font:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--font);background:var(--bg);color:var(--ink);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:8px}button:hover,a:hover{transition:background .18s,color .18s}button[hidden],[hidden]{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:225px;background:var(--sidebar);border-right:1px solid var(--line);padding:40px 28px;z-index:10;display:flex;flex-direction:column}.brand{font-size:37px;font-weight:650;letter-spacing:-2.5px;display:flex;align-items:center;gap:12px;line-height:1}.brand-period{color:var(--accent);margin-left:-11px}.brand-mark{display:flex;align-items:flex-end;gap:3px;transform:rotate(-10deg);height:29px}.brand-mark i{display:block;width:7px;background:var(--accent);border-radius:3px}.brand-mark i:nth-child(1){height:15px}.brand-mark i:nth-child(2){height:23px}.brand-mark i:nth-child(3){height:30px;background:var(--accent)}.brand-caption{font-size:9px;letter-spacing:1.7px;margin:15px 0 50px;color:var(--muted)}.desktop-nav{display:grid;gap:9px}.desktop-nav a{display:flex;align-items:center;gap:16px;padding:14px 17px;border-radius:10px;color:var(--muted);font-size:14px;font-weight:500}.desktop-nav a.active{background:var(--soft);color:var(--green);font-weight:650}.desktop-nav a:hover{background:var(--soft)}.sidebar-bottom{margin-top:auto;padding-top:40px}.tiny-eyebrow{font-size:9px;letter-spacing:1.3px;color:var(--muted)}.sidebar-bottom strong{display:block;font-size:23px;font-weight:500;margin-top:8px}.sidebar-bottom p{font-size:13px;line-height:1.9;color:var(--muted);margin:16px 0 24px}.sidebar-note{font-size:8px;letter-spacing:1.1px;color:var(--muted)}.app-shell{margin-left:225px}.topbar{height:82px;padding:0 5%;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:var(--header)}.desktop-title{font-size:14px;font-weight:500;color:var(--muted)}.mobile-brand{display:none}.header-actions{display:flex;gap:20px;align-items:center}.preparing{font-size:12px;color:var(--accent-text);background:var(--soft);padding:6px 12px;border-radius:30px;display:flex;align-items:center;gap:7px}.preparing>span{height:6px;width:6px;background:var(--accent);border-radius:50%}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--paper)}.icon-button svg{width:19px;height:19px}.icon-button:hover{background:var(--pale)}main{max-width:1500px;margin:auto;padding:40px 5% 15px;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.eyebrow{font-family:var(--font);font-size:10px;letter-spacing:1.6px;color:var(--muted);font-weight:600;display:block}.page-heading h1{font-size:28px;letter-spacing:1px;font-weight:600;line-height:1.5;margin:8px 0}.page-heading p{font-size:13px;color:var(--muted);margin:0}.text-button{font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:7px;min-height:44px}.text-button svg{width:15px;height:15px}.preview-bar{background:var(--soft);border:1px solid var(--line);border-radius:9px;color:var(--accent-text);font-size:12px;padding:9px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:24px;min-height:46px}.preview-bar>span{display:flex;align-items:center;gap:8px}.preview-bar svg{width:16px;height:16px}.preview-bar button{font-size:12px;min-height:32px;text-decoration:underline;text-underline-offset:4px;font-weight:600;white-space:nowrap}.preview-bar.demo{background:var(--gold-soft);border-color:var(--gold-line);color:var(--gold-ink)}.view{display:none}.view.active{display:block;animation:appear .25s ease}@keyframes appear{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.summary-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:22px;margin-bottom:24px}.balance-card{padding:28px 30px 24px;background:var(--navy);border-radius:16px;color:var(--paper);position:relative;overflow:hidden;isolation:isolate;min-height:263px;display:flex;flex-direction:column}.balance-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--navy-muted)}.account-chip{font-size:9px;letter-spacing:1.2px;border:1px solid var(--navy-line);color:var(--navy-muted);border-radius:5px;padding:4px 8px}.balance-amount{margin:17px 0 3px;display:flex;gap:8px;align-items:baseline;font-size:43px;line-height:1.4;letter-spacing:-1.5px;font-weight:500}.currency{font-size:25px;color:var(--navy-muted);font-weight:400}.balance-sub{display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:11px;color:var(--navy-muted)}.balance-sub>span:last-child{font-size:11px;background:var(--navy-pill);color:var(--navy-accent);border-radius:5px;padding:2px 7px}.balance-divider{height:1px;background:var(--navy-line);margin:20px 0 16px;opacity:.7}.balance-footer{display:flex;justify-content:space-between;gap:15px}.balance-footer>div{display:grid;gap:2px}.balance-footer>div:last-child{text-align:right}.balance-footer span{font-size:11px;color:var(--navy-muted)}.balance-footer strong{font-size:16px;font-weight:500}.balance-art{position:absolute;width:190px;height:210px;bottom:-30px;right:0;z-index:-1;opacity:.13;transform:rotate(25deg)}.balance-art span{display:block;position:absolute;width:100px;height:300px;border:1px solid var(--navy-accent);border-radius:70px;left:10px;top:-70px}.balance-art span:nth-child(2){left:70px}.balance-art span:nth-child(3){left:130px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.metric{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:17px 20px;position:relative;overflow:hidden}.metric-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;gap:8px}.metric-label>svg{width:16px;height:16px;color:var(--muted)}.metric>strong{font-size:27px;line-height:1.45;letter-spacing:-.5px;display:block;font-weight:500;color:var(--green);margin:8px 0 3px}.metric>strong small{font-size:12px;margin-left:4px;font-weight:400}.metric>strong.neutral{color:var(--ink)}.metric-note{font-size:10px;color:var(--muted)}.spark{position:absolute;bottom:17px;right:12px;width:60px;height:24px;color:var(--muted);stroke-width:1.5;opacity:.75}.inline-info{padding:0;display:flex;min-width:26px;min-height:26px;align-items:center;justify-content:center}.inline-info svg{width:14px;height:14px;color:var(--muted)}.analysis-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(250px,1fr);gap:22px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:25px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-head h2,h2{font-size:17px;font-weight:600;margin:5px 0 0;letter-spacing:.3px}.panel-head .eyebrow{font-size:9px}.unit{font-size:10px;color:var(--muted)}.chart-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.chart-toolbar>div:first-child{display:flex;align-items:baseline;gap:9px}.chart-toolbar strong{font-size:25px;font-weight:500;letter-spacing:-.7px}.chart-toolbar>div:first-child>span{font-size:10px;color:var(--muted)}.segmented{display:flex;background:var(--raised);border-radius:7px;padding:3px}.segmented button{padding:6px 10px;font-size:10px;color:var(--muted);white-space:nowrap;min-height:30px;border-radius:5px}.segmented button.selected{background:var(--paper);color:var(--accent-text);box-shadow:0 1px 4px var(--shadow)}.chart-wrap{position:relative;margin:17px 0 0;min-height:236px;touch-action:pan-y}#profit-chart{width:100%;height:236px;overflow:visible;stroke-width:1}.chart-tooltip{position:absolute;background:var(--navy);color:var(--paper);border-radius:7px;padding:7px 10px;font-size:12px;pointer-events:none;z-index:2;white-space:nowrap;box-shadow:0 3px 15px var(--shadow)}.empty-chart{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--glass);backdrop-filter:blur(1px);text-align:center}.empty-chart-icon{background:var(--pale);display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;color:var(--green);margin-bottom:14px}.empty-chart strong{font-size:14px;font-weight:500}.empty-chart p{font-size:11px;color:var(--muted);margin:7px 0 15px}.subtle-button{border:1px solid var(--line);border-radius:7px;min-height:40px;padding:8px 13px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--accent-text);background:var(--paper)}.subtle-button:hover{background:var(--soft)}.subtle-button svg{width:15px;height:15px}.chart-bottom{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;padding-top:12px;border-top:1px solid var(--line)}.chart-bottom>span:first-child{display:flex;align-items:center;gap:6px}.legend-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:var(--accent)}.section-icon{width:21px;height:21px;color:var(--muted)}.test-name{display:flex;gap:11px;align-items:center;margin:23px 0 10px}.ea-avatar{height:43px;width:43px;background:var(--soft);color:var(--accent-text);font-family:Georgia,serif;font-size:28px;font-style:italic;border-radius:10px;display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0}.ea-avatar>span{font:7px var(--font);position:absolute;bottom:3px;right:4px}.test-name>div{display:grid;gap:1px}.test-name strong{font-size:13px}.test-name>div>span{font-size:10px;color:var(--muted)}.small-badge{font-size:9px;padding:3px 8px;border-radius:4px;background:var(--soft);color:var(--muted);margin-left:auto;white-space:nowrap}.detail-list{margin:0}.detail-list>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);align-items:center;font-size:11px}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;font-weight:500}.detail-list>div:last-child{border:0}.guide-link{font-size:10px;display:flex;align-items:center;gap:7px;background:var(--soft);border-radius:7px;margin-top:15px;padding:11px;color:var(--muted)}.guide-link svg{width:15px;height:15px}.guide-link svg:last-child{margin-left:auto;width:12px;height:12px}.section-heading{margin:30px 0 15px;display:flex;justify-content:space-between;align-items:flex-end;gap:10px}.section-heading h2{font-size:19px;margin-top:6px}.muted{color:var(--muted);font-size:12px}.explore-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.explore-card{display:flex;align-items:center;gap:15px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:20px}.explore-card:hover{border-color:var(--line)}.explore-icon{background:var(--soft);color:var(--accent-text);border-radius:10px;width:43px;height:43px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.explore-icon.sand{background:var(--gold-soft);color:var(--gold-ink)}.explore-icon svg{width:21px;height:21px}.explore-card h3{font-size:13px;margin:0 0 4px;font-weight:500}.explore-card p{font-size:10px;color:var(--muted);margin:0}.chevron{width:15px;height:15px;color:var(--muted);margin-left:auto}.bottom-nav{display:none}footer{text-align:center;padding:38px 0 20px;color:var(--muted);font-size:10px}footer>span{display:inline-block}.footer-brand{font-size:19px;letter-spacing:-1px;font-weight:600;margin-right:12px;color:var(--muted)}footer p{font-size:9px;margin:5px 0}footer small{font-size:8px;letter-spacing:.4px}.calendar-nav{display:flex;align-items:center;gap:10px}.calendar-nav strong{font-size:14px;font-weight:500;min-width:95px;text-align:center}.flip{transform:rotate(180deg)}.calendar-summary{display:flex;gap:50px;padding:22px 0}.calendar-summary>span{display:grid;font-size:12px;color:var(--muted);gap:5px}.calendar-summary strong{font-size:25px;font-weight:500;color:var(--green)}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{font-size:12px;color:var(--muted);text-align:center;border-bottom:1px solid var(--line);padding-bottom:10px}.calendar-grid{gap:6px;margin-top:8px}.calendar-cell{min-height:84px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:8px 2px;font-size:13px;gap:8px;border:1px solid transparent}.calendar-cell.positive{background:var(--positive-cell)}.calendar-cell.negative{background:var(--negative-soft)}.calendar-cell.outside{color:var(--disabled)}.calendar-cell small{font-size:10px;color:var(--green)}.calendar-cell.negative small{color:var(--red)}.calendar-cell.selected{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.calendar-cell:not(:disabled):hover{border-color:var(--line)}.calendar-legend{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:10px;margin-top:20px}.calendar-legend span{display:flex;align-items:center;gap:5px}.calendar-legend i{height:9px;width:9px;background:var(--positive-key);border-radius:2px}.calendar-legend span:nth-child(2) i{background:var(--negative-key)}.calendar-legend>span:last-child{margin-left:auto}.daily-detail{margin-top:20px}.daily-detail h2{margin-bottom:16px}.trade-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.count-pill{display:inline-flex;min-width:24px;padding:1px 6px;border-radius:5px;background:var(--soft);color:var(--accent-text);font-size:12px;margin-left:6px;align-items:center;justify-content:center}.position-floating{font-size:35px;line-height:1.4;margin:20px 0 0;letter-spacing:-1px}.position-floating small{display:block;font-size:12px;color:var(--muted);letter-spacing:0;margin-top:8px}.note-panel{display:flex;gap:10px;padding:15px 8px;color:var(--muted);align-items:center;font-size:12px}.note-panel svg{width:17px;height:17px}.note-panel p{margin:0}.empty-state{text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:55px 20px}.empty-state svg{height:32px;width:32px;color:var(--muted);margin-bottom:10px}.empty-state h3{font-size:15px;font-weight:500;margin:0 0 8px}.empty-state p{font-size:12px;color:var(--muted);margin:0}.history-filters{display:flex;gap:12px;margin:22px 0}.search-field,.select-field{border:1px solid var(--line);border-radius:8px;background:var(--raised);display:flex;align-items:center;padding:0 12px;gap:10px;min-height:46px}.search-field{flex:1}.search-field>span,.select-field>span{font-size:10px;color:var(--muted);white-space:nowrap}.search-field input{border:0;outline:0;min-width:0;background:none;width:100%;font-size:12px;color:var(--ink);min-height:44px}.select-field{position:relative}.select-field select{appearance:none;border:0;background:none;color:var(--ink);font-size:12px;padding-right:23px;outline:0;min-height:44px}.select-field>svg{position:absolute;right:10px;width:12px;height:12px;transform:rotate(90deg);pointer-events:none}.history-total{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:15px}.history-total strong{font-weight:500;color:var(--green);font-size:18px}.trade-row{padding:17px 0;display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line)}.trade-avatar{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--gold-soft);color:var(--gold-ink);font-size:11px;font-weight:600}.trade-main{flex:1;min-width:0}.trade-main h3{display:flex;gap:7px;align-items:center;margin:0;font-size:13px;font-weight:600}.side-pill{font-size:8px;background:var(--soft);color:var(--accent-text);padding:2px 5px;border-radius:3px;font-weight:500}.side-pill.sell{color:var(--negative);background:var(--negative-soft)}.trade-main p{font-size:10px;color:var(--muted);margin:4px 0 0}.trade-result{text-align:right}.trade-result strong{font-size:17px;font-weight:500;color:var(--green)}.trade-result.negative strong{color:var(--red)}.trade-result small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.load-more{display:flex;margin:20px auto 0}.guide-intro{padding:13px 0 24px}.guide-intro h2{font-size:24px;margin:10px 0}.guide-intro p{font-size:13px;color:var(--muted)}.guide-panel{padding-top:3px;padding-bottom:3px}.guide-panel details{border-bottom:1px solid var(--line)}.guide-panel details:last-child{border:0}.guide-panel summary{padding:21px 26px 21px 0;cursor:pointer;font-size:14px;list-style:none;position:relative;font-weight:500}.guide-panel summary::-webkit-details-marker{display:none}.guide-panel summary:after{content:'+';position:absolute;right:4px;color:var(--muted);font-size:20px;top:16px}.guide-panel details[open] summary:after{content:'−'}.guide-panel details>div{padding:0 0 20px;font-size:13px;line-height:1.9;color:var(--muted)}.guide-panel details p:first-child{margin-top:0}.guide-actions{display:flex;gap:10px;flex-wrap:wrap}.small-note{font-size:11px!important;line-height:1.8;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:20px;padding:25px;max-width:450px;width:calc(100% - 36px);color:var(--ink);box-shadow:0 15px 70px var(--shadow)}dialog::backdrop{background:var(--overlay);backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between}dialog h2{font-size:19px;margin:20px 0 15px}dialog p{font-size:14px;line-height:1.9;color:var(--muted)}.primary-button{background:var(--green);color:var(--paper);border-radius:9px;padding:12px 20px;min-height:48px;font-size:14px;width:100%;margin-top:15px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:13px 20px;background:var(--navy);color:var(--paper);box-shadow:0 3px 20px var(--shadow);border-radius:9px;font-size:13px;z-index:50;width:max-content;max-width:calc(100vw - 30px);text-align:center}.negative-text{color:var(--red)!important}
@media(min-width:1450px){main{padding-top:48px}.balance-card{padding:30px 34px}.balance-amount{font-size:49px}.metric>strong{font-size:31px}.metric{padding:20px 24px}.chart-wrap,#profit-chart{min-height:270px;height:270px}}
@media(max-width:1150px) and (min-width:761px){.sidebar{width:190px;padding:35px 20px}.app-shell{margin-left:190px}main{padding:30px 25px}.topbar{padding:0 25px}.summary-grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(4,1fr);gap:10px}.metric{padding:15px 12px}.metric-label{font-size:10px}.metric-label>svg{display:none}.metric>strong{font-size:24px}.metric-note{font-size:8px}.balance-card{min-height:240px}.analysis-grid{grid-template-columns:1fr}.overview-panel{display:none}.chart-toolbar>div:first-child>span{display:none}.explore-card{padding:17px 12px;gap:10px}.explore-card p{font-size:9px}.explore-card h3{font-size:11px}}
@media(max-width:760px){body{font-size:16px}.sidebar{display:none}.app-shell{margin:0}.topbar{height:75px;padding:0 22px;border-bottom:0;background:var(--bg)}.desktop-title{display:none}.mobile-brand{display:flex;font-size:31px;gap:10px}.brand-mark{height:25px;gap:3px}.brand-mark i{width:6px}.brand-mark i:nth-child(1){height:13px}.brand-mark i:nth-child(2){height:19px}.brand-mark i:nth-child(3){height:25px}.brand-period{margin-left:-8px}.header-actions{gap:10px}.preparing{font-size:10px;padding:5px 9px}.header-actions .icon-button{width:36px;height:36px;background:transparent;border-color:var(--line)}.header-actions .icon-button svg{width:18px;height:18px}main{padding:13px 20px 100px;max-width:560px}.page-heading{margin-bottom:20px;gap:8px;align-items:flex-end}.eyebrow{font-size:9px;letter-spacing:1.5px}.page-heading h1{font-size:23px;letter-spacing:.3px;margin:8px 0}.page-heading p{font-size:11px;line-height:1.8;max-width:280px}.refresh{font-size:0;min-width:34px;width:34px;height:34px;min-height:34px;justify-content:center;border-radius:50%;border:1px solid var(--line);align-self:center}.refresh svg{width:15px;height:15px}.preview-bar{font-size:10px;padding:8px 10px;border-radius:8px;margin-bottom:18px;gap:6px;min-height:42px}.preview-bar>span{gap:5px}.preview-bar svg{width:13px;height:13px}.preview-bar button{font-size:10px;min-height:28px;padding:0 2px}.summary-grid{display:flex;flex-direction:column;gap:15px;margin-bottom:18px}.balance-card{padding:22px 24px 20px;border-radius:16px;min-height:237px;background:var(--navy)}.balance-top{font-size:13px}.account-chip{font-size:8px;padding:4px 7px;letter-spacing:1.3px}.balance-amount{font-size:42px;letter-spacing:-1.6px;margin:15px 0 4px;gap:8px}.currency{font-size:24px}.balance-sub{font-size:10px;gap:5px}.balance-sub>span:last-child{font-size:9px;padding:2px 6px}.balance-divider{margin:18px 0 13px}.balance-footer span{font-size:10px}.balance-footer strong{font-size:16px}.balance-art{right:-5px;bottom:-33px;opacity:.17}.metric-grid{gap:10px}.metric{border-radius:12px;padding:16px 16px 14px;min-height:122px}.metric-label{font-size:11px;gap:3px}.metric-label>svg{width:14px;height:14px}.metric>strong{font-size:28px;letter-spacing:-.6px;margin:7px 0 2px}.metric>strong small{font-size:11px}.metric-note{font-size:9px}.spark{width:42px;right:10px;bottom:12px;opacity:.6}.inline-info{min-width:19px;min-height:19px}.inline-info svg{width:13px;height:13px}.analysis-grid{display:flex;flex-direction:column;gap:18px}.panel{padding:21px 18px;border-radius:14px}.panel-head h2,h2{font-size:16px}.panel-head .eyebrow{font-size:8px;letter-spacing:1.5px}.unit{font-size:9px}.chart-toolbar{margin-top:15px;align-items:flex-start;gap:8px;flex-direction:column}.chart-toolbar>div:first-child{align-items:center;gap:9px;width:100%}.chart-toolbar strong{font-size:28px}.chart-toolbar>div:first-child>span{font-size:9px;margin-left:auto}.segmented{width:100%;padding:3px;margin-top:5px;border-radius:8px}.segmented button{flex:1;font-size:11px;min-height:35px;padding:7px 6px}.chart-wrap{margin-top:10px;min-height:205px}#profit-chart{height:205px;min-height:205px}.empty-chart strong{font-size:12px}.empty-chart p{font-size:10px}.empty-chart-icon{margin-bottom:10px;height:35px;width:35px}.empty-chart-icon svg{height:20px;width:20px}.empty-chart .subtle-button{font-size:11px;min-height:36px;padding:7px 12px}.chart-bottom{font-size:8px;padding-top:13px;gap:6px}.overview-panel{padding:22px}.test-name{margin-top:20px}.test-name strong{font-size:14px}.test-name>div>span{font-size:11px}.detail-list>div{font-size:12px;padding:12px 0}.small-badge{font-size:10px}.guide-link{font-size:11px;padding:12px}.section-heading{margin:29px 0 14px}.section-heading h2{font-size:18px}.section-heading>.muted{display:none}.explore-grid{grid-template-columns:1fr;gap:10px}.explore-card{padding:17px 18px;gap:13px;border-radius:12px}.explore-card h3{font-size:13px}.explore-card p{font-size:11px}.explore-icon{width:41px;height:41px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-around;background:var(--nav-bg);border-top:1px solid var(--line);padding:9px 8px calc(9px + env(safe-area-inset-bottom));z-index:30;backdrop-filter:blur(15px)}.bottom-nav a{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);min-height:48px;font-size:10px;position:relative}.bottom-nav svg{width:21px;height:21px;stroke-width:1.65}.bottom-nav a.active{color:var(--accent-text);font-weight:600}.bottom-nav a.active:before{content:'';position:absolute;top:-10px;width:23px;height:3px;border-radius:0 0 5px 5px;background:var(--accent)}.bottom-nav a.active svg{background:var(--soft);border-radius:6px;box-shadow:0 0 0 5px var(--soft)}footer{padding:30px 0 8px}.footer-brand{font-size:18px}footer>span:nth-child(2){font-size:9px}footer p{font-size:8px}footer small{font-size:8px}.calendar-nav{gap:1px}.calendar-nav .icon-button{width:32px;height:36px;border:none}.calendar-nav strong{font-size:12px;min-width:77px}.calendar-nav svg{width:16px;height:16px}.calendar-summary{gap:35px;padding:23px 0}.calendar-summary>span{font-size:11px}.calendar-summary strong{font-size:22px}.calendar-grid{gap:3px}.calendar-cell{min-height:68px;font-size:12px;padding:8px 0;gap:7px;border-radius:6px}.calendar-cell small{font-size:8px;letter-spacing:-.3px}.calendar-weekdays{font-size:10px}.calendar-legend{font-size:9px;gap:10px;flex-wrap:wrap}.calendar-legend>span:last-child{width:100%;margin:0}.daily-detail{margin-top:15px}.daily-detail .trade-row{gap:9px}.trade-summary{grid-template-columns:1fr;gap:15px;margin-bottom:15px}.trade-summary .panel{padding:22px}.position-floating{font-size:34px;margin-top:15px}.trade-summary .detail-list{margin-top:10px}.history-filters{gap:10px;flex-direction:column;margin:20px 0 15px}.search-field,.select-field{min-height:46px}.search-field input,.select-field select{font-size:16px}.search-field>span,.select-field>span{font-size:11px}.select-field select{flex:1;font-size:13px}.history-total{font-size:11px}.history-total strong{font-size:19px}.trade-row{gap:10px;padding:17px 0}.trade-main h3{font-size:12px}.trade-main p{font-size:9px}.trade-avatar{width:36px;height:36px;font-size:10px;border-radius:9px}.trade-result strong{font-size:16px}.trade-result small{font-size:8px}.side-pill{font-size:8px}.panel-head .subtle-button{font-size:10px;padding:7px 9px;min-height:36px}.panel-head .subtle-button svg{width:13px;height:13px}.guide-intro{padding:6px 0 18px}.guide-intro h2{font-size:21px}.guide-intro p{font-size:12px}.guide-panel{padding:0 20px}.guide-panel summary{font-size:13px;padding:20px 24px 20px 0;line-height:1.8}.guide-panel details>div{font-size:13px;line-height:2}.note-panel{font-size:11px;align-items:flex-start;padding:16px 3px}.note-panel svg{margin-top:2px}.subtle-button{min-height:44px}.small-note{font-size:11px!important}.empty-state{padding:42px 18px}.empty-state h3{font-size:14px}.empty-state p{font-size:11px}#toast{bottom:calc(90px + env(safe-area-inset-bottom));font-size:12px}dialog h2{font-size:18px}}
@media(max-width:360px){main{padding-left:15px;padding-right:15px}.topbar{padding-left:17px;padding-right:17px}.page-heading h1{font-size:21px}.metric{padding:14px 12px}.metric-label{font-size:10px}.balance-amount{font-size:38px}.balance-card{padding-left:21px;padding-right:21px}.preview-bar{font-size:9px}.preview-bar button{font-size:9px}.calendar-cell small{font-size:7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Keep the information people read every day legible on small screens. */
.page-heading p{font-size:14px}.metric-label{font-size:14px}.metric-note{font-size:12px}.balance-top{font-size:14px}.balance-sub,.balance-footer span{font-size:12px}.detail-list>div{font-size:14px}.test-name strong{font-size:16px}.test-name>div>span{font-size:12px}.guide-link{font-size:14px}.explore-card h3{font-size:14px}.explore-card p{font-size:12px}.guide-panel summary{font-size:16px}.guide-panel details>div{font-size:16px}.trade-main h3{font-size:14px}.trade-main p{font-size:12px}.trade-result small{font-size:12px}.note-panel{font-size:14px}.small-note{font-size:12px!important}.empty-state h3{font-size:16px}.empty-state p{font-size:14px}.calendar-weekdays{font-size:14px}.calendar-cell{font-size:14px}.calendar-cell small{font-size:12px}.calendar-legend{font-size:12px}.subtle-button{font-size:14px}.preparing{font-size:12px}.preview-bar,.preview-bar button{font-size:12px}.desktop-nav a{font-size:16px}.history-total{font-size:14px}.chart-bottom{font-size:12px}.chart-toolbar>div:first-child>span{font-size:12px}
@media(max-width:760px){.metric-label{font-size:13px;line-height:1.5}.metric-label>svg{display:none}.metric{min-height:135px}.metric>strong{font-size:29px}.metric-note{font-size:11px}.balance-sub,.balance-footer span{font-size:12px}.balance-sub>span:last-child{font-size:10px}.page-heading p{font-size:12px;max-width:290px}.page-heading h1{font-size:23px}.preview-bar,.preview-bar button{font-size:11px}.preview-bar>span{max-width:67%;line-height:1.7}.preparing{font-size:11px}.chart-toolbar>div:first-child>span{font-size:11px}.chart-bottom{font-size:10px;flex-wrap:wrap}.segmented button{font-size:13px;min-height:40px}.bottom-nav a{font-size:11px;min-height:50px}.calendar-cell small{font-size:9px}.calendar-cell{min-height:74px}.calendar-nav strong{font-size:13px}.calendar-legend{font-size:11px}.guide-panel summary{font-size:14px}.guide-panel details>div{font-size:15px}.trade-main h3{font-size:14px}.trade-main p{font-size:11px}.trade-result small{font-size:10px}.side-pill{font-size:9px}.explore-card h3{font-size:14px}.explore-card p{font-size:12px}.empty-chart strong{font-size:13px}.empty-chart p{font-size:12px}.note-panel{font-size:13px}.guide-link{font-size:12px}.panel-head .subtle-button{font-size:12px}.metric-label>.inline-info{margin-left:auto}}
@media(max-width:360px){.metric{padding:14px 12px}.metric-label{font-size:12px}.metric>strong{font-size:26px}.metric-note{font-size:10px}.balance-sub{font-size:11px}.preview-bar,.preview-bar button{font-size:10px}.trade-result strong{font-size:15px}.trade-main p{font-size:10px}.calendar-cell small{font-size:8px}}
@media(max-width:360px){.page-heading h1{font-size:19px;letter-spacing:0}.page-heading p{font-size:11px}.page-heading>div{min-width:0}.refresh{flex-shrink:0}}

/* USDJPY Guard LP palette: ink black, deep navy and warm yellow. */
:root,html[data-theme="light"]{color-scheme:light;--bg:#f3f6fa;--paper:#fff;--sidebar:#fff;--ink:#152441;--muted:#617086;--green:#846711;--pale:#fff8db;--red:#bb534c;--accent:#f6d34a;--accent-text:#846711;--soft:#edf1f8;--line:#dce3ed;--negative:#bb534c;--raised:#f0f4fa;--gold-soft:#fff8db;--gold-line:#e6d898;--gold-ink:#846711;--disabled:#a5afbe;--positive-cell:#fff6cf;--positive-key:#e4c451;--negative-key:#e8b7b4;--negative-soft:#fff0ee;--navy:#14284b;--navy-muted:#c3cee2;--navy-line:#405778;--navy-pill:#233d60;--navy-accent:#f6d34a;--shadow:#00000015;--overlay:#060b16a6;--glass:#ffffffb8;--header:#ffffffa0;--nav-bg:#fffffff5;--chart-fill:#f6d34a;--chart-line:#a78318;--chart-grid:#dce3ed;--chart-label:#617086}
html[data-theme="dark"]{color-scheme:dark;--bg:#0d1017;--paper:#171d29;--sidebar:#111723;--ink:#f1f4fb;--muted:#b1bbcf;--green:#f6d34a;--pale:#293044;--red:#ef9a91;--accent-text:#f6d34a;--soft:#232e42;--line:#303b50;--negative:#ef9a91;--raised:#111723;--gold-soft:#322f22;--gold-line:#625536;--gold-ink:#f6d34a;--disabled:#566176;--positive-cell:#343120;--positive-key:#f6d34a;--negative-key:#a25d58;--negative-soft:#35232a;--navy:#14284b;--navy-muted:#bdcbe3;--navy-line:#3b5279;--navy-pill:#263c58;--navy-accent:#f6d34a;--shadow:#00000030;--overlay:#05080dc9;--glass:#171d29c9;--header:#0d1017d9;--nav-bg:#111723f5;--chart-fill:#f6d34a;--chart-line:#f6d34a;--chart-grid:#303b50;--chart-label:#b1bbcf}
.brand-mark i{background:var(--accent)}.brand-mark i:nth-child(3){background:#14284b;border:1px solid #f6d34a80}.brand-period{color:var(--accent-text)}.balance-card{color:#f1f4fb;background:linear-gradient(115deg,#14284b,#102039)}.balance-card .balance-footer strong{color:#f1f4fb}.balance-sub>span:last-child{color:#f6d34a;border:1px solid #f6d34a44;background:#f6d34a12}.account-chip{color:#f6d34a;border-color:#f6d34a55}.balance-art{opacity:.2}.balance-art span{border-color:#f6d34a}.desktop-nav a.active{background:var(--soft);color:var(--accent-text);box-shadow:inset 3px 0 var(--accent)}.preparing>span{background:var(--accent-text)}.segmented button.selected{color:var(--ink)}.preview-bar{color:var(--muted)}.preview-bar.demo{color:var(--gold-ink)}.ea-avatar{font-style:normal;font-family:var(--font);font-weight:650;color:var(--accent-text)}.primary-button{background:var(--accent);color:#152441}.primary-button:hover{background:#ffe57b}.chart-tooltip,#toast{background:#f6d34a;color:#152441}.bottom-nav a.active{color:var(--accent-text)}.bottom-nav a.active svg{background:var(--soft);box-shadow:0 0 0 5px var(--soft)}.bottom-nav a.active:before{background:var(--accent)}.guide-panel summary:after{color:var(--accent-text)}.subtle-button{color:var(--ink)}.empty-chart-icon{color:var(--accent-text)}.explore-icon{color:var(--accent-text)}.spark{color:var(--accent-text)}.trade-avatar{color:var(--accent-text)}.side-pill{color:var(--accent-text)}.inline-info svg,.section-icon{color:var(--muted)}
.theme-switch{display:inline-flex;align-items:center;padding:3px;gap:2px;border:1px solid var(--line);border-radius:10px;background:var(--raised);flex-shrink:0}.theme-switch button{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:7px;color:var(--muted);position:relative}.theme-switch button svg{width:18px;height:18px}.theme-switch button[aria-pressed="true"]{background:var(--accent);color:#152441;box-shadow:0 2px 8px #00000020}.theme-switch button:hover:not([aria-pressed="true"]){background:var(--soft)}.topbar{gap:18px}.desktop-title{margin-right:auto}.header-actions{margin-left:auto}.theme-switch button:focus-visible{outline-color:var(--accent)}
@media(max-width:760px){.topbar{gap:14px;padding-left:20px;padding-right:20px}.header-actions{gap:0}.header-actions .preparing{display:none}.theme-switch{margin-right:auto;padding:3px;gap:1px}.theme-switch button{width:31px;height:32px}.theme-switch button svg{width:17px;height:17px}.mobile-brand{flex-shrink:0}.balance-card{background:linear-gradient(115deg,#14284b,#102039)}}
@media(max-width:360px){.topbar{gap:10px;padding-left:16px;padding-right:16px}.theme-switch button{width:29px;height:32px}.mobile-brand{font-size:29px;gap:8px}.header-actions .icon-button{width:32px;height:32px}}

.calendar-cell{min-height:104px;gap:5px}.calendar-cell small{line-height:1.4}.daily-rate{font-size:12px;line-height:1.4;color:var(--accent-text);opacity:.9}.calendar-cell.negative .daily-rate{color:var(--negative)}.day-result-summary{display:flex;gap:35px;padding:2px 0 16px;border-bottom:1px solid var(--line)}.day-result-summary>span{display:grid;gap:5px;font-size:12px;color:var(--muted)}.day-result-summary strong{font-size:21px;font-weight:500;color:var(--ink)}
@media(max-width:760px){.calendar-cell{min-height:88px;gap:5px;padding:7px 0}.calendar-cell small{font-size:10px;letter-spacing:-.3px}.daily-rate{font-size:10px;letter-spacing:-.25px}.theme-switch button{width:34px}.brand-mark i{background:var(--accent-text)}.brand-mark i:nth-child(3){background:var(--accent)}}
@media(max-width:360px){.calendar-cell{min-height:85px;gap:5px}.calendar-cell small{font-size:9px}.daily-rate{font-size:9px;letter-spacing:-.4px}.theme-switch button{width:29px}}
