
/* 2026-10-22: shared rounded controls, matching the public calculator. */
html body.workspace-studio{--control-radius:999px;--field-radius:12px;--control-ring:#17a57f55}
/* Change shapes without changing click handlers, gate states or layout widths. */
html body.workspace-studio button:not(.setup-tab):not(.page-nav-item):not(.calendar-day):not(.month-tile):not(.pair-search-result):not(.nb-page-item):not(.nb-page-button):not(.ql-picker-item):not(.fx-pair),
html body.workspace-studio :is(a.button,a.primary,a.secondary,.identity-actions>a,.record-more>summary,.journal-backup-menu>summary,.journal-smart-filters>summary,.nb-rich-advanced>summary){border-radius:var(--control-radius)!important;font-weight:500;letter-spacing:-.01em;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease}
html body.workspace-studio :is(.primary,.secondary,.button,.dialog-actions>button,.entry-actions>button,.identity-actions>a){display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;line-height:1.3;box-sizing:border-box}
html body.workspace-studio :is(.primary,.secondary,.button){padding-inline:16px}
html body.workspace-studio :is(button,a.button,a.primary,a.secondary,summary):focus-visible{outline:2px solid #17A57F!important;outline-offset:3px}
html body.workspace-studio :is(button,a.button,a.primary,a.secondary)[disabled],html body.workspace-studio button[aria-disabled=true]{cursor:not-allowed;box-shadow:none;transform:none}
/* Rounded tabs stay compact and retain the existing active/selected colors. */
html body.workspace-studio :is(.review-tabs,.market-tabs,.journal-toolbar-strip>.tabs,.timeframes){border-radius:999px!important;gap:4px}
html body.workspace-studio :is(.review-tabs,.market-tabs,.journal-toolbar-strip>.tabs,.timeframes)>button{border-radius:999px!important;line-height:1.3}
html body.workspace-studio .trade-card .setup-tab{border-radius:15px!important}
html body.workspace-studio .page-navigation .page-nav-item{border-radius:18px!important}
/* Compact symbol controls: equal centering, no extra footprint. */
html body.workspace-studio :is(.theme-toggle,.user-chip,.map-shortcut,.icon-button,.nb-icon-button,.add-manual-trade,.remove-manual-trade,.review-back-button){display:inline-flex;align-items:center;justify-content:center;line-height:1;box-sizing:border-box}
html body.workspace-studio :is(.theme-toggle,.user-chip,.icon-button,.nb-icon-button) svg{flex-shrink:0;vertical-align:middle}
html body.workspace-studio .user-chip :is(.user-initials,.user-avatar,.avatar){display:inline-flex;align-items:center;justify-content:center;line-height:1;margin:0}
/* Data fields use a softer rectangle so long values remain easy to read. */
html body.workspace-studio :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){border-radius:var(--field-radius)!important;box-shadow:inset 0 1px 0 #ffffff04}
html body.workspace-studio :is(input,select,textarea):focus-visible{outline-offset:2px}
/* Modal footers and action rows wrap without stretching into oversized blocks. */
html body.workspace-studio :is(.dialog-actions,.identity-actions,.record-actions,.nb-rich-actions){align-items:center;gap:8px}
html body.workspace-studio .dialog-actions{flex-wrap:wrap}
html body.workspace-studio .dialog-actions>button{min-height:38px;padding:9px 16px!important}
html body.workspace-studio #journalCards .record-actions>button,
html body.workspace-studio #journalCards .record-actions>.record-more>summary{border-radius:999px!important;padding:7px 13px!important;min-height:34px!important;line-height:1.3!important}
html body.workspace-studio :is(.record-more-menu,.journal-options-menu,.nb-page-menu,.workspace-heading-menu) button{text-align:left;justify-content:flex-start;border-radius:12px!important}
/* Preserve full-width page rows, chart/calendar cells and editor tool sizing. */
html body.workspace-studio :is(.nb-page-list,.nb-pages-list) button{border-radius:10px!important}
html body.workspace-studio :is(.ql-toolbar,.nb-selection-toolbar,.nb-image-toolbar) button{padding:0!important;border-radius:8px!important}
html body.workspace-studio :is(.calendar-day,.month-tile){border-radius:12px!important}
@media(hover:hover){
 html body.workspace-studio :is(.secondary,.button,.dialog-actions>button):not(:disabled):hover{border-color:var(--muted);box-shadow:inset 0 1px 0 #ffffff0a}
 html body.workspace-studio :is(.text-button,.record-more>summary):not(:disabled):hover{background:var(--hover)}
}
@media(max-width:760px){
 html body.workspace-studio{--field-radius:11px}
 html body.workspace-studio :is(.primary,.secondary,.button){padding-inline:13px}
 html body.workspace-studio :is(.identity-actions,.dialog-actions){gap:7px}
 html body.workspace-studio .dialog-actions>button{min-height:40px;padding:9px 14px!important}
 html body.workspace-studio :is(.review-tabs,.market-tabs,.journal-toolbar-strip>.tabs){gap:2px}
 html body.workspace-studio #journalCards .record-actions>button,
 html body.workspace-studio #journalCards .record-actions>.record-more>summary{min-height:38px!important;padding:8px 12px!important}
 html body.workspace-studio .page-navigation .page-nav-item{border-radius:17px!important}
}
@media(prefers-reduced-motion:reduce){html body.workspace-studio button,html body.workspace-studio summary,html body.workspace-studio a{transition:none!important}}
/* Theme-aware public and private footers; keep logo theme switching intact. */
html[data-theme=light] body footer{background:var(--surface,#fff)!important;color:var(--muted,#64717d)!important;border-top-color:var(--line,#dce2e7)!important}
html[data-theme=light] body footer :is(span,p,a){color:inherit}
html[data-theme=light] body footer a:hover{color:#108264}
html[data-theme=dark] body.workspace-studio footer{background:var(--surface-alt,#161b26)!important;color:var(--muted,#97a1ae)!important;border-top-color:var(--line,#2b333e)!important}

/* Data cards remain cards; only their action controls are pills. */
html body.workspace-studio #marketsView #marketBiasBoard .fx-pair{border-radius:16px!important;overflow:hidden;text-align:left;min-width:0}
html body.workspace-studio #marketsView #marketBiasBoard .fx-pair svg{border-radius:0!important}
html body.workspace-studio #reviewView .equity-mode{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px!important;background:var(--surface-alt);border:1px solid var(--line)}
html body.workspace-studio #reviewView .equity-mode button{border-radius:999px!important;border:0!important;box-shadow:none!important;min-height:32px;line-height:1.3;padding:7px 11px}
html body.workspace-studio #reviewView .equity-mode button.active,html body.workspace-studio #reviewView .equity-mode button[aria-pressed=true]{background:var(--hover)!important;color:var(--bright)!important}
@media(max-width:760px){html body.workspace-studio #marketsView #marketBiasBoard .fx-pair{border-radius:14px!important}html body.workspace-studio #reviewView .equity-mode button{min-height:38px;padding:8px 11px}}
