/* Natural-height cards: a disclosure only changes the space its own card needs. */
.r12-packed-grid{display:grid!important;grid-template-columns:repeat(var(--packed-columns,2),minmax(0,1fr))!important;grid-auto-rows:1px!important;gap:0 14px!important;align-items:start!important;min-width:0;width:100%;margin:0!important}
.r12-packed-grid[data-stack-columns="1"]{display:flex!important;flex-direction:column;gap:14px!important}
html body.desktop-v4 .r12-packed-grid>.r12-packed-card{align-self:start!important;min-width:0!important;width:100%;box-sizing:border-box;min-height:0!important;height:auto!important;margin:0!important}
html body.desktop-v4 .r12-market-page{gap:14px;margin-top:16px}
html body.desktop-v4 .r12-market-grid>.live-panel,html body.desktop-v4 .r12-market-grid>#r2-market-summary>.live-panel{padding:16px!important;border-radius:14px;min-height:0!important;margin:0!important}
.r12-market-grid>#r2-market-summary{display:grid;gap:9px}
.r12-market-grid .live-panel-title{margin:0 0 10px!important;gap:10px;align-items:center}
.r12-market-grid .live-panel-title h2{font-size:19px!important;line-height:1.5;margin:0}
.r12-market-grid .live-panel-title .text-link{padding:0;line-height:1.6;font-size:13px;white-space:nowrap;min-height:0;border:0;margin:0}
html body.desktop-v4 .r12-market-grid .next-market-brief{padding:16px!important;min-height:0!important;height:auto!important}
.r12-market-grid .next-market-brief h2{font-size:19px;line-height:1.6;margin:8px 0 10px}
.r12-market-grid .r2-hold-impact{margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px}
.r12-market-grid .r2-hold-impact button{font-size:13px;padding:7px 10px;min-height:34px}
html body.desktop-v4 .r12-market-grid #real-heatmap{padding:16px!important;min-height:0!important}
html body.desktop-v4 .r12-market-grid #real-heat-grid.r3-heat-values{grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:minmax(94px,auto)!important}
html body.desktop-v4 .r12-market-grid #real-heat-grid.r3-heat-values .r3-heat-tile{grid-template-rows:18px minmax(29px,auto) minmax(32px,auto)!important;padding:7px!important;gap:2px;min-height:0!important}
.r12-market-grid .v4-heat-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.r12-market-grid .v4-heat-overview a{padding:10px;min-height:0;line-height:1.6}
.r12-market-grid .v4-heat-overview>button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 6px;align-items:center;min-height:0!important;padding:9px!important;font-size:12px;line-height:1.5;text-align:left;border-radius:8px}
.r12-market-grid .v4-heat-overview>button>b{grid-column:2;grid-row:1;font-size:15px;line-height:1.5;white-space:nowrap}
.r12-market-grid .v4-heat-overview>button>small{grid-column:1/-1;font-size:11px;line-height:1.5}
.r12-market-grid .v4-market-news a{padding:11px 0}
.r12-market-grid .v4-market-news a:last-child{border:0;padding-bottom:0}
.r12-market-grid #real-market-ai>p{font-size:14px;line-height:1.7;margin:0 0 10px}
.r12-market-grid #v4-market-chart .next-index-switcher{gap:4px;padding:0}
html body.desktop-v4 .r12-market-grid #v4-index-chart{height:205px!important}
.r12-market-grid #v4-market-chart .index-heading{flex-wrap:wrap;gap:8px}
.r12-market-grid #v4-market-chart .index-heading>.compact-tabs{margin-left:auto}
html body.desktop-v4 .r12-market-grid #v4-market-chart{gap:10px}
.r12-market-page>.v3-extra-indices{margin:0;min-width:0}
.r12-market-page>.v3-extra-indices>summary{font-size:15px;font-weight:650;margin:0 0 10px;padding:11px 14px;background:var(--mm-surface);border:1px solid var(--mm-line);border-radius:9px;color:var(--mm-ink)}
html body.desktop-v4 .r12-market-page .live-dashboard{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 16px;background:var(--mm-surface);border:1px solid var(--mm-line);border-radius:12px;padding:4px 14px;margin:0}
html body.desktop-v4 .r12-market-page .live-dashboard>article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:3px 10px;min-width:0;min-height:0!important;height:auto!important;padding:10px 0!important;border:0;border-bottom:1px solid var(--mm-line);border-radius:0;background:transparent!important;box-shadow:none}
html body.desktop-v4 .r12-market-page .live-dashboard>article>span{display:block;min-width:0;font-size:13px;font-weight:650;line-height:1.5;color:var(--mm-ink)!important}
html body.desktop-v4 .r12-market-page .live-dashboard>article>span>small{display:block;font-size:10px;line-height:1.5;color:var(--mm-muted)!important;font-weight:400;margin-top:2px}
html body.desktop-v4 .r12-market-page .live-dashboard>article>strong{font-size:20px!important;line-height:1.4;margin:0!important;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.4px}
html body.desktop-v4 .r12-market-page .live-dashboard>article>b{font-size:12px;line-height:1.5;white-space:nowrap;text-align:right;min-width:55px;font-variant-numeric:tabular-nums}
html body.desktop-v4 .r12-market-page .live-dashboard>article>small{grid-column:1/-1;font-size:10px;line-height:1.5;margin:0;color:var(--mm-muted)}
.r12-market-page .v3-extra-indices>.data-note{font-size:12px;line-height:1.65;margin:8px 0}
html body.desktop-v4 .r12-market-page #calendar{padding:16px!important;margin:0!important;border-radius:14px}

/* Member pages retain their figures and explanation; padding does less work. */
html body.member-workspace .r12-household-overview>.live-panel,html[data-theme] body.member-workspace .r12-household-overview>.r10-budget-hero{padding:16px!important;border-radius:13px}
.r12-household-overview{margin-bottom:14px!important}
.r12-household-overview .live-panel-title{margin:0 0 9px!important;min-height:0;gap:8px}
.r12-household-overview .live-panel-title h2{font-size:20px;line-height:1.5;margin:0}
html[data-theme] body.member-workspace .r12-household-overview>.r10-budget-hero>strong{font-size:35px;margin:4px 0 7px;line-height:1.3}
.r12-household-overview .r10-budget-numbers{margin:10px 0}
.r12-household-overview .r10-budget-numbers>div{padding:9px 12px}
.r12-household-overview .r10-budget-hero .next-budget-line{margin:10px 0 8px;height:9px}
.r12-household-overview .r10-budget-hero>p{margin:8px 0;line-height:1.65}
.r12-household-overview .r10-budget-foot{padding-bottom:8px}
.r12-household-overview .r10-check{padding:9px 11px;margin-top:7px}
.r12-household-overview .r10-check p{font-size:14px;line-height:1.65;margin:4px 0 0}
.r12-household-overview :is(.r10-local-analysis,.r10-cached-household){padding:11px;margin-top:9px}
.r12-household-overview :is(.r10-local-analysis,.r10-cached-household) p{font-size:14px;line-height:1.65;margin:6px 0}
html body.member-workspace .r12-household-overview :is(.r10-chart-reading,.r10-reading-note){font-size:13px!important;line-height:1.65!important;margin:9px 0 0!important}
.r12-household-overview .r11-category-composition{grid-template-columns:155px minmax(0,1fr);gap:12px}
.r12-household-overview .r11-category-donut{width:155px}
html body.member-workspace .r12-household-overview .r11-donut-center strong{font-size:22px}
.r12-household-overview .r10-month-bars button>span{height:104px}
.r12-household-overview .r10-month-bars button i{max-height:94px}
.member-workspace .r10-household .r10-page-heading{margin-bottom:12px}
.member-workspace .r10-household .r10-page-heading h1{margin:2px 0 4px}
.member-workspace .r10-household .r10-page-heading p{margin:0;line-height:1.65}
.member-workspace .r10-household .next-month{margin-bottom:14px;padding-bottom:0}
.member-workspace .r10-household .next-detail-tabs{margin:0 0 13px}
.member-workspace .r10-household .r10-ledger-aside{padding:16px!important}
html body.member-workspace .r10-household .next-expense-row{padding-block:10px;min-height:70px}
html body.member-workspace .r10-household .next-expense-day h3{padding-block:8px}
.member-workspace .r2-my-top{align-items:start;gap:14px;margin-bottom:14px}
.member-workspace .r6-member-side{display:grid;gap:14px;align-content:start}
.member-workspace .r6-member-side>.live-panel{min-height:0!important;height:auto!important;padding:16px!important}
html[data-theme] body.desktop-v4.member-workspace .r2-asset-hero{padding:18px!important}
.member-workspace .next-assets-analysis.r6-analysis-open{padding:16px;margin-bottom:14px}
.member-workspace .r6-analysis-open .r2-detail-grid{align-items:start;gap:12px;margin-bottom:12px}

