.profile-workspace { max-width: 1120px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-layout > * { min-width: 0; }
.profile-card { padding: clamp(16px, 3vw, 26px); }
.profile-card h2 { font-size: 1.32rem; margin: 0 0 10px; }
.profile-fields, .profile-results { display: grid; gap: 12px; }
.profile-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-wide { grid-column: 1 / -1; }
.profile-fields .field { width: 100%; min-width: 0; }
.profile-actions, .profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.profile-links { justify-content: center; }
.profile-links a { color: #5638c6; text-decoration: underline; text-underline-offset: 3px; padding: 5px; }
.profile-results article { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line, #e6e6ef); border-radius: 12px; background: #faf9ff; min-width: 0; }
.profile-results article p, .profile-preview { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; unicode-bidi: plaintext; }
.profile-results .profile-actions { margin: 0; }
.profile-results .chip, .profile-actions .chip { white-space: normal; }
.profile-card button:disabled, #font-copy-all:disabled { opacity: .55; cursor: not-allowed; }
.profile-card [hidden] { display: none; }
.profile-results .chip[aria-pressed="true"] { background: #eee8ff; border-color: #6c4cf1; color: #4823b2; }
.profile-note { color: var(--text-dim, #545168); font-size: .875rem; margin: 8px 0; }
.profile-error { color: #a1242d; }
.profile-preview { min-height: 3.4rem; padding: 12px; border-radius: 12px; background: #f4f0ff; }
.profile-side > * + * { margin-top: 14px; }
.profile-side textarea { min-height: 105px; resize: vertical; }
.profile-name { font-size: 1.15rem; }
.profile-name-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); }
.profile-guide { max-width: 850px; margin: 0 auto; }
.profile-guide p { margin: 10px 0 18px; }
.profile-guide a { text-decoration: underline; text-underline-offset: 3px; }
.profile-font-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: start; min-height: 46px; }
.profile-font-row span:first-child { white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; min-width: 0; }
.profile-font-row small { color: var(--text-dim, #545168); flex: 0 1 auto; text-align: end; }
.profile-emoji-pack { margin: 10px 0; }
.profile-emoji-pack legend { font-weight: 650; }
.profile-emoji-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-emoji-bar output { flex: 1 1 100%; overflow-wrap: anywhere; font-size: 1.25rem; }
.profile-emoji-bar .chip[aria-pressed="true"] { border-color: #6c4cf1; background: #eee8ff; color: #4823b2; }
.profile-name-hero .wrap { text-align: center; }
.profile-name-hero .wrap p { margin-inline: auto; }
.profile-name-hero.hero { padding-inline: 0; }
#grid button.sym:focus-visible { outline: 2px solid #5638c6; outline-offset: 2px; }
@media (max-width: 760px) { .profile-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 430px) { .profile-fields { grid-template-columns: minmax(0, 1fr); } }
