/* One continuous frame, themed like the surrounding journal. */
:root{--frame-bottom:29px;--frame-colour:color-mix(in srgb,var(--bg) 78%,var(--panel))}
.global-header{background:var(--frame-colour)!important;border-bottom:0!important}
.frame-footer{position:fixed;inset:auto 0 0;height:var(--frame-bottom);margin:0!important;padding:0 20px!important;display:flex;align-items:center;justify-content:center;z-index:9;background:var(--frame-colour);border:0}.frame-footer a{display:flex;gap:5px;align-items:center;color:var(--muted);font-size:10px;text-decoration:none}.frame-footer svg{width:13px;height:13px}.frame-footer a:hover{color:var(--accent)}
.molten-glide aside.desk,.plan-sidebar{top:var(--header-height)!important;bottom:var(--frame-bottom)!important;left:0!important;border:0!important;border-radius:0!important;background:var(--frame-colour)!important;box-shadow:none!important}.plan-sidebar{left:auto!important;right:0!important}.collapsed-desk-rail,.collapsed-plan-rail{top:var(--header-height)!important;bottom:var(--frame-bottom)!important;border:0!important;border-radius:0!important;background:var(--frame-colour)!important;box-shadow:none!important}.collapsed-desk-rail{left:0!important}.collapsed-plan-rail{right:0!important}
.molten-glide main.liquid-main{bottom:var(--frame-bottom)!important;border-radius:12px!important;border:1px solid color-mix(in srgb,var(--text) 7%,transparent)!important;box-shadow:none!important;right:var(--plan-rail-width)!important}.plan-open main.liquid-main{right:var(--plan-width)!important}.desk-hidden main.liquid-main{left:var(--plan-rail-width)!important}.molten-glide aside.desk{width:var(--desk-width)!important}.liquid-main>footer{display:none!important}
.frame-desk .desk-panel-body{display:flex;flex-direction:column}.frame-desk .desk-panel-body>[hidden]{display:none!important}.frame-desk .desk-panel-body>.desk-label{margin-top:auto!important}.frame-desk .studio-desk-foot{display:none!important}.frame-desk-accounts{margin-bottom:30px}.frame-account-heading{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:9px;letter-spacing:1px}.frame-account-heading button{font-size:9px;padding:4px 0;border:0;background:none}.frame-desk-account{display:block;width:100%;padding:9px 7px;margin-top:8px;text-align:left;border:0;background:color-mix(in srgb,var(--text) 5%,transparent);border-radius:5px}.frame-desk-account>span{display:flex;align-items:center;gap:5px}.frame-desk-account img,.frame-desk-account svg{width:15px;height:15px;object-fit:contain}.frame-desk-account strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.frame-desk-account small{display:flex;justify-content:space-between;font-size:8px;color:var(--muted);gap:5px}.frame-desk-account .bar{margin:7px 0;height:3px}.frame-desk-accounts p{font-size:10px;color:var(--muted);line-height:1.7}
#content.frame-dashboard{padding:14px 22px 30px!important}.frame-dashboard .page-head{padding:0 0 8px!important;border:0!important;background:none!important;min-height:0!important}.frame-dashboard .page-head h1{font-size:17px!important;letter-spacing:-.4px}.frame-dashboard .page-head p{font-size:10px!important}.frame-dashboard .page-head button,.frame-dashboard .page-head select{padding:7px 10px!important;font-size:10px!important}
#content.frame-dashboard .dashboard-hero{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:8px 0 16px!important;margin:0 0 12px!important}.frame-dashboard .dashboard-hero h1{font-size:clamp(36px,4vw,58px)!important;margin:10px 0!important}.frame-dashboard .dashboard-hero>span{font-size:8px}.frame-dashboard .dashboard-hero>div{font-size:10px}
.frame-dashboard .custom-dashboard{gap:12px!important}.frame-dashboard .custom-dashboard>.card{padding:12px 14px!important}.frame-dashboard .metric-value{font-size:25px!important;margin:10px 0 5px!important}.frame-dashboard .metric-foot{font-size:9px;margin-top:5px!important}.frame-dashboard .card-head{margin-bottom:10px!important}.frame-dashboard .card-head h2{font-size:12px!important}.frame-dashboard .card-head small{font-size:8px!important}
.frame-dashboard .custom-dashboard>[data-widget=weekly]:not(.dashboard-size-selected){min-height:0!important;height:240px!important}.frame-dashboard [data-widget=discipline]{min-height:0!important}.frame-dashboard .ring-wrap{height:124px!important}.frame-dashboard .ring{width:108px!important;height:108px!important}.frame-dashboard .ring-inner strong{font-size:27px!important}.frame-dashboard .week-profit{font-size:28px!important;margin:12px 0!important}.frame-dashboard .progress-row{font-size:10px;margin-top:10px}.frame-dashboard .week-bars{height:65px!important}.frame-dashboard .week-bars span{max-height:48px}.frame-dashboard .studio-discipline-note{display:none}.frame-dashboard .dashboard-goals .section-label{font-size:9px!important;margin-bottom:8px}.frame-dashboard .dashboard-goals>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#content.frame-dashboard [data-widget=curve]{background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important}.frame-equity-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:9px;font-size:9px}.frame-equity-head small{color:var(--muted);margin-left:6px;font-size:8px}.frame-equity-head strong{font-size:11px}.frame-equity-chart{height:182px;position:relative;margin-top:7px}.frame-equity-chart svg{width:100%;height:100%;overflow:visible}.frame-equity-chart [hidden]{display:none}.frame-equity-dates{display:flex;justify-content:space-between;font-size:8px;color:var(--muted);gap:4px}.frame-equity-tip{position:absolute;pointer-events:none;min-width:90px;padding:8px 10px;border-radius:6px;background:var(--panel);border:1px solid var(--line);box-shadow:0 5px 14px #0002;font-size:11px}.frame-equity-tip small,.frame-equity-tip strong{display:block}.frame-equity-tip small{font-size:9px;color:var(--muted);margin-bottom:5px}
@media(min-width:1101px){.frame-dashboard .custom-dashboard>[data-widget=curve],.frame-dashboard .custom-dashboard>[data-widget=weekly],.frame-dashboard .custom-dashboard>[data-widget=discipline]{height:240px!important}}
@media(max-width:700px){.frame-desk-accounts{display:none}.frame-dashboard .dashboard-goals>div:last-child{grid-template-columns:1fr}#content.frame-dashboard{padding:12px!important}}

#content.frame-dashboard .dashboard-goals{order:0!important}
#content.frame-dashboard .dashboard-hero{height:136px!important;min-height:0!important;display:block!important}
#content.frame-dashboard .frame-equity-chart{height:160px}
.molten-glide aside.desk.frame-desk .studio-desk-foot.continuity-desk-foot,.frame-desk .desk-foot{display:none!important}
#app #content.frame-dashboard .page-head{margin-bottom:2px!important;padding-bottom:6px!important}
#app #content.frame-dashboard .dashboard-hero{height:112px!important;padding:4px 0 8px!important;margin-bottom:8px!important}
#app #content.frame-dashboard .dashboard-hero h1{font-size:46px!important;margin:7px 0!important}
#app #content.frame-dashboard .custom-dashboard>.card:not([data-widget=calendar]):not([data-widget=recent]){overflow:visible}
#app #content.frame-dashboard .custom-dashboard>[data-widget=curve],#app #content.frame-dashboard .custom-dashboard>[data-widget=weekly],#app #content.frame-dashboard .custom-dashboard>[data-widget=discipline]{height:240px!important;min-height:0!important}
#app #content.frame-dashboard .custom-dashboard>[data-widget=win],#app #content.frame-dashboard .custom-dashboard>[data-widget=rr],#app #content.frame-dashboard .custom-dashboard>[data-widget=avgwl]{padding-top:8px!important;padding-bottom:8px!important}
#app #content.frame-dashboard .ring-wrap{height:108px!important}#app #content.frame-dashboard [data-widget=discipline] .studio-discipline-note,#app #content.frame-dashboard [data-widget=discipline]>.subtle{display:none!important}
#app #content.frame-dashboard .frame-equity-chart{height:145px}#app #content.frame-dashboard .frame-equity-chart text{font-size:16px!important}
#app #content.frame-dashboard .dashboard-goals{padding:10px 14px!important;min-height:86px!important}

#app #content.frame-dashboard .custom-dashboard>.card[data-frame-custom-height]{height:var(--dash-height)!important;min-height:var(--dash-height)!important;overflow:auto}
#app #content.frame-dashboard [data-widget=discipline] .insight{display:none!important}
#app #content.frame-dashboard .dashboard-goals{min-height:120px!important;padding:12px 14px!important}
.frame-goal-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.frame-goal{min-width:0;padding:0 14px;border-right:1px solid var(--line)}.frame-goal:last-child{border:0}.frame-goal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.frame-goal-heading small{font-size:9px;color:var(--muted)}
#app #content.frame-dashboard .frame-goal button{display:inline-grid;place-items:center;width:24px;min-height:24px;padding:0!important;border:0!important;border-radius:4px;background:none!important;box-shadow:none!important;font-size:12px;color:var(--muted)}
.frame-goal-amount{display:flex;align-items:center;gap:3px}.frame-goal-amount label{display:flex;align-items:center;gap:4px;flex:1;min-width:0;background:color-mix(in srgb,var(--text) 5%,transparent);border-radius:5px;padding:0 7px;color:var(--muted)}
#app #content.frame-dashboard .frame-goal input{min-width:0;height:27px;min-height:0;font-size:11px;padding:5px 7px;border:1px solid transparent;border-radius:5px;box-shadow:none;color:var(--text);background:color-mix(in srgb,var(--text) 4%,transparent)}
#app #content.frame-dashboard .frame-goal-amount input{padding-left:0;background:none;border:0;width:100%}.frame-goal input:focus{outline:1px solid var(--accent);outline-offset:1px}.frame-goal-text{width:100%;margin-top:7px}.frame-goal-result .bar{height:5px;margin:9px 0 5px}.frame-goal-result>div:last-child{display:flex;justify-content:space-between;align-items:baseline;gap:6px}.frame-goal-result strong{font-size:13px}.frame-goal-result small{font-size:9px;color:var(--muted)}.frame-goal-status{display:block;min-height:12px;font-size:9px;color:var(--muted);margin-top:3px}.frame-goal [hidden]{display:none!important}
@media(max-width:700px){.frame-goal-columns{grid-template-columns:1fr!important;gap:14px!important}.frame-goal{border-right:0;border-bottom:1px solid var(--line);padding-bottom:12px}}
