/* Constructor de esquema — estilos globales (cargados desde _Host.cshtml; el bundle scoped está desactivado). */

.form-schema-builder.form-schema-builder--premium {
    --fsb-primary: var(--cicumba-primary, #8bbaa5);
    --fsb-primary-dark: var(--cicumba-dark, #4a7565);
    --fsb-surface: var(--cicumba-bg-card, #ffffff);
    --fsb-surface-2: #f4faf7;
    --fsb-border: var(--cicumba-border, rgba(139, 186, 165, 0.18));
    --fsb-border-strong: rgba(74, 117, 101, 0.28);
    --fsb-text: #2d4a3e;
    --fsb-text-muted: var(--cicumba-text-secondary, #6a8276);
    --fsb-radius: var(--cicumba-radius-lg, 14px);
    --fsb-radius-sm: var(--cicumba-radius-md, 10px);
    --fsb-shadow: var(--cicumba-shadow-md, 0 4px 24px rgba(45, 63, 54, 0.08));
    --fsb-shadow-lg: var(--cicumba-shadow-lg, 0 12px 40px rgba(45, 63, 54, 0.12));

    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    position: relative;
    border-radius: var(--fsb-radius);
    border: 1px solid var(--fsb-border-strong);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 250, 247, 0.99) 40%, rgba(255, 255, 255, 1) 100%);
    box-shadow: var(--fsb-shadow);
    overflow: hidden;
    font-family: inherit;
}

.form-schema-builder.form-schema-builder--premium *,
.form-schema-builder.form-schema-builder--premium *::before,
.form-schema-builder.form-schema-builder--premium *::after {
    box-sizing: border-box;
}

.form-schema-builder.form-schema-builder--premium button,
.form-schema-builder.form-schema-builder--premium input,
.form-schema-builder.form-schema-builder--premium select,
.form-schema-builder.form-schema-builder--premium textarea {
    font-family: inherit;
}

.form-schema-builder--has-error {
    border-color: rgba(231, 76, 60, 0.55);
    box-shadow: 0 10px 28px rgba(231, 76, 60, 0.2), var(--fsb-shadow);
}

.form-schema-builder--premium::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(107, 158, 132, 0.35), rgba(160, 204, 184, 0.2), transparent 55%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* —— Hero —— */
.form-schema-builder__hero {
    position: relative;
    padding: 0;
    margin: 0;
    border: none;
}

.form-schema-builder__hero-accent {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--fsb-primary) 0%, #a0ccb8 45%, #8bbaa5 100%);
}

.form-schema-builder__hero-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px 14px;
}

.form-schema-builder__hero-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.form-schema-builder__hero-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(139, 186, 165, 0.28) 0%, rgba(107, 158, 132, 0.14) 100%);
    border: 1px solid rgba(107, 158, 132, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    position: relative;
}

.form-schema-builder__hero-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 12px;
    margin: -6px 0 0 -8px;
    border: 2px solid var(--fsb-primary-dark);
    border-radius: 3px;
    opacity: 0.85;
}

.form-schema-builder__hero-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 2px;
    margin: -1px 0 0 -4px;
    background: var(--fsb-primary-dark);
    border-radius: 1px;
    opacity: 0.7;
}

.form-schema-builder__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fsb-text);
    line-height: 1.25;
}

.form-schema-builder__hint {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--fsb-text-muted);
}

.form-schema-builder__hint strong {
    color: var(--fsb-primary-dark);
    font-weight: 600;
}

/* —— Alertas —— */
.form-schema-builder__alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 16px 16px;
    padding: 12px 14px;
    border-radius: var(--fsb-radius-sm);
    font-size: 0.88rem;
    line-height: 1.45;
}

.form-schema-builder__alert--error {
    background: linear-gradient(135deg, #fff5f5 0%, #fdecea 100%);
    border: 2px solid #e74c3c;
    color: #6b2a24;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.22);
}

.form-schema-builder__alert-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.form-schema-builder__alert-content {
    display: grid;
    gap: 3px;
}

.form-schema-builder__alert-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b42318;
}

