/* v6.4.9 — member content first. The dashboard remains one safe document flow,
   but its active shelves and editor now precede the secondary toolkit. */
.tg-shell.tg-dashboard { display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:12px!important; }
.tg-dashboard>* { width:100%; min-width:0; box-sizing:border-box; }
.tg-dashboard>.tg-appbar { order:0!important; }
.tg-dashboard>.tg-security-banner { order:1!important; }
.tg-dashboard>.tg-member-activity { order:2!important; }
.tg-dashboard>.tg-member-hub { order:3!important; }
.tg-dashboard>.tg-workspace { order:4!important; }
.tg-dashboard>.tg-share-all { order:5!important; }
.tg-dashboard>.tg-public-profile { order:6!important; }
.tg-dashboard>.tg-member-showcase { order:7!important; }
.tg-dashboard>.tg-portability-promo { order:8!important; }
.tg-dashboard>.tg-ad-member-promo { order:9!important; }
.tg-dashboard>.tg-print-promo { order:10!important; }
.tg-dashboard>.tg-platform-qr { order:11!important; }
.tg-dashboard>.tg-referral-card { order:12!important; }
.tg-dashboard>.tg-referral-assurance { order:13!important; }
.tg-dashboard>.tg-redemptions { order:14!important; }
.tg-dashboard>.tg-token-history { order:15!important; }
.tg-dashboard>.tg-billing { order:16!important; }
.tg-dashboard>.tg-moderator-promo { order:17!important; }
.tg-dashboard>.tg-notice { order:18!important; }
.tg-dashboard>.tg-minor-footer { order:30!important; }
.tg-dashboard>.tg-stats { display:none!important; }

/* Urgent counts remain visible without becoming a second hero. */
.tg-dashboard>.tg-member-activity {
  grid-template-columns:minmax(220px,.7fr) minmax(430px,1.3fr); gap:14px;
  margin:2px 0!important; padding:12px 14px; border-radius:16px;
}
.tg-dashboard>.tg-member-activity h2 { font-size:clamp(1.15rem,2vw,1.55rem); }
.tg-dashboard>.tg-member-activity p { display:none; }
.tg-dashboard .tg-member-activity-counts a { grid-template-columns:auto 1fr; align-items:center; gap:8px; padding:9px 12px; }
.tg-dashboard .tg-member-activity-counts strong { font-size:1.25rem; }

/* The hub is a compact visual doorway to the user's own content. */
.tg-dashboard>.tg-member-hub {
  margin:0!important; padding:clamp(14px,2vw,22px)!important; border-radius:20px;
  box-shadow:0 8px 26px rgba(27,52,37,.06);
}
.tg-dashboard>.tg-member-hub>header { align-items:center; }
.tg-dashboard>.tg-member-hub>header h1 { margin:.2rem 0; font-size:clamp(1.65rem,3.3vw,2.8rem); line-height:1; }
.tg-dashboard>.tg-member-hub>header h1 br { display:none; }
.tg-dashboard>.tg-member-hub>header p { margin:.35rem 0 0; font-size:.9rem; }
.tg-dashboard>.tg-member-hub>header>div:last-child { display:flex; flex-wrap:wrap; min-width:0; }
.tg-dashboard .tg-hub-totals { margin:12px 0; padding:8px 12px; gap:12px 22px; }
.tg-dashboard .tg-hub-totals strong { font-size:1.05rem; }
.tg-dashboard .tg-hub-shelves { display:flex; gap:10px; overflow-x:auto; padding:2px 2px 8px; scroll-snap-type:x proximity; }
.tg-dashboard .tg-hub-shelves>article,
.tg-dashboard .tg-hub-new-shelf { flex:0 0 min(310px,82vw); min-height:0; scroll-snap-align:start; }
.tg-dashboard .tg-hub-shelf-preview { aspect-ratio:16/6; }
.tg-dashboard .tg-hub-shelves article>div { padding:10px 12px; }
.tg-dashboard .tg-hub-shelves h2 { font-size:1.12rem; }
.tg-dashboard .tg-hub-shelves p { min-height:0; margin:.25rem 0; }
.tg-dashboard .tg-hub-shelves nav { padding-top:.45rem; }
.tg-dashboard .tg-hub-new-shelf { min-height:160px; }

