.profile-editor-item.profile-editor-item--link { grid-template-columns:22px minmax(0,1fr); }
@media (min-width:992px) {
    .profile-editor-panel:has([data-editor-panel="links"].is-active) { height:100%; max-height:100%; }
}

.profile-visitor-preview[data-profile-theme] .profile-visitor-link-layouts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:12px; }
.profile-visitor-preview[data-profile-theme] .profile-visitor-link-layouts > [data-link-layout] { min-width:0; grid-column:1 / -1; }
.profile-visitor-preview[data-profile-theme] .profile-visitor-link-layouts > [data-link-layout="grid"] { grid-column:span 1; }
.profile-visitor-preview[data-profile-theme] .profile-visitor-link-layouts > :is([data-link-layout="feature"],[data-link-layout="grid"]) {
    display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0;
    padding:0; border:0; border-radius:12px; overflow:hidden; text-decoration:none;
    background:var(--visitor-surface,rgba(255,255,255,.72)); color:var(--visitor-heading,#10175d);
    box-shadow:0 4px 18px rgb(0 0 0 / 5%);
}
.profile-visitor-preview[data-profile-theme] :is([data-link-layout="feature"],[data-link-layout="grid"]) .profile-visitor-preview-link-media {
    width:100%; height:auto; aspect-ratio:16 / 9; flex:0 0 auto; border-radius:0;
    background:var(--visitor-surface,rgba(255,255,255,.25)); color:inherit; font-size:32px;
}
.profile-visitor-preview[data-profile-theme] [data-link-layout="grid"] .profile-visitor-preview-link-media { aspect-ratio:4 / 5; }
.profile-visitor-preview[data-profile-theme] :is([data-link-layout="feature"],[data-link-layout="grid"]) .profile-visitor-preview-link-media img { display:block; width:100%; height:100%; object-fit:cover; }
.profile-visitor-preview[data-profile-theme] :is([data-link-layout="feature"],[data-link-layout="grid"]) .profile-visitor-preview-link-media img.is-favicon { box-sizing:border-box; padding:28px; object-fit:contain; }
.profile-visitor-preview[data-profile-theme] :is([data-link-layout="feature"],[data-link-layout="grid"]) > strong {
    display:block; flex:1; padding:15px 14px; color:inherit; font-size:15px; line-height:1.4;
    white-space:normal; overflow-wrap:anywhere; text-overflow:clip; font-weight:700;
}
@media (max-width:575px) {
    .profile-editor-item.profile-editor-item--link { grid-template-columns:22px minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) { .profile-visitor-link-layouts > a { transition:none; } }
