.dc-profile-page { max-width: 980px; }
.dc-profile-wrap { display: grid; place-items: start center; padding: 28px 0 80px; }
.dc-profile-card {
  width: min(100%, 700px);
  overflow: hidden;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.1));
  border-radius: var(--radius-md, 16px);
  background: var(--surface, #111115);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28);
}
.dc-profile-banner {
  height: 92px;
  background:
    radial-gradient(circle at 18% 30%, rgba(201,168,76,0.22), transparent 30%),
    linear-gradient(120deg, #171510, #131319 62%, #19151d);
  border-bottom: 1px solid rgba(201,168,76,0.14);
}
.dc-profile-content { padding: 0 28px 30px; }
.dc-profile-topline { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 52px; }
.dc-profile-avatar {
  width: 112px;
  height: 112px;
  margin-top: -56px;
  border: 4px solid var(--surface, #111115);
  border-radius: 50%;
  object-fit: cover;
  background: #1b1b20;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}
.dc-profile-avatar-placeholder { display: grid; place-items: center; color: var(--accent, #c9a84c); font-size: 2rem; font-weight: 750; }
.dc-profile-actions { display: flex; align-items: center; gap: 9px; padding-top: 12px; }
.dc-profile-button,
.dc-profile-share,
.dc-profile-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  color: var(--text, #e8e8ea);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.dc-profile-button { min-height: 38px; padding: 0 17px; border-radius: 999px; }
.dc-profile-button-primary { background: var(--accent, #c9a84c); border-color: var(--accent, #c9a84c); color: #15130c; }
.dc-profile-button-primary[aria-pressed="true"] { background: rgba(201,168,76,0.12); color: var(--accent-soft, #efd58b); }
.dc-profile-button:hover,
.dc-profile-share:hover,
.dc-profile-social:hover,
.dc-profile-social:focus-visible { border-color: var(--accent, #c9a84c); color: var(--accent-soft, #efd58b); background: rgba(201,168,76,0.08); }
.dc-profile-share { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.dc-profile-identity { margin-top: 8px; }
.dc-profile-identity h1 { margin: 0; font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.15; }
.dc-profile-handle-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 5px; color: var(--muted, #9a978f); font-size: .91rem; }
.dc-profile-pronouns { padding-left: 9px; border-left: 1px solid var(--border-strong, rgba(255,255,255,0.12)); }
.dc-profile-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--muted, #9a978f); font-size: .86rem; }
.dc-profile-stats strong { color: var(--text, #e8e8ea); font-variant-numeric: tabular-nums; }
.dc-profile-joined { display: inline-flex; align-items: center; gap: 5px; }
.dc-profile-bio { max-width: 60ch; margin: 20px 0 0; color: var(--text, #e8e8ea); line-height: 1.58; white-space: pre-wrap; }
.dc-profile-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.dc-profile-social { width: 38px; height: 38px; padding: 0; border-radius: 10px; color: var(--muted, #aaa7b2); }
.dc-profile-social svg { flex: none; }
.dc-profile-discord { color: #c9cfff; }
.dc-profile-status { min-height: 20px; margin: 16px 0 0; color: var(--muted, #9a978f); font-size: .8rem; }

.dc-profile-share-dialog {
  width: min(calc(100% - 28px), 560px);
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  border-radius: 16px;
  color: var(--text, #e8e8ea);
  background: var(--surface, #111115);
  box-shadow: 0 26px 80px rgba(0,0,0,0.6);
}
.dc-profile-share-dialog::backdrop { background: rgba(4,4,7,0.78); backdrop-filter: blur(4px); }
.dc-profile-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}
.dc-profile-share-head h2 { margin: 0; font-size: 1.2rem; }
.dc-profile-share-close {
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--muted, #9a978f);
  background: transparent;
  cursor: pointer;
}
.dc-profile-share-close:hover,
.dc-profile-share-close:focus-visible { color: var(--text, #e8e8ea); background: rgba(255,255,255,0.06); }
.dc-profile-share-body { padding: 22px 24px 20px; text-align: center; }
.dc-profile-share-body > p:first-child { margin: 0 0 20px; color: var(--muted, #9a978f); line-height: 1.5; text-align: left; }
.dc-profile-share-qr-wrap {
  width: min(260px, 70vw);
  margin: 0 auto;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
}
.dc-profile-share-qr { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.dc-profile-share-name { margin: 20px 0 5px; font-size: 1.35rem; }
.dc-profile-share-url {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--accent-soft, #efd58b);
  font-size: .92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-profile-share-status { min-height: 20px; margin: 12px 0 0; color: var(--muted, #9a978f); font-size: .8rem; }
.dc-profile-share-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
}
.dc-profile-share-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  border-radius: 9px;
  color: var(--text, #e8e8ea);
  background: rgba(255,255,255,0.055);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.dc-profile-share-action:hover,
.dc-profile-share-action:focus-visible { border-color: var(--accent, #c9a84c); background: rgba(201,168,76,0.1); }
.dc-profile-share-action-primary { border-color: rgba(201,168,76,0.42); color: #15130c; background: var(--accent, #c9a84c); }
.dc-profile-share-action-primary:hover,
.dc-profile-share-action-primary:focus-visible { color: #15130c; background: var(--accent-soft, #efd58b); }
.dc-profile-share-action:disabled { opacity: .6; cursor: wait; }

@media (max-width: 560px) {
  .dc-profile-wrap { padding-top: 14px; }
  .dc-profile-banner { height: 76px; }
  .dc-profile-content { padding: 0 18px 22px; }
  .dc-profile-avatar { width: 88px; height: 88px; margin-top: -44px; }
  .dc-profile-topline { gap: 10px; }
  .dc-profile-actions { padding-top: 10px; }
  .dc-profile-button { min-height: 36px; padding: 0 13px; }
  .dc-profile-share { width: 36px; height: 36px; }
  .dc-profile-social { width: 36px; height: 36px; }
  .dc-profile-identity { margin-top: 14px; }
  .dc-profile-stats { gap: 10px 14px; }
  .dc-profile-share-dialog { width: min(calc(100% - 20px), 560px); max-height: calc(100dvh - 20px); }
  .dc-profile-share-head { padding: 14px 16px; }
  .dc-profile-share-body { padding: 18px 18px 14px; }
  .dc-profile-share-body > p:first-child { margin-bottom: 16px; }
  .dc-profile-share-qr-wrap { width: min(228px, 67vw); padding: 11px; }
  .dc-profile-share-name { margin-top: 16px; }
  .dc-profile-share-actions { padding: 12px 14px 14px; }
  .dc-profile-share-action { flex: 1; padding: 0 11px; }
}
/* Public collection: 1:3 profile / decks, 1:1 avatars, 8:5 deck artwork. */
.page-shell.dc-profile-page { max-width:1480px; }
.dc-profile-wrap { grid-template-columns:minmax(260px,1fr) minmax(0,3fr); align-items:start; gap:32px; padding:24px 0 64px; }
.dc-profile-card { width:100%; min-width:0; border-radius:12px; box-shadow:none; }
.dc-profile-banner { height:auto; aspect-ratio:3 / 1; }
.dc-profile-content { padding:0 20px 24px; }
.dc-profile-topline { flex-wrap:wrap; gap:8px; }
.dc-profile-avatar { width:88px; height:88px; margin-top:-44px; }
.dc-profile-actions { flex-wrap:wrap; gap:8px; }
.dc-profile-button, .dc-profile-share, .dc-profile-social { min-height:44px; }
.dc-profile-share, .dc-profile-social { min-width:44px; }
.dc-profile-identity h1 { font-size:28px; overflow-wrap:anywhere; }
.dc-profile-bio { overflow-wrap:anywhere; font-size:14px; }
.dc-profile-stats { gap:8px 16px; }
.dc-profile-handle-row, .dc-profile-stats, .dc-profile-status { color:#b1aebb; }
.dc-profile-status:empty { margin:0; min-height:0; }
.dc-profile-decks { min-width:0; width:100%; color:#f0eef8; scroll-margin-top:80px; }
.dc-profile-decks-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:20px; border-bottom:1px solid #35333e; }
.dc-profile-decks-heading h2 { font-size:25px; margin:0 0 4px; line-height:1.25; }
.dc-profile-decks-heading p, .dc-profile-deck-toolbar p { margin:0; color:#b1aebb; font-size:13px; }
.dc-profile-deck-filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin:24px 0 16px; }
.dc-profile-deck-filters label { display:grid; gap:6px; font-size:13px; font-weight:600; min-width:0; }
.dc-profile-deck-search { flex:1 1 200px; }
.dc-profile-deck-filters input, .dc-profile-deck-filters select { width:100%; min-width:0; min-height:44px; padding:8px 12px; border:1px solid #66616f; border-radius:8px; background:#17171d; color:#f0eef8; font:inherit; font-size:14px; }
.dc-profile-deck-filters input::placeholder { color:#b1aebb; }
.dc-profile-deck-filters button { border-radius:8px; }
.dc-profile-deck-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.dc-profile-deck-toolbar nav { display:flex; border:1px solid #66616f; border-radius:8px; overflow:hidden; }
.dc-profile-deck-toolbar nav a { min-height:44px; min-width:52px; display:grid; place-items:center; padding:8px 12px; text-decoration:none; color:#b1aebb; font-size:13px; }
.dc-profile-deck-toolbar nav [aria-current] { background:#c9a84c; color:#15130c; font-weight:700; }
.dc-profile-deck-head, .dc-profile-deck { display:grid; grid-template-columns:minmax(0,3fr) minmax(97px,.65fr) minmax(88px,.8fr) 98px 94px; align-items:center; gap:14px; }
.dc-profile-deck-head { padding:12px 0; border-bottom:1px solid #35333e; color:#b1aebb; font-size:12px; }
.dc-profile-deck-list { list-style:none; margin:0; padding:0; }
.dc-profile-deck { border-bottom:1px solid #292730; padding:14px 0; font-size:13px; min-width:0; }
.dc-profile-deck:hover { background:#ffffff03; }
.dc-profile-deck-main { display:flex; align-items:center; gap:14px; min-width:0; color:#f0eef8; text-decoration:none; min-height:60px; }
.dc-profile-deck-main:hover strong { color:#efd58b; }
.dc-profile-deck-art { flex:none; width:44px; aspect-ratio:2 / 3; display:block; overflow:hidden; border-radius:6px; background:#17171d; }
.dc-profile-deck-art img { width:100%; height:100%; object-fit:cover; }
.dc-profile-deck-art img[src="/icon.svg"] { object-fit:contain; padding:10px; opacity:.5; }
.dc-profile-deck-copy { display:grid; gap:4px; min-width:0; overflow-wrap:anywhere; }
.dc-profile-deck-copy strong { font-size:14px; line-height:1.4; }
.dc-profile-deck-copy > span, .dc-profile-deck-format small { color:#b1aebb; font-size:12px; line-height:1.5; }
.dc-profile-deck-format small { display:block; }
.dc-profile-deck-colors { display:flex; gap:3px; flex-wrap:wrap; color:#b1aebb; }
.dc-profile-mana { width:17px; height:17px; display:grid; place-items:center; border-radius:50%; font-size:10px; font-weight:750; color:#15130c; background:#cbc6bb; }
.dc-profile-mana[data-color=W] { background:#eee7bc; }.dc-profile-mana[data-color=U] { background:#9bc9e3; }.dc-profile-mana[data-color=B] { background:#b4a9bf; }.dc-profile-mana[data-color=R] { background:#e8a38e; }.dc-profile-mana[data-color=G] { background:#a2c791; }
.dc-profile-deck-updated { color:#b1aebb; font-size:12px; }
.dc-profile-deck-engagement { display:flex; gap:12px; flex-wrap:wrap; font-variant-numeric:tabular-nums; color:#b1aebb; }
.dc-profile-deck-engagement > span { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.dc-profile-deck-list[data-view=grid] { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.dc-profile-deck-list[data-view=grid] .dc-profile-deck { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 0 16px; border:1px solid #35333e; border-radius:10px; overflow:hidden; background:#111115; }
.dc-profile-deck-list[data-view=grid] .dc-profile-deck-main { grid-column:1/-1; display:grid; gap:14px; }
.dc-profile-deck-list[data-view=grid] .dc-profile-deck-art { width:100%; aspect-ratio:8 / 5; border-radius:0; }
.dc-profile-deck-list[data-view=grid] .dc-profile-deck-copy { padding:0 16px; min-height:65px; align-content:start; }
.dc-profile-deck-list[data-view=grid] .dc-profile-deck-colors, .dc-profile-deck-list[data-view=grid] .dc-profile-deck-updated { margin-left:16px; }
.dc-profile-deck-list[data-view=grid] .dc-profile-deck-format, .dc-profile-deck-list[data-view=grid] .dc-profile-deck-engagement { margin-right:16px; justify-self:end; }
.dc-profile-decks-empty { padding:48px 24px; text-align:center; border:1px dashed #35333e; border-radius:12px; }
.dc-profile-decks-empty h3 { margin:0 0 8px; font-size:20px; }.dc-profile-decks-empty p { color:#b1aebb; margin:0 auto; max-width:48ch; }
.dc-profile-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:24px; font-size:13px; }
.dc-profile-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.dc-profile-page :focus-visible { outline:2px solid #efd58b; outline-offset:3px; }
@media(max-width:1199px) { .dc-profile-wrap { grid-template-columns:260px minmax(0,1fr); gap:24px; }.dc-profile-deck-head { display:none; }.dc-profile-deck { grid-template-columns:minmax(0,1fr) auto; gap:8px 16px; }.dc-profile-deck-main { grid-column:1/-1; }.dc-profile-deck-colors { grid-column:1; }.dc-profile-deck-format { grid-column:2; grid-row:2; text-align:right; }.dc-profile-deck-engagement { justify-self:end; } }
@media(max-width:900px) { .dc-profile-wrap { grid-template-columns:minmax(0,1fr); gap:32px; }.dc-profile-banner { aspect-ratio:6 / 1; max-height:120px; }.dc-profile-topline { flex-wrap:nowrap; }.dc-profile-content { padding-inline:24px; }.dc-profile-deck-list[data-view=grid] { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .dc-profile-wrap { padding-top:8px; }.dc-profile-content { padding-inline:16px; }.dc-profile-banner { aspect-ratio:4 / 1; }.dc-profile-identity h1 { font-size:25px; }.dc-profile-decks-heading { gap:12px; }.dc-profile-decks-heading h2 { font-size:22px; }.dc-profile-decks-heading .dc-profile-button { padding-inline:12px; font-size:12px; }.dc-profile-deck-filters { display:grid; grid-template-columns:1fr 1fr; }.dc-profile-deck-search { grid-column:1/-1; }.dc-profile-deck-filters button { grid-column:1/-1; }.dc-profile-deck-list[data-view=grid] { grid-template-columns:minmax(0,1fr); }.dc-profile-deck-list[data-view=grid] .dc-profile-deck-format { grid-row:auto; }.dc-profile-deck-toolbar p { max-width:28ch; }.dc-profile-pagination { flex-wrap:wrap; }.dc-profile-share-close { width:44px; height:44px; } }

.dc-profile-deck-head[hidden] { display:none; }
.dc-profile-banner { overflow:hidden; position:relative; }
.dc-profile-banner img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:center; }

/* Keep the existing artwork-led profile, with the library's spacing rhythm. */
.page-shell.dc-profile-page{max-width:1280px}.dc-profile-wrap{grid-template-columns:320px minmax(0,1fr);gap:32px;padding:40px 0 64px}.dc-profile-content{padding:0 24px 24px}.dc-profile-avatar{width:88px;height:88px;margin-top:-44px}.dc-profile-actions{gap:8px}.dc-profile-stats{gap:12px 20px}.dc-profile-stats a:hover{color:#efd58b}.dc-profile-deck-filters{align-items:center;margin:24px 0 20px;gap:12px}.dc-profile-deck-filters>label{display:block}.dc-profile-deck-filters>label:not(.dc-profile-deck-search){flex:0 1 170px}.dc-profile-deck-filters .lib-select-trigger{width:100%;font-size:13px;min-height:44px}.dc-profile-deck-filters input{padding-left:40px;font-size:14px;border-color:#35333e;border-radius:6px}.dc-profile-deck-search{position:relative;min-width:min(280px,100%)}.dc-profile-deck-search>svg{position:absolute;left:14px;top:14px;color:#b5b1c3}.dc-profile-deck-toolbar nav{border-color:#35333e;border-radius:6px;padding:2px;gap:2px}.dc-profile-deck-toolbar nav a{min-width:40px;min-height:36px;box-sizing:border-box;padding:8px;border-radius:4px}.dc-profile-deck-toolbar nav [aria-current]{background:#c9a84c18;color:#efd58b;box-shadow:none}.dc-profile-deck-toolbar nav a:hover{background:#25252c}.dc-profile-deck-list[data-view=grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:20px}.dc-profile-deck-list[data-view=grid] .dc-profile-deck{transition:border-color 180ms,transform 180ms}.dc-profile-deck-list[data-view=grid] .dc-profile-deck:hover{border-color:#635731;transform:translateY(-2px)}.dc-profile-decks-empty{border:0;text-align:left;padding:32px 0;max-width:480px}.dc-profile-decks-empty p{margin:0}.dc-profile-deck-list[aria-busy=true]{opacity:.55;pointer-events:none}.dc-profile-filter-status{color:#b5b1c3;font-size:13px;line-height:1.6}.dc-profile-filter-status:empty{display:none}.dc-profile-filter-status button{margin-left:12px}.dc-profile-page .lib-select-trigger:focus-visible{outline-color:#efd58b}
@media(max-width:1199px){.dc-profile-wrap{grid-template-columns:300px minmax(0,1fr);gap:24px}.dc-profile-content{padding-inline:20px}}
@media(max-width:1023px){.dc-profile-wrap{grid-template-columns:minmax(0,1fr);gap:32px}.dc-profile-card{max-width:none}.dc-profile-banner{aspect-ratio:5/1;max-height:160px}.dc-profile-topline{flex-wrap:wrap}}
@media(max-width:767px){.dc-profile-wrap{padding:24px 0 48px}.dc-profile-deck-filters{display:flex}.dc-profile-deck-search{flex:1 1 100%}.dc-profile-deck-filters>label:not(.dc-profile-deck-search){flex:1 1 120px;min-width:0}.dc-profile-deck-list[data-view=grid]{grid-template-columns:1fr}.dc-profile-content{padding-inline:20px}.dc-profile-banner{aspect-ratio:3/1}.dc-profile-topline{gap:12px}.dc-profile-deck-toolbar nav a{min-height:40px}.dc-profile-decks-heading h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.dc-profile-page *{transition:none!important;animation:none!important}.dc-profile-deck:hover{transform:none!important}}
.dc-profile-stats a{display:inline-flex;gap:4px;align-items:center;color:#b1aebb;text-decoration:none;min-height:32px}.dc-profile-stats a:hover{color:#efd58b}.dc-profile-share-dialog{border-radius:12px}.dc-profile-share-action{border-radius:6px}.dc-profile-pagination .dc-profile-button{border-radius:6px}
