/* Journal dashboard: neutral cards, compact metrics, and a full monthly review. */
.journal-page[data-workspace=dashboard] .journal-toolbar{position:sticky;top:var(--header);min-height:78px;padding:15px 16px;border-bottom:1px solid #e8e9ec;background:#fafafa;backdrop-filter:none;align-items:center;flex-direction:row;flex-wrap:wrap;gap:12px}
.journal-page[data-workspace=dashboard] .journal-toolbar h1{font-size:24px;font-weight:500;letter-spacing:-.4px}
.journal-page[data-workspace=dashboard] .tracking-label{font-size:14px;color:#086aff;margin-bottom:5px}
.journal-page[data-workspace=dashboard] .journal-content{padding:16px 16px 48px}
.journal-page[data-workspace=dashboard] .journal-filters{width:auto;gap:8px}
.journal-page[data-workspace=dashboard] .journal-filters .select-button{min-height:36px;padding:7px 13px;font-size:14px}
#dashboard-view[hidden],#workspace-view[hidden]{display:none!important}
#dashboard-view .day-actions{margin:0 0 16px;gap:8px}
#dashboard-view .day-actions>.primary-button{min-height:40px;padding:9px 15px;font-size:14px;border-radius:8px}
#dashboard-view .widget-templates-trigger{min-height:40px;width:40px;padding:8px;border-radius:8px}
#dashboard-view .metrics-grid{gap:16px;margin-bottom:16px;grid-template-columns:repeat(5,minmax(0,1fr))}
#dashboard-view .metric{min-height:120px;padding:22px 12px 14px;border:0;border-radius:12px;box-shadow:none;position:relative}
#dashboard-view .metric>span{font-size:14px;color:#666;gap:8px;white-space:normal;line-height:1.3}
#dashboard-view .metric-main{margin-top:18px;min-height:32px}
#dashboard-view .metric strong{font-size:25px;font-weight:600;color:#202124;letter-spacing:-.5px}
#dashboard-view .metric small{font-size:11px;border-radius:10px;padding:2px 5px;background:#fafafa;color:#202124}
#dashboard-view .info{border-color:#797d80;color:#797d80;width:14px;height:14px;font-size:10px}
#dashboard-view .metric-decor.gauge{width:78px;height:40px;border-width:6px;border-color:#f65e64}
#dashboard-view .metric-decor.ring{width:62px;height:62px;border-width:6px;border-color:#f65e64;margin-top:-29px}
#dashboard-view .metric-decor.split{height:8px;background:linear-gradient(90deg,#4abd96 50%,#f65e64 50%)}
#dashboard-view .average-detail{margin:0 0 0 31%;color:#202124;font-size:12px}
#dashboard-view .layout-widget-grid{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
#dashboard-view .j-card{border:0;border-radius:12px;box-shadow:none;display:flex;flex-direction:column;min-width:0}
#dashboard-view .j-card>header{min-height:56px;padding:12px 16px;border-bottom:1px solid #eee;gap:8px;flex-shrink:0}
#dashboard-view .j-card h2{font-size:16px;font-weight:500;letter-spacing:-.2px;gap:10px;line-height:1.4}
#dashboard-view .card-body{height:auto;min-height:336px;flex:1;padding:16px}
#dashboard-view .empty-state{color:#202124;font-size:14px;line-height:1.5;gap:12px;min-height:190px}
#dashboard-view .empty-state p{max-width:340px}
#dashboard-view .card-tabs{gap:24px!important;justify-content:flex-start!important}
#dashboard-view .card-tabs button{font-size:15px;color:#666;padding:7px 0;margin:0;border-bottom:0;align-self:center;font-weight:500}
#dashboard-view .card-tabs button[aria-selected=true]{color:#086aff}
#dashboard-view [data-widget=progress]>header>button{background:none;color:#086aff;padding:4px 0;min-height:28px;font-size:14px;font-weight:500;box-shadow:none;white-space:nowrap}
/* Keep the calendar and its legend together, above a stable score footer. */
#dashboard-view [data-widget=progress]>header h2{margin:0;min-width:0}
#dashboard-view .progress-body{min-height:336px;padding:0 16px 16px;flex:1;display:flex;flex-direction:column}
#dashboard-view .progress-calendar{position:relative;padding:8px 0 10px;flex:none}
#dashboard-view .progress-calendar:before{content:'';position:absolute;left:40px;top:0;bottom:0;width:1px;background:#eee;box-shadow:2px 0 5px #172d4c08;pointer-events:none}
#dashboard-view .heatmap{position:relative;justify-content:start;grid-template-columns:44px repeat(5,24px);grid-template-rows:17px repeat(7,24px);gap:4px;font-size:12px;color:#086aff;margin:0}
#dashboard-view .heatmap>.heat-label{font-size:14px;color:#57717e}
#dashboard-view .heatmap button{width:24px;height:24px;padding:0;border:1px solid #f3f3f3;background:#f3f3f3;border-radius:1px}
#dashboard-view .heatmap button.inactive{background:#fff;border-color:#e9e9ec}
#dashboard-view .heatmap button:hover{outline:1px solid #86aeee;outline-offset:1px}
#dashboard-view .heatmap button:focus-visible{outline:2px solid #086aff;outline-offset:1px}
#dashboard-view .heatmap button[data-level="1"],#dashboard-view .heat-legend i:nth-of-type(1){background:#d8e4fb}
#dashboard-view .heatmap button[data-level="2"],#dashboard-view .heat-legend i:nth-of-type(2){background:#aec8f5}
#dashboard-view .heatmap button[data-level="3"],#dashboard-view .heat-legend i:nth-of-type(3){background:#7ca6ee}
#dashboard-view .heatmap button[data-level="4"],#dashboard-view .heat-legend i:nth-of-type(4){background:#4788e7}
#dashboard-view .heatmap button[data-level="5"],#dashboard-view .heat-legend i:nth-of-type(5){background:#086aff}
#dashboard-view .heat-legend{display:flex;align-items:center;justify-content:center;margin:8px 0 0 44px;padding:0;gap:4px;color:#57717e;font-size:11px;line-height:16px}
#dashboard-view .heat-legend>span:first-child{margin-right:12px}
#dashboard-view .heat-legend i{width:16px;height:16px;flex:none;border-radius:2px}
#dashboard-view .today-score{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;padding-top:20px;margin-top:auto;border-top:1px solid #eee;gap:12px}
#dashboard-view .today-score>div{min-width:0}
#dashboard-view .today-score>div>span{color:#29363d;font-size:14px;gap:7px;align-items:center}
#dashboard-view .today-score>div>div{gap:9px;min-width:0;margin-top:4px}
#dashboard-view .today-score strong{font-size:24px;line-height:28px;color:#29363d;font-weight:600;flex:none}
#dashboard-view .today-score progress{width:120px;max-width:120px;min-width:0;flex:1;height:8px;background:#f3f3f3}
#dashboard-view .today-score progress::-webkit-progress-bar{background:#f3f3f3}
#dashboard-view .today-score progress::-moz-progress-bar{background:#086aff;border-radius:9px}
#dashboard-view .today-score .subtle-button{min-height:33px;padding:6px 14px;border-radius:8px;font-size:13px;color:#202124;white-space:nowrap}
#dashboard-view .calendar-card{grid-column:span 2;grid-row:span 2}
#dashboard-view .calendar-card>header{min-height:56px;flex-wrap:wrap}
#dashboard-view .calendar-controls{gap:8px;flex:1}
#dashboard-view .calendar-controls h2{min-width:145px;font-weight:600;font-size:16px}
#dashboard-view .calendar-controls .icon-button{width:24px;height:32px;color:#777}
#dashboard-view .calendar-controls .subtle-button{min-height:32px;font-size:14px;padding:6px 12px;margin-left:8px}
#dashboard-view .calendar-gear{width:24px;height:28px;color:#657c87}
#dashboard-view .calendar-wrap{padding:12px;flex:1;display:flex;flex-direction:column}
#dashboard-view .monthly-stats{font-size:14px;color:#202124;margin:4px 3px 8px;gap:8px;flex-wrap:wrap}
#dashboard-view .monthly-stats strong,#dashboard-view .monthly-stats>span,#dashboard-view .week-days{padding:2px 9px;background:#e5ecfa;color:#29363d;font-size:13px;font-weight:400;border-radius:12px}
#dashboard-view .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr)) minmax(115px,1.7fr);gap:4px;flex:1;grid-template-rows:34px;grid-auto-rows:minmax(126px,1fr)}
#dashboard-view .weekday{padding:7px 0;background:white;color:#202124;border:1px solid #e6e6e8;border-radius:6px;font-size:14px}
#dashboard-view .weekday[aria-hidden=true]{background:none;border:0}
#dashboard-view .calendar-day{position:relative;min-height:126px;padding:6px;background:#f0f0f0;border:1px solid transparent;border-radius:3px;font-size:12px;color:#202124;gap:6px}
#dashboard-view .calendar-day:hover,#dashboard-view .calendar-day:focus-visible{border-color:#086aff;outline:none}
#dashboard-view .calendar-day.blank{background:#fff;border-color:#dedfe3;opacity:1}
#dashboard-view .calendar-day.today>span:first-child{display:grid;place-items:center;width:23px;height:23px;padding:0;margin:-4px -3px 0 0;border-radius:50%;font-size:11px}
#dashboard-view .calendar-day.positive{background:#eaf8f2;color:#168463}
#dashboard-view .calendar-day.negative{background:#fff0f1;color:#db454d}
#dashboard-view .calendar-day small{color:#686e73}
#dashboard-view .calendar-note-mark{position:absolute;left:7px;bottom:7px;width:17px;height:19px;color:#29363d}
#dashboard-view .week-summary{margin-left:16px;border:1px solid #e9e9ec;border-radius:12px;padding:14px 16px;color:#666;font-size:14px;gap:3px}
#dashboard-view .week-summary strong{font-size:20px;color:#202124;font-weight:600}
#dashboard-view .week-days{font-size:12px;align-self:flex-start;padding:2px 8px}
#dashboard-view .unit-mode-note{margin:0 0 14px}
@media(max-width:1250px){#dashboard-view .metric-decor.gauge{width:58px;height:31px;border-width:5px}#dashboard-view .metric-decor.ring{width:46px;height:46px;border-width:5px;margin-top:-12px}#dashboard-view .metric>span{font-size:13px;gap:5px}#dashboard-view .today-score{flex-wrap:wrap}#dashboard-view .heat-legend{padding-right:0}#dashboard-view .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr)) 105px}#dashboard-view .week-summary{margin-left:8px;padding:12px 10px}}
@media(max-width:1100px){#dashboard-view .metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#dashboard-view .layout-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard-view .calendar-card{grid-column:span 2;grid-row:auto}.journal-page[data-workspace=dashboard] .journal-filters{flex-wrap:wrap}#dashboard-view .today-score{flex-wrap:nowrap}}
@media(max-width:760px){.journal-page[data-workspace=dashboard] .journal-toolbar{position:relative;top:auto;padding:16px 12px}.journal-page[data-workspace=dashboard] .journal-content{padding:12px 10px 35px}.journal-page[data-workspace=dashboard] .journal-filters{width:100%;display:flex;gap:7px}#dashboard-view .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#dashboard-view .metric{padding:18px 12px;min-height:116px}#dashboard-view .layout-widget-grid{grid-template-columns:minmax(0,1fr);gap:12px}#dashboard-view .calendar-card{grid-column:auto;grid-row:auto}#dashboard-view .card-body{min-height:300px}#dashboard-view .calendar-controls{flex-wrap:wrap;justify-content:flex-start}#dashboard-view .calendar-controls h2{min-width:125px}#dashboard-view .calendar-controls .subtle-button{margin-left:0}#dashboard-view .calendar-wrap{overflow-x:auto}#dashboard-view .calendar-grid{min-width:590px;grid-template-columns:repeat(7,minmax(0,1fr)) 105px;grid-auto-rows:minmax(92px,1fr)}#dashboard-view .calendar-day{min-height:92px}#dashboard-view .week-summary{display:flex}#dashboard-view .weekday:nth-child(8){display:block}#dashboard-view .calendar-day small{display:block}#dashboard-view .day-actions{margin-bottom:14px}#dashboard-view .metric-decor.gauge{width:66px;height:35px}}

#dashboard-view .progress-overview{display:flex;flex-direction:column;flex:1;min-width:0}
#dashboard-view .progress-overview[hidden],#dashboard-view .progress-widget-checklist[hidden]{display:none!important}
#dashboard-view .progress-widget-checklist{flex:1;min-width:0;padding-top:16px}
#dashboard-view .progress-widget-checklist>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
#dashboard-view .progress-widget-checklist h3{font-size:20px;line-height:1.3;font-weight:600;letter-spacing:-.3px;margin:0;color:#29363d}
#dashboard-view .progress-widget-checklist h3:focus{outline:none}
#dashboard-view .progress-checklist-close{display:grid;place-items:center;width:28px;height:28px;flex:none;padding:0;background:none;color:#57717e;border-radius:5px;font-size:24px;font-weight:400;line-height:1}
#dashboard-view .progress-checklist-close:hover{background:#f4f6f9}
#dashboard-view .progress-widget-checklist .checklist{display:flex;flex-direction:column;gap:0}
#dashboard-view .progress-widget-checklist .pt-check-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:33px;padding:6px 0;font-size:13px;line-height:1.4;color:#29363d}
#dashboard-view .progress-widget-checklist .pt-status{font-size:19px;line-height:20px;margin:0;text-align:center}
#dashboard-view .progress-widget-checklist .pt-check-row>small{font-size:13px;color:#666;line-height:1.4;text-align:right;white-space:normal;overflow-wrap:anywhere;max-width:108px}
#dashboard-view .progress-widget-checklist .pt-check-row label{display:flex;align-items:center;gap:7px;padding:0;border-radius:0;background:none;font-size:13px;min-width:0}
#dashboard-view .progress-widget-checklist input[type=checkbox]{width:15px;height:15px;margin:0;accent-color:#086aff}
#dashboard-view .progress-rest-day{font-size:12px;color:#7b8187;margin:0 0 8px}
@media(max-width:380px){#dashboard-view .progress-widget-checklist h3{font-size:17px}#dashboard-view .progress-widget-checklist .pt-check-row{grid-template-columns:16px minmax(0,1fr) auto;gap:6px;font-size:12px}#dashboard-view .progress-widget-checklist .pt-check-row>small{font-size:11px;max-width:85px}}

/* Month calendar keeps each weekly total on the same row as its seven days. */
#dashboard-view .calendar-card{align-self:start;overflow:hidden}
#dashboard-view .calendar-card>header{padding:12px 16px;gap:12px;min-height:56px;align-items:center}
#dashboard-view .calendar-controls{display:flex;align-items:center;justify-content:flex-start;flex:1;gap:8px;min-width:0}
#dashboard-view .calendar-controls h2{margin:0;min-width:140px;white-space:nowrap;font-size:16px;font-weight:600;letter-spacing:0}
#dashboard-view .calendar-controls .icon-button{width:20px;height:28px;padding:4px;flex:none;color:#777}
#dashboard-view .calendar-controls .icon-button svg{width:16px;height:16px}
#dashboard-view .calendar-controls .subtle-button{margin-left:10px;min-height:32px;padding:6px 12px;white-space:nowrap;font-size:14px;border-color:#e9e9ec}
#dashboard-view .calendar-actions{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto}
#dashboard-view .calendar-actions .icon-button{display:grid;place-items:center;width:20px;height:28px;padding:2px;color:#637d89}
#dashboard-view .calendar-actions .calendar-camera{color:#086aff}
#dashboard-view .calendar-actions svg{width:16px;height:16px}
#dashboard-view .calendar-actions .info{margin-left:2px}
#dashboard-view .calendar-wrap{padding:16px 12px 12px;flex:none;overflow-x:auto}
#dashboard-view .monthly-stats{display:flex;align-items:center;gap:8px;margin:0 3px 7px;font-size:14px;line-height:20px;font-weight:600}
#dashboard-view .monthly-stats strong,#dashboard-view .monthly-stats>span{padding:1px 9px;font-size:13px;line-height:18px}
#dashboard-view .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) minmax(140px,1.72fr);grid-template-rows:35px;grid-auto-rows:128px;gap:4px;flex:none;min-width:640px}
#dashboard-view .weekday{padding:8px 0;font-size:14px;line-height:17px;border-color:#e4e5e8;border-radius:7px}
#dashboard-view .weekday[aria-hidden=true]{display:block}
#dashboard-view .calendar-day{min-height:0;height:128px;min-width:0;padding:5px 7px;border-radius:3px;background:#f0f0f0;font-size:12px;line-height:16px;gap:4px;overflow:hidden}
#dashboard-view .calendar-day.blank{background:#fff;border-color:#dedfe3}
#dashboard-view .calendar-day.positive{background:#eaf8f2}
#dashboard-view .calendar-day.negative{background:#fff0f1}
#dashboard-view .calendar-day.today>span:first-child{width:22px;height:22px;font-size:11px;margin:-4px -3px 0 0;flex:none}
#dashboard-view .week-summary{display:flex;height:128px;min-width:0;margin-left:16px;padding:16px;border-color:#e8e9ec;border-radius:13px;gap:2px;justify-content:center}
#dashboard-view .week-summary>span:first-child{font-size:14px;line-height:20px;color:#666}
#dashboard-view .week-summary strong{font-size:20px;font-weight:600;line-height:24px;overflow-wrap:anywhere}
#dashboard-view .week-days{font-size:12px;line-height:16px;padding:2px 9px;margin-top:1px}
#dashboard-view .calendar-day-stats{width:100%;min-height:0;overflow:auto;margin-top:0;margin-bottom:20px}
#dashboard-view .calendar-note-mark{left:7px;bottom:7px;width:18px;height:20px}
@media(max-width:760px){#dashboard-view .calendar-card>header{padding:10px 12px;gap:8px}#dashboard-view .calendar-controls{flex-wrap:wrap;gap:5px}#dashboard-view .calendar-controls h2{min-width:128px;font-size:14px}#dashboard-view .calendar-controls .subtle-button{margin-left:2px;font-size:12px;padding:6px 9px}#dashboard-view .calendar-actions{gap:5px}#dashboard-view .calendar-wrap{padding:12px 10px 10px}#dashboard-view .calendar-grid{min-width:640px;grid-auto-rows:128px}#dashboard-view .calendar-day small{display:block}}

/* Recorded-trade dashboard charts and reference widget layout. */
#dashboard-view .card-body{min-height:315px;padding:20px 15px 16px;display:flex;flex-direction:column;justify-content:center;min-width:0}
#dashboard-view .dc-chart{width:100%;height:auto;max-height:300px;display:block;overflow:visible;flex:1;min-height:210px;font-family:inherit}
#dashboard-view .dc-mark{cursor:pointer;outline:none;transition:filter .12s}
#dashboard-view .dc-mark:hover,#dashboard-view .dc-mark:focus{filter:brightness(.86);stroke:#245ec2;stroke-width:2}
#dashboard-view .dc-line-point{opacity:0}
#dashboard-view .dc-line-point:hover,#dashboard-view .dc-line-point:focus{opacity:1}
#dashboard-view .dc-empty{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:22px;color:#8995a3;font-size:14px;text-align:center;line-height:1.6}
#dashboard-view .dc-balance-legend{display:flex;align-items:center;gap:16px;font-size:12px;color:#7b8694;flex-wrap:wrap;margin:3px 6px 15px}
#dashboard-view .dc-balance-legend span{display:flex;align-items:center;gap:7px}
#dashboard-view .dc-balance-legend i{width:12px;height:12px;background:#3979e6;border-radius:50%;flex:none}
#dashboard-view .dc-balance-legend span:nth-child(2){color:#9ca5b0}
#dashboard-view .dc-balance-legend span:nth-child(2) i{background:#f45f67;opacity:.45}
#dashboard-view .dc-balance-legend small{font-size:12px}
#dashboard-view .dc-balance-caption{display:flex;align-items:center;gap:7px;color:#929ba7;font-size:12px;margin:5px 8px 0}
#dashboard-view .dc-balance-caption button{margin-left:auto;background:none;color:#086aff;font-size:12px;padding:2px;cursor:pointer}
#dashboard-view .dc-time-settings{margin-left:auto;width:26px;height:26px;padding:4px;background:none;color:#6e7c8b}
#dashboard-view .dc-time-settings svg{width:18px;height:18px}
#dashboard-view .dc-time-settings:hover{background:#f1f5fc}
#dashboard-view #recent-body{padding:10px 8px 0;justify-content:flex-start}
#dashboard-view .dc-recent-scroll{max-height:318px;min-height:250px;overflow:auto}
#dashboard-view .dc-recent-table{width:100%;border-collapse:separate;border-spacing:0;text-align:center;font-size:14px}
#dashboard-view .dc-recent-table th{padding:14px 10px;background:#edf1fb;color:#37404d;font-weight:600;font-size:13px;position:sticky;top:0}
#dashboard-view .dc-recent-table th:first-child{border-radius:7px 0 0 7px}
#dashboard-view .dc-recent-table th:last-child{border-radius:0 7px 7px 0}
#dashboard-view .dc-recent-table td{padding:13px 10px;border-bottom:1px solid #edf0f4;white-space:nowrap;color:#414b58}
#dashboard-view .dc-recent-table td.negative{color:#f45f67}
#dashboard-view .dc-recent-table td.positive{color:#34b68e}
#dashboard-view .dc-recent-table button{background:none;font-size:13px;color:inherit;padding:0;cursor:pointer}
#dashboard-view .dc-recent-table button:hover{color:#086aff;text-decoration:underline}
#dashboard-view .dc-recent-table td.dc-no-trades{padding:45px 10px;color:#929ba7;font-size:13px;white-space:normal}
#dashboard-view .card-tabs{gap:24px!important;position:relative}
#dashboard-view .card-tabs button{height:43px;border-bottom:2px solid transparent;border-radius:0;align-self:flex-end}
#dashboard-view .card-tabs button[aria-selected=true]{border-bottom-color:#086aff}
#dashboard-view .j-card>header.card-tabs{padding-bottom:0}
#dashboard-view .metric-decor.gauge,#dashboard-view .metric-decor.ring{display:block;border:0!important;border-radius:0;background:none;width:88px;height:auto;position:relative;margin:-14px 0 -13px;min-width:0}
#dashboard-view .metric-decor.gauge svg{width:100%;height:50px;display:block}
#dashboard-view .metric-decor.ring{width:58px;height:58px;margin:-28px 0 -6px}
#dashboard-view .metric-decor.ring svg{width:58px;height:58px;display:block}
#dashboard-view .dc-gauge-counts{display:flex;align-items:center;justify-content:space-between;gap:3px;margin-top:0}
#dashboard-view .dc-gauge-counts i{font-size:10px;font-style:normal;padding:2px 6px;border-radius:12px;color:#2baa85;background:#eaf9f3;line-height:13px}
#dashboard-view .dc-gauge-counts i:nth-child(2){color:#3979e6;background:#eaf0fe}
#dashboard-view .dc-gauge-counts i:nth-child(3){color:#eb626b;background:#fff0f2}
#dashboard-view .metric-main{margin-top:20px;gap:8px}
#dashboard-view .metric strong.negative{color:#f45f67}
#dashboard-view .metric strong.positive{color:#34b68e}
#dashboard-view .metric-decor.split{display:block;width:58%;height:8px;border-radius:9px}
#dashboard-view .average-detail{margin-left:42%;margin-top:6px;font-size:12px}
#dashboard-view #avg-win{color:#34b68e}
#dashboard-view #avg-loss{color:#f45f67}
#dashboard-view .dc-entry-status{margin:0 auto 0 0;display:flex;align-items:center;gap:7px;font-size:13px;color:#7c8795;align-self:center}
#dashboard-view .dc-entry-status strong{font-weight:500;color:#526171}
#dashboard-view #score-body{padding:0 16px 8px;justify-content:flex-start}
#dashboard-view .dc-score-radar{width:100%;flex:1;display:flex;align-items:center;justify-content:center}
#dashboard-view .dc-score-radar svg{display:block;width:100%;max-width:360px;height:273px;max-height:273px}
#dashboard-view .dc-score-footer{display:flex;align-items:center;gap:16px;border-top:1px solid #edf0f3;padding-top:12px}
#dashboard-view .dc-score-footer>div:first-child{border-right:1px solid #edf0f3;padding-right:16px;min-width:95px}
#dashboard-view .dc-score-footer span{font-size:12px;color:#657789}
#dashboard-view .dc-score-footer strong{display:block;margin-top:4px;color:#293d4f;font-size:23px;font-weight:600}
#dashboard-view .dc-score-scale{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;flex:1}
#dashboard-view .dc-score-scale div{flex-basis:100%;height:7px;border-radius:6px;background:linear-gradient(90deg,#f1787e,#ffcc7b 35%,#f8e958 50%,#eff2f5 50%)}
#dashboard-view .dc-score-scale span{font-size:10px}
#dashboard-view .dc-score-note{font-size:11px;color:#95a0ad;margin:7px 0 0;text-align:right}
#dashboard-view .calendar-card>header .monthly-stats{margin:0;font-size:12px;gap:6px;white-space:nowrap;flex-wrap:nowrap}
#dashboard-view .calendar-card>header .monthly-stats strong,#dashboard-view .calendar-card>header .monthly-stats>span{font-size:12px;padding:2px 7px}
#dashboard-view .calendar-card>header .monthly-stats strong{background:#f7f8fa}
#dashboard-view #monthly-net.negative{color:#f45f67;background:#fff1f2}
#dashboard-view #monthly-net.positive{color:#20aa83;background:#ecfaf4}
#dashboard-view .calendar-actions{margin-left:0;gap:6px}
#dashboard-view .calendar-controls h2{font-size:14px;min-width:123px}
#dashboard-view .calendar-controls .subtle-button{font-size:12px;padding:5px 9px;margin-left:3px;min-height:29px}
#dashboard-view .calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr)) minmax(105px,1.15fr);grid-template-rows:31px;grid-auto-rows:109px;min-width:630px;gap:4px}
#dashboard-view .weekday{padding:6px 0;font-size:12px;line-height:17px}
#dashboard-view .calendar-day,#dashboard-view .week-summary{height:109px;min-height:0}
#dashboard-view .calendar-day{padding:4px 5px;font-size:11px;gap:3px;color:#303740}
#dashboard-view .calendar-day-stats{align-items:flex-end;text-align:right;margin:4px 0 16px;gap:0}
#dashboard-view .calendar-day-stats strong{font-size:14px;line-height:18px;font-weight:600;color:#222c36}
#dashboard-view .calendar-day-stats small{font-size:11px;line-height:14px;color:#6e7882}
#dashboard-view .calendar-day.positive{background:#dff3e9;border-color:#2cb48e;color:#253e35}
#dashboard-view .calendar-day.negative{background:#fce0e2;border-color:#f5656e;color:#4a3034}
#dashboard-view .calendar-day.today>span:first-child{margin:-4px -3px 0 0;width:20px;height:20px;background:#086aff;color:white}
#dashboard-view .week-summary{margin-left:12px;padding:13px;border-radius:12px;gap:1px}
#dashboard-view .week-summary>span:first-child{font-size:12px;line-height:17px}
#dashboard-view .week-summary strong{font-size:18px;line-height:22px;font-weight:500}
#dashboard-view .week-summary.positive strong{color:#23ac85}
#dashboard-view .week-summary.negative strong{color:#f45f67}
#dashboard-view .week-days{font-size:11px;line-height:14px;padding:1px 7px;margin-top:1px}
@media(max-width:1250px){#dashboard-view .metric-decor.gauge{width:65px}#dashboard-view .metric-decor.gauge svg{height:40px}#dashboard-view .metric-decor.ring,#dashboard-view .metric-decor.ring svg{width:46px;height:46px}#dashboard-view .dc-gauge-counts i{font-size:9px;padding:1px 4px}#dashboard-view .metric strong{font-size:23px}#dashboard-view .calendar-card>header{gap:8px;flex-wrap:wrap}#dashboard-view .calendar-card>header .monthly-stats{margin-left:auto}#dashboard-view .dc-balance-legend{gap:10px;font-size:11px}}
@media(max-width:760px){#dashboard-view .card-body{min-height:285px;padding:15px 10px}#dashboard-view .dc-chart{max-height:none;min-height:200px}#dashboard-view .dc-entry-status{flex-direction:column;gap:2px;align-items:flex-start;font-size:11px}#dashboard-view .metric-decor.gauge{width:66px}#dashboard-view .metric-decor.gauge svg{height:40px}#dashboard-view .dc-recent-scroll{max-height:285px}#dashboard-view .calendar-card>header .monthly-stats{order:3;margin:4px 0 0;width:100%;justify-content:flex-end}#dashboard-view .calendar-controls h2{font-size:14px}#dashboard-view .calendar-grid{grid-auto-rows:109px;min-width:630px}#dashboard-view .calendar-day,#dashboard-view .week-summary{height:109px}}

#dashboard-view .dc-single-point{opacity:1}
#dashboard-view .week-summary{padding-inline:9px}
#dashboard-view .week-summary strong{font-size:16px;white-space:nowrap;overflow-wrap:normal}

/* A two-row calendar shares the exact height of two equal chart cards. */
#dashboard-view .layout-widget-grid{--widget-gap:16px;gap:var(--widget-gap);grid-auto-rows:auto}
#dashboard-view .calendar-card{align-self:stretch;min-height:0}
#dashboard-view .calendar-wrap{flex:1;min-height:0}
#dashboard-view .calendar-grid{flex:1;min-height:0;grid-template-rows:31px;grid-auto-rows:minmax(0,1fr)}
#dashboard-view .calendar-day,#dashboard-view .week-summary{height:auto;min-height:0}
#dashboard-view [data-widget=drawdown],#dashboard-view [data-widget=time]{min-height:0;aspect-ratio:1.06 / 1}
#dashboard-view [data-widget=drawdown] .card-body,#dashboard-view [data-widget=time] .card-body{flex:1;min-height:0}
@media(max-width:1100px){
 #dashboard-view .layout-widget-grid{grid-auto-rows:auto}
 #dashboard-view .calendar-grid{flex:none;grid-auto-rows:109px}
 #dashboard-view .calendar-day,#dashboard-view .week-summary{height:109px;min-height:0}
 #dashboard-view [data-widget=drawdown],#dashboard-view [data-widget=time]{min-height:371px}
}
@media(max-width:760px){#dashboard-view .layout-widget-grid{--widget-gap:12px}}

#dashboard-view [data-widget=drawdown] .dc-empty,#dashboard-view [data-widget=time] .dc-empty{min-height:0;flex:1}

/* Economic-event markers and a hover card that stays inside the viewport. */
#dashboard-view .calendar-cell{position:relative;min-width:0;min-height:0}
#dashboard-view .calendar-cell>.calendar-day{width:100%;height:100%}
#dashboard-view .calendar-event-dots{position:absolute;right:3px;bottom:2px;display:flex;align-items:center;justify-content:flex-end;gap:3px;min-width:26px;min-height:22px;padding:5px;background:none;border:0;border-radius:4px;cursor:pointer}
#dashboard-view .calendar-event-dots:focus-visible{outline:2px solid #086aff;outline-offset:-1px}
.calendar-impact{display:inline-block;flex:none;width:8px;height:8px;border:1px solid #fff;border-radius:50%;background:#e4c753}
.calendar-impact.high{background:#f45f67}.calendar-impact.medium{background:#ff9800}
.calendar-event-popover{position:fixed;z-index:110;width:320px;height:400px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;padding:14px 12px 10px;background:#fff;color:#29363d;border:1px solid #eef0f3;border-radius:9px;box-shadow:0 5px 20px #17283c30;font-family:Arial,sans-serif}
.calendar-event-popover[hidden]{display:none}
.calendar-event-popover>header{padding:0 0 9px;margin-bottom:6px;border-bottom:1px solid #e9ecef;font-size:12px;line-height:18px;font-weight:500;color:#5b626b}
.calendar-event{display:flex;align-items:flex-start;gap:9px;padding:9px 0}
.calendar-event-meta{width:47px;flex:none}
.calendar-event-meta time{font-size:11px;color:#617d8e;white-space:nowrap}
.calendar-event-meta>div{display:flex;align-items:center;gap:4px;margin-top:5px}
.calendar-event-meta img{display:block;width:17px;height:17px;object-fit:cover;border-radius:50%}
.calendar-event-meta .calendar-impact{width:17px;height:17px;border:0}
.calendar-event-details{min-width:0;flex:1}
.calendar-event-details strong{display:block;font-size:12px;font-weight:500;line-height:17px}
.calendar-event-details dl{display:flex;justify-content:space-between;gap:9px;margin:7px 0 0;font-size:11px;line-height:15px}
.calendar-event-details dl>div{display:flex;gap:4px}
.calendar-event-details dt,.calendar-event-details dd{margin:0}
.calendar-event-popover>footer{border-top:1px solid #e9ecef;margin-top:6px;padding-top:8px;text-align:center;font-size:11px;color:#7c838c;line-height:16px}
.calendar-event-popover>footer span{display:block;font-size:10px}
.calendar-event-meta time{white-space:normal}
.calendar-event-details dd{overflow-wrap:anywhere}

.calendar-event-popover>header,.calendar-event-popover>footer{flex:none}
.calendar-event-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdc3cb transparent;scrollbar-gutter:stable;padding-right:4px}
.calendar-event-list:focus-visible{outline:2px solid #086aff;outline-offset:-2px;border-radius:4px}
