/* Use the desktop canvas without shrinking readable text or touch controls. */
body .main-content { --workspace-gutter:clamp(16px,2vw,32px); }
body .page { max-width:1840px; }
body .page>.page-heading { padding-top:24px;padding-bottom:16px; }
body #page-overview .overview-compact-heading { padding:18px 0 10px; }
body .overview-filter-area { padding:8px 12px; }
body #overview-layout-toolbar { margin:7px 0;min-height:36px; }
body .loss-limit-alert { padding:8px 11px;margin-bottom:10px; }

/* Saved manual heights still apply. Automatic cards fit their actual content. */
body .overview-card-grid:not(.is-arranging)>[data-overview-widget] { padding:18px 20px!important; }
body .overview-card-grid:not(.is-arranging)>.metric-card { padding:18px!important; }
body .overview-card-grid>.metric-card .metric-value { margin:14px 0 10px; }
body .overview-card-grid .panel-heading { margin-bottom:12px; }
body .overview-card-grid .panel-heading h2 { line-height:1.25; }
body .overview-card-grid .panel-heading p { margin-top:5px;line-height:1.5; }
body .overview-card-grid .chart-stat-row { margin-top:12px; }
body .overview-card-grid .chart-wrap { height:clamp(175px,14vw,210px);min-height:175px; }
body .overview-card-grid .daily-pnl-detail { margin-top:10px;padding:8px 10px; }
body .overview-card-grid .daily-pnl-bars { margin-top:10px; }
body .overview-card-grid .daily-pnl-plot { height:clamp(72px,6vw,92px); }
body .overview-card-grid .rhythm-number { margin-top:12px; }
body .overview-card-grid .rhythm-copy { min-height:0;margin:5px 0 12px; }
/* Reflowing cards stay inside the dashboard while their translations settle.
   Open size/colour menus retain their full interactive area. */
body .overview-card-grid:not(:has(.overview-size-menu[open])) { overflow:clip;overflow-clip-margin:12px; }
body .settings-card .panel-heading { margin-bottom:16px; }

.arc-toolbar { margin:10px 0 4px;gap:8px 12px; }
.arc-toolbar input[type="range"] { width:92px;height:20px;min-height:0;padding:0;border:0;box-shadow:none;background:transparent; }
.arc-help { color:var(--muted);font-size:12px;line-height:1.5; }
.arc-help summary { cursor:pointer;color:var(--accent-ink);padding:3px 0; }
.arc-help[open] { flex-basis:100%; }
.arc-help small { display:block;margin:6px 0 2px;max-width:70ch; }
.arc-help summary:focus-visible { outline:2px solid var(--accent);outline-offset:3px;border-radius:3px; }

@media(max-width:760px) {
  body .page>.page-heading { padding-top:18px;padding-bottom:12px; }
  body .overview-card-grid:not(.is-arranging)>[data-overview-widget] { padding:16px!important; }
  body .overview-card-grid:not(.is-arranging)>.metric-card { padding:16px!important; }
  body .overview-card-grid .chart-wrap { height:180px;min-height:180px; }
  .arc-toolbar { gap:8px 10px; }
}
@media(pointer:coarse) {
  .arc-toolbar button { min-width:40px;min-height:40px; }
  .arc-help summary { padding:8px 0; }
}
