.tabbed-dashboard{display:block!important}
.tabbed-dashboard[hidden],.tabbed-dashboard [hidden]{display:none!important}
.management-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:12px;background:#fff;border:1px solid #d7e0e8}
.management-tabs button{border:1px solid #ced9e4;background:#f4f7fa;color:#183d61;padding:10px 16px;cursor:pointer;font:inherit;border-radius:5px}
.management-tabs [aria-selected=true]{background:#173c60;color:#fff;border-color:#173c60}
.tabbed-dashboard>section{box-sizing:border-box;width:100%;margin:0}
.management-tabs button:focus-visible,.points-shop button:focus-visible,.thread-back:focus-visible{outline:3px solid #ac8234;outline-offset:3px}
.tabbed-dashboard .admin-row>div{min-width:0;overflow-wrap:anywhere}
.thread-back{display:inline-block;background:#fff;border:1px solid #ccd9e5;color:#173c60;padding:10px 18px;margin:0 0 18px;text-decoration:none;border-radius:5px}

/* Transparent decorations keep the member's own avatar visible. */
.support-frame{position:relative;overflow:visible!important;border-radius:50%!important}
.support-frame img{border-radius:50%}
.support-frame:after{content:'';position:absolute;z-index:2;inset:-10px;background:url('assets/shen-support-frame.svg') center/100% 100% no-repeat;pointer-events:none}
.campus-title{
  position:relative;
  isolation:isolate;
  display:flex!important;
  align-items:center;
  gap:5px;
  box-sizing:border-box;
  width:fit-content;
  max-width:100%;
  margin-top:6px;
  padding:4px 8px 4px 6px;
  overflow:hidden;
  border:1px solid #c8a765;
  border-radius:5px;
  background:linear-gradient(115deg,#fff8e7 0%,#f2dfac 36%,#fff9e9 64%,#e8cd91 100%);
  color:#674914!important;
  box-shadow:inset 0 1px 0 #fffdf5,inset 0 -1px 0 #bc945033,0 2px 5px #102d4b0d;
  font:700 12px/1.45 'Microsoft YaHei',sans-serif!important;
  letter-spacing:0;
  text-shadow:0 1px 0 #ffffffb3;
  overflow-wrap:anywhere;
  vertical-align:middle;
}
.campus-title:before{content:'';flex:0 0 15px;width:15px;height:19px;background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2244%22%20viewBox%3D%220%200%2036%2044%22%20fill%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22gold%22%20x1%3D%224%22%20y1%3D%224%22%20x2%3D%2229%22%20y2%3D%2233%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23FFF6CF%22%2F%3E%3Cstop%20offset%3D%22.38%22%20stop-color%3D%22%23D4AD57%22%2F%3E%3Cstop%20offset%3D%22.65%22%20stop-color%3D%22%23F6E1A2%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23A77C2C%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22m10%2027-3%2015%209-5%202-8m8-2%203%2015-9-5-2-8%22%20fill%3D%22%23173D60%22%20stroke%3D%22%23BE9B50%22%20stroke-width%3D%221.4%22%2F%3E%3Cpath%20d%3D%22m18%202%204%203%205-.1%201.8%204.7%204%203-1%204.9%201%204.8-4%203-1.8%204.8-5-.1-4%203-4-3-5%20.1-1.8-4.8-4-3%201-4.8-1-4.9%204-3L9%204.9l5%20.1%204-3Z%22%20fill%3D%22url(%23gold)%22%20stroke%3D%22%23B78D3E%22%20stroke-width%3D%221.2%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2217.5%22%20r%3D%2210.3%22%20fill%3D%22%23173D60%22%20stroke%3D%22%23FFF3C2%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22m18%209%202.5%205.2%205.8.9-4.2%204.1%201%205.8-5.1-2.8-5.1%202.8%201-5.8-4.2-4.1%205.8-.9L18%209Z%22%20fill%3D%22url(%23gold)%22%2F%3E%3Cpath%20d%3D%22m8%209%201-3%201%203%203%201-3%201-1%203-1-3-3-1%203-1Z%22%20fill%3D%22%23FFFCED%22%2F%3E%3C%2Fsvg%3E') center/contain no-repeat}
.campus-title:after{content:'';position:absolute;inset:-35% auto -35% -65%;width:40%;background:linear-gradient(90deg,transparent,#fffdf1c9,transparent);transform:translateX(-180%) skewX(-20deg);animation:title-medal-glint 7s ease-in-out infinite;pointer-events:none}
.campus-title:empty,.campus-title[hidden]{display:none!important}
.author-name{display:inline-block;max-width:100%;vertical-align:middle;overflow-wrap:anywhere}
.author>div:not(.avatar),.idinfo{min-width:0;overflow-wrap:anywhere}
.author .campus-title{margin:6px auto 0;padding:3px 4px;gap:3px;text-align:left}
.author .campus-title:before{flex-basis:12px;width:12px;height:17px}
.idinfo .campus-title{color:#674914!important;box-shadow:inset 0 1px 0 #fffdf5,0 2px 7px #00000026}
@keyframes title-medal-glint{0%,68%{transform:translateX(-180%) skewX(-20deg);opacity:0}72%{opacity:.85}88%,100%{transform:translateX(600%) skewX(-20deg);opacity:0}}

/* Points shop uses the same navy and restrained metallic accents as the campus. */
.points-shop{margin-top:28px;padding:26px;background:#fff;border:1px solid #d8e0e8;scroll-margin-top:20px;color:#193955}
.points-shop h2{margin:0 0 10px}
.points-shop p{line-height:1.8}
.points-summary{display:flex;flex-wrap:wrap;gap:20px;align-items:center;padding:22px;background:linear-gradient(115deg,#102d4b,#29536d);color:#fff;border-radius:10px}
.points-summary strong{font-size:36px;color:#e9cb8d}
.points-shop button,.points-shop a.shop-link{border:1px solid #bccddd;background:#173d60;color:#fff;padding:10px 16px;cursor:pointer;border-radius:5px;font:inherit}
.points-shop button:disabled{opacity:.5;cursor:default}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.shop-item{min-width:0;padding:22px;border:1px solid #dee5eb;background:#fafbfd;border-radius:10px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.shop-item h3,.shop-item p{margin:0;overflow-wrap:anywhere}
.shop-item h3{font-size:18px}
.shop-item p{font-size:14px}
.shop-item button{margin-top:auto}
.shop-preview{box-sizing:border-box;position:relative;flex-shrink:0;width:76px;height:76px;display:grid;place-items:center;background:#173d60;color:#f1dcac;border-radius:50%;font:30px Noto Serif SC,serif;margin:12px auto 18px}
.shop-preview img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.shop-avatar-fallback,.shop-avatar-image{grid-area:1/1}
.shop-avatar-image{position:absolute;z-index:1;background:#173d60}
.shop-preview img[hidden]{display:none!important}
.shop-identity-preview{box-sizing:border-box;width:100%;min-height:214px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin-bottom:4px;padding:22px 10px 14px;border-bottom:1px solid #dde4eb;background:radial-gradient(ellipse at 50% 26%,#f4e6c359,transparent 64%);text-align:center}
.shop-identity-preview .shop-preview{margin:6px auto 10px}
.shop-preview-name{max-width:100%;color:#193955;font:700 16px/1.5 'Microsoft YaHei',sans-serif;overflow-wrap:anywhere}
.shop-identity-preview .campus-title{margin:0 auto;font-size:14px!important;padding:5px 10px 5px 7px;gap:6px}
.shop-identity-preview .campus-title:before{flex-basis:18px;width:18px;height:22px}
.shop-preview-caption{margin:0!important;color:#7a8793;font:12px/1.5 'Microsoft YaHei',sans-serif!important;letter-spacing:.06em}
.shop-message{min-height:24px;color:#8c4e19;overflow-wrap:anywhere}
.shop-invite{padding:12px 0;border-bottom:1px solid #e0e6ec;overflow-wrap:anywhere}
.shop-invite input{box-sizing:border-box;width:min(100%,320px);padding:10px;border:1px solid #cbd8e2;background:#f4f7fa;font:14px monospace}
.shop-ledger{max-height:280px;overflow:auto;padding:0;list-style:none}
.shop-ledger li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e5ebf0}
.points-shop summary{cursor:pointer;padding:14px 0;font-weight:700}
.points-shop [hidden]{display:none!important}

@media(max-width:600px){
  .shop-grid{grid-template-columns:1fr}
  .points-shop{padding:18px 14px}
  .shop-item{padding:18px}
  .shop-identity-preview{min-height:200px;padding-top:14px}
  .management-tabs{gap:6px;padding:8px}
  .management-tabs button{padding:9px 12px}
  .points-summary{padding:16px;gap:12px}
  .tabbed-dashboard .admin-row{flex-wrap:wrap}
}
@media(max-width:480px){.author .campus-title{margin-left:0}.author>.avatar{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.campus-title:after{animation:none;opacity:0}}
