/* Independent account dashboard: five separate glass cards, no side rail. */
.dashboard-page{--dash-ink:#f7f7f7;--dash-muted:#e8e8e8;--dash-line:#ffffff30;box-sizing:border-box;margin:0;min-width:320px;min-height:100dvh;padding:clamp(32px,5.5vh,72px) clamp(24px,4vw,76px) 80px;color:var(--dash-ink);background:#171717;font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color-scheme:dark;isolation:isolate}
.dashboard-page::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#1010101c,#10101040),var(--yuan-wallpaper);background-size:cover;background-position:center}
.dashboard-page svg{display:block;width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dashboard-page :is(button,a,input,select,textarea){font-size:16px;line-height:1.5}
.dashboard-page :is(button,a){touch-action:manipulation}
.dashboard-page :focus-visible{outline:2px solid #fff;outline-offset:4px}
.dashboard-page button:disabled{opacity:.45;cursor:default}
.dashboard-skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dashboard-skip:focus{position:fixed;z-index:30;top:12px;left:12px;padding:12px 18px;border-radius:10px;background:#f5f5f5;color:#222}
.dashboard-workspace{max-width:1440px;margin:0 auto}
.dashboard-content{min-width:0}
.dashboard-header{position:relative;display:flex;align-items:center;gap:12px;min-height:62px;margin:0 0 24px;padding-top:66px}
.dashboard-header h1{margin:0 auto 0 0;font-size:clamp(26px,2.4vw,34px);font-weight:550;letter-spacing:-.04em;line-height:1.4;text-shadow:0 2px 16px #0006}
.dashboard-header #dashboard-wallpaper,.dashboard-header #dashboard-home,.dashboard-header #dashboard-refresh,.dashboard-header #account-entry{display:grid;place-items:center;flex:none;width:48px;height:48px;min-height:48px;padding:0;margin:0;border:1px solid #ffffff42;border-radius:50%;background:#ffffff08;color:#fff}
.dashboard-header #account-entry .yuan-avatar{width:100%;height:100%}
#dashboard-main{min-width:0;position:relative}
#dashboard-status{margin:0;color:#fff;font-size:16px;line-height:1.6;overflow-wrap:anywhere}
/* Loading is announced, not drawn: no bar appears above the cards while switching.
   Only a real failure gets the visible panel. */
#dashboard-status:not(:empty):not(.is-error){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#dashboard-status.is-error{margin-bottom:16px;padding:12px 18px;border:1px solid var(--dash-line);border-radius:12px;background:#252525e8}
/* While the first payload is in flight the placeholders pulse in place, so the
   cards never jump and nothing has to be dismissed when the numbers arrive. */
#dashboard-main.is-loading :is([data-stat],#dashboard-community-total,#dashboard-title,#dashboard-username,#dashboard-joined){animation:dashboard-pending 1.4s ease-in-out infinite}
@keyframes dashboard-pending{0%,100%{opacity:.4}50%{opacity:1}}
.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch}
.dashboard-card{min-width:0;padding:22px;border:1px solid #ffffff45;border-radius:24px;background:#383838;box-shadow:0 10px 30px #0002,inset 0 1px 0 #ffffff16;overflow:hidden}
.dashboard-profile{grid-column:1/span 2;display:flex;flex-direction:column;min-height:270px}
.dashboard-online{grid-column:3;display:flex;flex-direction:column}
.dashboard-room-panel{grid-column:4;grid-row:1/span 2;display:flex;flex-direction:column}
.dashboard-recent-panel{grid-column:1/span 2;grid-row:2}
.dashboard-collection{grid-column:3;grid-row:2;display:flex;flex-direction:column}
.dashboard-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:14px}
.dashboard-section-heading h2{min-width:0;margin:0;font-size:20px;font-weight:550;line-height:1.5}
.dashboard-section-heading>a{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;gap:8px;color:var(--dash-muted);text-decoration:none;white-space:nowrap}
.dashboard-section-heading>a:hover{color:#fff}
.dashboard-card-mark{color:var(--dash-muted);opacity:.85}
.dashboard-icon-link{min-width:44px;padding:0 12px;border-radius:12px;background:#ffffff08}
.dashboard-profile-identity{display:flex;align-items:center;gap:20px;flex:1;margin:4px 0 22px;min-width:0}
.dashboard-avatar{display:grid;place-items:center;flex:none;width:84px;height:84px;border-radius:26px;border:1px solid #ffffff35;background:#ffffff0b}
.dashboard-avatar .yuan-avatar{width:70px;height:70px}
.dashboard-profile-copy{min-width:0;flex:1}
.dashboard-profile h3{margin:0 0 6px;font-size:clamp(24px,2.4vw,32px);line-height:1.3;font-weight:550;letter-spacing:-.03em;overflow-wrap:anywhere}
.dashboard-profile p{margin:3px 0;color:var(--dash-muted);font-size:16px;overflow-wrap:anywhere}
.dashboard-profile p:empty{display:none}
.dashboard-page #dashboard-account{display:inline-flex;align-items:center;justify-content:center;gap:28px;align-self:flex-start;min-height:44px;min-width:160px;padding:10px 20px;background:#f5f5f5;border:1px solid #fff;border-radius:24px;color:#252525}
.dashboard-page #dashboard-account:not(:disabled):hover{background:#fff}
.dashboard-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:8px;min-width:0;color:var(--dash-ink)}
.dashboard-stat>span:first-child{grid-column:1/-1;color:#eee;font-size:16px}
.dashboard-stat strong{font-size:44px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;letter-spacing:-.04em}
.dashboard-stat-unit{align-self:end;color:var(--dash-muted);font-size:18px}
.dashboard-online-count{margin:4px 0 20px;gap:12px}
.dashboard-online-count strong{font-size:68px}
.dashboard-community-size{margin:auto 0 0;padding-top:12px;border-top:1px solid var(--dash-line);color:var(--dash-muted);font-size:16px}
.dashboard-community-size span{color:#fff;font-variant-numeric:tabular-nums}
.dashboard-room-count{display:inline-block;min-width:28px;margin-left:6px;color:#eee;font-size:20px;font-weight:400;font-variant-numeric:tabular-nums}
.dashboard-collection-links{display:grid;grid-template-rows:1fr 1fr;gap:14px;flex:1}
.dashboard-collection-links a{padding:18px;border:1px solid #ffffff30;border-radius:18px;background:#ffffff07;text-decoration:none}
.dashboard-collection-links a:hover{background:#ffffff13}
.dashboard-list{min-width:0}
.dashboard-row{display:flex;align-items:center;gap:12px;min-height:76px;padding:13px 0;border-bottom:1px solid #ffffff21;text-decoration:none}
.dashboard-row:last-child{border-bottom:0}
.dashboard-row:hover .dashboard-row-copy strong{color:#fff;text-decoration:underline;text-underline-offset:4px}
.dashboard-row .yuan-avatar{width:42px;height:42px;flex:none}
.dashboard-row-copy{min-width:0;flex:1}
.dashboard-row strong{display:block;font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-row p{margin:4px 0 0;color:var(--dash-muted);font-size:16px;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-row-tail{flex:none;color:var(--dash-muted);font-size:16px;white-space:nowrap}
.dashboard-room-panel .dashboard-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px 12px;padding:18px 0}
.dashboard-room-panel .dashboard-row .yuan-avatar{grid-row:1/span 2}
.dashboard-room-panel .dashboard-row-copy{grid-column:2}
.dashboard-room-panel .dashboard-row-tail{grid-column:2;font-size:16px}
.dashboard-room-panel .dashboard-row p{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.dashboard-progress{display:block;width:100%;height:3px;margin-top:9px;border:0;border-radius:3px;overflow:hidden;background:#ffffff20;appearance:none}
.dashboard-progress::-webkit-progress-bar{background:#ffffff20;border-radius:3px}
.dashboard-progress::-webkit-progress-value{background:#eee;border-radius:3px}
.dashboard-progress::-moz-progress-bar{background:#eee;border-radius:3px}
.dashboard-empty{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:20px;min-height:200px;padding:20px 0;color:var(--dash-muted);font-size:16px}
.dashboard-empty p{margin:0}
.dashboard-empty a,.dashboard-create{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid #ffffff40;border-radius:24px;color:var(--dash-ink);text-decoration:none;background:#ffffff0b;text-align:center}
.dashboard-empty a:hover,.dashboard-create:hover{background:#ffffff16}
.dashboard-room-panel #dashboard-rooms{flex:1}
.dashboard-create{margin-top:22px}
@supports(backdrop-filter:blur(1px)){
 .dashboard-card{background:linear-gradient(120deg,#ffffff18,#ffffff08),#ffffff08;backdrop-filter:blur(24px) saturate(.9) brightness(.7);-webkit-backdrop-filter:blur(24px) saturate(.9) brightness(.7)}
}
/* Behind a modal, suspend card filters instead of stacking another glass pass. */
.dashboard-page:has(dialog[open]) .dashboard-card{backdrop-filter:none;-webkit-backdrop-filter:none}
@media(min-width:1700px){.dashboard-page{padding-top:clamp(70px,8vh,110px)}.dashboard-grid{gap:22px}.dashboard-card{padding:26px}.dashboard-profile{min-height:294px}.dashboard-row{min-height:86px}}
@media(max-width:1250px) and (min-width:981px){
 .dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
 .dashboard-room-panel{grid-column:3;grid-row:2}.dashboard-collection{grid-column:1/-1;grid-row:3}
 .dashboard-collection-links{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr}
}
@media(max-width:980px){
  .dashboard-page{padding:28px 22px 60px}
 .dashboard-header{flex-wrap:wrap;gap:10px}.dashboard-header h1{font-size:28px}
 .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dashboard-card{padding:20px}
 .dashboard-profile{grid-column:1/-1;grid-row:auto}.dashboard-online{grid-column:1;grid-row:2}
 .dashboard-collection{grid-column:2;grid-row:2}.dashboard-room-panel{grid-column:2;grid-row:3}.dashboard-recent-panel{grid-column:1;grid-row:3}
 .dashboard-online-count strong{font-size:60px}.dashboard-community-size{margin-top:24px}
 .dashboard-collection-links a{padding:14px}
}
@media(max-width:700px){
 .dashboard-page{padding:80px 12px 40px}
 .dashboard-header{gap:10px;margin-bottom:20px;padding:52px 4px 0}.dashboard-header h1{font-size:26px;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .dashboard-header #dashboard-wallpaper,.dashboard-header #dashboard-home,.dashboard-header #dashboard-refresh,.dashboard-header #account-entry{width:44px;height:44px;min-height:44px}
 .dashboard-grid{gap:14px}.dashboard-card{padding:20px;border-radius:22px;box-shadow:0 8px 24px #0002}
 .dashboard-profile{min-height:0}.dashboard-profile-identity{gap:16px;margin-bottom:20px}.dashboard-avatar{width:66px;height:66px;border-radius:22px}.dashboard-avatar .yuan-avatar{width:56px;height:56px}
 .dashboard-profile h3{font-size:26px}.dashboard-profile-copy p{font-size:16px}
 .dashboard-section-heading{gap:8px;margin-bottom:12px}.dashboard-section-heading h2{font-size:19px}
 .dashboard-online{grid-column:1/-1;grid-row:2}.dashboard-online-count{grid-template-columns:auto 1fr auto;align-items:baseline;gap:12px;margin:2px 0 16px}
 .dashboard-online-count>span:first-child{grid-column:auto}.dashboard-online-count strong{text-align:right;font-size:52px}.dashboard-online-count .dashboard-stat-unit{align-self:auto}
 .dashboard-community-size{margin-top:0}
 .dashboard-collection{grid-column:1/-1;grid-row:3}.dashboard-collection-links{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr;gap:10px}.dashboard-collection-links a{padding:14px}
 .dashboard-collection .dashboard-stat strong{font-size:36px}
 .dashboard-recent-panel{grid-column:1/-1;grid-row:4}.dashboard-room-panel{grid-column:1/-1;grid-row:5}
 .dashboard-row{gap:10px}
 .dashboard-room-panel .dashboard-row{grid-template-columns:42px minmax(0,1fr) auto}.dashboard-room-panel .dashboard-row .yuan-avatar{grid-row:1}.dashboard-room-panel .dashboard-row-tail{grid-column:3}.dashboard-room-panel .dashboard-row p{white-space:nowrap;display:block}
 .dashboard-empty{min-height:160px}
}
@media(max-width:380px){
 /* Round controls fill one row and the page switch the next; the document keeps
    its h1 (visually clipped) so the header stays labelled for screen readers. */
 .dashboard-header{display:grid;grid-template-columns:repeat(4,44px);justify-content:end;gap:14px 8px;align-items:center}
 .dashboard-header h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .dashboard-switch{grid-column:1/-1}
}
@supports(backdrop-filter:blur(1px)){@media(max-width:760px){.dashboard-card{backdrop-filter:blur(8px) saturate(.9) brightness(.65);-webkit-backdrop-filter:blur(8px) saturate(.9) brightness(.65)}}
@media(prefers-reduced-transparency:reduce){.dashboard-card{background:#383838;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.dashboard-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
