.ce-app { max-width: 48rem; margin: 1rem auto; padding: 1rem; font-family: system-ui,sans-serif; color: #1e2b3c; }
.ce-app * { box-sizing: border-box; }
.ce-app form, .ce-app article { border: 1px solid #ccd1d7; border-radius: .5rem; padding: 1rem; margin: 1rem 0; background: white; }
.ce-app label { display: block; margin-bottom: 1rem; }
.ce-app input { display: block; width: 100%; min-height: 2.75rem; padding: .6rem; font: inherit; border: 1px solid #6a7480; margin-top: .3rem; }
.ce-app input[type=hidden], .ce-app label:has(input[type=hidden]) { display: none; }
.ce-app button { min-height: 2.75rem; padding: .7rem 1rem; font: inherit; background: #174d93; color: white; border: 0; border-radius: .3rem; cursor: pointer; }
.ce-app button:disabled { opacity: .6; }
.ce-app :focus-visible { outline: 3px solid #b16800; outline-offset: 3px; }
.ce-app #profile-qr svg { width: min(100%,16rem); height: auto; background: white; }
.ce-app code { overflow-wrap: anywhere; }
.ce-app details { margin: 1rem 0; }
@media(max-width:30rem) { .ce-app { padding: .5rem; } }
.ce-app .ce-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.ce-app .ce-nav a { display: inline-block; min-height: 2.75rem; padding: .7rem 1rem; border: 1px solid #174d93; border-radius: .3rem; color: #174d93; text-decoration: none; }
.ce-app .ce-nav a[aria-current=page] { background: #174d93; color: white; }
.ce-app .ce-summary { border: 1px solid #ccd1d7; border-radius: .5rem; padding: 1rem; margin: 1rem 0; background: white; }
.ce-app .ce-event { display: flex; gap: 1rem; align-items: flex-start; }
.ce-app .ce-event p { margin: .25rem 0; }
.ce-app .ce-event h3 { margin: .2rem 0; }
.ce-soon { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: #b16800; font-weight: 700; }
.ce-logo { width: 3.5rem; height: 3.5rem; object-fit: contain; flex: 0 0 auto; border-radius: .4rem; background: #ffffff; border: 1px solid #e1e5ea; padding: .25rem; }
.ce-logo-none { display: inline-flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 700; font-size: 1.4rem; }
.ce-table { width: 100%; border-collapse: collapse; }
.ce-table th, .ce-table td { text-align: left; padding: .5rem; border-bottom: 1px solid #ccd1d7; }
.ce-app .ce-invite { background: #f0f2f4; border: 1px solid #b16800; border-radius: .5rem; padding: .75rem 1rem; }
.ce-app textarea { display: block; width: 100%; min-height: 5rem; padding: .6rem; font: inherit; border: 1px solid #6a7480; margin-top: .3rem; }
.ce-app select { display: block; width: 100%; min-height: 2.75rem; padding: .6rem; font: inherit; margin-top: .3rem; }
.ce-logo-dark { background: #1f2c3e !important; border-color: #1f2c3e !important; }
.ce-melink-badge { display: inline-flex; align-items: center; gap: .4rem; background: #1f2c3e; color: #c4a15c; padding: .25rem .6rem; border-radius: 1rem; font-size: .9rem; }
.ce-melink-badge img, .ce-melink-featured img { width: 1.4rem; height: 1.4rem; object-fit: contain; vertical-align: middle; }
.ce-melink-avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.ce-melink-featured { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ce-melink-featured li { border: 1px solid #ccd1d7; border-radius: .4rem; padding: .25rem .5rem; }

/* Community marks: legacy portal, event, upload and staff views. Preserve artwork and sizes. */
html body .ce-app .ce-logo,
html body .ce-app .ce-community-seal,
html body .ce-app .ce-community-seal>img,
html body .ce-app .ce-community-hero-logo,
html body .ce-app .ce-community-hero-logo>img,
html body .ce-app .ce-event-host img,
html body .ce-app img[data-logo-preview][alt="Vista previa de tu logo"],
html body .ce-app img[alt="Logo propuesto"]{border-radius:50%;overflow:hidden}
html body .ce-app .ce-community-seal>img,
html body .ce-app .ce-community-hero-logo>img{object-fit:contain}

html body .ce-app img[data-logo-preview][alt="Vista previa de tu logo"]{width:96px;height:96px;object-fit:contain}

html body .ce-app .ce-identity-seals .ce-community-seal{border-radius:50%}
html body .ce-app img[src$="/mil-espadas.png"]{background:#dee2e7}
html body .ce-app img[src$="/heidrun-20261102.webp"],html body .ce-app img[src$="/birka.png"]{background:#15202e}
