:root { color-scheme: dark; font: 16px/1.55 system-ui, sans-serif; color: #f5f2f2; background: #100e0f; --red: #c42438; --border: #40373a; }
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; }
a { color: inherit; }
.site-header, footer { background: #181517; display: flex; align-items: center; gap: 1.5rem; padding: 1rem max(5vw, 1rem); }
.site-header { justify-content: space-between; flex-wrap: wrap; }
.brand, nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand, nav a, .button { text-decoration: none; }
.brand { font-weight: 750; }
.brand img { object-fit: contain; }
main > section { margin-block: 0; padding: 2rem max(6vw, 1rem); border-bottom: 1px solid var(--border); }
main > .hero { min-height: 25rem; display: grid; align-items: center; background: radial-gradient(ellipse at 90% 70%, #41111b 0, #171013 52%, #100e0f 75%); }
.hero > div { max-width: 45rem; }
h1, h2 { line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); margin: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-block: 0 1rem; }
p { max-width: 64ch; }
button, .button, input { border-radius: .45rem; font: inherit; padding: .65rem .9rem; }
button, .button { display: inline-block; color: white; background: var(--red); border: 1px solid transparent; cursor: pointer; font-weight: 650; }
button:disabled { opacity: .5; cursor: default; }
input { background: #211b1d; border: 1px solid #72686c; color: inherit; max-width: 100%; }
label { display: grid; gap: .25rem; margin-bottom: .6rem; }
#pairing { max-width: 24rem; }
.toolbar { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; }
.toolbar label { margin: 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th,td { border-bottom: 1px solid var(--border); padding: .65rem; text-align: left; }
td button { margin: .15rem; }
dialog { width: min(520px, calc(100% - 2rem)); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
dialog::backdrop { background: #000b; }
#captcha { margin-block: .7rem; }
:focus-visible { outline: 3px solid #ff8191; outline-offset: 3px; }

[hidden] { display: none !important; }

.brand img { aspect-ratio: 1; border-radius: 50%; object-fit: cover; }


/* Telepat Player - Demostracion */
#demo-import {
    width: min(620px, calc(100% - 2rem));
    max-height: 88vh;
    overflow-y: auto;
}
#demo-import .demo-step {
    font-size: .82rem;
    color: #ff4564;
    margin: 1.3rem 0 .8rem;
    padding-top: .8rem;
    border-top: 1px solid var(--border);
}
#demo-import .demo-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}
#demo-import .demo-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: inherit;
}
#demo-import input[type=file] {
    padding: 1rem;
    border-style: dashed;
}
#demo-preview-rows {
    max-height: 280px;
    overflow: auto;
    margin: .8rem 0;
}
#demo-preview-rows label {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .6rem;
    border-bottom: 1px solid var(--border);
    overflow-wrap: anywhere;
}
#demo-preview-rows input[type=checkbox] {
    width: auto;
    flex-shrink: 0;
}
#demo-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin: 1rem 0;
}
#demo-tools label {
    flex-basis: 100%;
}
#demo-tools #demo-count {
    flex-basis: 100%;
}
