.club-crest-wrap { display:inline-flex; width:var(--crest-size,32px); height:var(--crest-size,32px); flex-shrink:0; vertical-align:middle; }
.club-crest { width:100%; height:100%; display:block; }
.club-shirt { filter:drop-shadow(0 0 1px #fff) drop-shadow(0 2px 2px #0008); }
.club-identity-heading { display:flex; gap:var(--space-3); align-items:center; }
.club-identity-heading h1 { font-size:var(--text-2xl); margin:0; }
.identity-layout { display:grid; gap:var(--space-4); align-items:start; }
.identity-preview { position:sticky; top:var(--topbar-height,64px); z-index:5; padding:var(--space-3); }
.identity-eyebrow { color:var(--color-text-muted); font-size:var(--text-sm); margin:0 0 var(--space-2); }
.identity-preview__art { display:flex; align-items:center; justify-content:center; gap:var(--space-6); }
.identity-preview__art > div { width:88px; height:88px; display:flex; align-items:center; justify-content:center; }
.identity-preview__art .club-shirt { max-width:none; width:100%; }
.identity-preview__name { text-align:center; font-weight:var(--weight-bold); overflow-wrap:anywhere; margin:var(--space-2) 0; }
.identity-preview__status { font-size:var(--text-sm); color:var(--color-text-muted); margin:var(--space-2) 0 0; }
.identity-samples { display:flex; gap:var(--space-2); flex-wrap:wrap; justify-content:center; }
.identity-sample { display:flex; align-items:center; gap:var(--space-2); font-size:var(--text-sm); }
.identity-sample [data-preview-mini] { width:26px; height:26px; }
.identity-sample--score { padding:var(--space-1) var(--space-2); border-radius:var(--radius-sm); }
.identity-controls { min-width:0; }
.identity-controls h2 { font-size:var(--text-lg); margin:var(--space-4) 0; }
.identity-controls fieldset { border:0; padding:0; margin:0 0 var(--space-4); min-width:0; }
.identity-controls legend, .identity-controls label:not(.identity-choice) { display:block; font-weight:var(--weight-semibold); margin:var(--space-3) 0 var(--space-2); }
.identity-controls .select, .identity-controls .input { width:100%; max-width:100%; min-height:44px; }
#identity-abbr { max-width:8rem; font:700 1rem var(--font-mono); text-transform:uppercase; }
.identity-tabs { display:flex; gap:var(--space-2); }
.identity-tabs button { flex:1; border:1px solid var(--color-border); border-radius:var(--radius-sm); min-height:44px; color:var(--color-text); background:var(--color-surface); font:inherit; cursor:pointer; }
.identity-tabs button[aria-pressed="true"] { background:var(--color-primary); color:var(--color-text-on-brand); }
.identity-choices, .identity-patterns, .identity-palettes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-2); }
.identity-choice { display:flex; align-items:center; gap:var(--space-2); min-height:44px; padding:var(--space-2); border:1px solid var(--color-border); border-radius:var(--radius-sm); cursor:pointer; }
.identity-choice:has(input:checked), .identity-palette[aria-pressed="true"] { outline:2px solid var(--color-accent); outline-offset:1px; }
.identity-choice input { flex-shrink:0; }
.identity-choice--shirt span { display:flex; flex-direction:column; align-items:center; gap:var(--space-2); }
.identity-choice--shirt svg { width:64px; max-width:64px; }
.identity-palette { display:flex; flex-direction:column; gap:var(--space-2); align-items:start; text-align:left; font:inherit; font-size:var(--text-sm); padding:var(--space-3); color:var(--color-text); background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-sm); cursor:pointer; }
.identity-swatches { display:flex; width:100%; height:22px; border:1px solid var(--color-border); border-radius:var(--radius-sm); overflow:hidden; }
.identity-swatches span { flex:1; }
.identity-help { color:var(--color-text-muted); font-size:var(--text-sm); }
.identity-custom { margin-top:var(--space-4); }
.identity-custom summary { min-height:44px; cursor:pointer; }
.identity-actions { display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-5); }
.identity-actions .btn { flex:1; white-space:normal; }
.identity-controls [hidden], .identity-tabs[hidden] { display:none; }
.club-identity-card { display:flex; gap:var(--space-4); flex-wrap:wrap; align-items:center; margin-bottom:var(--space-4); }
.club-identity-card .club-shirt { width:76px; max-width:76px; }
.club-standing-name { display:inline-flex; gap:var(--space-2); align-items:center; white-space:normal; }
.scoreboard__side > .club-crest-wrap { margin:0 auto var(--space-2); }
.scoreboard__side:has(> .club-crest-wrap) { border-top:4px solid var(--club-primary,var(--color-border)); }
@media (min-width:900px) {
    .identity-layout { grid-template-columns:minmax(260px,1fr) minmax(0,1.4fr); }
    .identity-preview { padding:var(--space-5); }
    .identity-preview__art > div { width:140px; height:140px; }
}
.access-name-identity { display:flex; align-items:center; gap:10px; margin:10px 0; font-size:13px; }
.access-name-identity .jersey { width:52px; flex:0 0 52px; }
.access-name-identity { flex-wrap:wrap; }
.access-name-identity > span:last-child { flex:1 1 100%; min-width:0; overflow-wrap:anywhere; }
