/* One quiet row: a complete square cover followed by its title. */
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-projects{
  display:grid!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;
  grid-template-columns:repeat(var(--recent-project-columns,6),minmax(0,1fr))!important;
  grid-template-rows:auto!important;gap:18px!important;width:100%;max-width:100%;padding:0!important;
  overflow:visible!important;scroll-snap-type:none!important;cursor:default!important;touch-action:auto!important;
}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project{
  display:flex!important;flex-direction:column;align-items:stretch!important;justify-content:flex-start;gap:10px!important;
  min-width:0!important;min-height:0!important;width:100%;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--studio-text)!important;
  text-align:left;transform:none!important;scroll-snap-align:none;
}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project[hidden]{display:none!important}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project>.project-cover{
  display:block!important;position:relative;width:100%!important;height:auto!important;min-height:0!important;
  aspect-ratio:1;flex:0 0 auto;border:1px solid var(--studio-line)!important;border-radius:12px!important;
  overflow:hidden;background:var(--studio-soft)!important;box-sizing:border-box;
}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project>.project-cover img{
  display:block;position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;
}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project .project-cover-fallback{
  display:grid!important;position:absolute;inset:0;place-items:center;font-size:clamp(32px,4vw,54px);font-weight:500;color:var(--studio-muted);
}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project>.recent-project-title{
  display:block!important;width:100%;min-width:0;padding:0 2px;margin:0;
}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project strong{
  display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;
  font-size:14px!important;font-weight:600;line-height:1.5;min-height:42px;overflow-wrap:anywhere;color:var(--studio-text)!important;
}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project:is(:hover,:focus-visible)>.project-cover{border-color:var(--studio-accent)!important}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project:focus-visible{outline:2px solid var(--studio-accent);outline-offset:5px;border-radius:12px!important}
html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-projects>.studio-project-empty{grid-column:1/-1}
/* Account allowance and platform balance are separate facts in one details entry. */
html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap.has-platform-quota{height:auto;min-height:34px;flex-wrap:nowrap;gap:6px!important}
html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap .platform-quota{
  display:inline-flex!important;align-items:center;gap:5px!important;margin-left:3px;padding-left:10px;border-left:1px solid var(--studio-line);
  color:var(--studio-muted)!important;white-space:nowrap;font-size:11px;
}
html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap .platform-quota>span{padding:0!important;border:0!important;color:inherit!important;font-size:inherit}
html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap .platform-quota-value{font-size:12px!important;font-weight:600!important;color:var(--studio-text)!important;font-variant-numeric:tabular-nums}
html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap .platform-quota-note{font-size:10px;color:var(--studio-muted);padding:2px 4px;border-radius:4px;background:var(--studio-bg);line-height:1.2}
html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap .platform-quota-note[hidden]{display:none!important}
html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap #quotaAction{padding-left:7px;margin-left:1px}
@media(max-width:900px){
  html body.reference-ui-shell[data-studio-ui] #topbar[style*="display: flex"]{grid-template-columns:minmax(32px,max-content) minmax(0,1fr)!important}
  html body.reference-ui-shell[data-studio-ui] #topbar .userbar{display:flex!important;flex-wrap:wrap;justify-content:flex-end;max-width:100%;min-width:0}
  html body.reference-ui-shell[data-studio-ui] #topbar .userbar .quota-box{order:10;flex-basis:100%;height:auto!important;display:flex!important;justify-content:flex-end;min-width:0}
  html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap.has-platform-quota{gap:5px!important;padding:5px 7px;min-height:32px}
}
@media(max-width:420px){
  html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap.has-platform-quota{flex-wrap:wrap;justify-content:flex-start;max-width:100%;gap:4px!important}
  html body.reference-ui-shell[data-studio-ui] #jimengQuotaWrap .platform-quota{padding-left:6px;margin-left:1px;gap:4px!important}
  html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-projects{gap:14px!important}
  html body.reference-ui-shell[data-studio-ui] #view-home .reference-recent-project strong{font-size:13px!important;min-height:39px}
}