.form-schema-builder__alert-message {
    font-size: 0.95rem;
    font-weight: 700;
    color: #7a271a;
}

/* —— Tarjetas —— */
.form-schema-builder__card {
    margin: 0 16px 26px;
    border-radius: var(--fsb-radius-sm);
    background: var(--fsb-surface);
    border: 1px solid var(--fsb-border);
    box-shadow: 0 2px 12px rgba(45, 63, 54, 0.05);
    overflow: hidden;
}

.form-schema-builder__card:not(.form-schema-builder__card--danger) {
    border: 1px solid rgba(107, 158, 132, 0.34);
    background: linear-gradient(180deg, rgba(244, 250, 247, 0.68) 0%, rgba(255, 255, 255, 0.98) 34%);
    box-shadow: 0 8px 24px rgba(45, 63, 54, 0.09);
}

.form-schema-builder__card--danger {
    border-color: #f0c4c0;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.08);
}

.form-schema-builder__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(107, 158, 132, 0.08) 0%, rgba(244, 250, 247, 0.5) 100%);
    border-bottom: 1px solid var(--fsb-border);
}

.form-schema-builder__card-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.form-schema-builder__card-icon {
    font-size: 1rem;
    opacity: 0.75;
}

.form-schema-builder__card-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--fsb-text);
    letter-spacing: -0.01em;
}

.form-schema-builder__chip {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(107, 158, 132, 0.15);
    color: var(--fsb-primary-dark);
    border: 1px solid rgba(107, 158, 132, 0.25);
}

.form-schema-builder__chip--warn {
    background: rgba(231, 76, 60, 0.1);
    color: #a93226;
    border-color: rgba(231, 76, 60, 0.22);
}

.form-schema-builder__chip--soft {
    background: rgba(45, 63, 54, 0.06);
    color: var(--fsb-text-muted);
    border-color: var(--fsb-border);
}

.form-schema-builder__card-body {
    padding: 16px;
}

.form-schema-builder__card-lead {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--fsb-text-muted);
    line-height: 1.5;
}

.form-schema-builder__label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 6px;
    color: var(--fsb-text);
}

/* —— Toolbar y botones —— */
.form-schema-builder__toolbar {
    margin-bottom: 14px;
}

.form-schema-builder__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.form-schema-builder__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-schema-builder__btn--primary {
    background: linear-gradient(180deg, #7aab95 0%, var(--fsb-primary) 100%);
    color: #fff;
    border-color: rgba(45, 63, 54, 0.12);
    box-shadow: 0 2px 8px rgba(107, 158, 132, 0.35);
}

.form-schema-builder__btn--primary:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(107, 158, 132, 0.45);
}

.form-schema-builder__btn-plus {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 700;
}

.form-schema-builder__btn--secondary {
    background: var(--fsb-surface);
    color: var(--fsb-text);
    border-color: var(--fsb-border-strong);
}

.form-schema-builder__btn--ghost {
    background: transparent;
    color: #a93226;
    border-color: rgba(231, 76, 60, 0.35);
}

.form-schema-builder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* —— Tabla —— */
.form-schema-builder__table-shell {
    border-radius: 12px;
    border: 1px solid var(--fsb-border);
    background: var(--fsb-surface-2);
    padding: 4px;
}

.form-schema-builder__table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    background: var(--fsb-surface);
}

.form-schema-builder__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
}

.form-schema-builder__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fsb-text-muted);
    background: linear-gradient(180deg, #f8fcfa 0%, #eef6f1 100%);
    border-bottom: 1px solid var(--fsb-border);
}

.form-schema-builder__table tbody tr {
    transition: background 0.12s ease;
}

.form-schema-builder__table tbody tr:nth-child(even) {
    background: rgba(139, 186, 165, 0.04);
}

.form-schema-builder__table tbody tr:hover {
    background: rgba(107, 158, 132, 0.09);
}

.form-schema-builder__row--error {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.08), rgba(255, 255, 255, 0));
}

