/* Workspace only: the public welcome and account dialogs remain unchanged. */
#view-home:not([hidden]) { display: block; }
#view-home > .page-head { margin-bottom: 28px; align-items: center; gap: 20px; }
#view-home .page-head h1 { font-size: 28px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 40px; align-items: start; }
.dashboard-content { min-width: 0; }
#view-home .summary { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
#view-home .metric { min-width: 0; min-height: 138px; padding: 18px 24px; border: 0; border-right: 1px solid var(--line); }
#view-home .metric:last-child { border-right: 0; }
#view-home .metric-primary { background: var(--active); border-radius: 0; border-left: 3px solid var(--blue); }
#view-home .metric-primary .metric-label, #view-home .metric-primary .metric-note { color: var(--muted); }
#view-home .metric-primary .metric-value { color: var(--ink); font-size: 32px; }
#view-home .metric-label { margin-bottom: 8px; font-size: 13px; }
#view-home .metric-value { font-size: 28px; white-space: normal; overflow-wrap: anywhere; }
#view-home .metric-note { margin-top: 8px; font-size: 12px; }
#view-home .chart-section, #view-home .composition-section, #view-home .change-section { padding: 30px 0; border-top: 0; border-bottom: 1px solid var(--line); }
#view-home .section-head { align-items: center; margin-bottom: 20px; gap: 16px; }
#view-home h2 { font-size: 19px; font-weight: 650; line-height: 1.4; margin: 0; }
.dashboard-kicker { color: var(--muted); font-size: 11px; font-weight: 600; margin: 0 0 6px; }
.chart-periods { display: inline-flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 6px; }
.chart-periods button { border: 0; background: transparent; padding: 7px 11px; min-height: 34px; border-radius: 4px; font-size: 12px; color: var(--muted); }
.chart-periods button[aria-pressed="true"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 4px #00000012; }
.chart-periods button:hover { color: var(--blue); }
.chart-series { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.chart-series span { display: inline-flex; align-items: center; gap: 8px; }
.chart-series i { display: block; width: 16px; height: 3px; border-radius: 2px; }
.series-value { background: var(--blue); }
.series-capital { background: var(--quiet); }
#view-home .chart-wrap { height: 250px; }
.chart-caption { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.chart-data { margin-top: 16px; font-size: 12px; color: var(--muted); }
.chart-data summary { cursor: pointer; width: fit-content; padding: 5px 0; }
.chart-table-wrap { overflow-x: auto; margin-top: 14px; }
.chart-data table { width: 100%; border-collapse: collapse; font-size: 13px; }
.chart-data caption { text-align: left; margin-bottom: 12px; }
.chart-data th, .chart-data td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); font-weight: 400; white-space: nowrap; }
.chart-data th:first-child { text-align: left; }
.chart-data thead th { font-weight: 600; background: var(--soft); }
.allocation-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 32px; align-items: center; }
.allocation-visual { display: grid; justify-items: center; gap: 16px; }
.allocation-donut { width: 200px; aspect-ratio: 1; border-radius: 50%; padding: 23px; }
.donut-center { width: 100%; height: 100%; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; text-align: center; padding: 12px; }
.donut-center > span { font-size: 11px; color: var(--muted); }
.donut-center strong { font-size: 23px; font-weight: 650; overflow-wrap: anywhere; max-width: 100%; }
.allocation-insight { margin: 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; max-width: 214px; }
#view-home .composition-list { display: grid; gap: 18px; }
#view-home .allocation-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 6px 10px; align-items: center; }
#view-home .allocation-row strong { font-size: 13px; font-weight: 550; }
#view-home .allocation-track { grid-row: 2; grid-column: 2 / -1; height: 4px; }
#view-home .allocation-value { grid-row: 1; grid-column: 3; font-size: 13px; white-space: nowrap; }
#view-home .allocation-percent { grid-row: 1; grid-column: 4; font-size: 11px; color: var(--muted); min-width: 42px; text-align: right; }
#view-home .allocation-dot { grid-column: 1; grid-row: 1; width: 8px; height: 8px; border-radius: 2px; }
.allocation-empty { padding: 12px 0 8px; max-width: 540px; }
.allocation-empty strong { font-size: 15px; }
.allocation-empty p { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
#view-home .monthly-insight { font-size: 14px; line-height: 1.75; margin: 0 0 20px; }
#view-home .change-grid { margin: 16px 0 20px; }
#view-home .change-item { padding: 16px 14px; }
#view-home .change-item strong { font-size: 21px; }
#view-home .change-item span, #view-home .change-item small { font-size: 11px; }
#view-home .monthly-context { font-size: 12px; line-height: 1.7; }
.dashboard-sidebar { min-width: 0; border-left: 1px solid var(--line); padding-left: 28px; }
.sidebar-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.sidebar-section:first-child { padding-top: 0; }
.sidebar-section:last-child { border-bottom: 0; }
#view-home .sidebar-section h2 { font-size: 15px; margin-bottom: 14px; }
.review-next { display: block; color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.4; }
.sidebar-copy { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 10px 0 18px; }
.sidebar-primary { display: flex; justify-content: space-between; gap: 12px; width: 100%; font-size: 13px; padding: 10px 14px; }
.sidebar-actions { display: flex; flex-direction: column; gap: 2px; }
.sidebar-actions button { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; min-height: 44px; border: 0; border-radius: 4px; background: transparent; padding: 10px 0; color: var(--ink); text-align: left; font-size: 13px; }
.sidebar-actions button:hover { background: var(--soft); color: var(--blue); }
.sidebar-actions button > span:last-child { color: var(--blue); }
.tracking-section dl { margin: 0; }
.tracking-section dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; font-size: 12px; }
.tracking-section dt { color: var(--muted); }
.tracking-section dd { text-align: right; margin: 0; font-variant-numeric: tabular-nums; }
#view-home .last-note { border: 0; padding: 0; margin: 0; background: transparent; }
#view-home .last-note time { font-size: 11px; color: var(--muted); }
#view-home .last-note p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.sidebar-reading a { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.65; padding: 10px 0; }
.sidebar-reading a:hover { color: var(--blue); }
.sidebar-reading a span, .sidebar-reading a.sidebar-all { color: var(--blue); }
@media (min-width: 1500px) { .dashboard-layout { grid-template-columns: minmax(0, 1fr) 292px; gap: 48px; } }
@media (max-width: 1100px) {
  .dashboard-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
  .dashboard-sidebar { padding-left: 20px; }
  #view-home .metric { padding: 18px 16px; }
  #view-home .metric-value, #view-home .metric-primary .metric-value { font-size: 26px; }
  .allocation-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .allocation-donut { width: 170px; padding: 20px; }
  .donut-center strong { font-size: 20px; }
}
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-left: 0; padding-left: 0; }
  .sidebar-section:first-child { padding-top: 24px; }
}
@media (max-width: 600px) {
  #view-home > .page-head { align-items: flex-start; margin-bottom: 20px; }
  #view-home .page-head h1 { font-size: 25px; }
  #view-home > .page-head > .button { display: none; }
  #view-home .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 16px; gap: 16px 0; }
  #view-home .metric-primary { grid-column: 1 / -1; padding: 18px 20px; min-height: 120px; }
  #view-home .metric { min-height: 110px; padding: 14px 16px; }
  #view-home .metric-primary .metric-value { font-size: 34px; }
  #view-home .metric-value { font-size: 26px; }
  #view-home .section-head { gap: 18px; }
  #view-home h2 { font-size: 18px; }
  .allocation-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .allocation-donut { width: 200px; padding: 23px; }
  .donut-center strong { font-size: 23px; }
  .allocation-insight { max-width: 280px; }
  .dashboard-sidebar { grid-template-columns: minmax(0, 1fr); }
  #view-home .change-grid { grid-template-columns: minmax(0, 1fr); }
  #view-home .change-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
  #view-home .change-item:last-child { border-bottom: 0; }
  .chart-periods { width: 100%; }
  .chart-periods button { flex: 1; }
  #view-home .chart-wrap { height: 230px; }
}
