:root {
    --bg:#050807;
    --card:#101613;
    --card2:#151d19;
    --border:rgba(255,255,255,.08);
    --green:#36e66b;
    --green-soft:rgba(54,230,107,.11);
    --text:#fff;
    --soft:#929b97;
}

* { box-sizing:border-box; }

html,
body {
    margin:0;
    min-height:100%;
    background:
        radial-gradient(circle at 50% -8%,rgba(54,230,107,.09),transparent 30%),
        var(--bg);
    color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

body { min-height:100dvh; }

button,
input { font:inherit; }

.register-shell {
    width:min(100%,620px);
    min-height:100dvh;
    margin:0 auto;
    padding:
        calc(14px + env(safe-area-inset-top))
        13px
        calc(22px + env(safe-area-inset-bottom));
}

.register-header {
    display:grid;
    grid-template-columns:47px minmax(0,1fr);
    gap:10px;
    align-items:center;
    margin-bottom:9px;
}

.brand-mark {
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border:1px solid rgba(54,230,107,.27);
    border-radius:14px;
    background:var(--green-soft);
    color:var(--green);
    font-size:21px;
    font-weight:950;
}

.register-header span,
.eyebrow {
    color:var(--green);
    font-size:12px;
    font-weight:900;
    letter-spacing:.8px;
}

.register-header h1 {
    margin:2px 0 0;
    font-size:20px;
}

.info-card {
    display:grid;
    grid-template-columns:30px minmax(0,1fr);
    gap:8px;
    align-items:start;
    padding:9px;
    margin-bottom:8px;
    border:1px solid rgba(54,230,107,.10);
    border-radius:11px;
    background:rgba(54,230,107,.025);
}

.info-card > span {
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:var(--green-soft);
    color:var(--green);
    font-weight:900;
}

.info-card p {
    margin:2px 0 0;
    color:var(--soft);
    font-size:12px;
    line-height:1.45;
}

.register-form {
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-card,
.id-preview-card {
    padding:13px;
    border:1px solid var(--border);
    border-radius:14px;
    background:linear-gradient(145deg,var(--card2),var(--card));
}

.form-card h2 {
    margin:3px 0 10px;
    font-size:15px;
}

.field {
    display:block;
    margin-bottom:9px;
}

.field:last-child { margin-bottom:0; }

.field > span {
    display:block;
    margin-bottom:5px;
    color:var(--soft);
    font-size:12px;
}

.field input {
    width:100%;
    height:46px;
    padding:0 10px;
    border:1px solid var(--border);
    outline:0;
    border-radius:10px;
    background:#0b100d;
    color:white;
    font-size:12px;
}

.field input:focus {
    border-color:rgba(54,230,107,.35);
    box-shadow:0 0 0 3px rgba(54,230,107,.05);
}

.two-column {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
}

.id-preview-card {
    border-color:rgba(54,230,107,.13);
    background:
        radial-gradient(circle at 100% 0,rgba(54,230,107,.06),transparent 36%),
        var(--card);
    text-align:center;
}

.id-preview-card > span {
    display:block;
    color:var(--soft);
    font-size:12px;
}

.id-preview-card > strong {
    display:block;
    margin:4px 0;
    color:var(--green);
    font-size:22px;
    letter-spacing:1px;
}

.id-preview-card p {
    margin:0;
    color:var(--soft);
    font-size:12px;
    line-height:1.4;
}

.create-button,
.back-button {
    width:100%;
    min-height:48px;
    border-radius:11px;
    cursor:pointer;
}

.create-button {
    border:0;
    background:linear-gradient(145deg,#49ef7d,#22bd54);
    color:#041007;
    font-weight:900;
}

.back-button {
    border:1px solid var(--border);
    background:var(--card);
    color:white;
    font-size:12px;
}

.toast {
    position:fixed;
    z-index:500;
    left:50%;
    bottom:calc(15px + env(safe-area-inset-bottom));
    max-width:calc(100% - 30px);
    padding:9px 13px;
    opacity:0;
    visibility:hidden;
    transform:translate(-50%,10px);
    border:1px solid rgba(54,230,107,.20);
    border-radius:999px;
    background:#111814;
    color:white;
    font-size:12px;
    transition:.2s ease;
}

.toast.show {
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
}

@media (max-width:400px) {
    .two-column {
        grid-template-columns:1fr;
    }
}


/* =========================================================
   PASO 30 — REGISTRO LEGIBLE Y MÁS COMPACTO
========================================================= */
.register-shell {
    padding:
        calc(9px + env(safe-area-inset-top))
        12px
        calc(14px + env(safe-area-inset-bottom));
}

.register-header {
    margin-bottom:6px;
}

.register-header span,
.eyebrow {
    font-size:12px;
}

.register-header h1 {
    font-size:19px;
}

.info-card {
    padding:8px;
    margin-bottom:6px;
}

.info-card p {
    font-size:12px;
    line-height:1.35;
}

.register-form {
    gap:6px;
}

.form-card,
.id-preview-card {
    padding:11px;
    border-radius:12px;
}

.form-card h2 {
    margin:2px 0 7px;
    font-size:15px;
}

.field {
    margin-bottom:7px;
}

.field > span {
    margin-bottom:4px;
    font-size:12px;
}

.field input {
    height:43px;
    font-size:13.5px;
}

.id-preview-card > span {
    font-size:12px;
}

.id-preview-card > strong {
    margin:3px 0;
    font-size:21px;
}

.id-preview-card p {
    font-size:12px;
}

.create-button,
.back-button {
    min-height:43px;
    font-size:12px;
}

@media (max-height:760px) {
    .register-header .brand-mark {
        width:40px;
        height:40px;
    }

    .info-card {
        padding:7px;
    }

    .form-card,
    .id-preview-card {
        padding:9px 10px;
    }

    .field input {
        height:41px;
    }
}


/* PASO 32 — registro sin logo gráfico */
.register-header {
    margin-bottom:7px !important;
}


/* PASO 39 — nombre único y foto */
.register-header { grid-template-columns: 1fr !important; }
.registration-photo-card { margin-bottom: 0; }
.name-availability { display:block; margin-top:4px; color:#7f8984; font-size:12px !important; }
.name-availability.available { color:#36e66b; }
.name-availability.unavailable { color:#ff8176; }


/* PASO 41 — registro sin foto ni explicación duplicada */
.register-form { margin-top: 0 !important; }
.registration-photo-card, .info-card { display:none !important; }

/* KOVRA registration — explicit initial workspace selection */
.workspace-choice-intro{margin:0 0 10px;color:var(--auth-muted,#9fb0a5);font-size:12px;line-height:1.4}
.workspace-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.workspace-choice-card{
  position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:10px;
  min-height:76px;padding:12px;border:1px solid rgba(143,170,151,.2);border-radius:14px;
  background:rgba(255,255,255,.025);cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease
}
.workspace-choice-card:hover{transform:translateY(-1px);border-color:rgba(54,230,107,.34)}
.workspace-choice-card input{position:absolute;opacity:0;pointer-events:none}
.workspace-choice-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:rgba(54,230,107,.1);color:#36e66b;font-size:18px;font-weight:900}
.workspace-choice-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.workspace-choice-copy strong{font-size:14px;line-height:1.15}
.workspace-choice-copy small{font-size:12px;line-height:1.3;color:var(--auth-muted,#9fb0a5)}
.workspace-choice-check{width:22px;height:22px;display:grid;place-items:center;border-radius:999px;border:1px solid rgba(143,170,151,.25);color:transparent;font-weight:900}
.workspace-choice-card:has(input:checked){border-color:#36e66b;background:rgba(54,230,107,.075);box-shadow:0 0 0 1px rgba(54,230,107,.12) inset}
.workspace-choice-card:has(input:checked) .workspace-choice-check{background:#36e66b;border-color:#36e66b;color:#07150b}
.workspace-choice-help{display:block;margin-top:8px;color:var(--auth-muted,#9fb0a5);font-size:12px;line-height:1.35}
@media(max-width:620px){.workspace-choice-grid{grid-template-columns:1fr}.workspace-choice-card{min-height:70px}}