.form-schema-builder__table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(74, 117, 101, 0.1);
}

.form-schema-builder__table tbody tr:last-child td {
    border-bottom: none;
}

.form-schema-builder__th-narrow {
    width: 40px;
    text-align: center !important;
}

.form-schema-builder__th-center {
    width: 56px;
    text-align: center !important;
}

.form-schema-builder__th-actions {
    width: 100px;
}

.form-schema-builder__td-center {
    text-align: center;
}

.form-schema-builder__td-actions {
    white-space: nowrap;
}

.form-schema-builder__td-muted {
    color: var(--fsb-text-muted);
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    width: 48px;
}

.form-schema-builder__order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(107, 158, 132, 0.12);
    border: 1px solid rgba(107, 158, 132, 0.22);
    color: var(--fsb-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.form-schema-builder__req-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 9px;
    background: rgba(139, 186, 165, 0.08);
    border: 1px solid var(--fsb-border);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.form-schema-builder__req-toggle:has(.form-schema-builder__check:checked) {
    background: rgba(107, 158, 132, 0.18);
    border-color: rgba(107, 158, 132, 0.4);
}

.form-schema-builder__row-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
    background: rgba(244, 250, 247, 0.95);
    border: 1px solid var(--fsb-border);
}

.form-schema-builder__input,
.form-schema-builder__select,
.form-schema-builder__textarea {
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 0.86rem;
    border: 1px solid var(--fsb-border-strong);
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
    color: var(--fsb-text);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-schema-builder__input:focus,
.form-schema-builder__select:focus,
.form-schema-builder__textarea:focus {
    outline: none;
    border-color: var(--fsb-primary);
    box-shadow: 0 0 0 3px rgba(107, 158, 132, 0.2);
}

.form-schema-builder__input--error {
    border-color: rgba(231, 76, 60, 0.8);
    box-shadow: inset 0 0 0 1px rgba(231, 76, 60, 0.18);
    background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
}

.form-schema-builder__inline-error {
    margin-top: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #b42318;
}

.form-schema-builder__select {
    max-width: 100%;
    min-width: 110px;
    cursor: pointer;
}

.form-schema-builder__table th:nth-child(2),
.form-schema-builder__table th:nth-child(3) {
    min-width: 140px;
}

.form-schema-builder__table th:nth-child(4) {
    min-width: 120px;
}

.form-schema-builder__table th:nth-child(6) {
    min-width: 180px;
}

.form-schema-builder__textarea {
    max-width: 100%;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.78rem;
    resize: vertical;
    min-height: 52px;
}

.form-schema-builder__textarea--small {
    min-height: 48px;
}

.form-schema-builder__textarea--code {
    max-width: 100%;
    min-height: 200px;
}

.form-schema-builder__check {
    width: 18px;
    height: 18px;
    accent-color: var(--fsb-primary);
    cursor: pointer;
}

.form-schema-builder__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: var(--fsb-primary-dark);
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 2px rgba(45, 63, 54, 0.08);
    transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.form-schema-builder__icon-btn span {
    display: block;
    line-height: 1;
}

.form-schema-builder__icon-btn:hover:not(:disabled) {
    background: rgba(107, 158, 132, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(45, 63, 54, 0.1);
}

.form-schema-builder__icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.form-schema-builder__icon-btn--danger {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.08);
}

.form-schema-builder__icon-btn--danger:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.18);
    color: #922b21;
}

.form-schema-builder__list-builder {
    min-width: 260px;
    display: grid;
    gap: 6px;
}

.form-schema-builder__list-row {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) minmax(120px, 1.2fr) 30px;
    gap: 6px;
    align-items: center;
}

.form-schema-builder__list-input {
    width: 100%;
    font-size: 0.8rem;
    border: 1px solid var(--fsb-border-strong);
    border-radius: 7px;
    padding: 6px 8px;
    background: #fff;
    color: var(--fsb-text);
}

