:root {
    --pink: #ed1685;
    --ink: #101010;
    --gray: #f4f4f5;
    font-family: Verdana, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
a,
input,
textarea,
select {
    font: inherit;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
a {
    color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #a80c5a;
    outline-offset: 3px;
}
button {
    border: 1px solid #ddd;
    background: white;
    padding: 11px 17px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}
button.primary,
.primary {
    background: #101010;
    color: white;
    border-color: #101010;
}
.pink {
    color: #b30960;
}
.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 252px 1fr;
}
.sidebar {
    background: #101010;
    color: white;
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.wordmark {
    letter-spacing: 0.15em;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
}
.wordmark small {
    display: block;
    letter-spacing: 0.25em;
    font-size: 9px;
    color: #b6b6bc;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    font-weight: bold;
    text-transform: uppercase;
    color: #737377;
}
.sidebar .eyebrow {
    color: #b5b5bb;
}
.sidebar nav {
    display: grid;
    gap: 5px;
    margin-top: 32px;
}
.sidebar button {
    background: transparent;
    color: #c7c7cc;
    border: 0;
    text-align: left;
    padding: 13px 10px;
    font-size: 11px;
    line-height: 1.6;
    display: flex;
    gap: 12px;
}
.sidebar button.active {
    background: #292929;
    color: white;
    border-left: 2px solid var(--pink);
    border-radius: 0 6px 6px 0;
}
.sidebar button span {
    color: #bcbcc2;
}
.sidefoot {
    margin-top: auto;
    font-size: 10px;
    color: #b5b5bb;
    line-height: 1.8;
}
.sidebar a {
    display: block;
    margin-top: 10px;
}
.main {
    padding: 34px 5vw 60px;
    min-width: 0;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
    gap: 16px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    background: #f3f3f5;
    border-radius: 30px;
    font-size: 10px;
}
.dot {
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
}
.content {
    max-width: 920px;
    margin: 48px auto;
}
.hero {
    max-width: 760px;
}
h1 {
    font-size: clamp(32px, 4.2vw, 62px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.055em;
    margin: 22px 0;
}
h2 {
    font-size: 23px;
    font-weight: 500;
    letter-spacing: -0.035em;
}
h3 {
    font-size: 14px;
}
p {
    line-height: 1.8;
}
.lead {
    font-size: 15px;
    color: #626267;
    max-width: 650px;
}
.overline {
    width: 42px;
    height: 4px;
    background: var(--pink);
    margin-bottom: 26px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    margin: 36px 0;
}
.stat {
    padding: 26px;
    border-right: 1px solid #e5e5e7;
}
.stat:last-child {
    border: 0;
}
.stat strong {
    font-size: 32px;
    font-weight: 500;
    display: block;
    letter-spacing: -0.06em;
}
.stat span {
    font-size: 11px;
    color: #626267;
}
.muted {
    font-size: 11px;
    color: #65656c;
    line-height: 1.8;
}
.panel {
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    padding: 25px;
    margin: 22px 0;
}
.tint {
    background: var(--gray);
}
.row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.between {
    justify-content: space-between;
}
.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid #eee;
    gap: 12px;
}
.progress {
    height: 4px;
    background: #eee;
    margin: 20px 0 34px;
    border-radius: 8px;
}
.progress div {
    height: 4px;
    background: var(--pink);
    transition: width 0.3s;
}
.question {
    border-top: 1px solid #e7e7e9;
    padding: 28px 0;
}
.question label,
.q-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 13px;
}
.qid {
    color: #a70b5a;
    font-size: 10px;
    margin-right: 12px;
}
.field {
    display: block;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 13px 14px;
    width: 100%;
    background: white;
    font-size: 13px;
    min-height: 46px;
}
.field:focus {
    border-color: #b30960;
}
textarea.field {
    min-height: 115px;
    resize: vertical;
}
.choices {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.choices button.selected {
    background: #fff0f7;
    border-color: #b30960;
    color: #a70b5a;
}
.error {
    color: #a1142f;
    font-size: 12px;
    line-height: 1.8;
}
.notice {
    border-left: 3px solid var(--pink);
    background: #faf4f7;
    padding: 15px 18px;
    font-size: 12px;
    line-height: 1.8;
    margin: 20px 0;
}
.bipolar {
    padding: 18px 0;
    border-bottom: 1px solid #e7e7e9;
}
.bipolar .ends {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
}
.bipolar .choices {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.bipolar button {
    padding: 8px;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.metric {
    font-size: 30px;
    letter-spacing: -0.05em;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    text-align: left;
}
td,
th {
    padding: 16px 10px;
    border-bottom: 1px solid #e5e5e7;
    vertical-align: top;
}
th {
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #67676e;
}
.tablewrap {
    overflow: auto;
}
.link {
    color: #a70b5a;
    text-decoration: underline;
}
.mobile-nav {
    display: none;
}
.number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f3f3f5;
    border-radius: 50%;
    font-size: 10px;
}
.check {
    accent-color: #b30960;
    width: 18px;
    height: 18px;
}
.footer {
    margin-top: 50px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}
.finding {
    border-left: 2px solid var(--pink);
    padding: 5px 0 5px 18px;
    margin: 25px 0;
}
.finding p {
    white-space: pre-wrap;
    font-size: 13px;
}
.skip {
    position: absolute;
    top: -100px;
}
.skip:focus {
    top: 10px;
    background: white;
    padding: 10px;
    z-index: 100;
}
.login {
    max-width: 440px;
    margin: 70px auto;
}
.login .field {
    margin: 12px 0;
}
.wordmark-temp {
    font-size: 9px;
    color: #b5b5bb;
    margin-top: 9px;
}
.empty {
    padding: 35px 15px;
    text-align: center;
    color: #65656c;
}
.bartext {
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}
.delete {
    color: #a1142f;
}
.report-editor {
    min-height: 160px;
}
.file {
    padding: 12px;
    background: #f4f4f5;
    margin: 8px 0;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
input[type="file"] {
    max-width: 100%;
    font-size: 12px;
}
.pending {
    font-size: 11px;
    color: #a1142f;
}
.readonly .field {
    background: #f6f6f7;
}
@media (max-width: 900px) {
    .shell {
        grid-template-columns: 210px 1fr;
    }
    .sidebar {
        padding: 25px 16px;
    }
    .main {
        padding: 24px;
    }
    .stats .stat {
        padding: 18px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 680px) {
    .shell {
        display: block;
    }
    .sidebar {
        height: auto;
        position: relative;
        padding: 20px;
    }
    .sidebar nav,
    .sidefoot,
    .sidebar > .eyebrow {
        display: none;
    }
    .wordmark {
        font-size: 12px;
    }
    .wordmark-temp {
        display: none;
    }
    .mobile-nav {
        display: block;
        width: 100%;
        margin-top: 18px;
        padding: 10px;
        background: #252525;
        border: 1px solid #666;
        color: white;
        border-radius: 5px;
    }
    .main {
        padding: 22px 18px 45px;
    }
    .topbar {
        padding-bottom: 18px;
    }
    .content {
        margin: 32px auto;
    }
    .stats {
        margin: 25px 0;
    }
    .stat {
        padding: 15px !important;
    }
    .stat strong {
        font-size: 27px;
    }
    .stat span {
        font-size: 9px;
    }
    h1 {
        font-size: 38px;
    }
    .lead {
        font-size: 13px;
    }
    .panel {
        padding: 18px;
    }
    .topbar > span {
        max-width: 62%;
    }
    .actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 14px 0;
        z-index: 5;
    }
    .bipolar .choices {
        gap: 4px;
    }
    .bipolar button {
        padding: 8px 2px;
    }
    td,
    th {
        padding: 12px 8px;
    }
}
@media print {
    .sidebar,
    .topbar,
    .actions,
    button,
    .mobile-nav {
        display: none !important;
    }
    .shell {
        display: block;
    }
    .main {
        padding: 0;
    }
    .content {
        margin: 0;
        max-width: none;
    }
    .finding {
        break-inside: avoid;
    }
}

/* The demonstration exposes working tools before any welcome content. */
.demo-toolbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 28px;
    background: #fff;
    border-bottom: 2px solid #ed1685;
    box-shadow: 0 3px 20px #00000009;
}
.demo-toolbar-title strong {
    display: block;
    font-size: 13px;
}
.demo-toolbar-title span {
    display: block;
    font-size: 10px;
    color: #626267;
    margin-top: 5px;
}
.demo-toolbar nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.demo-toolbar button {
    font-size: 11px;
    padding: 12px 15px;
}
.demo-toolbar button.selected {
    background: #101010;
    color: white;
    border-color: #101010;
}
.demo-workspace .sidebar {
    top: 82px;
    height: calc(100vh - 82px);
}
@media (max-width: 1000px) {
    .demo-toolbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 13px 18px;
        gap: 10px;
    }
    .demo-workspace .sidebar {
        top: 125px;
        height: calc(100vh - 125px);
    }
}
@media (max-width: 680px) {
    .demo-toolbar {
        position: relative;
    }
    .demo-toolbar nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        width: 100%;
    }
    .demo-toolbar button {
        text-align: left;
        font-size: 12px;
        min-height: 44px;
    }
    .demo-workspace .sidebar {
        top: 0;
        height: auto;
    }
    .demo-workspace .content {
        margin-top: 25px;
    }
}
.demo-entry-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.demo-entry-actions a {
    display: inline-flex;
    align-items: center;
    padding: 13px 18px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
}
.demo-entry-actions .demo-entry-primary {
    background: #101010;
    color: #fff;
    border-color: #101010;
}

[hidden] {
    display: none !important;
}
.brand-nav a {
    display: block;
    margin: 5px 0;
    padding: 12px 10px;
    color: #c7c7cc;
    text-decoration: none;
    font-size: 12px;
}
.brand-nav a.active {
    background: #292929;
    border-left: 2px solid #ed1685;
    color: white;
}
.dialog {
    width: min(620px, 95vw);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 28px;
}
.dialog::backdrop {
    background: #0008;
}
.dialog .field {
    margin: 8px 0 16px;
}
.loading {
    padding: 30px;
    color: #65656c;
}
.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.link-button {
    background: none;
    border: 0;
    color: #a70b5a;
    text-decoration: underline;
    padding: 5px;
}
.columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.report-head {
    scroll-margin-top: 30px;
}
.matrix-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 12px;
}
.login label {
    display: block;
    font-size: 12px;
}
.shell .sidebar .btn {
    color: white;
    background: #252525;
}
.question:target {
    box-shadow: 0 0 0 2px #ed1685;
    padding: 22px;
    border-radius: 6px;
}
.module-pending {
    color: #a1142f;
}
.offline {
    color: #a1142f;
}
.btn.pink-btn {
    background: #101010;
    color: white;
}
textarea {
    line-height: 1.7;
}
dialog form {
    margin-top: 16px;
}
@media (max-width: 680px) {
    .columns {
        grid-template-columns: 1fr;
    }
    .sidebar {
        height: auto;
    }
    .brand-nav {
        display: flex;
        flex-wrap: wrap;
        margin-top: 20px;
    }
    .brand-nav a {
        font-size: 10px;
        padding: 6px;
    }
    .sidebar .wordmark {
        display: inline-block;
    }
}
/* Versión 1 · preregistro */
.reg-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 28px;
    min-width: 0;
}
.reg-form legend {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a70b5a;
    margin-bottom: 14px;
}
.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.reg-grid .wide {
    grid-column: 1 / -1;
}
.reg-grid label {
    display: block;
    font-size: 13px;
    font-weight: 500;
}
.reg-grid .field {
    margin-top: 6px;
}
.reg-grid textarea.field {
    min-height: 80px;
}
.reg-grid .error {
    margin: 6px 0 0;
}
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.profile-list {
    display: grid;
    grid-template-columns: minmax(150px, 34%) 1fr;
    gap: 8px 18px;
    margin: 0;
    font-size: 13px;
}
.profile-list dt {
    color: #666;
}
.profile-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.resume-link {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.resume-link input {
    flex: 1 1 260px;
    font-family: monospace;
    font-size: 12px;
}
@media (max-width: 900px) {
    .reg-grid,
    .profile-list {
        grid-template-columns: 1fr;
    }
    .profile-list dt {
        margin-top: 6px;
    }
}