@media(max-width:1249px){html body.desktop-v4 .r12-market-page .live-dashboard{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}}
@media(max-width:1049px){html body.desktop-v4 .r12-market-page .live-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1049px){
 .r12-packed-grid{display:flex!important;flex-direction:column;gap:14px!important}
 html body.desktop-v4 .r12-market-grid #real-heat-grid.r3-heat-values{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(max-width:700px){
 html body.desktop-v4 .r12-market-page{margin-top:12px;gap:12px}
 .r12-packed-grid,.r12-packed-grid[data-stack-columns="1"]{gap:12px!important}
 html body.desktop-v4 .r12-market-grid>.live-panel,html body.desktop-v4 .r12-market-grid>#r2-market-summary>.live-panel{padding:14px!important}
 .r12-market-grid .live-panel-title h2{font-size:18px!important}
 html body.desktop-v4 .r12-market-grid #real-heatmap{padding:12px!important}
 html body.desktop-v4 .r12-market-grid #real-heat-grid.r3-heat-values{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .r12-market-grid .v4-heat-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body.desktop-v4 .r12-market-page .live-dashboard{grid-template-columns:minmax(0,1fr);padding:2px 12px}
 html body.desktop-v4 .r12-market-page .live-dashboard>article{grid-template-columns:minmax(0,1fr) auto auto;gap:2px 10px;padding:9px 0!important}
 html body.desktop-v4 .r12-market-page .live-dashboard>article>strong{font-size:21px!important}
 html body.desktop-v4 .r12-market-page .live-dashboard>article>span{font-size:14px!important}
 html body.desktop-v4 .r12-market-page .live-dashboard>article>span>small{font-size:10px!important}
 html body.desktop-v4 .r12-market-page .live-dashboard>article>b{font-size:13px}
 html body.member-workspace .r12-household-overview>.live-panel,html[data-theme] body.member-workspace .r12-household-overview>.r10-budget-hero{padding:14px!important}
 .r12-household-overview .r11-category-composition{grid-template-columns:132px minmax(0,1fr);gap:7px}
 .r12-household-overview .r11-category-donut{width:132px}
 html body.member-workspace .r12-household-overview .r11-donut-center strong{font-size:19px}
 html body.member-workspace .r10-household .next-expense-row{padding-block:11px;min-height:72px}
}
@media(max-width:380px){.r12-household-overview .r11-category-composition{grid-template-columns:minmax(0,1fr)}.r12-household-overview .r11-category-donut{width:155px}}