.form-schema-builder__list-input:focus {
    outline: none;
    border-color: var(--fsb-primary);
    box-shadow: 0 0 0 2px rgba(107, 158, 132, 0.16);
}

.form-schema-builder__list-actions {
    margin-top: 2px;
}

.form-schema-builder__btn--xs {
    padding: 4px 9px;
    font-size: 0.75rem;
    border-radius: 8px;
}

.form-schema-builder__list-json {
    margin-top: 2px;
}

.form-schema-builder__list-json > summary {
    cursor: pointer;
    font-size: 0.72rem;
    color: var(--fsb-text-muted);
    user-select: none;
}

.form-schema-builder__list-json > summary:hover {
    color: var(--fsb-primary-dark);
}

.form-schema-builder__muted {
    color: var(--fsb-text-muted);
    font-size: 0.85rem;
}

.form-schema-builder__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    margin-top: 8px;
    border-radius: 12px;
    border: 1px dashed var(--fsb-border-strong);
    background: rgba(244, 250, 247, 0.6);
    color: var(--fsb-text-muted);
    font-size: 0.88rem;
}

.form-schema-builder__empty-icon {
    font-size: 1.5rem;
    opacity: 0.35;
    margin-bottom: 8px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* —— Acordeones —— */
.form-schema-builder__acc {
    margin: 0 16px 16px;
    border-radius: var(--fsb-radius-sm);
    border: 1px solid var(--fsb-border);
    background: var(--fsb-surface);
    box-shadow: var(--fsb-shadow);
    overflow: hidden;
}

.form-schema-builder__acc--preview {
    margin-top: 10px;
}

.form-schema-builder__acc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(107, 158, 132, 0.07) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-bottom: 1px solid transparent;
    transition: background 0.15s ease;
}

.form-schema-builder__acc-summary::-webkit-details-marker {
    display: none;
}

.form-schema-builder__acc-summary:hover {
    background: linear-gradient(90deg, rgba(107, 158, 132, 0.12) 0%, #fff 100%);
}

.form-schema-builder__acc[open] > .form-schema-builder__acc-summary {
    border-bottom-color: var(--fsb-border);
}

.form-schema-builder__acc-summary-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.form-schema-builder__acc-ico {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--fsb-border);
    background: rgba(107, 158, 132, 0.1);
}

.form-schema-builder__acc-ico--preview::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 10px;
    margin: -5px 0 0 -7px;
    border: 2px solid var(--fsb-primary-dark);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.75;
}

.form-schema-builder__acc-ico--json::before {
    content: "\7B \7D";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    font-family: ui-monospace, monospace;
    color: var(--fsb-primary-dark);
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.form-schema-builder__acc-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fsb-text);
    letter-spacing: -0.01em;
}

.form-schema-builder__acc-chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--fsb-text-muted);
    border-bottom: 2px solid var(--fsb-text-muted);
    transform: rotate(45deg);
    margin-bottom: 4px;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.form-schema-builder__acc[open] .form-schema-builder__acc-chevron {
    transform: rotate(225deg);
    margin-top: 4px;
    margin-bottom: 0;
}

.form-schema-builder__acc-body {
    padding: 16px;
    background: linear-gradient(180deg, #fafcfb 0%, #fff 30%);
}

/* —— Simulador navegador —— */
.form-schema-builder__sim {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(45, 63, 54, 0.12);
    box-shadow: var(--fsb-shadow-lg);
    background: #e8ece9;
}

.form-schema-builder__sim-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #5c6670 0%, #4a535c 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.form-schema-builder__sim-dots {
    display: flex;
    gap: 6px;
}

.form-schema-builder__sim-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.form-schema-builder__sim-dots span:nth-child(1) {
    background: #ff5f57;
}

.form-schema-builder__sim-dots span:nth-child(2) {
    background: #febc2e;
}

.form-schema-builder__sim-dots span:nth-child(3) {
    background: #28c840;
}

