.profile-hero.public-profile {
  display: grid;
  gap: 20px;
  align-items: stretch;
  padding: clamp(18px, 4vw, 34px);
}
.public-profile-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 24px);
}
.public-profile-identity > .avatar {
  width: clamp(54px, 12vw, 76px);
  height: clamp(54px, 12vw, 76px);
}
.public-profile .profile-info { min-width: 0; overflow-wrap: anywhere; }
.public-profile .profile-info h2 { margin: 0 0 7px; }
.public-profile .profile-info p { margin: 7px 0 0; white-space: pre-wrap; }
.public-profile-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.public-profile-badges:empty { display: none; }
.public-profile .profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 106px), 1fr));
  gap: 8px;
  margin: 0;
}
.public-profile .profile-stats > :is(span,a) {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 11px 5px;
  min-width: 0;
  border-radius: 11px;
  border: 1px solid var(--v2-border, var(--line));
  text-align: center;
}
.public-profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.public-profile-actions > * { white-space: nowrap; }
.site-footer { flex-wrap: wrap; gap: 7px 12px; }
.site-filing { flex-basis: 100%; text-align: center; overflow-wrap: anywhere; }
.site-filing[hidden] { display: none; }
.site-filing a { color: inherit; text-underline-offset: 3px; }
.drawing-workbench { display: grid; gap: 12px; padding-block: 12px; }
.drawing-controls, .drawing-tools, .drawing-size-options { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.drawing-controls { justify-content: space-between; }
.drawing-tools button[aria-pressed="true"] { background: var(--v2-soft, #e7efde); color: var(--ink); }
.drawing-canvas {
  display: block;
  width: min(100%, 384px);
  height: auto;
  margin-inline: auto;
  aspect-ratio: 1;
  touch-action: none;
  cursor: crosshair;
  border: 1px solid var(--v2-border, var(--line));
}
.drawing-tier { min-width: 0; border: 1px solid var(--v2-border, var(--line)); border-radius: 12px; padding: 14px; }
.drawing-size-options label { display: inline-flex; gap: 4px; align-items: center; }
#drawn-library .icon-tile span { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .public-profile-actions > .button { flex: 1 0 auto; justify-content: center; }
  .public-profile .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.public-profile-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
}
.public-profile-actions > .button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 6px;
}
.member-details { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.member-expiry { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.member-badge.vip-badge { background: #f7ebd0; color: #6c491f; }
.member-badge.svip-badge, .avatar-svip .avatar-vip-tag {
  background: linear-gradient(115deg, #6d2bc4, #c8a3ff 37%, #ecdaff 48%, #a478e8 59%, #6020a7);
  color: #290646;
  border: 1px solid #a569e8;
  font-weight: 800;
}
.avatar.avatar-svip {
  border-color: transparent;
  background: conic-gradient(from 25deg, #7b3ac8, #d5b8ff, #a666e8, #6127a3, #efddff, #7b3ac8);
  box-shadow: 0 0 0 2px #c9a3f0, 0 0 8px #a274df60;
}


/* 2.1.7: mobile feed and wall only. Explicit zero minimum prevents content widening a grid track. */
@media(max-width:640px){
 .content[data-page="wall"] .cards-grid,.content[data-page="square"] .cards-grid{grid-template-columns:minmax(0,1fr);min-width:0;width:100%;gap:14px}
 .content[data-page="wall"] .cards-grid>*,.content[data-page="square"] .cards-grid>*{min-width:0;max-width:100%}
 .feed-card{position:relative;min-width:0;max-width:100%;width:100%;border:1px solid var(--feed-accent);border-radius:17px;background-color:var(--feed-bg);color:var(--feed-ink);background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:16px 16px;box-shadow:0 3px 9px #162a1e08;overflow:hidden;isolation:isolate}
 .feed-open{display:block;appearance:none;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0;padding:16px 14px 7px;border:0;border-radius:16px 16px 0 0;background:none;color:inherit;text-align:left;cursor:pointer;transition:background-color .15s}
 .feed-open:active{background:#ffffff0c}
 .feed-main{display:grid;grid-template-columns:56px minmax(0,1fr) 40px;align-items:center;gap:12px;min-height:56px;min-width:0}
 .feed-art{display:grid;place-items:center;width:56px;height:56px;color:var(--feed-accent);min-width:0;overflow:hidden}
 .feed-art .pixel-icon{display:block;width:52px;height:52px;max-width:100%}
 .feed-art img{display:block;width:52px;height:52px;object-fit:contain;border-radius:8px}
 .feed-copy{display:block;min-width:0}
 .feed-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:normal;font-size:16px;line-height:1.45;font-weight:700;letter-spacing:.1px}
 .feed-sub{display:block;margin-top:7px;font-size:10px;line-height:1.4;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .feed-dot{padding:0 7px}
 .feed-author{position:absolute;right:14px;top:24px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;color:inherit;z-index:1}
 .feed-author .avatar-frame,.feed-author .avatar{width:36px;height:36px;max-width:36px;max-height:36px}
 .feed-facts{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1.28fr);align-items:center;column-gap:9px;margin-top:12px;padding-top:10px;border-top:1px solid #80808038;min-width:0}
 .feed-number{font:9px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;opacity:.72;overflow-wrap:anywhere;min-width:0;font-variant-numeric:tabular-nums}
 .feed-grade{max-width:94px;padding:3px 8px;border:1px solid currentColor;border-radius:6px;color:var(--feed-accent);font-size:11px;font-weight:750;line-height:1.3;text-align:center;overflow-wrap:anywhere}
 .feed-date{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:3px 6px;min-width:0;font-size:10px;line-height:1.5;text-align:right;opacity:.82;font-variant-numeric:tabular-nums}
 .feed-date time{white-space:nowrap}.feed-date>span{overflow-wrap:anywhere}
 .feed-context{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:0 14px 6px;font-size:10px;line-height:1.5;opacity:.78}
 .feed-state{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .feed-social{flex:none;display:flex;align-items:center;gap:13px;min-height:28px;padding:4px 0 4px 8px;border:0;background:none;color:inherit;font-size:11px}
 .feed-card button:focus-visible{outline:2px solid var(--feed-accent);outline-offset:-3px}
}
@media(max-width:350px){.feed-open{padding:15px 12px 11px}.feed-main{grid-template-columns:46px minmax(0,1fr) 34px;gap:9px}.feed-art{width:46px;height:50px}.feed-art .pixel-icon,.feed-art img{width:44px;height:44px}.feed-copy strong{font-size:15px}.feed-author{right:12px;top:24px;width:34px;height:34px}.feed-author .avatar-frame,.feed-author .avatar{width:32px;height:32px;max-width:32px;max-height:32px}.feed-grade{max-width:78px;padding:3px 5px;font-size:10px}.feed-facts{column-gap:6px}.feed-date{font-size:9px}.feed-context{padding-right:12px;padding-left:12px}}
@media(prefers-reduced-motion:reduce){.feed-open{transition:none}}

.pixel-icon-error{display:inline-grid;place-items:center;border:1px dashed currentColor;border-radius:8px;font:700 20px/1 sans-serif;opacity:.7}
/* 2.3.1 — administrative icon library */
.official-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:16px;margin-top:20px}.official-icon-card{padding:20px!important;min-width:0}.official-icon-card h3{overflow-wrap:anywhere}.official-icon-card .row{flex-wrap:wrap;gap:12px}.official-art{display:grid;place-items:center;min-height:92px;background:var(--bg);border-radius:12px}.official-art svg{width:64px;height:64px}.official-workbench{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:20px;margin:20px 0}.official-workbench canvas{width:100%;height:auto;aspect-ratio:1;touch-action:none;cursor:crosshair}.official-preview{display:grid;place-items:center;min-height:100px;border:1px solid var(--line);border-radius:12px}.official-preview svg{width:48px;height:48px}.official-upload{padding:12px 0}.official-upload input{max-width:100%}#official-editor .drawing-controls{flex-wrap:wrap;gap:12px}#official-editor [name=threshold]{width:80px}#official-editor .drawing-tools{flex-wrap:wrap}#official-editor [aria-pressed=true]{outline:2px solid currentColor}@media(max-width:500px){.official-workbench{grid-template-columns:1fr}.official-workbench aside{display:flex;gap:14px;align-items:center}.official-preview{min-width:76px;min-height:76px}.official-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 2.3.2: give membership dates their own full-width row. */
.v2-profile .v2-profile-person{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:14px 20px;align-items:center}.v2-profile .v2-profile-person>.avatar{grid-column:1;grid-row:1}.v2-profile .v2-profile-name{grid-column:2;grid-row:1;min-width:0}.v2-profile .v2-profile-name h2{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:clamp(18px,2.3vw,25px);margin:6px 0 0}.v2-profile .v2-profile-edit{grid-column:3;grid-row:1;white-space:nowrap;width:auto;margin:0;justify-self:end}.v2-profile .v2-profile-badges{grid-column:2 / -1;display:flex;flex-wrap:wrap;gap:10px 16px;min-width:0;align-items:center}.v2-profile .member-details{display:flex;flex-wrap:wrap;gap:6px 10px;min-width:0;max-width:100%;align-items:center}.v2-profile .member-badge,.v2-profile .v2-nameplate{flex:none}.v2-profile .member-expiry{white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.6;flex:0 1 auto}.v2-profile .v2-profile-bio{grid-column:2 / -1;margin:0;min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.v2-profile .v2-profile-person{grid-template-columns:60px minmax(0,1fr);gap:14px}.v2-profile .v2-profile-name{grid-column:2}.v2-profile .v2-profile-name h2{font-size:clamp(16px,4.3vw,23px)}.v2-profile .v2-profile-badges,.v2-profile .v2-profile-bio{grid-column:1 / -1}.v2-profile .v2-profile-edit{grid-column:2;grid-row:4;justify-self:end;margin:0;width:auto;min-width:88px}.v2-profile .member-expiry{font-size:12px}.v2-profile .v2-profile-name .eyebrow{font-size:8px;letter-spacing:.6px}}

/* SSVIP decoration is shared by every avatar size. */
.avatar.avatar-ssvip{border-color:#d32447;background:#a61032;color:#fff2c9;box-shadow:0 0 0 2px #edb467;isolation:isolate;overflow:visible;margin-inline:8px}
.avatar-ssvip .avatar-picture{position:relative;z-index:1}
.avatar-royal{position:absolute!important;width:143%!important;height:152%!important;max-width:none!important;left:-21.5%;top:-30%;overflow:visible;pointer-events:none;z-index:0}
.avatar-ssvip .avatar-vip-tag,.member-badge.ssvip-badge{background:linear-gradient(120deg,#7e082b,#d32745,#900d30);color:#fff2c9;border:1px solid #edb467;font-weight:800;z-index:2}