/* Rearrange information before reducing any typography. */
html body.desktop-v4 .fund-overview-grid>.live-panel{padding:16px!important;margin:0!important;min-height:0;height:auto}
html body.desktop-v4 .fund-overview-grid h2{font-size:17px!important}
.fund-overview-grid .live-panel-title{margin-bottom:9px!important}
.fund-overview-grid #fund-bubble-chart{height:280px}
.fund-overview-grid .fund-bubble-legend{gap:6px 10px;margin-top:7px}
.fund-overview-grid .fund-chart-method{margin-top:9px}
.fund-overview-grid .fund-leader-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fund-overview-grid .fund-leader-row{padding:7px 0;gap:5px}
.fund-overview-grid .fund-leader-name{white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.fund-overview-grid .fund-leader-row b{grid-column:2/-1;justify-self:start}
.fund-overview-grid .fund-leader-row>i{margin:0}
.fund-selected-panel .fund-bubble-readout{padding:10px;margin:0}
.fund-selected-panel .fund-bubble-picker{flex-wrap:wrap;gap:5px;margin-bottom:9px}
.fund-selected-panel .fund-bubble-picker select{flex-basis:100%;width:100%;height:36px}
.fund-selected-panel .fund-bubble-readout .actions{gap:7px}
.fund-selected-panel .fund-watch-heading{flex-wrap:wrap;gap:7px}
html body.desktop-v4 .fund-workbench>.fund-rankings{padding:16px!important;margin-top:0!important}
.fund-workbench .rank-control-row{gap:8px;margin-bottom:10px}
.fund-workbench .rank-footnote{margin-bottom:8px}

/* A row keeps the name, market/sector and price/date at their original sizes. */
html body.desktop-v4 .stock-split{grid-template-columns:340px minmax(0,1fr);gap:14px;align-items:start}
html body.desktop-v4 .stock-split #live-directory,html body.desktop-v4 .stock-split #live-stock-chart{height:auto;min-height:0;max-height:none;overflow:visible;padding:16px!important}
.stock-split .stock-controls{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 9px}
.stock-split .stock-controls>input{grid-column:1/-1}
.stock-split .stock-controls>label{gap:7px;min-width:0;justify-content:flex-start}
.stock-split .stock-controls select{width:auto;max-width:150px;flex:1;min-width:0}
.stock-split #stock-shuffle{padding:6px 8px;min-height:36px;white-space:nowrap}
.stock-list-options{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 9px}
.stock-list-options :is(.stock-watch-filter,.r2-old-quotes){margin:0!important;padding:0;display:flex;align-items:center;gap:5px}
.stock-split .results-summary{margin:9px 0;gap:8px;align-items:center;min-height:0}
.stock-split .results-summary>p{margin:0!important}
html body.desktop-v4 .stock-split .stock-choice{padding:8px 0!important;gap:8px;min-height:0;align-items:center}
.stock-split .stock-choice-summary{min-width:0}
.stock-split .stock-choice-summary>strong{display:block;line-height:1.45}
.stock-split .stock-choice-meta{display:flex!important;flex-wrap:wrap;align-items:center;gap:3px 7px;margin-top:4px}
html body.desktop-v4 .stock-split .stock-choice-meta>small{display:inline!important;margin:0!important;line-height:1.5;max-width:100%}
html body.desktop-v4 .stock-split .stock-choice-meta>.r7-stock-sector{padding:0 4px!important;white-space:normal}
.stock-split .stock-choice-price{display:grid!important;grid-template-columns:auto auto;gap:3px 4px;justify-content:end;align-items:baseline}
.stock-split .stock-choice-price>small{margin:0!important}
.stock-split .stock-choice-price>time{grid-column:1/-1;justify-self:end;margin:0!important}
.stock-split .live-ohlc{gap:8px 14px;line-height:1.6;flex-wrap:wrap}

/* The figure gets the width; the reference table sits beside the allocation controls. */
html body.desktop-v4 .opt-scene-body{grid-template-columns:minmax(0,1fr);gap:0}
html body.desktop-v4 .real-allocation .opt-reference{margin:12px 0;padding:11px 10px}
.real-allocation .opt-reference-columns,.real-allocation .opt-reference-current,.real-allocation .opt-reference button{grid-template-columns:minmax(0,1fr) 70px 58px}
.real-allocation .opt-reference p{margin-bottom:7px!important}
.real-allocation .opt-reference>small{margin-top:7px!important}
.real-allocation .opt-reference button{min-height:42px;margin-bottom:5px;padding:7px 6px}
html body.desktop-v4 .opt-scene-caption{flex-wrap:wrap;gap:7px 12px;padding:10px 14px 0}
html body.desktop-v4 .optimizer-hero-panel>.live-panel-title{gap:10px;padding-bottom:7px;margin-bottom:9px}
html body.desktop-v4 .real-optimizer-results{gap:10px}
html body.desktop-v4 .real-optimizer-results :is(.opt-history,.real-method){margin:0;padding:10px 14px!important}
.optimizer-hero-panel>.next-info{margin-top:10px}
.opt-scene-frame:has([data-surface-kind="risk-curtain"]) .opt-scene-caption p:after{content:' · 面は高さの補助';display:inline;color:var(--mm-muted)}
@media(max-width:1279px) and (min-width:1000px){.fund-overview-grid .fund-leader-columns{gap:14px}.fund-selected-panel .fund-bubble-picker{flex-wrap:nowrap}.fund-selected-panel .fund-bubble-picker select{flex-basis:auto}}
@media(max-width:1050px){html body.desktop-v4 .stock-split{grid-template-columns:minmax(0,1fr)}html body.desktop-v4 .stock-split #live-directory{overflow:visible;max-height:none}}
@media(max-width:760px){
 html body.desktop-v4 .fund-overview-grid h2{font-size:16px!important}
 html body.desktop-v4 .fund-overview-grid>.live-panel{padding:14px!important}
 .fund-selected-panel .fund-bubble-picker{flex-wrap:wrap}
 html body.desktop-v4 .stock-split #live-directory,html body.desktop-v4 .stock-split #live-stock-chart{padding:14px!important}
 .stock-split .stock-controls{grid-template-columns:minmax(0,1fr) auto}
 .stock-split .stock-controls>label{display:flex;gap:5px}
 .stock-split .stock-controls select{max-width:140px}
 .stock-split .stock-choice-meta{gap:3px 7px}
 html body.desktop-v4 .opt-scene-body>.opt-reference{margin:0 10px 10px;padding:12px}
 .opt-scene-body .opt-reference-columns,.opt-scene-body .opt-reference-current,.opt-scene-body .opt-reference button{grid-template-columns:minmax(0,1fr) 83px 73px}
 html body.desktop-v4 .opt-scene-caption{padding:10px 10px 0}
}

/* Once analysis exists, one title and its controls are enough. */
html body.desktop-v4 #r5-picker.optimizer-ready{display:none!important}
html body.desktop-v4 .optimizer-hero-panel>.live-panel-title h1{font-size:20px!important;line-height:1.5;margin:0!important;letter-spacing:normal}
@media(max-width:760px){html body.desktop-v4 .optimizer-hero-panel>.live-panel-title h1{font-size:18px!important}}

/* Compact the directory controls, preserving the existing stock name size. */
html body.desktop-v4 .stock-split .stock-controls :is(input,select){height:36px!important;min-height:36px!important;padding:6px 9px!important}
html body.desktop-v4 .stock-split #stock-shuffle{min-height:32px;padding:4px 7px}
html body.desktop-v4 .stock-split .stock-controls{gap:6px;margin-bottom:7px}
html body.desktop-v4 .stock-split .stock-list-options{gap:5px 12px;margin-bottom:7px}
html body.desktop-v4 .stock-split .stock-list-options input{width:16px;height:16px;min-height:0;margin:0}
html body.desktop-v4 .stock-split #live-filters{gap:8px}
html body.desktop-v4 .stock-split #live-filters select{height:34px;min-height:34px;padding:5px 9px}
html body.desktop-v4 .stock-split .results-summary{margin:7px 0}
html body.desktop-v4 .stock-split .stock-choice{padding:6px 0!important}
@media(max-width:760px){html body.desktop-v4 .stock-split .stock-controls :is(input,select){height:40px!important;min-height:40px!important}html body.desktop-v4 .stock-split #live-filters select{height:40px;min-height:40px}}

/* Fund overview: two useful cards first, then a full-width chart. */
html body.desktop-v4 .fund-overview-two-stage{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
html body.desktop-v4 .fund-overview-two-stage>.live-panel{min-width:0;padding:20px!important;order:0!important}
html body.desktop-v4 .fund-overview-two-stage>.fund-bubble-panel{grid-column:1/-1}
html body.desktop-v4 .fund-overview-two-stage h2{font-size:18px!important;line-height:1.5}
.fund-overview-two-stage #fund-bubble-chart{height:340px}
.fund-overview-two-stage .fund-leader-name{font-size:15px;line-height:1.5}
.fund-overview-two-stage .fund-leader-columns{gap:24px}
.fund-overview-two-stage .fund-leader-row{padding:9px 0}
.fund-overview-two-stage .fund-bubble-readout{padding:16px}
.fund-overview-two-stage .fund-bubble-picker select{min-height:44px;font-size:15px}
.fund-overview-two-stage .data-note{font-size:14px;line-height:1.7}
.fund-overview-two-stage .fund-selection-empty{margin:0}
/* Keep the next action within reach without covering the final content. */
html:has(body.fund-dock-visible){scroll-padding-bottom:calc(var(--fund-dock-space,0px) + var(--fund-dock-bottom,12px))}
html body.desktop-v4.fund-dock-visible .fund-flow-workspace{padding-bottom:var(--fund-dock-space,150px)!important}
html body.desktop-v4 .fund-flow-workspace #real-dock{position:fixed!important;left:50%!important;bottom:var(--fund-dock-bottom,12px)!important;transform:translateX(-50%)!important;width:min(1180px,calc(100% - 32px))!important;max-width:none!important;margin:0!important;padding:14px 18px!important;z-index:75;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:16px;background:var(--mm-surface);box-shadow:0 8px 32px #0f172a26;gap:16px}
html body.desktop-v4 .fund-flow-workspace #real-dock>.fund-dock-selection{display:flex;flex-wrap:wrap;gap:8px 14px;min-width:0}
html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-count{display:flex;flex-direction:column;gap:2px}
html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-count b{font-size:23px;line-height:1.3;white-space:nowrap}
html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-count small{font-size:14px;color:var(--muted);font-weight:500}
html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-count>span{font-size:13px;color:var(--muted)}
html body.desktop-v4 .fund-flow-workspace #real-dock .dock-chips{display:flex!important;gap:6px;flex-wrap:wrap}
html body.desktop-v4 .fund-flow-workspace #real-dock .dock-chips button{min-height:36px;font-size:14px;max-width:none;padding:6px 10px;white-space:nowrap}
html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-clear{font-size:14px;padding:6px;min-height:36px;white-space:nowrap}
html body.desktop-v4 .fund-flow-workspace #real-dock .r5-dock-actions{display:flex;flex-shrink:0;gap:10px}
html body.desktop-v4 .fund-flow-workspace #real-dock .btn{font-size:15px!important;min-height:44px;padding:10px 16px;white-space:nowrap;text-align:center;justify-content:center}
html body.desktop-v4 .fund-flow-workspace #real-dock .next-dock-allocation{background:var(--accent);border-color:var(--accent);color:#172237}
html body.desktop-v4 .fund-flow-workspace #real-dock .btn:disabled{opacity:1;background:var(--mm-soft);border-color:var(--line);color:var(--muted);cursor:not-allowed}
@media(max-width:999px){
 html body.desktop-v4 .fund-flow-workspace #real-dock{display:grid;gap:10px;padding:12px!important;width:calc(100% - 24px)!important}
 html body.desktop-v4 .fund-flow-workspace #real-dock>.fund-dock-selection{gap:6px 10px;align-items:center}
 html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-count{flex-direction:row;align-items:center;gap:8px}
 html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-clear{margin-left:auto}
 html body.desktop-v4 .fund-flow-workspace #real-dock .r5-dock-actions{width:100%;gap:8px}
 html body.desktop-v4 .fund-flow-workspace #real-dock .r5-dock-actions>*{flex:1;min-width:0}
 html body.desktop-v4 .fund-flow-workspace #real-dock .btn{font-size:15px!important;white-space:normal;padding:9px 10px}
}
@media(max-width:760px){
 html body.desktop-v4 .fund-overview-two-stage{grid-template-columns:minmax(0,1fr);gap:14px}
 html body.desktop-v4 .fund-overview-two-stage>.live-panel{padding:16px!important}
 html body.desktop-v4 .fund-overview-two-stage h2{font-size:18px!important}
 .fund-overview-two-stage .fund-leader-columns{gap:16px}
 html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-count>span{font-size:13px}
 html body.desktop-v4 .fund-flow-workspace #real-dock .dock-chips{gap:5px}
}
@media(max-width:760px){
 html body.desktop-v4 .fund-flow-workspace #real-dock>.fund-dock-selection{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}
 html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-count{grid-column:1;grid-row:1;flex-wrap:wrap}
 html body.desktop-v4 .fund-flow-workspace #real-dock .fund-dock-clear{grid-column:2;grid-row:1}
 html body.desktop-v4 .fund-flow-workspace #real-dock .dock-chips{grid-column:1/-1;grid-row:2;flex-wrap:nowrap;max-width:100%}
 html body.desktop-v4 .fund-flow-workspace #real-dock .dock-chips button{flex:0 1 auto;min-width:0;overflow-wrap:anywhere;white-space:normal}
 /* Explicit mobile cells prevent the old table and card rules from colliding. */
 html body.desktop-v4 #real-fund-directory .fund-live-table tbody tr{position:relative;display:grid!important;grid-template-columns:36px repeat(2,minmax(0,1fr))!important;gap:8px 10px!important;padding:14px 0!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table tbody td{min-width:0;width:auto!important;padding:0!important;text-align:left!important;justify-self:stretch!important;font-size:14px!important;line-height:1.5}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(1){grid-area:1/1/3/2!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(2){grid-area:1/2/2/4!important;padding-right:48px!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(3){display:none!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(4){grid-area:3/2/4/3!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(5){grid-area:3/3/4/4!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(6){grid-area:4/2/5/3!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(7){grid-area:4/3/5/4!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(8){grid-area:2/2/3/4!important;display:flex!important;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(9){position:absolute;right:0;top:14px;grid-area:auto!important;width:40px!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(4):before{content:'信託報酬（年率）'}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(5):before{content:'1年リターン'}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(6):before{content:'リスク（年率）'}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(7):before{content:'NISA'}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(n+4):nth-child(-n+7):before{display:block;color:var(--muted);font-size:12px;line-height:1.5;font-weight:400}
 html body.desktop-v4 #real-fund-directory .fund-live-table .live-name strong{font-size:15px!important;line-height:1.5}
 html body.desktop-v4 #real-fund-directory .fund-live-table .live-name small{font-size:12px!important;line-height:1.5}
 html body.desktop-v4 #real-fund-directory .fund-live-table .fund-quote-amount{display:flex;align-items:baseline;gap:5px}
 html body.desktop-v4 #real-fund-directory .fund-live-table .fund-quote-amount strong{font-size:19px!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table .fund-quote-date{font-size:12px!important}
}

#real-dock .fund-dock-short-label{display:none}
@media(max-width:760px){#real-dock .fund-dock-full-label{display:none}#real-dock .fund-dock-short-label{display:inline}}
/* Shared button rules style nested labels; keep this action as readable as its button. */
html body.desktop-v4 .fund-flow-workspace #real-dock .next-dock-allocation{color:#172237!important}
html body.desktop-v4 .fund-flow-workspace #real-dock .btn>span{font:inherit!important;color:inherit!important;line-height:inherit!important}
/* Reserve space at the document end so the floating bar cannot hide footer links. */
html body.desktop-v4.fund-dock-visible{padding-bottom:calc(var(--fund-dock-space,150px) + var(--fund-dock-bottom,12px))!important}
html body.desktop-v4.fund-dock-visible .fund-flow-workspace{padding-bottom:0!important}

/* The stock list and its chart share a row; pagination never sends the reader uphill. */
html body.desktop-v4 .stock-split{align-items:stretch!important;overflow-anchor:none}
html body.desktop-v4 .stock-split #live-directory,html body.desktop-v4 .stock-split #live-stock-chart{align-self:stretch!important}
html body.desktop-v4 .stock-split #live-directory{display:flex;flex-direction:column;min-width:0;overflow:visible!important;max-height:none!important}
html body.desktop-v4 .stock-split #live-stock-rows{flex:1;display:flex;min-width:0}
html body.desktop-v4 .stock-split .stock-choice-list{display:flex;flex-direction:column;width:100%}
html body.desktop-v4 .stock-split #live-directory:has(.stock-choice:nth-child(8)) .stock-choice{flex:1}
html body.desktop-v4 .stock-split #live-pages{position:sticky;bottom:12px;z-index:20;flex-shrink:0;margin-top:10px;background:var(--mm-surface);border-top:1px solid var(--line);box-shadow:0 -8px 12px var(--mm-surface);border-radius:0 0 10px 10px}
html body.desktop-v4 .stock-split #live-pages .live-pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0;padding:10px 0 0;min-height:50px;font-size:14px}
html body.desktop-v4 .stock-split #live-pages button{min-height:40px;padding:7px 12px;font-size:14px;white-space:nowrap}
html body.desktop-v4 .stock-split #live-pages [role="status"]{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:1050px){html body.desktop-v4 .stock-split{align-items:start!important}html body.desktop-v4 .stock-split #live-pages{bottom:12px}}
@media(max-width:760px){html body.desktop-v4 .stock-split #live-pages{bottom:calc(80px + env(safe-area-inset-bottom));border-radius:10px;padding:0 8px 8px;border:1px solid var(--line);box-shadow:0 3px 14px #17223714}html body.desktop-v4 .stock-split #live-pages .live-pagination{padding-top:8px}}
@media(min-width:1051px){html body.desktop-v4 .stock-split #live-directory:not(:has(.stock-choice:nth-child(8))){align-self:start!important}}

.billing-page{padding-block:28px;max-width:1240px}.billing-page>header{margin-bottom:22px}.billing-page h1{font-size:30px;margin:5px 0}.billing-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(340px,.9fr);gap:20px;align-items:start}.billing-layout>*{min-width:0;padding:24px}.billing-cycles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.billing-cycles button{display:flex;flex-direction:column;align-items:start;gap:5px;border:1px solid var(--line,#d8e1ed);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#192b42);padding:18px;font:inherit;cursor:pointer}.billing-cycles button[aria-pressed=true]{border:2px solid #ed710e;padding:17px;background:#fff6ed}.billing-cycles strong{font-size:30px;line-height:1.3}.billing-cycles small{font-size:14px}.billing-page table{width:100%;border-collapse:collapse;font-size:15px}.billing-page th,.billing-page td{padding:12px 9px;border-bottom:1px solid #dde4ee;text-align:left;vertical-align:middle;line-height:1.6}.billing-page td{white-space:nowrap}.billing-page h2{font-size:22px;margin:0 0 16px}.billing-page h3{font-size:19px}.billing-page p{line-height:1.8}.billing-page .member-field{display:grid;gap:8px;margin:16px 0}.billing-page input:not([type=checkbox]){width:100%;font:inherit;padding:12px;border:1px solid #bccbdf;border-radius:8px;background:#fff;color:#192b42;min-height:48px}.billing-page #payjp-next-card{display:block;min-height:50px;padding:15px 12px;border:1px solid #bccbdf;border-radius:8px;background:#fff}.billing-page .member-check{display:flex;gap:10px;align-items:start;font-size:15px;margin:18px 0}.billing-page [role=alert]{color:#a52a22}.billing-badge{display:inline-block;padding:8px 12px;background:#e9f5ef;color:#126848;border-radius:8px;font-weight:700}.billing-contract dl div{display:flex;gap:15px;justify-content:space-between;flex-wrap:wrap}.billing-contract dd{margin:0;font-weight:700}.billing-confirm{border:1px solid #ecb58e;background:#fff8f2;padding:16px;border-radius:10px;margin:14px 0}.billing-links{display:flex;flex-wrap:wrap;gap:10px 15px;padding-top:20px;border-top:1px solid #dde4ee;margin-top:24px;font-size:14px}.billing-terms{padding:24px;margin-top:20px}.billing-page .btn{font-size:16px;min-height:46px;white-space:normal}.billing-page .text-button{margin:12px 0}.billing-total{font-size:15px;color:#4b617b}.billing-page a{color:#a94412}.billing-page .btn.dark{color:#fff}.billing-page #payjp-next-checkout>button{width:100%}.billing-page .data-note{font-size:14px}.billing-page .text-link{display:block;margin-top:15px}html[data-theme=dark] .billing-cycles button[aria-pressed=true],html[data-theme=dark] .billing-confirm{background:#31271f;color:#f0f3f8}html[data-theme=dark] .billing-total{color:#bac9dd}html[data-theme=dark] .billing-badge{background:#173a2b;color:#b8eed4}@media(max-width:800px){.billing-layout{grid-template-columns:1fr}.billing-layout>*{padding:18px}.billing-page{padding-block:18px}.billing-page h1{font-size:26px}.billing-page th,.billing-page td{padding:10px 6px;font-size:14px}.billing-cycles strong{font-size:27px}.billing-cycles button{padding:14px}.billing-cycles button[aria-pressed=true]{padding:13px}}

.nisa-reference{padding:24px}.nisa-reference-notice{border-left:4px solid #e67c23;background:#fff7ed;padding:14px;line-height:1.8}.nisa-reference-notice strong{display:block}.nisa-reference-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.nisa-reference-cards article{border:1px solid #dce4ef;border-radius:12px;padding:18px;display:grid;gap:10px}.nisa-reference-cards strong{font-size:28px}.nisa-reference-cards small{font-size:14px;line-height:1.7}.nisa-meter{height:9px;background:#edf1f7;border-radius:8px;overflow:hidden}.nisa-meter i{display:block;height:100%;background:#ef812f}.nisa-bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;height:180px;align-items:end}.nisa-bars>div{display:grid;justify-items:center;gap:8px}.nisa-bar{width:70%;background:#408fbb;display:flex;flex-direction:column;justify-content:end;min-height:2px;border-radius:4px 4px 0 0;overflow:hidden}.nisa-bar i{background:#f28a3b;display:block;width:100%}.nisa-reference table{width:100%;border-collapse:collapse}.nisa-reference td,.nisa-reference th{padding:13px;border-bottom:1px solid #dce4ef;text-align:left}.nisa-reference td:last-child{white-space:nowrap;text-align:right}.nisa-reference td small{display:block;color:#61738a}.nisa-reference p{line-height:1.8}@media(max-width:800px){.nisa-reference{padding:18px}.nisa-reference-cards{grid-template-columns:1fr}.nisa-bars{gap:3px}.nisa-bars small{font-size:12px}.nisa-reference td,.nisa-reference th{padding:10px 6px}}

.wrap.billing-page{max-width:1240px;width:calc(100% - 40px);font-size:16px}.billing-heading{padding:4px 0 20px}.billing-heading p{margin:7px 0 0}.billing-side{padding:0}.billing-side>.live-panel{padding:24px}.billing-side .billing-terms{margin-top:20px}.billing-page .billing-plans table th,.billing-page .billing-plans table td{font-size:16px;padding:12px 10px}.billing-page .billing-plans table td{text-align:center}.billing-page .billing-plans table th:first-child{width:50%}.billing-page .billing-cycles button[aria-pressed=true]{background:#fff3e6!important;color:#172b42!important;border:2px solid #eb7624!important}.billing-page .billing-cycles small{color:#526880!important}.billing-page .billing-total{font-size:15px}.billing-page .billing-cycles strong{font-size:30px}.billing-page .billing-links a{font-size:14px}.billing-page .billing-contract .btn{font-size:16px!important;padding:12px 16px!important}.billing-page .billing-contract #billing-status>p{font-size:16px}.billing-page .billing-side .billing-terms h2{font-size:19px}.billing-page .billing-side .billing-terms p{font-size:15px}@media(max-width:800px){.wrap.billing-page{width:calc(100% - 28px)}.billing-side>.live-panel{padding:18px}.billing-page .billing-plans table th,.billing-page .billing-plans table td{font-size:15px;padding:10px 6px}.billing-page .billing-plans table td{white-space:normal}.billing-page .billing-cycles strong{font-size:28px}}

.billing-page .member-table-scroll table{min-width:0!important;table-layout:fixed}.billing-page .member-table-scroll{min-width:0;max-width:100%}@media(max-width:800px){.billing-page .billing-plans table th:first-child{width:48%}.billing-page .billing-plans table td{overflow-wrap:break-word}.billing-page .billing-plans table th,.billing-page .billing-plans table td{padding:10px 5px}}

.billing-page .billing-plans table th{white-space:normal!important;overflow-wrap:anywhere;word-break:normal}.billing-page .billing-plans table td{white-space:normal!important}@media(max-width:800px){.billing-page .billing-plans table td,.billing-page .billing-plans table th{padding:10px 4px;line-height:1.65}.billing-page .billing-plans table th:first-child{width:48%}}

@media(max-width:800px){.billing-page .billing-plans table thead th:last-child{white-space:nowrap!important;overflow-wrap:normal;padding-left:1px;padding-right:1px}}

.campaign-entry{display:flex;align-items:center;gap:16px;border:1px solid #edba8d;background:#fff8f0;color:#233148;border-radius:14px;padding:15px 20px;margin:18px 0 28px;font-size:16px}.campaign-entry-badge{background:#a84312;color:#fff;border-radius:7px;padding:7px 10px;font-size:14px;font-weight:700;white-space:nowrap}.campaign-entry>div{flex:1;display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.campaign-entry a{color:#a33b0c;font-weight:700;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
dialog.campaign-popup{box-sizing:border-box;width:min(710px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 28px);height:fit-content;margin:auto;padding:0;border:1px solid #f2b886;border-radius:22px;background:#fff;color:#1b2b42;box-shadow:0 24px 90px #0f172a55;overflow:auto;font-family:inherit}dialog.campaign-popup::backdrop{background:#11182799;backdrop-filter:blur(3px)}.campaign-popup *{box-sizing:border-box}.campaign-popup-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #f2e5db}.campaign-popup-heading>span{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700}.campaign-popup-close{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #d8e0ec;border-radius:50%;font:inherit;font-size:30px;line-height:1;color:#30415b;background:#fff;cursor:pointer}.campaign-popup-body{padding:18px 28px 20px}.campaign-popup-kicker{margin:0 0 5px;color:#a64214;font-size:16px;font-weight:700}.campaign-popup h2{margin:0;font-size:32px;line-height:1.35;letter-spacing:0}.campaign-popup h2 span{color:#b5400c}.campaign-popup-period{font-size:14px;line-height:1.6;margin:10px 0 16px;color:#526174}.campaign-popup-prizes{display:grid;grid-template-columns:1fr 1fr;gap:12px}.campaign-popup-prize{display:grid;grid-template-columns:36px 1fr;column-gap:10px;align-items:center;padding:17px 15px;border-radius:13px;background:#fff5e8;border:1px solid #edc49a}.campaign-popup-prize.premium{background:#f5f2ff;border-color:#d7ccf2}.campaign-prize-icon{grid-row:span 2;font-size:28px;color:#7450ad}.campaign-popup-prize h3{font-size:17px;line-height:1.55;margin:0;font-weight:700}.campaign-popup-prize strong{font-size:19px;color:#9b380b}.campaign-popup-prize.premium strong{color:#64449b}.campaign-popup-steps{list-style:none;counter-reset:campaign;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;padding:0;margin:18px 0;font-size:15px;line-height:1.55}.campaign-popup-steps li{counter-increment:campaign;position:relative;padding-left:30px}.campaign-popup-steps li::before{content:counter(campaign);position:absolute;left:0;top:1px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#fff0df;color:#a3410d;font-size:13px;font-weight:700}.campaign-popup-steps li>span{display:block;color:#596a80;font-size:13px}.campaign-popup-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border-radius:11px;background:#ff781c;color:#17273d!important;text-decoration:none;font-size:18px;font-weight:800;line-height:1.5}.campaign-popup-note{font-size:13px;line-height:1.65;color:#526174;margin:10px 0}.campaign-popup-actions{display:flex;justify-content:center;gap:18px}.campaign-popup-actions button{background:transparent;border:0;min-height:44px;padding:8px;color:#455a74;font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.campaign-popup :focus-visible,.campaign-entry a:focus-visible{outline:3px solid #276eb9;outline-offset:3px}
@media(min-width:601px){.campaign-popup h2 br{display:none}.campaign-popup-body{padding:16px 28px 14px}.campaign-popup-prize{padding:14px 15px}.campaign-popup-prize h3{text-wrap:balance}}
@media(max-width:600px){.campaign-entry{gap:10px;padding:13px;flex-wrap:wrap}.campaign-entry>div{flex-basis:65%;gap:3px}.campaign-entry>div span{font-size:14px}.campaign-entry a{margin-left:auto}.campaign-popup-heading{padding:9px 14px}.campaign-popup-body{padding:14px 16px}.campaign-popup h2{font-size:27px}.campaign-popup-period{margin:7px 0 12px}.campaign-popup-prizes{gap:9px}.campaign-popup-prize{padding:12px 10px;grid-template-columns:1fr;gap:4px}.campaign-prize-icon{display:none}.campaign-popup-prize h3{font-size:16px}.campaign-popup-prize strong{font-size:18px}.campaign-popup-steps{gap:10px;margin:14px 0}.campaign-popup-steps li{padding-left:27px}.campaign-popup-cta{font-size:17px;padding:13px}.campaign-popup-note{font-size:13px}}

.campaign-popup-prize strong>span{white-space:nowrap}.campaign-popup-prize strong small{font-size:14px;font-weight:700;white-space:nowrap}@media(max-width:600px){.campaign-popup-prize strong>span,.campaign-popup-prize strong small{display:block}.campaign-popup-steps{grid-template-columns:1fr;gap:8px}.campaign-popup-steps li>span{font-size:13px}.campaign-popup-prize h3{line-height:1.5}}

/* Shared reading scale. Reflow the layout rather than shrinking text to fit. */
html body.desktop-v4{font-size:17px;line-height:1.65}
html body.desktop-v4 .refined-header{gap:22px;padding-inline:max(24px,calc((100vw - 1440px)/2))}
html body.desktop-v4 #primary-navigation{gap:22px;min-width:0}
html body.desktop-v4 #primary-navigation>a{font-size:18px!important;line-height:1.4;padding:0!important;align-items:center;letter-spacing:0}
html body.desktop-v4 .refined-header .brand span{font-size:25px}
html body.desktop-v4 .refined-header .nav-finder{flex-shrink:0;min-width:40px;width:40px;height:40px}
html body.desktop-v4 #account-area>:is(a,button){font-size:15px;line-height:1.4;min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px}
html body.desktop-v4 #account-area .account-my{display:none}
html body.desktop-v4 #account-area .account-watch{font-size:23px;padding:4px 9px}
html body.desktop-v4 .workspace-tabs{gap:28px;min-height:52px;align-items:stretch}
html body.desktop-v4 .workspace-tabs>a{font-size:16px!important;line-height:1.5;padding:13px 0 12px;display:flex;align-items:center}
html body.desktop-v4 :is(.work-head,.v3-page-title,.fund-overview-heading,.r10-page-heading) h1{font-size:28px!important;line-height:1.45;letter-spacing:-.3px}
html body.desktop-v4 :is(.live-panel-title,.member-card) h2,
html body.desktop-v4 .fund-overview-two-stage h2,
html body.desktop-v4 .r12-market-grid .live-panel-title h2{font-size:22px!important;line-height:1.5}
html body.desktop-v4 .optimizer-hero-panel>.live-panel-title h1{font-size:26px!important;line-height:1.5}
html body.desktop-v4 :is(.live-panel,.member-card,.refined-panel)>p,
html body.desktop-v4 :is(.data-note,.member-note,.live-provenance,.live-panel-title p,.next-info,.r10-reading-note,.r10-chart-reading){font-size:15px!important;line-height:1.75!important}
html body.desktop-v4 :is(.btn,.text-link){font-size:16px;line-height:1.5}
html body.desktop-v4 .btn{min-height:44px;white-space:normal}
html body.desktop-v4 :is(.compact-tabs,.next-detail-tabs,.community-tabs,.r8-opt-view-tabs) button{font-size:15px!important;line-height:1.5;min-height:42px}
html body.desktop-v4 :is(.filter-group,.filter-select,.stock-controls,.stock-list-options,.fund-filter-row,.fund-advanced-filters,.r5-picker-filters) :is(label,summary){font-size:15px!important;line-height:1.6}
html body.desktop-v4 :is(.live-workspace,.my-layout,.tool-workspace) :is(input:not([type=checkbox]):not([type=range]):not([type=radio]),select,textarea){font-size:16px!important;line-height:1.5;min-height:44px}
html body.desktop-v4 .results-summary{font-size:15px;line-height:1.6;flex-wrap:wrap;gap:8px}
html body.desktop-v4 .results-summary :is(p,small,span){font-size:14px}
html body.desktop-v4 .results-summary strong{font-size:20px}
html body.desktop-v4 :is(.live-pagination,.live-pagination button){font-size:15px!important;line-height:1.5}
html body.desktop-v4 .live-pagination button{min-height:40px}
/* Financial tables keep a shared baseline and a separate line for units. */
html body.desktop-v4 .live-table :is(th,td){font-size:16px;line-height:1.6;vertical-align:middle;padding:13px 12px}
html body.desktop-v4 .live-table th{font-size:14px;font-weight:750}
html body.desktop-v4 .live-table :is(th,td) small{font-size:13px;line-height:1.55}
html body.desktop-v4 .live-name strong{font-size:17px;line-height:1.55}
html body.desktop-v4 .live-name small{font-size:14px;line-height:1.6}
html body.desktop-v4 .fund-live-table th:nth-child(1){width:48px}
html body.desktop-v4 .fund-live-table th:nth-child(2){width:31%}
html body.desktop-v4 .fund-live-table th:nth-child(4){width:12%}
html body.desktop-v4 .fund-live-table th:nth-child(5){width:11%}
html body.desktop-v4 .fund-live-table th:nth-child(6){width:10%}
html body.desktop-v4 .fund-live-table th:nth-child(7){width:12%}
html body.desktop-v4 .fund-live-table th:nth-child(8){width:16%}
html body.desktop-v4 .fund-live-table th:nth-child(9){width:48px}
html body.desktop-v4 .fund-live-table .fund-quote-amount strong{font-size:21px}
html body.desktop-v4 .fund-live-table .fund-quote-date{font-size:14px}
html body.desktop-v4 .fund-live-table .fund-fee-heading :is(span,small){white-space:nowrap;display:block}
html body.desktop-v4 .fund-live-table .fund-watch-button{width:38px;min-height:38px}
html body.desktop-v4 .fund-overview-two-stage :is(.fund-bubble-picker select,.fund-leader-name){font-size:16px;line-height:1.6}
html body.desktop-v4 .fund-overview-two-stage :is(.fund-leader-row small,.fund-bubble-legend,.fund-watch-heading,.fund-chart-method){font-size:14px;line-height:1.6}
html body.desktop-v4 .fund-overview-two-stage .fund-bubble-readout .actions{flex-wrap:wrap}
html body.desktop-v4 .fund-overview-two-stage .fund-bubble-readout .actions>*{font-size:15px;min-height:40px}
html body.desktop-v4 .fund-rank-list .rank-product strong{font-size:16px}
html body.desktop-v4 .fund-rank-list :is(.rank-product small,.rank-result small,.rank-period,.rank-footnote,.rank-method){font-size:13px;line-height:1.6}
html body.desktop-v4 .fund-rank-list .rank-actions button{font-size:14px;min-height:38px}
/* The larger stock labels use a wider column, without nested scrolling. */
@media(min-width:1051px){html body.desktop-v4 .stock-split{grid-template-columns:370px minmax(0,1fr)}}
html body.desktop-v4 .stock-split .stock-choice-summary>strong{font-size:16px;line-height:1.5}
html body.desktop-v4 .stock-split .stock-choice-price{max-width:none}
html body.desktop-v4 .stock-split .stock-choice-price>strong{font-size:18px;line-height:1.5}
html body.desktop-v4 .stock-split .stock-choice :is(small,time){font-size:13px;line-height:1.5}
html body.desktop-v4 .stock-split .stock-choice{gap:12px;padding:10px 0!important}
html body.desktop-v4 .stock-split .stock-controls :is(input,select),
html body.desktop-v4 .stock-split #live-filters select{height:44px!important;min-height:44px!important;font-size:16px!important}
html body.desktop-v4 .stock-split :is(#stock-shuffle,#live-reset){font-size:15px;line-height:1.5}
html body.desktop-v4 .stock-split .live-price-panel h2{font-size:27px!important}
html body.desktop-v4 .live-ohlc{font-size:15px;line-height:1.6;gap:8px 16px}
/* News, portfolio explanations and optimizer controls share the reading scale. */
html body.desktop-v4 :is(.live-news-item,.news-list-item,.r2-news-item) h3{font-size:20px;line-height:1.6}
html body.desktop-v4 :is(.live-news-item,.news-list-item,.r2-news-item) :is(time,small){font-size:14px;line-height:1.6}
html body.desktop-v4 :is(.actual-article,.member-doc-block){font-size:17px;line-height:1.9}
html body.desktop-v4 :is(.real-allocation,.real-method,.opt-history,.r5-picker-layout){font-size:16px;line-height:1.7}
html body.desktop-v4 :is(.real-allocation,.real-method,.opt-history,.r5-picker-layout) :is(small,label,summary){font-size:14px;line-height:1.65}
html body.desktop-v4 .real-allocation .allocation-label{font-size:17px}
html body.desktop-v4 .r5-product-option{font-size:16px;line-height:1.6;height:auto;min-height:72px}
html body.desktop-v4 .r5-product-option small{font-size:14px;line-height:1.5}
html body.desktop-v4 .r8-opt-route :is(span,small){font-size:14px;line-height:1.6}
html body.desktop-v4 .live-chart-toolbar{gap:10px;flex-wrap:wrap}
html body.desktop-v4 .live-chart-toolbar button{font-size:15px;min-height:42px}
/* Member values retain their large headline sizes; supporting copy is readable. */
html body.desktop-v4.member-workspace :is(.r10-household,.r10-dividend,.r10-portfolio-detail){font-size:17px}
html body.desktop-v4.member-workspace :is(.r8-review-grid,.r2-status,.r8-ai-list,.r6-ai-checks,.r6-analysis-open,.r10-check,.r10-local-analysis,.r10-cached-household,.r10-ledger-aside) :is(p,ul){font-size:16px!important;line-height:1.75!important}
html body.desktop-v4.member-workspace :is(.r8-review-grid,.r2-status,.r6-analysis-open,.r10-check,.r10-local-analysis,.r10-cached-household,.r10-ledger-aside,.r2-hero-stats) :is(small,span){font-size:14px;line-height:1.65}
html body.desktop-v4.member-workspace :is(.r6-ai-date-note,.r8-review-heading>p,.r10-page-heading p,.r2-asset-hero>p,.r8-asset-reading){font-size:15px!important;line-height:1.75!important}
html body.desktop-v4.member-workspace :is(.r10-dividend-register,.next-holdings) :is(th,td){font-size:16px!important;line-height:1.6}
html body.desktop-v4.member-workspace .next-holdings td:first-child>button{font-size:17px!important}
html body.desktop-v4.member-workspace :is(.next-holdings td small,.r10-dividend-register td small){font-size:14px!important}
html body.desktop-v4.member-workspace :is(.r10-chart-reading,.r10-reading-note){font-size:15px!important;line-height:1.75!important}
html body.desktop-v4.member-workspace :is(.r10-budget-caption,.r10-budget-foot,.r10-budget-numbers span,.r10-budget-numbers small,.r10-key-row,.r10-event-note){font-size:14px;line-height:1.7}
html body.desktop-v4.member-workspace :is(.next-assets-toolbar nav>a,.my-nav a,.my-nav a strong){font-size:16px;line-height:1.5;min-height:42px}
html body.desktop-v4 .r12-market-page .live-dashboard>article>span{font-size:15px!important;line-height:1.5}
html body.desktop-v4 .r12-market-page .live-dashboard>article>span>small,
html body.desktop-v4 .r12-market-page .live-dashboard>article>small{font-size:13px!important;line-height:1.5}
html body.desktop-v4 .r12-market-page .live-dashboard>article>strong{font-size:22px!important}
html body.desktop-v4 .r12-market-page .live-dashboard>article>b{font-size:14px}
html body.desktop-v4 footer :is(a,p,li){font-size:15px;line-height:1.65}
html body.desktop-v4 footer .footer-faq-copy strong{font-size:19px}
html body.desktop-v4 footer .footer-faq-copy small{font-size:14px}
html body.desktop-v4 footer .copyright{font-size:13px;line-height:1.6}
/* Tablet navigation gets a real second row, preserving all destinations. */
@media(min-width:761px) and (max-width:1180px){
 html body.desktop-v4 .refined-header{height:112px;min-height:112px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:64px 48px;gap:0 14px;padding-inline:24px}
 html body.desktop-v4 .refined-header>.brand{grid-area:1/1}
 html body.desktop-v4 #account-area{grid-area:1/2}
 html body.desktop-v4 .refined-header>.next-theme-toggle{grid-area:1/3}
 html body.desktop-v4 #primary-navigation{grid-area:2/1/3/4;gap:26px;align-self:stretch;width:100%}
 html body.desktop-v4 #primary-navigation>a{flex-shrink:0}
 html body.desktop-v4 .workspace-bar{top:112px}
 html:has(body.desktop-v4){scroll-padding-top:176px}
}
@media(max-width:1050px) and (min-width:761px){
 html body.desktop-v4 .fund-live-table :is(th,td){padding-inline:7px}
 html body.desktop-v4 .fund-live-table th:nth-child(2){width:26%}
 html body.desktop-v4 .fund-live-table th:nth-child(8){width:20%}
}
@media(max-width:760px){
 html body.desktop-v4{font-size:16px}
 html body.desktop-v4 .refined-header{padding-inline:14px;gap:10px}
 html body.desktop-v4 .refined-header .brand span{font-size:22px}
 html body.desktop-v4 #primary-navigation{gap:0;flex:1;justify-content:flex-end}
 html body.desktop-v4 #primary-navigation>a{display:none!important}
 html body.desktop-v4 #account-area>:is(a,button){font-size:14px;padding:7px 9px;min-height:38px}
 html body.desktop-v4 #account-area .account-watch{font-size:22px;padding:4px 7px}
 html body.desktop-v4 .workspace-tabs{gap:24px;min-height:50px}
 html body.desktop-v4 .workspace-tabs>a{font-size:16px!important;padding-block:12px 10px}
 html body.desktop-v4 .v3-bottom-nav{gap:0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));align-items:start}
 html body.desktop-v4 .v3-bottom-nav a{font-size:12px!important;line-height:1.4;padding:0 3px;min-width:0;overflow-wrap:normal}
 html body.desktop-v4 .v3-bottom-nav a span{font-size:12px!important;line-height:1.4;white-space:normal}
 html body.desktop-v4 .v3-bottom-nav a b{font-size:22px;line-height:1.3}
 html body.desktop-v4 :is(.live-panel-title,.member-card) h2,
 html body.desktop-v4 .fund-overview-two-stage h2,
 html body.desktop-v4 .r12-market-grid .live-panel-title h2{font-size:21px!important}
 html body.desktop-v4 :is(.work-head,.v3-page-title,.fund-overview-heading,.r10-page-heading) h1{font-size:26px!important}
 html body.desktop-v4 .fund-overview-two-stage .fund-leader-columns{gap:18px}
 html body.desktop-v4 #real-fund-directory .fund-live-table tbody td{font-size:16px!important;line-height:1.6}
 html body.desktop-v4 #real-fund-directory .fund-live-table .live-name strong{font-size:17px!important}
 html body.desktop-v4 #real-fund-directory .fund-live-table .live-name small,
 html body.desktop-v4 #real-fund-directory .fund-live-table .fund-quote-date{font-size:14px!important;line-height:1.6}
 html body.desktop-v4 #real-fund-directory .fund-live-table td:nth-child(n+4):nth-child(-n+7):before{font-size:13px}
 html body.desktop-v4 #real-fund-directory .fund-live-table .fund-quote-amount strong{font-size:21px!important}
 html body.desktop-v4 .r12-market-page .live-dashboard>article{grid-template-columns:minmax(0,1fr) auto auto;gap:4px 10px}
 html body.desktop-v4 .r12-market-page .live-dashboard>article>strong{font-size:22px!important}
}
@media(max-width:360px){html body.desktop-v4 .refined-header>.brand span{display:none}html body.desktop-v4 .refined-header{gap:8px}}
html body.desktop-v4 .v4-lp-copy>p{font-size:18px!important;line-height:1.85}
html body.desktop-v4 .v4-lp-section :is(p,li),html body.desktop-v4 .home-brief-list p{font-size:16px!important;line-height:1.8}
html body.desktop-v4 .home-brief-note{font-size:14px!important;line-height:1.7}
html body.desktop-v4.member-workspace .r10-dividend-table th{font-size:15px!important}
html body.desktop-v4.member-workspace .r10-dividend-table tbody td{font-size:16px!important}
html body.desktop-v4.member-workspace .r10-dividend-table td small,
html body.desktop-v4.member-workspace .r10-dividend-table th small{font-size:14px!important}
html body.desktop-v4.member-workspace .r10-dividend-table td:first-child>button{font-size:18px!important}
html body.desktop-v4.member-workspace .r10-dividend-table td>b{font-size:18px}
@media(min-width:761px) and (max-width:1180px){
 html body.desktop-v4 .refined-header{height:112px!important;min-height:112px!important;max-height:none!important;box-sizing:border-box}
 html body.desktop-v4 #primary-navigation{display:flex!important}
 html body.desktop-v4 #primary-navigation>a{display:flex!important}
}
@media(max-width:760px){
 html body.desktop-v4 .v4-lp-copy>p{font-size:17px!important;line-height:1.8}
 html body.desktop-v4 .v3-bottom-nav{height:auto!important;max-height:none!important;min-height:90px;box-sizing:border-box}
 html body.desktop-v4{padding-bottom:100px}
 html body.desktop-v4 .stock-split #live-pages{bottom:calc(100px + env(safe-area-inset-bottom))}
}
@media(max-width:420px){html body.desktop-v4 .refined-header>.brand span{display:none!important}html body.desktop-v4 .refined-header>.brand{flex:0 0 auto}}
/* Older compact table rules used explicit sizes; align all cells to this scale. */
html body.desktop-v4 #real-fund-directory .fund-live-table th{font-size:15px!important;line-height:1.55}
html body.desktop-v4 #real-fund-directory .fund-live-table td{font-size:16px!important;line-height:1.6}
html body.desktop-v4 #real-fund-directory .fund-live-table .live-name strong{font-size:17px!important;line-height:1.55}
html body.desktop-v4 #real-fund-directory .fund-live-table :is(.live-name small,th small,.fund-quote-date){font-size:14px!important;line-height:1.55}
html body.desktop-v4 #real-fund-directory .fund-live-table .fund-quote-amount strong{font-size:21px!important}
html body.desktop-v4 #real-fund-directory :is(.filter-select,.filter-select span,.fund-quick-filters button,.fund-kind-filters button,.fund-advanced-filters summary,.quality-filter){font-size:15px!important;line-height:1.5}
@media(min-width:761px) and (max-width:1180px){html body.desktop-v4 .refined-header{padding-block:0!important}html body.desktop-v4 #primary-navigation{min-height:0;height:48px}}
html body.desktop-v4 #real-fund-directory :is(.filter-options button,.v3-old-toggle,.fund-advanced-filters summary span,#live-reset){font-size:14px!important;line-height:1.6}
html body.desktop-v4 #real-fund-directory .filter-options button{min-height:36px}
html body.desktop-v4 #real-fund-directory .v3-old-toggle{white-space:normal;align-items:start}
@media(max-width:760px){
 html body.desktop-v4 #real-fund-directory .live-search-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 html body.desktop-v4 #real-fund-directory .live-search-row>.search{width:100%;min-width:0}
 html body.desktop-v4 #real-fund-directory .live-search-row>.filter-select{display:flex;align-items:center;justify-content:space-between;gap:12px}
 html body.desktop-v4 #real-fund-directory .live-search-row select{width:auto;min-width:190px;max-width:75%}
}
html body.desktop-v4 .stock-split .stock-choice{flex:1 0 auto!important;min-height:min-content!important}
html body.desktop-v4 :is(.chart-change-dates,.chart-change-note){font-size:13px!important;line-height:1.6}
html body.desktop-v4 :is(.r2-company-info,.r2-company-profile,.r2-company-facts) :is(dt,dd){font-size:14px!important;line-height:1.65}
html body.desktop-v4 :is(.r2-news-card,.live-news-card) h3{font-size:20px!important;line-height:1.6}
html body.desktop-v4 :is(.r2-news-card,.live-news-card)>p{font-size:16px;line-height:1.75}
html body.desktop-v4 .next-news-meta :is(time,span){font-size:14px!important;line-height:1.6}
html body.desktop-v4 .r2-news-card .next-stock-chip{font-size:14px;line-height:1.5;min-height:36px}
html body.desktop-v4 .stock-split .stock-controls>label{display:flex!important;white-space:nowrap;flex-wrap:nowrap;align-items:center}
html body.desktop-v4 .stock-split #live-filters :is(label,label>span){font-size:14px!important;line-height:1.5}
html body.desktop-v4 .stock-split .results-summary p span{font-size:13px!important}
@media(max-width:420px){html body.desktop-v4 .stock-split .stock-controls{grid-template-columns:minmax(0,1fr)}html body.desktop-v4 .stock-split .stock-controls>label{justify-content:space-between}html body.desktop-v4 .stock-split #stock-shuffle{justify-self:end}}
html body.desktop-v4 .r12-market-page #real-heatmap .live-panel-title h2{font-size:22px!important;line-height:1.5}
html body.desktop-v4 .r12-market-page #real-heatmap .live-panel-title{flex-wrap:wrap;align-items:center;gap:10px 18px}
html body.desktop-v4 .r12-market-page :is(#real-heatmap,#v4-market-chart) .compact-tabs button{font-size:15px!important;line-height:1.5;min-height:40px;padding:8px 12px!important;white-space:nowrap}
html body.desktop-v4 .r12-market-page #real-heatmap .heat-tools{flex-wrap:wrap;gap:10px}
html body.desktop-v4 .r12-market-page #real-heatmap .heat-legend{font-size:13px!important;line-height:1.6;flex-wrap:wrap;gap:6px 10px}
html body.desktop-v4 .r12-market-page #real-heatmap .data-note{font-size:14px!important;line-height:1.65!important}
html body.desktop-v4 .r12-market-page #real-heatmap .r2-sector-filter{gap:10px;flex-wrap:wrap}
html body.desktop-v4 .r12-market-page #real-heatmap .r2-sector-filter :is(label,span){font-size:14px!important;line-height:1.6}
html body.desktop-v4 #v4-market-ticker>a>span{font-size:14px!important;line-height:1.5}
html body.desktop-v4 #v4-market-ticker>a>strong{font-size:23px!important;line-height:1.4}
html body.desktop-v4 #v4-market-ticker>a>b{font-size:14px!important;line-height:1.5}
html body.desktop-v4 #v4-market-ticker>a>small{font-size:13px!important;line-height:1.5;white-space:normal}
html body.desktop-v4 :is(.faq-intro p,.faq-answer p){font-size:17px!important;line-height:1.85}
html body.desktop-v4 .faq-question summary{font-size:18px!important;line-height:1.6}
html body.desktop-v4 .r5-picker-layout :is(p,small){font-size:15px!important;line-height:1.7}
@media(max-width:760px){
 html body.desktop-v4 #v4-market-ticker{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 html body.desktop-v4 #v4-market-ticker>a{display:grid!important;grid-template-columns:minmax(0,1fr);gap:3px;padding:12px!important;min-height:0;width:auto!important;min-width:0}
 html body.desktop-v4 #v4-market-ticker>a>:is(span,strong,b,small){position:static!important;grid-column:1;grid-row:auto;width:auto;text-align:left}
 html body.desktop-v4 #v4-market-ticker>a>strong{font-size:23px!important}
 html body.desktop-v4 .r12-market-page #real-heatmap .compact-tabs{flex-wrap:wrap}
 html body.desktop-v4 .r12-market-page #real-heatmap .live-panel-title h2{font-size:21px!important}
}
html body.desktop-v4 :is(.live-panel,.member-card,.refined-panel)>p{font-size:16px!important;line-height:1.8!important}
html body.desktop-v4 .actual-article{font-size:18px;line-height:1.9}
html body.desktop-v4 .community-post-title h2{font-size:21px!important;line-height:1.6}
html body.desktop-v4 .community-post-card>p{font-size:16px!important;line-height:1.8}
html body.desktop-v4 :is(.community-post-meta,.community-tabs button,.tool-fields label,.tool-notes,.tool-result-note){font-size:15px!important;line-height:1.7}
@media(max-width:760px){
 html body.desktop-v4 .r12-market-page #real-heatmap .live-panel-title{display:flex!important;flex-wrap:wrap!important;align-items:start!important}
 html body.desktop-v4 .r12-market-page #real-heatmap .live-panel-title h2{flex:0 0 100%}
 html body.desktop-v4 .r12-market-page #real-heatmap .compact-tabs{display:flex!important;flex-wrap:wrap!important;max-width:100%;min-width:0;width:100%;height:auto!important;gap:5px}
 html body.desktop-v4 .r12-market-page #real-heatmap .heat-legend{flex-wrap:wrap!important;width:100%;min-width:0}
 html body.desktop-v4 .r12-market-page #real-heatmap .heat-tools{flex-wrap:wrap!important;max-width:100%}
 html body.desktop-v4 .r12-market-page #v4-market-chart .next-index-switcher{display:flex;flex-wrap:wrap!important;max-width:100%;gap:6px}
 html body.desktop-v4 .r12-market-page #v4-market-chart .next-index-switcher button{font-size:14px!important;line-height:1.5;min-height:38px;padding:7px 10px;white-space:nowrap}
}
.fund-dock-line-break{display:none}
@media(max-width:360px){.fund-dock-line-break{display:block}}
html body.desktop-v4 .fund-flow-workspace #real-dock .r5-dock-actions{align-items:stretch}

/* Keep prices and daily changes distinct at normal and enlarged text sizes. */
@media (min-width:761px){
 html body.desktop-v4 #v4-market-ticker{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px}
 html body.desktop-v4 #v4-market-ticker>a{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:8px;row-gap:2px;min-width:0;align-items:center}
 html body.desktop-v4 #v4-market-ticker>a>:is(span,strong,b,small){position:static!important;min-width:0}
 html body.desktop-v4 #v4-market-ticker>a>span{grid-column:1;grid-row:1;white-space:normal}
 html body.desktop-v4 #v4-market-ticker>a>b{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
 html body.desktop-v4 #v4-market-ticker>a>strong{grid-column:1 / -1;grid-row:2;white-space:nowrap}
 html body.desktop-v4 #v4-market-ticker>a>small{grid-column:1 / -1;grid-row:3}
}
@media (min-width:1250px){html body.desktop-v4 #v4-market-ticker{grid-template-columns:repeat(7,minmax(0,1fr))!important}}
/* Give the stock list a little more room while retaining space for the chart. */
@media (min-width:1051px){html body.desktop-v4 .stock-split{grid-template-columns:390px minmax(0,1fr)}}
@media (min-width:1280px){html body.desktop-v4 .stock-split{grid-template-columns:410px minmax(0,1fr)}}
html body.desktop-v4 .stock-split .stock-choice{grid-template-columns:minmax(0,1fr) max-content;gap:10px;align-items:center}
html body.desktop-v4 .stock-split .stock-choice-summary{min-width:0}
html body.desktop-v4 .stock-split .stock-choice-summary>strong{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
html body.desktop-v4 .stock-split .stock-choice-price>strong{font-size:17px;line-height:1.45}
html body.desktop-v4 .stock-split .stock-choice-meta{gap:4px 6px}
@media (max-width:760px){
 html body.desktop-v4 .rank-control-row .compact-tabs[aria-label="ランキング指標"]{display:flex;flex-wrap:wrap;max-width:100%;width:100%;height:auto;gap:5px}
}

/* Align the dividend summary and chart without clipping longer amounts. */
@media (min-width:1051px){
 html body.desktop-v4.member-workspace .r10-dividend-top{align-items:stretch}
 html body.desktop-v4.member-workspace .r10-dividend-top>section{min-width:0}
}
html body.desktop-v4.member-workspace .r10-div-month-bars button>b{width:100%;height:auto;min-height:2.5em;line-height:1.25;text-align:center;white-space:normal;overflow-wrap:anywhere}
@media (min-width:1051px) and (max-width:1400px){
 html body.desktop-v4.member-workspace .r10-div-month-bars{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 8px}
 html body.desktop-v4.member-workspace .r10-div-month-bars button>span{height:86px}
 html body.desktop-v4.member-workspace .r10-div-month-bars button i{max-height:80px}
}
@media (max-width:700px){
 html body.desktop-v4.member-workspace .r10-div-month-bars{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
 html body.desktop-v4.member-workspace .r10-div-month-bars button>span{height:70px}
 html body.desktop-v4.member-workspace .r10-div-month-bars button i{max-height:64px}
}

/* Respond to the chart card itself, including the split summary/chart layout. */
.r10-dividend-chart{container-type:inline-size;container-name:dividend-month-chart}
@container dividend-month-chart (max-width:900px){
 html body.desktop-v4.member-workspace .r10-div-month-bars{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 8px}
 html body.desktop-v4.member-workspace .r10-div-month-bars button>span{height:86px}
 html body.desktop-v4.member-workspace .r10-div-month-bars button i{max-height:80px}
}
@container dividend-month-chart (max-width:500px){
 html body.desktop-v4.member-workspace .r10-div-month-bars{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px}
 html body.desktop-v4.member-workspace .r10-div-month-bars button>span{height:70px}
 html body.desktop-v4.member-workspace .r10-div-month-bars button i{max-height:64px}
}

/* Index figures stay readable without filling the whole card. */
html body.desktop-v4 #v4-market-ticker>a>strong{font-size:20px!important;line-height:1.35;font-weight:700;font-variant-numeric:tabular-nums}
html body.desktop-v4 #v4-market-ticker>a>b{font-size:13px!important}
html body.desktop-v4 #v4-market-chart .index-metrics strong{font-size:20px!important}

/* Keep an inset around every stock row, including the selected background. */
html body.desktop-v4 .stock-split .stock-choice{
 padding:12px 14px!important;
 column-gap:16px;
 grid-template-columns:minmax(0,1fr) max-content;
 box-sizing:border-box;
}
html body.desktop-v4 .stock-split .stock-choice-summary{min-width:0;overflow-wrap:anywhere}
html body.desktop-v4 .stock-split .stock-choice-price{padding:0;min-width:0}
@media(max-width:650px){
 html body.desktop-v4 .stock-split .stock-choice{padding:12px 10px!important;column-gap:12px}
}

/* Member community: contain long titles within the mobile grid. */
html body.page-community .member-community{grid-template-columns:minmax(0,1fr)}
html body.page-community .community-feed,html body.page-community .community-post-card,html body.page-community .community-post-title{min-width:0;max-width:100%}
@media(max-width:600px){html body.page-community .community-post-title h2{white-space:normal;overflow-wrap:anywhere;font-size:18px!important;line-height:1.55}html body.page-community .community-post-meta>span{min-width:0;overflow-wrap:anywhere}}