.form-schema-builder__sim-url {
    flex: 1;
    font-size: 0.72rem;
    font-family: ui-monospace, monospace;
    color: rgba(255, 255, 255, 0.92);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-schema-builder__sim-page {
    padding: 20px 22px 24px;
    background: linear-gradient(180deg, #f6faf8 0%, #ffffff 28%);
    min-height: 120px;
}

.form-schema-builder__sim-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.form-schema-builder__sim-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: conic-gradient(from 210deg, #6b9e84, #a0ccb8, #7aab95, #6b9e84);
    box-shadow: 0 4px 14px rgba(107, 158, 132, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.form-schema-builder__sim-brand-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--fsb-text);
    letter-spacing: -0.02em;
}

.form-schema-builder__sim-brand-sub {
    font-size: 0.8rem;
    color: var(--fsb-text-muted);
    margin-top: 2px;
}

.form-schema-builder__sim-divider {
    height: 1px;
    margin: 18px 0 20px;
    background: linear-gradient(90deg, transparent, var(--fsb-border-strong), transparent);
}

.form-schema-builder__sim-empty {
    text-align: center;
    padding: 24px 16px;
    font-size: 0.88rem;
    color: var(--fsb-text-muted);
    border-radius: 12px;
    border: 1px dashed var(--fsb-border);
    background: rgba(255, 255, 255, 0.7);
}

.form-schema-builder__sim-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;
}

.form-schema-builder__sim-field {
    position: relative;
    padding: 14px 16px 14px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--fsb-border);
    box-shadow: 0 2px 10px rgba(45, 63, 54, 0.04);
}

.form-schema-builder__sim-field::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--fsb-primary);
}

.form-schema-builder__sim-field--str::before {
    background: linear-gradient(180deg, #6b9e84, #8bbaa5);
}

.form-schema-builder__sim-field--num::before {
    background: linear-gradient(180deg, #5dade2, #3498db);
}

.form-schema-builder__sim-field--date::before {
    background: linear-gradient(180deg, #af7ac5, #8e44ad);
}

.form-schema-builder__sim-field--bool::before {
    background: linear-gradient(180deg, #f4d03f, #f39c12);
}

.form-schema-builder__sim-field--sel::before {
    background: linear-gradient(180deg, #85c1e9, #2980b9);
}

.form-schema-builder__sim-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.form-schema-builder__sim-label {
    margin: 0;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--fsb-text);
}

.form-schema-builder__sim-req {
    color: #e74c3c;
    font-weight: 800;
    margin-left: 2px;
}

.form-schema-builder__dtype {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(107, 158, 132, 0.12);
    color: var(--fsb-primary-dark);
    border: 1px solid rgba(107, 158, 132, 0.2);
}

.form-schema-builder__sim-control {
    margin-top: 2px;
}

.form-schema-builder__sim-input {
    width: 100%;
    max-width: 100%;
    font-size: 0.9rem;
    border: 1px solid var(--fsb-border-strong);
    border-radius: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #fafcfb 0%, #fff 100%);
    color: var(--fsb-text-muted);
}

.form-schema-builder__sim-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    font-size: 0.88rem;
    color: var(--fsb-text-muted);
}

.form-schema-builder__sim-check {
    width: 18px;
    height: 18px;
    accent-color: var(--fsb-primary);
}

.form-schema-builder__sim-warn {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #a85a1a;
    font-weight: 500;
}

/* —— Ventana código JSON —— */
.form-schema-builder__code-window {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(45, 63, 54, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-schema-builder__code-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #3d4f48 0%, #2d3f36 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.form-schema-builder__code-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.form-schema-builder__code-filename {
    margin-left: auto;
    font-size: 0.72rem;
    font-family: ui-monospace, monospace;
    color: rgba(255, 255, 255, 0.65);
}

.form-schema-builder__pre {
    margin: 0;
    padding: 14px 16px;
    max-height: 280px;
    overflow: auto;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    background: linear-gradient(180deg, #1e2a24 0%, #162018 100%);
    color: #c8e6d4;
    border: none;
}

.form-schema-builder__pre code {
    font-family: inherit;
    color: inherit;
    white-space: pre;
}