/* Make the active editor unmistakably primary. */
.tg-dashboard>.tg-workspace {
  display:grid!important; grid-template-columns:190px minmax(0,1fr)!important; gap:1.25rem!important;
  align-items:start; margin:4px 0 18px; padding:clamp(12px,2vw,20px); border:2px solid #d4dfd5;
  border-radius:22px; background:#fff; box-shadow:0 14px 38px rgba(20,36,28,.08); overflow:visible;
}
.tg-dashboard>.tg-workspace::before {
  content:'YOUR ACTIVE SHELF WORKSPACE'; grid-column:1/-1; display:block; padding-bottom:9px;
  border-bottom:1px solid #dfe5df; color:#315c45; font-size:.7rem; font-weight:900; letter-spacing:.12em;
}
.tg-dashboard>.tg-workspace>.tg-sidebar,
.tg-dashboard>.tg-workspace>.tg-manager { min-width:0; }

/* Secondary tools stay available, but read as a tidy vertical toolkit below content. */
.tg-dashboard>.tg-share-all,
.tg-dashboard>.tg-portability-promo,
.tg-dashboard>.tg-ad-member-promo,
.tg-dashboard>.tg-print-promo,
.tg-dashboard>.tg-moderator-promo,
.tg-dashboard>.tg-platform-qr,
.tg-dashboard>.tg-referral-card {
  margin:0!important; padding:14px 16px!important; border-radius:16px!important; box-shadow:none!important;
}
.tg-dashboard>.tg-share-all,
.tg-dashboard>.tg-portability-promo,
.tg-dashboard>.tg-ad-member-promo,
.tg-dashboard>.tg-moderator-promo { display:grid!important; grid-template-columns:minmax(0,1fr) auto!important; align-items:center!important; gap:14px!important; }
.tg-dashboard>.tg-print-promo { grid-template-columns:auto minmax(0,1fr) auto!important; gap:14px!important; }
.tg-dashboard>.tg-share-all h2,
.tg-dashboard>.tg-portability-promo h2,
.tg-dashboard>.tg-ad-member-promo h2,
.tg-dashboard>.tg-print-promo h2,
.tg-dashboard>.tg-moderator-promo h2,
.tg-dashboard>.tg-platform-qr h2,
.tg-dashboard>.tg-referral-card h2 { margin:.15rem 0!important; font-size:clamp(1.15rem,2vw,1.45rem)!important; }
.tg-dashboard>.tg-share-all p,
.tg-dashboard>.tg-portability-promo p,
.tg-dashboard>.tg-ad-member-promo p,
.tg-dashboard>.tg-print-promo p,
.tg-dashboard>.tg-moderator-promo p { margin:.2rem 0!important; font-size:.86rem; line-height:1.45; }
.tg-dashboard>.tg-platform-qr { grid-template-columns:minmax(0,1fr) 105px; }
.tg-dashboard>.tg-platform-qr .tg-platform-qr-code img { width:94px; height:94px; }

@media(max-width:820px) {
  .tg-dashboard>.tg-member-activity { grid-template-columns:1fr; }
  .tg-dashboard>.tg-member-hub>header { align-items:stretch; flex-direction:column; gap:10px; }
  .tg-dashboard>.tg-member-hub>header>div:last-child { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .tg-dashboard>.tg-workspace { grid-template-columns:1fr!important; }
  .tg-dashboard>.tg-workspace::before { grid-column:1; }
}
@media(max-width:620px) {
  .tg-dashboard .tg-member-activity-counts { grid-template-columns:1fr 1fr; }
  .tg-dashboard .tg-member-activity-counts a:last-child { grid-column:1/-1; }
  .tg-dashboard>.tg-member-hub>header>div:last-child { grid-template-columns:1fr; }
  .tg-dashboard>.tg-share-all,
  .tg-dashboard>.tg-portability-promo,
  .tg-dashboard>.tg-ad-member-promo,
  .tg-dashboard>.tg-print-promo,
  .tg-dashboard>.tg-moderator-promo { display:grid!important; grid-template-columns:1fr!important; align-items:stretch!important; }
  .tg-dashboard>.tg-share-all .tg-btn,
  .tg-dashboard>.tg-portability-promo .tg-btn,
  .tg-dashboard>.tg-ad-member-promo .tg-btn,
  .tg-dashboard>.tg-print-promo .tg-btn,
  .tg-dashboard>.tg-moderator-promo .tg-btn { width:100%; box-sizing:border-box; text-align:center; justify-content:center; }
  .tg-dashboard>.tg-platform-qr { grid-template-columns:1fr; text-align:left; }
  .tg-dashboard>.tg-platform-qr .tg-platform-qr-code { justify-self:start; }
}
