@import url("https://cdn.jsdelivr.net/npm/@fontsource/open-dyslexic@5.2.7/index.css");

:root {
    --negro: #121212;
    --beige: #E6D5B8;
    --gris-claro: #BDBDBD;
    --blanco: #ffffff;
    --page-bg: #393939;
    --text-base: #121212;
    --header-bg: #121212;
    --header-text: #BDBDBD;
    --menu-bg: #1d1d1d;
    --menu-text: #f4f4f4;
    --menu-text-muted: rgba(255,255,255,0.42);
    --card-bg: #3f3f3f;
    --card-text: #f4f1e8;
    --surface-bg: #ffffff;
    --surface-text: #121212;
    --success-text: #43d17c;
    --tab-bg: #1f1f1f;
    --tab-border: #575757;
    --tab-text: #ffffff;
    --tab-hover-border: #8a8a8a;
    --tab-active-bg: #2a2a2a;
    --tab-active-border: #d8d8d8;
    --tab-muted-text: #bdbdbd;
    --resource-card-bg: #171717;
    --resource-card-border: #575757;
    --resource-card-text: #ffffff;
    --resource-card-title-text: #ffffff;
    --resource-card-meta-text: #f2f2f2;
    --empty-history-border: #575757;
    --empty-history-bg: #171717;
    --empty-history-title: #ffffff;
    --empty-history-text: #bdbdbd;
    --right-panel-bg: #393939;
    --right-panel-text: #ffffff;
    --create-btn-bg: transparent;
    --create-btn-text: #ffffff;
    --create-btn-border: #ffffff;
    --create-btn-hover-bg: #012852;
    --dropzone-bg: #bdbdbd;
    --dropzone-text: #000000;
    --dropzone-border: #cccccc;
    --dropzone-hover-bg: #c5bebe;
    --dropzone-hover-border: #888888;
    --btn-secondary-bg: #121212;
    --btn-secondary-text: #bdbdbd;
    --btn-secondary-border: #333333;
    --btn-primary-bg: #121212;
    --btn-primary-text: #ffffff;
    --sidebar-bg: #bdbdbd;
    --sidebar-text: #121212;
    --panel-bg: #bdbdbd;
    --panel-text: #121212;
    --panel-title-text: #121212;
    --form-label-text: #121212;
    --form-input-bg: #ffffff;
    --form-input-text: #121212;
    --form-input-border: #cccccc;
    --form-accent: #121212;
    --form-error-text: #a40000;
}

body[data-theme="oscuro"] {
    --negro: #121212;
    --beige: #E6D5B8;
    --gris-claro: #BDBDBD;
    --blanco: #ffffff;
    --page-bg: #393939;
    --text-base: #121212;
    --header-bg: #121212;
    --header-text: #BDBDBD;
    --menu-bg: #1d1d1d;
    --menu-text: #f4f4f4;
    --menu-text-muted: rgba(255,255,255,0.42);
    --card-bg: #3f3f3f;
    --card-text: #f4f1e8;
    --surface-bg: #ffffff;
    --surface-text: #121212;
    --success-text: #43d17c;
    --tab-bg: #1f1f1f;
    --tab-border: #575757;
    --tab-text: #ffffff;
    --tab-hover-border: #8a8a8a;
    --tab-active-bg: #2a2a2a;
    --tab-active-border: #d8d8d8;
    --tab-muted-text: #bdbdbd;
    --resource-card-bg: #171717;
    --resource-card-border: #575757;
    --resource-card-text: #ffffff;
    --resource-card-title-text: #ffffff;
    --resource-card-meta-text: #f2f2f2;
    --empty-history-border: #575757;
    --empty-history-bg: #171717;
    --empty-history-title: #ffffff;
    --empty-history-text: #bdbdbd;
    --right-panel-bg: #393939;
    --right-panel-text: #ffffff;
    --create-btn-bg: transparent;
    --create-btn-text: #ffffff;
    --create-btn-border: #ffffff;
    --create-btn-hover-bg: #012852;
    --dropzone-bg: #bdbdbd;
    --dropzone-text: #000000;
    --dropzone-border: #cccccc;
    --dropzone-hover-bg: #c5bebe;
    --dropzone-hover-border: #888888;
    --btn-secondary-bg: #121212;
    --btn-secondary-text: #bdbdbd;
    --btn-secondary-border: #333333;
    --btn-primary-bg: #121212;
    --btn-primary-text: #ffffff;
    --sidebar-bg: #bdbdbd;
    --sidebar-text: #121212;
    --panel-bg: #bdbdbd;
    --panel-text: #121212;
    --panel-title-text: #121212;
    --form-label-text: #121212;
    --form-input-bg: #ffffff;
    --form-input-text: #121212;
    --form-input-border: #cccccc;
    --form-accent: #121212;
    --form-error-text: #a40000;
}

body[data-theme="claro"] {
    --negro: #bababa; /* No cabecera pero parte de abajo*/
    --beige: #000000; /* NO SE */
    --gris-claro: #000000; /* Letras */
    --blanco: #000000;
    --page-bg: #ffffff; /*No tocar -> Fondo */
    --text-base: #000000;
    --header-bg: #bababa; /*No tocar -> Cabecera */
    --header-text: #000000;
    --menu-bg: #bababa; /* No tocar -> desplegable 3 puntos*/
    --menu-text: #ffffff;
    --menu-text-muted: rgb(0, 0, 0); /* Palabra ayuda */
    --card-bg: #bababa; /* Cuadro configuracion */
    --card-text: #6a00ff;
    --surface-bg: #fbff00;
    --surface-text: #11ff00;
    --success-text: #ff0000;
    --tab-bg: #bababa; /* Compartido conmigo */
    --tab-border: #000000; /* Borde compartido conmigo */
    --tab-text: #000000; /* Letra mis recursos/configuracion */
    --tab-hover-border: #545353; /* Estar encima de compartido conmigo */
    --tab-active-bg: #bababa; /* Mis recursos */
    --tab-active-border: #000000; /* Borde mis recursos */
    --tab-muted-text: #f6ff00;
    --resource-card-bg: #ffffff; /* Fondo tarjetas recursos */
    --resource-card-border: #7b7b7b; /* Borde tarjetas recursos */
    --resource-card-text: #111111; /* Texto tarjetas recursos */
    --resource-card-title-text: #111111; /* Titulo tarjetas recursos */
    --resource-card-meta-text: #303030; /* Texto secundario tarjetas recursos */
    --empty-history-border: #8a8a8a; /* Borde bloque vacio */
    --empty-history-bg: #f6f6f6; /* Fondo bloque vacio */
    --empty-history-title: #111111; /* Titulo bloque vacio */
    --empty-history-text: #ff0000; /* Texto bloque vacio */
    --right-panel-bg: #ffffff; /* Fondo columna derecha */
    --right-panel-text: #000000; /* Texto columna derecha */
    --create-btn-bg: #e7e7e7; /* Fondo boton crear */
    --create-btn-text: #111111; /* Texto boton crear */
    --create-btn-border: #7b7b7b; /* Borde boton crear */
    --create-btn-hover-bg: #d6d6d6; /* Hover boton crear */
    --dropzone-bg: #d7d0d0;
    --dropzone-text: #111111;
    --dropzone-border: #8d8d8d;
    --dropzone-hover-bg: #cbc2c2;
    --dropzone-hover-border: #6f6f6f;
    --btn-secondary-bg: #121212;
    --btn-secondary-text: #f5f5f5;
    --btn-secondary-border: #121212;
    --btn-primary-bg: #121212;
    --btn-primary-text: #ffffff;
    --sidebar-bg: #bababa;
    --sidebar-text: #000000;
    --panel-bg: #bababa;
    --panel-text: #000000;
    --panel-title-text: #000000;
    --form-label-text: #000000;
    --form-input-bg: #ffffff;
    --form-input-text: #111111;
    --form-input-border: #7b7b7b;
    --form-accent: #121212;
    --form-error-text: #b00020;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'OpenDyslexic', 'Open Dyslexic', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--page-bg);
    color: var(--text-base);
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1.5rem 0;
    width: 100%;
}

.brand-clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.header-inner {
    width: 100%;
    margin: 0;
    padding: 0 1.4rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 10px 0;
}

.header-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1rem;
    min-width: 0;
}

.logo {
    height: 50px;
    width: auto;
    flex: 0 0 auto;
}

.site-title {
    color: var(--gris-claro);
    text-align: left;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-left: auto;
}

.main-nav a,
.nav-button {
    color: var(--gris-claro);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.main-nav > a:not(.auth-button):not(.nav-avatar-link) {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav > a:not(.auth-button):not(.nav-avatar-link):hover {
    background: rgba(255,255,255,0.12);
}

.nav-avatar-link {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    transition: transform 0.2s ease;
}

.nav-avatar-link:hover {
    transform: scale(1.08);
}

.nav-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.nav-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
}

.account-menu {
    position: relative;
}

.account-menu-trigger {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--gris-claro);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.account-menu-trigger:hover {
    transform: scale(1.08);
}

.account-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 0.4rem;
    border-radius: 14px;
    background: var(--menu-bg);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 40px rgba(0,0,0,0.34);
    z-index: 120;
}

.account-menu-item {
    width: 100%;
    display: block;
    padding: 0.85rem 0.9rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--menu-text);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.account-menu-item:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
}

.account-menu-item:disabled {
    color: var(--menu-text-muted);
    cursor: not-allowed;
}

.account-menu-item-danger {
    color: #ffd2d2;
}

.account-menu-form {
    margin: 0;
}

.resource-tab-button {
    background: var(--tab-bg);
    border: 1px solid var(--tab-border);
    border-radius: 10px;
    padding: 16px 18px;
    color: var(--tab-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.resource-tab-button:hover {
    border-color: var(--tab-hover-border);
    transform: translateY(-1px);
}

.resource-tab-button.is-active {
    background: var(--tab-active-bg);
    border-color: var(--tab-active-border);
}

.resource-tab-button h3 {
    margin: 0;
    color: var(--tab-text);
    font-size: 1.05rem;
}

.resource-tab-button p {
    margin: 8px 0 0;
    color: var(--tab-muted-text);
    font-size: 0.95rem;
    line-height: 1.45;
}

.recurso-card {
    background-color: var(--resource-card-bg);
    color: var(--resource-card-text);
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid var(--resource-card-border);
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.recurso-card form {
    justify-self: end;
}

.recurso-info {
    flex: 1;
    color: var(--resource-card-text);
}

.recurso-title-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.recurso-info strong {
    color: var(--resource-card-title-text);
}

.recurso-share-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(37, 196, 90, 0.16);
    border: 1px solid rgba(37, 196, 90, 0.45);
    color: #5ae08a;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.recurso-info br + * {
    color: var(--resource-card-meta-text);
}

.recurso-meta-line {
    color: var(--resource-card-meta-text);
}

.empty-history {
    margin: 12px 8px 0;
    padding: 24px 18px;
    border: 1px dashed var(--empty-history-border);
    border-radius: 10px;
    color: var(--empty-history-text);
    text-align: center;
    background-color: var(--empty-history-bg);
}

.empty-history h3 {
    margin: 0 0 10px;
    color: var(--empty-history-title);
    font-size: 1.1rem;
}

.empty-history p {
    margin: 0;
    color: var(--empty-history-text);
    line-height: 1.5;
}

.col-derecha {
    margin: 2rem 2rem 2rem 0;
    padding: 40px;
    color: var(--right-panel-text);
    background-color: var(--right-panel-bg);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow-y: auto;
    min-height: 0;
}

.btn-crear {
    background: var(--create-btn-bg);
    color: var(--create-btn-text);
    border: 1px solid var(--create-btn-border);
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 20px;
}

.btn-crear:hover {
    background-color: var(--create-btn-hover-bg);
}

.landing-page {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    gap: 38px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 34px;
    align-items: center;
    min-height: 68vh;
}

.landing-copy {
    display: grid;
    gap: 20px;
}

.landing-eyebrow,
.landing-section-kicker {
    margin: 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #d8b169;
    font-weight: 800;
}

.landing-copy h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(3rem, 7vw, 5.2rem);
    line-height: 0.96;
    color: #ffffff;
}

.landing-lead,
.landing-section-head p {
    margin: 0;
    max-width: 62ch;
    font-size: 1.14rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.landing-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.landing-cta-primary,
.landing-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-cta-primary {
    background: linear-gradient(135deg, #d8b169, #f2dec0);
    color: #171717;
    box-shadow: 0 18px 35px rgba(216, 177, 105, 0.22);
}

.landing-cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.landing-cta-primary:hover,
.landing-cta-secondary:hover {
    transform: translateY(-1px);
}

.landing-mini-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-mini-points span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

.landing-visual {
    position: relative;
    min-height: 540px;
    display: grid;
    place-items: center;
}

.landing-window {
    width: min(100%, 620px);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 241, 232, 0.88));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.landing-window-top {
    display: flex;
    gap: 8px;
    padding: 16px 18px;
    background: rgba(18, 18, 18, 0.06);
}

.landing-window-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.22);
}

.landing-window-body {
    display: grid;
    grid-template-columns: 94px 1fr;
    min-height: 400px;
}

.landing-window-sidebar {
    padding: 22px 14px;
    background: rgba(18, 18, 18, 0.05);
    display: grid;
    gap: 14px;
    align-content: start;
}

.landing-sidebar-chip {
    height: 44px;
    border-radius: 14px;
    background: rgba(18, 18, 18, 0.08);
}

.landing-sidebar-chip-active {
    background: linear-gradient(135deg, rgba(216, 177, 105, 0.9), rgba(242, 222, 192, 0.96));
}

.landing-window-main {
    padding: 26px 24px 24px;
    display: grid;
    gap: 22px;
}

.landing-upload-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e1e1e, #383838);
    color: #f4f1e8;
}

.landing-upload-card p,
.landing-upload-card strong {
    margin: 0;
}

.landing-upload-card p {
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.66);
    margin-bottom: 7px;
}

.landing-output-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.landing-output-card {
    min-height: 135px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.landing-output-card-accent {
    background: linear-gradient(145deg, #f4ead3, #ead5a8);
}

.landing-output-card h3,
.landing-feature-card h3 {
    margin: 0 0 10px;
    color: #151515;
    font-size: 1.05rem;
}

.landing-output-card p,
.landing-feature-card p {
    margin: 0;
    color: rgba(21, 21, 21, 0.74);
    line-height: 1.55;
}

.landing-floating {
    position: absolute;
    max-width: 220px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.landing-floating-top {
    top: 30px;
    right: -10px;
}

.landing-floating-bottom {
    left: 10px;
    bottom: 34px;
}

.landing-section {
    display: grid;
    gap: 22px;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-section-soft {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(216, 177, 105, 0.08));
}

.landing-section-head {
    display: grid;
    gap: 12px;
}

.landing-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.04;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-feature-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
}

.landing-resource-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-resource-pill {
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1.1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.24);
}

.auth-button-secondary {
    border-color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.08);
}

.auth-button-secondary:hover {
    background: rgba(255,255,255,0.18);
}

.auth-button-primary {
    border-color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.08);
    color: var(--gris-claro);
}

.auth-button-primary:hover {
    background: rgba(255,255,255,0.18);
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.auth-modal-panel {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.98), rgba(8, 22, 39, 0.98));
    color: #edf3ff;
    border: 1px solid rgba(135, 165, 230, 0.18);
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 28px 80px rgba(0,0,0,0.45);
}

.auth-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    border: 1px solid rgba(135, 165, 230, 0.18);
}

.auth-modal-panel h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 2rem;
}

.auth-modal-panel form {
    display: grid;
    gap: 1rem;
}

.auth-modal-panel form p {
    display: grid;
    gap: 0.35rem;
}

.auth-modal-panel label {
    color: #d4e0f4;
    font-weight: 700;
}

.auth-modal-panel input {
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(135, 165, 230, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #edf3ff;
}

.auth-modal-panel input::placeholder {
    color: rgba(212, 224, 244, 0.58);
}

.auth-modal-panel input:focus {
    outline: none;
    border-color: rgba(125, 184, 255, 0.52);
    box-shadow: 0 0 0 3px rgba(95, 176, 255, 0.12);
}

.auth-modal-panel button[type="submit"] {
    min-height: 52px;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #5fb0ff, #2d6df6);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 32px rgba(45, 109, 246, 0.24);
}

.auth-modal-panel a {
    color: #7db8ff;
    font-weight: 700;
    text-decoration: none;
}

.auth-modal-panel a:hover {
    text-decoration: underline;
}

.auth-modal-panel ul.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ff9e9e;
    font-size: 0.92rem;
}

.auth-modal-panel .helptext {
    color: rgba(212, 224, 244, 0.62);
    font-size: 0.9rem;
}

body[data-theme="claro"] .auth-modal-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
    color: #17335f;
}

body[data-theme="claro"] .auth-modal-close {
    background: rgba(36, 91, 212, 0.1);
    color: #17335f;
    border-color: rgba(71, 118, 201, 0.16);
}

body[data-theme="claro"] .auth-modal-panel h2,
body[data-theme="claro"] .auth-modal-panel label {
    color: #17335f;
}

body[data-theme="claro"] .auth-modal-panel input {
    background: #ffffff;
    color: #17335f;
    border-color: rgba(71, 118, 201, 0.16);
}

body[data-theme="claro"] .auth-modal-panel input::placeholder,
body[data-theme="claro"] .auth-modal-panel .helptext {
    color: rgba(23, 51, 95, 0.58);
}

.confirm-modal[hidden] {
    display: none;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.62);
}

.confirm-modal-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #ffffff;
    color: #121212;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.confirm-modal-panel h2 {
    margin-bottom: 0.75rem;
}

.confirm-modal-panel p {
    margin-bottom: 1.25rem;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.logout-form {
    margin: 0;
}

.preview-modal[hidden] {
    display: none;
}

.preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.preview-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.preview-modal-panel {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    background: #ffffff;
    color: #121212;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.preview-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #121212;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
}

.preview-editor {
    width: 100%;
    min-height: 420px;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font: inherit;
    line-height: 1.6;
    resize: vertical;
    margin-top: 1rem;
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.preview-save-message {
    margin-top: 1rem;
    color: #0a7a2f;
    font-weight: 600;
}

.preview-save-error {
    color: #c0392b;
}

.preview-rendered {
    line-height: 1.7;
    white-space: pre-wrap;
}

.preview-question {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.preview-frame {
    width: 100%;
    min-height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin-top: 1rem;
}

.nav-button {
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-button:hover {
    background: var(--gris-claro);
    color: var(--negro);
}

/* Main */
main {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 3rem 4rem;
}

/* Footer */
footer {
    background: var(--negro);
    color: var(--gris-claro);
    text-align: center;
    padding: 0.4rem 0;
    
    font-size: 0.85rem;
}

/* Layout: sidebar + contenido */
.layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1rem;
    width: 100%;
    max-width: none;
    margin: -10px 0px;
    padding: 0px;
}

.layout-resultados {
    grid-template-columns: 240px minmax(0, 1fr) 560px;
}

.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.panel-principal {
    background: var(--panel-bg);
    color: var(--panel-text);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}

.preview-sidebar {
    align-self: start;
}

.preview-sidebar-card {
    background: var(--gris-claro);
    border-radius: 16px;
    padding: 0.5rem 1rem 1rem 1rem;
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    position: sticky;
    top: 1rem;
    max-height: 450px;
}

.preview-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-sidebar-header h2 {
    margin: 0;
}

.preview-sidebar-nav {
    display: flex;
    gap: 0.5rem;
}

.preview-sidebar-meta {
    margin-bottom: 1rem;
}

.preview-sidebar-meta p {
    margin-top: 0.25rem;
}

.preview-sidebar-viewport {
    background: #ffffff;
    border-radius: 14px;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    min-height: 380px;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
}

.preview-sidebar-viewport * {
    max-width: 100%;
    box-sizing: border-box;
}

.save-material-label {
    display: block;
    margin-top: 1.1rem;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.save-material-input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #171717;
    font: inherit;
}

.save-material-input::placeholder {
    color: rgba(23, 23, 23, 0.62);
}

.save-material-messages {
    margin-top: 0.85rem;
}

.save-material-message {
    margin: 0;
    font-weight: 700;
}

.save-material-message-success {
    color: #25c45a;
}

.save-material-message-error {
    color: #ff9e8c;
}

.preview-sidebar-viewport .preview-editor {
    min-height: 220px;
    margin-top: 0.5rem;
}

.preview-sidebar-viewport .preview-frame {
    min-height: 260px;
}

.preview-sidebar-viewport .preview-actions {
    margin-bottom: 0;
}

.sidebar-preview-content {
    width: 100%;
    min-width: 0;
}

.sidebar-preview-text {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.sidebar-preview-rendered-text h1,
.sidebar-preview-rendered-text h2,
.sidebar-preview-rendered-text h3,
.sidebar-preview-rendered-text h4 {
    margin: 0 0 0.85rem;
    color: var(--panel-title-text);
}

.sidebar-preview-rendered-text p,
.sidebar-preview-rendered-text ul,
.sidebar-preview-rendered-text ol {
    margin: 0 0 1rem;
}

.sidebar-preview-inline-form {
    display: grid;
    gap: 1rem;
}

.sidebar-preview-content-editing {
    display: grid;
    gap: 1rem;
}

.sidebar-preview-section,
.sidebar-preview-edit-group {
    display: grid;
    gap: 0.65rem;
}

.sidebar-preview-section h4,
.sidebar-preview-edit-group h4 {
    margin: 0;
    color: var(--panel-title-text);
}

.sidebar-preview-title-editable,
.sidebar-preview-edit-surface {
    outline: none;
    border-radius: 14px;
    border: 1px solid rgba(135, 165, 230, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--panel-text);
}

.sidebar-preview-title-editable {
    padding: 0.95rem 1rem;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-preview-edit-surface {
    min-height: 420px;
    padding: 1.1rem 1rem;
    white-space: pre-wrap;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.sidebar-preview-edit-surface-compact {
    min-height: 140px;
}

.sidebar-preview-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.sidebar-preview-block-editing {
    display: grid;
    gap: 0.7rem;
}

.sidebar-preview-field-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--panel-title-text);
}

.sidebar-preview-edit-surface-option {
    min-height: 64px;
    padding: 0.8rem 0.95rem;
    line-height: 1.45;
}

.sidebar-preview-content h3 {
    margin-bottom: 0.75rem;
}

.sidebar-preview-copy {
    margin-bottom: 0.75rem;
}

.sidebar-preview-stack {
    display: grid;
    gap: 0.9rem;
}

.sidebar-preview-block {
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    padding: 0.85rem;
    background: #fafafa;
}

.sidebar-preview-block h4 {
    margin-bottom: 0.4rem;
}

.sidebar-preview-list {
    padding-left: 1.1rem;
}

.sidebar-preview-frame {
    width: 100%;
    min-height: 330px;
    max-height: 400px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}

.sidebar-preview-frame-editable {
    min-height: 560px;
    max-height: none;
}

.panel-title {
    text-align: center;
    color: var(--gris-claro);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .layout-resultados {
        grid-template-columns: 240px 1fr;
    }

    .layout-resultados .preview-sidebar {
        grid-column: 1 / -1;
    }

    .layout-resultados .preview-sidebar-card {
        position: static;
    }
}

.perfil-page {
    max-width: 1280px;
    margin: 14px auto 0;
    padding: 0 32px;
}

.perfil-card {
    background: var(--card-bg);
    color: var(--card-text);
    border-radius: 20px;
    padding: 28px 36px;
    box-shadow: none;
    position: relative;
}

.perfil-messages {
    margin-left: auto;
    align-self: flex-start;
    padding-top: 8px;
}

.perfil-message {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.perfil-message-success {
    color: var(--success-text);
}

.perfil-message-hidden {
    opacity: 0;
    pointer-events: none;
}

.perfil-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.perfil-avatar {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.perfil-avatar-button {
    display: block;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.perfil-avatar-button:hover {
    transform: translateY(-2px);
}

.perfil-avatar img,
.perfil-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.perfil-avatar-image {
    display: block;
    position: absolute;
    max-width: none;
    max-height: none;
}

.perfil-avatar-image-hidden {
    display: none;
}

.perfil-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #575757, #2f2f2f);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 2rem;
}

.perfil-header-info h2 {
    margin: 0 0 8px;
    font-size: 46px !important;
    line-height: 1;
    color: #ffffff !important;
}

.perfil-header-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.perfil-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.perfil-image-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.perfil-hidden-inputs {
    display: none;
}

.perfil-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perfil-field label {
    color: #dfe8f6;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.perfil-field-full {
    grid-column: 1 / -1;
}

.perfil-field input,
.perfil-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfc6b8;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
}

.perfil-field textarea {
    min-height: 110px;
}

.perfil-field input[readonly] {
    background: #e8e4da;
    color: #5f5a4d;
    cursor: not-allowed;
}

.perfil-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 16px;
}

.perfil-editor-modal[hidden] {
    display: none;
}

.perfil-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.perfil-editor-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.perfil-editor-panel {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    margin: 8vh auto 0;
    background: #2f2f2f;
    color: #f4f1e8;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.perfil-editor-header,
.perfil-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.perfil-editor-header {
    margin-bottom: 18px;
}

.perfil-editor-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
}

.perfil-editor-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.perfil-editor-body {
    display: grid;
    gap: 20px;
}

.perfil-editor-preview {
    width: 260px;
    height: 260px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #575757, #2f2f2f);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: grab;
}

.perfil-editor-preview.is-dragging {
    cursor: grabbing;
}

.perfil-editor-preview img {
    position: absolute;
    max-width: none;
    max-height: none;
    user-select: none;
    pointer-events: none;
}

.perfil-editor-controls {
    display: grid;
    gap: 10px;
}

.perfil-editor-controls label {
    color: #f4f1e8;
    font-weight: 700;
}

.perfil-editor-controls p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.perfil-editor-actions {
    margin-top: 20px;
}

.user-summary-card {
    max-width: 920px;
    margin: 0 auto;
}

.user-summary-header {
    align-items: flex-start;
}

.user-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0 24px;
}

.user-summary-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 20px;
    display: grid;
    gap: 6px;
}

.user-summary-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--card-text);
}

.user-summary-stat-label {
    color: var(--card-text);
    opacity: 0.78;
}

.user-rating-form {
    display: grid;
    gap: 16px;
}

.user-rating-copy h3 {
    margin: 0 0 8px;
    color: var(--card-text);
    font-size: 1.2rem;
}

.user-rating-copy p {
    margin: 0;
    color: var(--card-text);
    opacity: 0.82;
}

.user-rating-stars {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: -20px;
}

.user-rating-star {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-rating-star input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-rating-star-symbol {
    display: inline-block;
    font-size: 1.85rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.28);
    transition: color 0.18s ease, transform 0.18s ease;
}

.user-rating-star-label {
    color: var(--card-text);
    font-weight: 700;
    min-width: 10px;
}

.user-rating-star:hover .user-rating-star-symbol,
.user-rating-star input:checked + .user-rating-star-symbol {
    color: #f2c14f;
}

.user-rating-star:hover .user-rating-star-symbol {
    transform: translateY(-1px);
}

.shared-users-card {
    max-width: 980px;
    margin: 0 auto;
}

.shared-users-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.shared-users-header h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 2rem;
}

.shared-users-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.shared-users-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.shared-user-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    gap: 16px;
}

.shared-user-feedback {
    align-content: center;
    min-height: 188px;
    background: rgba(43, 108, 255, 0.1);
    border-color: rgba(95, 176, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(95, 176, 255, 0.06);
}

.shared-user-feedback .shared-user-info h3 {
    margin: 0;
    line-height: 1.45;
}

.shared-user-feedback-success {
    background: rgba(43, 108, 255, 0.1);
    border-color: rgba(95, 176, 255, 0.24);
}

.shared-user-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.shared-user-avatar {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
}

.shared-user-avatar img,
.shared-user-avatar .perfil-avatar-placeholder {
    width: 72px;
    height: 72px;
}

.shared-user-info h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 1.35rem;
}

.shared-user-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.shared-user-metrics {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.shared-user-actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.shared-user-actions form {
    margin: 0;
}

.shared-user-remove {
    min-height: 51px;
    padding: 0.8rem 1.6rem;
    border-radius: 18px;
    border: 1px solid rgba(179, 58, 58, 0.28);
    background: linear-gradient(135deg, #fff2f2, #ffdede);
    color: #b33a3a;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(179, 58, 58, 0.16);
}

.shared-user-remove:hover {
    color: #922d2d;
    border-color: rgba(179, 58, 58, 0.4);
    background: linear-gradient(135deg, #ffe9e9, #ffd2d2);
    box-shadow: 0 14px 28px rgba(179, 58, 58, 0.2);
}

.shared-users-empty {
    margin: 0;
}

body[data-theme="claro"] .shared-users-header h2 {
    color: #10213d;
}

body[data-theme="claro"] .shared-users-header p {
    color: #5f7596;
}

body[data-theme="claro"] .shared-user-item {
    background: rgba(244, 248, 255, 0.96);
    border-color: rgba(61, 102, 180, 0.16);
    box-shadow: 0 14px 32px rgba(44, 78, 140, 0.08);
}

body[data-theme="claro"] .shared-user-feedback {
    background: rgba(235, 244, 255, 0.98);
    border-color: rgba(71, 118, 201, 0.2);
}

body[data-theme="claro"] .shared-user-info h3 {
    color: #10213d;
}

body[data-theme="claro"] .shared-user-info p {
    color: #5f7596;
}

body[data-theme="claro"] .shared-user-metrics {
    color: #1f3a63;
}

body[data-theme="claro"] .shared-user-remove {
    color: #9f2f2f;
    border-color: rgba(159, 47, 47, 0.26);
    background: linear-gradient(135deg, #fff3f3, #ffe4e4);
}

body[data-theme="claro"] .perfil-header-info h2 {
    color: #10213d !important;
}

body[data-theme="claro"] .perfil-header-info p {
    color: #5f7596;
}

body[data-theme="claro"] .perfil-field label {
    color: #38527d;
}

body[data-theme="claro"] .user-summary-stat {
    background: rgba(244, 248, 255, 0.96);
    border-color: rgba(61, 102, 180, 0.16);
    box-shadow: 0 14px 32px rgba(44, 78, 140, 0.08);
}

body[data-theme="claro"] .user-summary-stat-value {
    color: #10213d;
}

body[data-theme="claro"] .user-summary-stat-label {
    color: #5f7596;
    opacity: 1;
}

body[data-theme="claro"] .user-rating-copy h3,
body[data-theme="claro"] .user-rating-star-label {
    color: #10213d;
}

body[data-theme="claro"] .user-rating-copy p {
    color: #5f7596;
    opacity: 1;
}

body[data-theme="claro"] .user-rating-star-symbol {
    color: rgba(16, 33, 61, 0.28);
}

.shared-resource-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.resource-item-title-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.resource-item-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(242, 193, 79, 0.16);
    border: 1px solid rgba(242, 193, 79, 0.42);
    color: #8a5a00;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
}

.resource-rating-modal-panel {
    display: grid;
    gap: 16px;
}

.resource-rating-modal-panel h2,
.resource-rating-modal-panel p {
    margin: 0;
}

.resource-rating-modal-panel .user-rating-stars {
    margin-top: 0;
}

.resource-rating-modal-panel .user-rating-star-symbol {
    color: rgba(18, 18, 18, 0.24);
}

.resource-rating-modal-panel .user-rating-star-label {
    color: #121212;
}

.resource-rating-modal-panel .user-rating-star:hover .user-rating-star-symbol,
.resource-rating-modal-panel .user-rating-star input:checked + .user-rating-star-symbol {
    color: #f2c14f;
}

.resource-rating-messages {
    margin-left: 0;
    padding-top: 0;
}

.generation-error-modal-panel {
    width: min(640px, calc(100vw - 32px));
    display: grid;
    gap: 16px;
    background: linear-gradient(180deg, rgba(20, 14, 24, 0.98), rgba(28, 16, 20, 0.98));
    color: #f7dede;
    border: 1px solid rgba(214, 56, 56, 0.18);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.generation-error-modal-panel h2,
.generation-error-modal-panel p {
    margin: 0;
}

.generation-error-copy {
    color: rgba(255, 226, 226, 0.86);
    line-height: 1.5;
}

.generation-error-list {
    display: grid;
    gap: 12px;
}

.generation-error-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(214, 56, 56, 0.12);
    border: 1px solid rgba(214, 56, 56, 0.16);
}

.generation-error-item h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.generation-error-item p {
    color: #ffd6d6;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

body[data-theme="claro"] .generation-error-modal-panel {
    background: linear-gradient(180deg, rgba(255, 248, 248, 0.99), rgba(255, 240, 240, 0.99));
    color: #7d1f1f;
    border-color: rgba(214, 56, 56, 0.16);
}

body[data-theme="claro"] .generation-error-copy {
    color: #8b3a3a;
}

body[data-theme="claro"] .generation-error-item {
    background: rgba(214, 56, 56, 0.08);
    border-color: rgba(214, 56, 56, 0.14);
}

body[data-theme="claro"] .generation-error-item h3 {
    color: #7d1f1f;
}

body[data-theme="claro"] .generation-error-item p {
    color: #8b3a3a;
}

@media (max-width: 980px) {
    .perfil-grid {
        grid-template-columns: 1fr 1fr;
    }

    .shared-users-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .landing-copy h1 {
        max-width: 12ch;
    }

    .landing-visual {
        min-height: auto;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .perfil-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-summary-stats {
        grid-template-columns: 1fr;
    }

    .shared-users-header,
    .shared-user-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .perfil-grid {
        grid-template-columns: 1fr;
        }

    .perfil-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-page {
        width: min(100%, calc(100% - 24px));
        gap: 22px;
    }

    .landing-copy h1,
    .landing-section-head h2 {
        max-width: none;
    }

    .landing-window-body {
        grid-template-columns: 1fr;
    }

    .landing-window-sidebar {
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }

    .landing-output-grid {
        grid-template-columns: 1fr;
    }

    .landing-floating {
        position: static;
        max-width: none;
    }

    .landing-visual {
        gap: 14px;
    }

    .landing-section {
        padding: 22px 18px;
    }
}


/* crear.html */

.crear-panel h1 {
    margin-bottom: 1.5rem;
}

.crear-panel-contenido {
    width: min(1100px, 100%);
    margin: -1.25rem auto 0;
}

.upload-form {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.dropzone {
    width: min(700px, 100%);
    min-height: 220px;
    padding: 1rem;
    border: 2px dashed var(--dropzone-border);
    border-radius: 15px;
    background: var(--dropzone-bg);
    color: var(--dropzone-text);
    text-align: center;
    cursor: default;
    display: grid;
    place-content: center;
    gap: 0.75rem;
    margin: 0 auto;
}

.dropzone:hover {
    border-color: var(--dropzone-hover-border);
    background: var(--dropzone-hover-bg);
}

.dropzone.is-dragover {
    border-color: var(--dropzone-hover-border);
    background: var(--dropzone-hover-bg);
    transform: scale(1.01);
}

.dropzone.is-invalid {
    border-color: #b42318;
    background: #fef3f2;
}

.drop-icon {
    font-size: 2rem;
}

.upload-select-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.upload-native-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.upload-preview-slot {
    display: none;
}

.upload-preview-slot:not([hidden]) {
    position: absolute;
    left: 24px;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: calc(100% - 220px);
    margin-top: 0;
    z-index: 2;
}

.upload-preview-name {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(95, 176, 255, 0.12);
    border: 1px solid rgba(95, 176, 255, 0.18);
    color: #7db8ff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
}

.upload-file-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.upload-file-remove:hover {
    background: rgba(255, 255, 255, 0.22);
}

body[data-theme="claro"] .upload-file-badge {
    color: #245bd4;
}

body[data-theme="claro"] .upload-file-remove {
    background: rgba(36, 91, 212, 0.14);
}

body[data-theme="claro"] .upload-file-remove:hover {
    background: rgba(36, 91, 212, 0.22);
}

.dropzone.has-file {
    border-color: rgba(95, 176, 255, 0.48);
}

.upload-error {
    margin: -0.35rem auto 0;
    width: min(700px, 100%);
    color: #b42318;
    font-size: 0.95rem;
}

.archivo-cargado {
    display: none;
}

.chip {
    display: none;
}

.chip button {
    border: 0;
    background: transparent;
    color: var(--right-panel-text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.panel-header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
    margin-top: -1.5rem;
    margin-left: -1.5rem;
}

.btn-sec {
    padding: 0.5rem 1rem;
    border: 1px solid var(--btn-secondary-border);
    border-radius: 10px;
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
} 

.acciones-form {
    text-align: right;
    margin-top: 0.5rem;
    margin-right: -1rem;
}

.btn-primario {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 12px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 700;
}
.download-wrapper {
    position: relative;
    display: inline-block;
}
.download-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 0.4rem 0.6rem;
    z-index: 10;
    min-width: 120px;
}
.download-menu a {
    display: block;
    padding: 0.35rem 0;
    color: #000;
    text-decoration: none;
}
.download-menu a:hover {
    text-decoration: underline;
}

/* parametros form */
.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.parametros-title {
    color: var(--panel-title-text);
}

.parametros-copy {
    color: var(--panel-text);
}

.form-error {
    color: var(--form-error-text);
    font-weight: bold;
    margin-bottom: 1rem;
}

.form-field label {
    font-weight: 600;
    color: var(--form-label-text);
}

.form-field input[type="text"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--form-input-border);
    border-radius: 8px;
    background: var(--form-input-bg);
    color: var(--form-input-text);
}

.form-field textarea {
    min-height: 140px;
}

.form-field ul {
    list-style: none;
    padding: 0;
}

.form-field li {
    margin: 0.25rem 0;
    color: var(--form-label-text);
}

.form-field input[type="checkbox"],
.form-field input[type="radio"] {
    accent-color: var(--form-accent);
}

.loading-shell {
    min-height: 65vh;
    display: grid;
    place-items: center;
}

.loading-card {
    width: min(680px, 100%);
    background: linear-gradient(145deg, #111111, #1d1d1d);
    color: var(--gris-claro);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    text-align: center;
}

.loading-spinner {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 7px solid rgba(255,255,255,0.18);
    border-top-color: #171717;
    animation: spin 0.9s linear infinite;
}

.loading-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.75rem;
}

.loading-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.loading-copy {
    max-width: 44ch;
    margin: 0 auto 1.5rem;
    color: rgba(255,255,255,0.82);
}

.loading-progress {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d8b169, #f5e2bc, #d8b169);
    animation: loading-bar 1.6s ease-in-out infinite;
}

.loading-status {
    margin-top: 1rem;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
}

.loading-errors {
    display: grid;
    gap: 10px;
    margin-top: 1rem;
    text-align: left;
}

.loading-error-item {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(214, 56, 56, 0.12);
    border: 1px solid rgba(214, 56, 56, 0.16);
    color: #ffd6d6;
    font-weight: 700;
}

body[data-theme="oscuro"] .loading-card {
    background:
        radial-gradient(circle at top right, rgba(95, 176, 255, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(12, 22, 38, 0.98), rgba(7, 15, 28, 0.98));
    color: #e8eef8;
    border: 1px solid rgba(135, 165, 230, 0.14);
    box-shadow: 0 28px 64px rgba(1, 9, 20, 0.34);
}

body[data-theme="oscuro"] .loading-spinner {
    border-color: rgba(255, 255, 255, 0.12);
    border-top-color: #5fb0ff;
}

body[data-theme="oscuro"] .loading-kicker {
    color: rgba(151, 198, 255, 0.8);
}

body[data-theme="oscuro"] .loading-card h1 {
    color: #f3f7ff;
}

body[data-theme="oscuro"] .loading-copy {
    color: rgba(232, 238, 248, 0.84);
}

body[data-theme="oscuro"] .loading-progress {
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="oscuro"] .loading-progress-bar {
    background: linear-gradient(90deg, #5fb0ff, #9fd3ff, #5fb0ff);
}

body[data-theme="oscuro"] .loading-status {
    color: #dce8ff;
}

body[data-theme="oscuro"] .loading-error-item {
    background: rgba(214, 56, 56, 0.14);
    border-color: rgba(214, 56, 56, 0.18);
    color: #ffd6d6;
}

body[data-theme="claro"] .loading-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.96));
    color: #1b2840;
    border: 1px solid rgba(61, 102, 180, 0.14);
    box-shadow: 0 24px 60px rgba(44, 78, 140, 0.16);
}

body[data-theme="claro"] .loading-spinner {
    border-color: rgba(55, 125, 255, 0.16);
    border-top-color: #377dff;
}

body[data-theme="claro"] .loading-kicker {
    color: rgba(55, 89, 145, 0.72);
}

body[data-theme="claro"] .loading-card h1 {
    color: #10213d;
}

body[data-theme="claro"] .loading-copy {
    color: #4f6486;
}

body[data-theme="claro"] .loading-progress {
    background: rgba(61, 102, 180, 0.12);
}

body[data-theme="claro"] .loading-progress-bar {
    background: linear-gradient(90deg, #377dff, #8ec5ff, #377dff);
}

body[data-theme="claro"] .loading-status {
    color: #1f3a63;
}

body[data-theme="claro"] .loading-error-item {
    background: rgba(214, 56, 56, 0.08);
    border-color: rgba(214, 56, 56, 0.14);
    color: #8b2d2d;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loading-bar {
    0% {
        transform: translateX(-130%);
    }
    100% {
        transform: translateX(320%);
    }
}

@media (max-width: 760px) {
    header {
        padding: 1rem 0;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .header-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .site-title {
        font-size: 1.35rem;
        white-space: normal;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .auth-button {
        flex: 1 1 145px;
    }

    main {
        padding: 2rem 1rem;
    }

    .loading-card {
        padding: 2.2rem 1.4rem;
    }
}

.settings-card {
    max-width: 880px;
    margin: 0 auto;
}

.settings-header {
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.settings-messages {
    margin-left: auto;
    padding-top: 12px;
}

.settings-form {
    display: grid;
    gap: 24px;
}

.settings-section h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1.2rem;
}

.settings-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-theme-option {
    display: block;
    cursor: pointer;
}

.settings-theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-theme-card {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 20px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, #f7f2e7 0%, #ddd2bd 100%);
    color: #433c31;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-theme-card-dark {
    background: linear-gradient(160deg, #1e1e1e 0%, #474747 100%);
    color: #f4f1e8;
}

.settings-theme-option:hover .settings-theme-card {
    transform: translateY(-2px);
}

.settings-theme-option input:checked + .settings-theme-card {
    border-color: #d86955;
    box-shadow: 0 0 0 4px rgba(216, 105, 85, 0.18);
}

.password-change-card {
    max-width: 880px;
    margin: 0 auto;
}

.password-change-shell {
    display: grid;
    gap: 18px;
}

.password-change-shell h2 {
    margin: 0;
    color: #ffffff;
}

.password-change-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.password-change-form {
    display: grid;
    gap: 20px;
}

.password-change-fields {
    display: grid;
    gap: 18px;
}

.password-change-field {
    display: grid;
    gap: 8px;
}

.password-change-field label {
    font-weight: 700;
    color: #ffffff;
}

.password-change-field input {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font: inherit;
}

.password-change-field input:focus {
    outline: none;
    border-color: #d86955;
    box-shadow: 0 0 0 4px rgba(216, 105, 85, 0.18);
}

.password-change-help,
.password-change-errors,
.password-change-alert {
    font-size: 0.94rem;
}

.password-change-help {
    color: rgba(255, 255, 255, 0.72);
}

.password-change-help ul,
.password-change-errors ul,
.password-change-alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.password-change-errors,
.password-change-alert {
    color: #ff9e8c;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.password-change-errors.password-change-dismissed,
.password-change-alert.password-change-dismissed {
    opacity: 0;
    pointer-events: none;
}

.password-change-alert {
    padding: 12px 14px;
    border: 1px solid rgba(255, 158, 140, 0.35);
    border-radius: 12px;
    background: rgba(139, 34, 12, 0.2);
}

.password-change-actions,
.password-change-page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.password-change-shell-modal h2 {
    color: #ffffff;
}

.password-change-shell-modal .password-change-copy {
    color: rgba(255, 255, 255, 0.78);
}

.password-change-shell-modal .password-change-field label {
    color: #121212;
}

.password-change-shell-modal .password-change-field input {
    border: 1px solid #cfcfcf;
    background: #ffffff;
    color: #121212;
}

.password-change-shell-modal .password-change-help {
    color: #626262;
}

.password-change-shell-modal .password-change-errors,
.password-change-shell-modal .password-change-alert {
    color: #b42318;
}

.password-change-shell-modal .password-change-alert {
    border-color: rgba(180, 35, 24, 0.25);
    background: #fef3f2;
}

.password-change-shell-modal .password-change-actions button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: #121212;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.recovery-page {
    position: relative;
    overflow: hidden;
}

.recovery-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(216, 177, 105, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(64, 133, 255, 0.16), transparent 34%);
    pointer-events: none;
}

.recovery-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 20, 36, 0.96), rgba(8, 18, 33, 0.98));
    border: 1px solid rgba(135, 165, 230, 0.14);
    box-shadow: 0 28px 70px rgba(1, 9, 20, 0.24);
}

.recovery-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 26px;
    align-items: start;
}

.recovery-hero,
.recovery-form-card,
.recovery-state-card {
    position: relative;
    border-radius: 24px;
}

.recovery-hero {
    display: grid;
    gap: 16px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(216, 177, 105, 0.18), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(216, 177, 105, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.recovery-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(216, 177, 105, 0.18);
    border: 1px solid rgba(216, 177, 105, 0.3);
    color: #f2dec0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recovery-hero h2,
.recovery-state-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 0.98;
}

.recovery-points {
    display: grid;
    gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.recovery-points li {
    position: relative;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.82);
}

.recovery-points li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d8b169, #f2dec0);
}

.recovery-form-card,
.recovery-state-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.recovery-form-card .password-change-fields {
    gap: 20px;
}

.recovery-form-card .password-change-field label {
    color: #f5f8ff;
}

.recovery-form-card .password-change-field input {
    min-height: 54px;
    border-radius: 14px;
    background: rgba(7, 14, 25, 0.52);
}

.recovery-confirm-shell {
    gap: 20px;
}

.recovery-state-card {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.recovery-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(216, 177, 105, 0.14);
    border: 1px solid rgba(216, 177, 105, 0.22);
    color: #f2dec0;
    font-size: 1.8rem;
    font-weight: 900;
}

.recovery-icon-success {
    background: rgba(67, 209, 124, 0.12);
    border-color: rgba(67, 209, 124, 0.22);
    color: #7fe6aa;
}

.recovery-state-note {
    margin: -4px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.recovery-state-actions {
    width: 100%;
    justify-content: flex-start;
}

body[data-theme="claro"] .recovery-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
    border-color: rgba(71, 118, 201, 0.14);
    box-shadow: 0 24px 60px rgba(46, 86, 155, 0.14);
}

body[data-theme="claro"] .recovery-hero,
body[data-theme="claro"] .recovery-form-card,
body[data-theme="claro"] .recovery-state-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(71, 118, 201, 0.12);
}

body[data-theme="claro"] .recovery-badge {
    background: rgba(71, 118, 201, 0.1);
    border-color: rgba(71, 118, 201, 0.16);
    color: #28539c;
}

body[data-theme="claro"] .recovery-hero h2,
body[data-theme="claro"] .recovery-state-card h2,
body[data-theme="claro"] .recovery-form-card .password-change-field label {
    color: #17335f;
}

body[data-theme="claro"] .recovery-points li,
body[data-theme="claro"] .recovery-state-note {
    color: rgba(23, 51, 95, 0.74);
}

body[data-theme="claro"] .recovery-form-card .password-change-field input {
    background: #ffffff;
    border-color: rgba(71, 118, 201, 0.16);
    color: #17335f;
}

body[data-theme="claro"] .recovery-icon {
    background: rgba(71, 118, 201, 0.1);
    border-color: rgba(71, 118, 201, 0.16);
    color: #28539c;
}

body[data-theme="claro"] .recovery-icon-success {
    background: rgba(67, 209, 124, 0.12);
    border-color: rgba(67, 209, 124, 0.18);
    color: #1d8f4c;
}

.settings-theme-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.settings-theme-text {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

@media (max-width: 700px) {
    .recovery-layout {
        grid-template-columns: 1fr;
    }

    .recovery-hero,
    .recovery-form-card,
    .recovery-state-card {
        padding: 22px 18px;
    }

    .recovery-state-actions,
    .password-change-page-actions {
        justify-content: stretch;
    }

    .recovery-state-actions .btn-sec,
    .recovery-state-actions .btn-primario,
    .password-change-page-actions .btn-sec,
    .password-change-page-actions .btn-primario {
        width: 100%;
        text-align: center;
    }

    .settings-messages {
        width: 100%;
        margin-left: 0;
        padding-top: 0;
    }

    .settings-theme-grid {
        grid-template-columns: 1fr;
    }
}

/* Interface refresh */
body[data-theme="oscuro"] {
    --page-bg: #07111f;
    --text-base: #e8eef8;
    --header-bg: rgba(6, 14, 28, 0.78);
    --header-text: #d7e4fb;
    --menu-bg: #111d31;
    --menu-text: #eaf1ff;
    --menu-text-muted: rgba(234, 241, 255, 0.55);
    --card-bg: #0d1728;
    --card-text: #e8eef8;
    --right-panel-bg: transparent;
    --right-panel-text: #e8eef8;
    --create-btn-bg: linear-gradient(135deg, #5fb0ff, #2d6df6);
    --create-btn-text: #f7fbff;
    --create-btn-border: transparent;
    --create-btn-hover-bg: linear-gradient(135deg, #78beff, #4f84ff);
    --dropzone-bg: rgba(12, 25, 44, 0.58);
    --dropzone-text: #e8eef8;
    --dropzone-border: rgba(151, 182, 255, 0.28);
    --dropzone-hover-bg: rgba(19, 35, 59, 0.88);
    --dropzone-hover-border: rgba(151, 182, 255, 0.52);
    --btn-secondary-bg: rgba(13, 23, 40, 0.76);
    --btn-secondary-text: #dce8ff;
    --btn-secondary-border: rgba(142, 172, 255, 0.24);
    --btn-primary-bg: linear-gradient(135deg, #5fb0ff, #2d6df6);
    --btn-primary-text: #f8fbff;
    --sidebar-bg: rgba(10, 20, 35, 0.92);
    --sidebar-text: #e8eef8;
    --panel-bg: rgba(10, 18, 32, 0.9);
    --panel-text: #e8eef8;
    --panel-title-text: #ffffff;
    --form-label-text: #d4e0f4;
    --form-input-bg: rgba(8, 18, 33, 0.9);
    --form-input-text: #edf3ff;
    --form-input-border: rgba(145, 176, 255, 0.24);
    --resource-card-bg: rgba(10, 20, 35, 0.92);
    --resource-card-border: rgba(145, 176, 255, 0.16);
    --resource-card-text: #edf3ff;
    --resource-card-title-text: #ffffff;
    --resource-card-meta-text: #99afcf;
    --empty-history-border: rgba(145, 176, 255, 0.22);
    --empty-history-bg: rgba(10, 20, 35, 0.86);
    --empty-history-title: #ffffff;
    --empty-history-text: #9cb0ce;
    --tab-bg: rgba(15, 27, 46, 0.88);
    --tab-border: rgba(145, 176, 255, 0.14);
    --tab-text: #f3f7ff;
    --tab-hover-border: rgba(145, 176, 255, 0.4);
    --tab-active-bg: linear-gradient(135deg, rgba(61, 110, 246, 0.24), rgba(95, 176, 255, 0.28));
    --tab-active-border: rgba(127, 182, 255, 0.55);
    --tab-muted-text: #9fb4d0;
}

body[data-theme="claro"] {
    --page-bg: #eef4ff;
    --text-base: #1b2840;
    --header-bg: rgba(255, 255, 255, 0.86);
    --header-text: #233554;
    --menu-bg: #ffffff;
    --menu-text: #20314f;
    --menu-text-muted: rgba(32, 49, 79, 0.5);
    --card-bg: #ffffff;
    --card-text: #1b2840;
    --right-panel-bg: transparent;
    --right-panel-text: #1b2840;
    --create-btn-bg: linear-gradient(135deg, #377dff, #1b56d6);
    --create-btn-text: #ffffff;
    --create-btn-border: transparent;
    --create-btn-hover-bg: linear-gradient(135deg, #4c8aff, #2c66e3);
    --dropzone-bg: #f8fbff;
    --dropzone-text: #1b2840;
    --dropzone-border: rgba(61, 102, 180, 0.22);
    --dropzone-hover-bg: #eff5ff;
    --dropzone-hover-border: rgba(61, 102, 180, 0.42);
    --btn-secondary-bg: #ffffff;
    --btn-secondary-text: #223555;
    --btn-secondary-border: rgba(61, 102, 180, 0.22);
    --btn-primary-bg: linear-gradient(135deg, #377dff, #1b56d6);
    --btn-primary-text: #ffffff;
    --sidebar-bg: rgba(255, 255, 255, 0.82);
    --sidebar-text: #1b2840;
    --panel-bg: rgba(255, 255, 255, 0.88);
    --panel-text: #1b2840;
    --panel-title-text: #10213d;
    --form-label-text: #243555;
    --form-input-bg: #ffffff;
    --form-input-text: #1b2840;
    --form-input-border: rgba(61, 102, 180, 0.22);
    --resource-card-bg: rgba(255, 255, 255, 0.94);
    --resource-card-border: rgba(61, 102, 180, 0.14);
    --resource-card-text: #243555;
    --resource-card-title-text: #10213d;
    --resource-card-meta-text: #647a9c;
    --empty-history-border: rgba(61, 102, 180, 0.2);
    --empty-history-bg: rgba(255, 255, 255, 0.9);
    --empty-history-title: #10213d;
    --empty-history-text: #5f7596;
    --tab-bg: rgba(255, 255, 255, 0.8);
    --tab-border: rgba(61, 102, 180, 0.14);
    --tab-text: #20314f;
    --tab-hover-border: rgba(61, 102, 180, 0.34);
    --tab-active-bg: linear-gradient(135deg, rgba(55, 125, 255, 0.12), rgba(95, 176, 255, 0.18));
    --tab-active-border: rgba(55, 125, 255, 0.42);
    --tab-muted-text: #607798;
}

body {
    background:
        radial-gradient(circle at top left, rgba(83, 140, 255, 0.2), transparent 34%),
        radial-gradient(circle at top right, rgba(47, 211, 255, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--page-bg);
    color: var(--text-base);
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(132, 166, 240, 0.12);
}

main {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
}

footer {
    background: transparent;
    color: rgba(194, 208, 232, 0.68);
    margin-top: 10px;
    padding: 0.35rem 0 0.4rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

footer p {
    margin: 0;
}

body[data-theme="claro"] footer {
    color: rgba(46, 71, 111, 0.7);
}

.site-title,
.main-nav a,
.nav-button,
.account-menu-trigger {
    color: var(--header-text);
}

body.workspace-page header {
    position: fixed;
    top: 0;
    left: 215px;
    width: calc(100% - 215px);
}

body.workspace-page .header-brand {
    display: none;
}

body.workspace-page .header-inner {
    padding: 0 1.4rem;
}

body.workspace-page .header-top {
    justify-content: flex-end;
    min-height: 48px;
    padding: 2px 0;
}

body.workspace-page main {
    padding: 72px 0 0;
}

body.workspace-page .app-shell {
    display: block;
    min-height: calc(100vh - 116px);
}

body.workspace-page .app-shell-content {
    margin-left: 260px;
    min-height: calc(100vh - 116px);
    padding-top: 60px;
}

.theme-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(135, 165, 230, 0.12);
    border: 1px solid rgba(135, 165, 230, 0.16);
}

.theme-toggle-button {
    border: 0;
    background: transparent;
    color: var(--header-text);
    font: inherit;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
}

.theme-toggle-button.is-active,
.theme-toggle-button[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

body[data-theme="claro"] .theme-toggle-button.is-active,
body[data-theme="claro"] .theme-toggle-button[aria-pressed="true"] {
    color: #16315e;
    background: rgba(55, 125, 255, 0.16);
}

.workspace-shell {
    display: grid;
    gap: 24px;
}

.workspace-shell-standalone {
    max-width: 1180px;
    margin: 0 auto;
}

.workspace-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.workspace-topbar-main {
    min-width: 0;
    flex: 1 1 520px;
}

.workspace-topbar-side {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 1 auto;
    flex-wrap: wrap;
}

.workspace-kicker,
.generator-kicker {
    margin: 0 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #7db8ff;
    font-weight: 800;
}

.workspace-topbar h1,
.workspace-topbar h2,
.generator-title {
    margin: 0;
    color: var(--panel-title-text);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
}

.workspace-copy,
.generator-subtitle {
    margin: 8px 0 0;
    max-width: 62ch;
    color: var(--resource-card-meta-text);
    font-size: 1.02rem;
    line-height: 1.65;
}

.help-video-card {
    display: grid;
    gap: 18px;
}

.help-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
    gap: 24px;
    align-items: start;
    margin-top: 56px;
}

.help-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(6, 14, 28, 0.9);
    border: 1px solid rgba(135, 165, 230, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.help-video-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #050b14;
}

.help-video-empty {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(135, 165, 230, 0.22);
}

.help-video-empty h3,
.help-video-empty p {
    margin: 0;
}

.help-info-card {
    display: grid;
    gap: 18px;
    align-content: start;
    align-self: start;
}

.help-topbar-side {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.help-info-list {
    display: grid;
    gap: 12px;
}

.help-info-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(135, 165, 230, 0.12);
    min-width: 0;
}

.help-info-item strong,
.help-info-item p {
    margin: 0;
}

.help-info-item p {
    color: var(--resource-card-meta-text);
    overflow-wrap: anywhere;
}

.help-info-item code {
    font-family: inherit;
    font-weight: 700;
}

body[data-theme="claro"] .help-video-frame {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(71, 118, 201, 0.14);
}

body[data-theme="claro"] .help-video-empty {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(71, 118, 201, 0.2);
}

body[data-theme="claro"] .help-info-item {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(71, 118, 201, 0.14);
}

@media (max-width: 1100px) {
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-info-card {
        width: 100%;
    }
}

.workspace-generator-layout,
.generator-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
    column-gap: 22px;
    row-gap: 10px;
    align-items: start;
}

.workspace-generator-layout-single {
    grid-template-columns: minmax(0, 1fr);
}

.workspace-generator-layout-single .generator-card-config {
    grid-column: 1;
    width: 100%;
}

.material-selected-compact {
    display: grid;
    gap: 2px;
    max-width: 520px;
    padding: 0.45rem 0.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(135, 165, 230, 0.12);
    text-align: left;
}

.material-selected-compact-label {
    color: #7db8ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.15;
}

.material-selected-compact-name {
    color: var(--panel-title-text);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body[data-theme="claro"] .material-selected-compact {
    background: rgba(239, 245, 255, 0.72);
}

.generator-shell {
    display: grid;
    gap: 24px;
}

.generator-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.generator-card {
    margin-top: -75px;
    position: relative;
    background: var(--panel-bg);
    border: 1px solid rgba(135, 165, 230, 0.14);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(1, 9, 20, 0.18);
}

.workspace-generator-layout .generator-card {
    margin-top: 0;
}

.generator-card-upload {
    padding-bottom: 68px;
}

.generator-card-sticky {
    position: sticky;
    top: 104px;
}

.generator-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.generator-card-head h2,
.generator-card-head h3 {
    margin: 0;
    color: var(--panel-title-text);
    font-size: 1.35rem;
}

.generator-card-head span {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(95, 176, 255, 0.12);
    color: #7db8ff;
    font-weight: 700;
    font-size: 0.88rem;
}

.generator-card-upload .dropzone {
    width: 100%;
    min-height: 200px;
    border-radius: 24px;
    padding: 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone p {
    font-size: 1.08rem;
    font-weight: 700;
}

.dropzone small {
    color: var(--resource-card-meta-text);
}

.drop-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(95, 176, 255, 0.18), rgba(61, 109, 246, 0.3));
    font-size: 2rem;
}

.upload-select-label,
.btn-sec,
.btn-primario,
.btn-crear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-sec {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
}

.btn-primario,
.btn-crear {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 0;
    box-shadow: 0 18px 34px rgba(39, 93, 214, 0.24);
}

.upload-select-label:hover,
.btn-sec:hover,
.btn-primario:hover,
.btn-crear:hover {
    transform: translateY(-1px);
}

.archivo-cargado {
    display: none;
}

.chip {
    display: none;
}

.chip button {
    color: inherit;
}

.dropzone-format-badge {
    position: absolute;
    right: 24px;
    bottom: 22px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(95, 176, 255, 0.12);
    border: 1px solid rgba(95, 176, 255, 0.18);
    color: #7db8ff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
}

.generator-preview-stack,
.generator-form-stack,
.config-status-list {
    display: grid;
    gap: 14px;
}

.generator-preview-block,
.source-file-card,
.config-status-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(135, 165, 230, 0.12);
}

body[data-theme="claro"] .generator-preview-block,
body[data-theme="claro"] .source-file-card,
body[data-theme="claro"] .config-status-item {
    background: rgba(239, 245, 255, 0.72);
}

.generator-preview-block strong,
.source-file-card strong,
.config-status-item h3 {
    color: var(--panel-title-text);
}

.generator-summary-lines {
    display: grid;
    gap: 14px;
}

.generator-summary-lines p {
    margin: 0;
    color: var(--resource-card-meta-text);
    line-height: 1.6;
}

.generator-summary-lines strong {
    color: var(--panel-title-text);
}

.config-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 6px 0;
    border-bottom: 1px solid rgba(135, 165, 230, 0.1);
}

.config-status-row:last-child {
    border-bottom: 0;
}

.config-status-row h3 {
    margin: 0 0 6px;
    color: var(--panel-title-text);
}

.config-status-row p {
    margin: 0;
    color: var(--resource-card-meta-text);
    line-height: 1.55;
}

.generator-preview-block p,
.source-file-card p,
.config-status-item p,


.generator-illustration {
    position: relative;
    min-height: 220px;
    margin-top: 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(95, 176, 255, 0.34), transparent 26%),
        linear-gradient(145deg, rgba(12, 28, 50, 0.96), rgba(18, 53, 96, 0.8));
    overflow: hidden;
}

.generator-illustration-screen,
.generator-illustration-panel,
.generator-illustration-orbit {
    position: absolute;
    border-radius: 22px;
}

.generator-illustration-screen {
    inset: 32px 78px 48px 58px;
    border: 1px solid rgba(197, 220, 255, 0.18);
    background: rgba(6, 15, 29, 0.72);
}

.generator-illustration-panel {
    width: 130px;
    height: 72px;
    right: 24px;
    bottom: 22px;
    background: rgba(255, 255, 255, 0.1);
}

.generator-illustration-orbit {
    width: 180px;
    height: 180px;
    left: 38%;
    top: 16px;
    border: 1px solid rgba(125, 184, 255, 0.26);
    box-shadow: 0 0 0 24px rgba(125, 184, 255, 0.05), 0 0 0 48px rgba(125, 184, 255, 0.03);
}

.generator-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    grid-column: 2;
    grid-row: auto;
    align-self: start;
    margin: -120px 0 0;
    padding: 0;
    pointer-events: none;
}

.generator-actions-inline {
    margin-top: 18px;
}

.workspace-generator-layout .generator-card-config .generator-actions {
    margin-left: 0;
    margin-top: 8px;
    margin-bottom: 0;
    justify-content: space-between;
}

.generator-submit {
    min-height: 54px;
    padding: 0.95rem 1.4rem;
    font-size: 1rem;
    margin-top: 0;
    pointer-events: auto;
}

.generator-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 18px;
}

.generator-field-grid-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.generator-field-label {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--form-label-text);
}

.generator-card-config-showcase .generator-form-stack {
    gap: 20px;
}

.generator-validation-alert {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(214, 56, 56, 0.12);
    border: 1px solid rgba(214, 56, 56, 0.18);
    color: #ffd6d6;
}

.generator-validation-alert[hidden] {
    display: none !important;
}

.generator-validation-alert strong,
.generator-validation-alert p {
    margin: 0;
}

.field-error-note {
    margin: 6px 0 0;
    color: #ff9e9e;
    font-size: 0.92rem;
    font-weight: 700;
}

.config-dropdown.has-error .config-dropdown-trigger,
.objective-textarea.has-error {
    border-color: rgba(214, 56, 56, 0.72);
    box-shadow: 0 0 0 3px rgba(214, 56, 56, 0.12);
}

body[data-theme="claro"] .generator-validation-alert {
    background: rgba(214, 56, 56, 0.08);
    border-color: rgba(214, 56, 56, 0.14);
    color: #8b2d2d;
}

body[data-theme="claro"] .field-error-note {
    color: #b63838;
}

.generator-card-config-showcase .objective-textarea,
.generator-card-config-showcase .form-field textarea {
    min-height: 88px;
    height: 88px;
    resize: vertical;
}

.config-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.config-chip-row,
.config-segmented-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.config-segmented-row {
    flex-wrap: nowrap;
}

.config-chip,
.config-segmented-chip {
    position: relative;
    display: inline-flex;
}

.config-chip span,
.config-segmented-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(135, 165, 230, 0.16);
    color: var(--panel-text);
    font-weight: 700;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.config-segmented-chip {
    flex: 1 1 0;
}

.config-segmented-chip span {
    width: 100%;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.config-chip input:checked + span,
.config-segmented-chip input:checked + span {
    background: linear-gradient(135deg, rgba(95, 176, 255, 0.22), rgba(45, 109, 246, 0.28));
    border-color: rgba(125, 184, 255, 0.62);
    color: #ffffff;
}

.config-dropdown {
    position: relative;
}

.config-dropdown[open] .config-dropdown-trigger {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.config-dropdown-trigger {
    list-style: none;
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 2.8rem 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--form-input-border);
    background: var(--form-input-bg);
    color: var(--form-input-text);
    cursor: pointer;
    position: relative;
}

.config-dropdown-trigger::-webkit-details-marker {
    display: none;
}

.config-dropdown-trigger::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(125, 184, 255, 0.9);
    border-bottom: 2px solid rgba(125, 184, 255, 0.9);
    transform: translateY(-60%) rotate(45deg);
}

.config-dropdown-menu {
    margin-top: 8px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--form-input-border);
    background: rgba(12, 24, 43, 0.98);
    display: grid;
    gap: 8px;
}

.config-dropdown-option {
    position: relative;
    display: flex;
}

.config-dropdown-option span {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    color: var(--panel-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(135, 165, 230, 0.1);
}

.config-dropdown-option input:checked + span {
    background: linear-gradient(135deg, rgba(95, 176, 255, 0.22), rgba(45, 109, 246, 0.28));
    border-color: rgba(125, 184, 255, 0.62);
    color: #ffffff;
}

.config-dropdown-option input[type="radio"],
.config-dropdown-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.objective-textarea,
.form-field textarea,
.form-field input[type="text"],
.form-field select {
    width: 100%;
    min-height: 58px;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--form-input-border);
    background: var(--form-input-bg);
    color: var(--form-input-text);
}

.generator-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(125, 184, 255, 0.92) 50%),
        linear-gradient(135deg, rgba(125, 184, 255, 0.92) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 2px),
        calc(100% - 14px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.7rem;
}

.generator-select-multiple {
    min-height: 126px;
    padding: 0.55rem;
    background-image: none;
}

.generator-select-multiple option {
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
}

.generator-select-multiple option:checked {
    background: linear-gradient(135deg, rgba(95, 176, 255, 0.22), rgba(45, 109, 246, 0.28));
    color: #ffffff;
}

.objective-textarea,
.form-field textarea {
    min-height: 142px;
    resize: vertical;
}

.generator-config-visual {
    position: relative;
    min-height: 168px;
    margin-top: 22px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 18%, rgba(125, 184, 255, 0.18), transparent 24%),
        linear-gradient(145deg, rgba(23, 52, 90, 0.92), rgba(11, 27, 49, 0.96));
    border: 1px solid rgba(135, 165, 230, 0.12);
}

.generator-config-visual-screen,
.generator-config-visual-panel,
.generator-config-visual-pill {
    position: absolute;
    border-radius: 22px;
}

.generator-config-visual-screen {
    inset: 18px 86px 28px 22px;
    background: rgba(8, 20, 38, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.generator-config-visual-panel {
    width: 42%;
    height: 100%;
    max-height: 112px;
    right: 26px;
    top: 28px;
    background: rgba(255, 255, 255, 0.12);
}

.generator-config-visual-pill {
    width: 96px;
    height: 42px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    border: 1px solid rgba(125, 184, 255, 0.32);
    box-shadow: 0 0 0 32px rgba(125, 184, 255, 0.04), 0 0 0 62px rgba(125, 184, 255, 0.02);
}

body[data-theme="claro"] .generator-select,
body[data-theme="claro"] .objective-textarea,
body[data-theme="claro"] .form-field textarea,
body[data-theme="claro"] .form-field input[type="text"],
body[data-theme="claro"] .form-field select {
    background-color: #eef4ff;
    border-color: rgba(71, 118, 201, 0.18);
    color: #17335f;
}

body[data-theme="claro"] .config-chip span,
body[data-theme="claro"] .config-segmented-chip span,
body[data-theme="claro"] .config-dropdown-option span {
    background: rgba(255, 255, 255, 0.88);
    color: #17335f;
}

body[data-theme="claro"] .config-chip input:checked + span,
body[data-theme="claro"] .config-segmented-chip input:checked + span,
body[data-theme="claro"] .config-dropdown-option input:checked + span {
    color: #17335f;
}

body[data-theme="claro"] .config-dropdown-menu {
    background: #ffffff;
    border-color: rgba(71, 118, 201, 0.16);
}

body[data-theme="claro"] .generator-config-visual {
    background:
        radial-gradient(circle at 22% 18%, rgba(87, 145, 255, 0.18), transparent 24%),
        linear-gradient(145deg, #d7e7ff, #bdd5fb);
    border-color: rgba(71, 118, 201, 0.14);
}

body[data-theme="claro"] .generator-config-visual-screen {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(71, 118, 201, 0.12);
}

body[data-theme="claro"] .generator-config-visual-panel {
    background: rgba(255, 255, 255, 0.58);
}

.results-studio {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.results-studio-sidebar,
.results-actions-shell {
    display: grid;
    gap: 18px;
}

.results-info-card,
.results-actions-card,
.results-preview-shell {
    background: var(--panel-bg);
    border: 1px solid rgba(135, 165, 230, 0.12);
    border-radius: 24px;
    box-shadow: 0 22px 52px rgba(1, 9, 20, 0.16);
}

.results-info-card,
.results-actions-card {
    padding: 22px;
}

.results-preview-shell {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.results-eyebrow,
.results-breadcrumb {
    margin: 0 0 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #7db8ff;
    font-weight: 800;
}

.results-breadcrumb span {
    opacity: 0.55;
}

.results-info-card h1,
.results-info-card h2,
.results-actions-card h2,
.results-preview-topbar h2 {
    margin: 0;
    color: var(--panel-title-text);
}

.results-copy,
.results-actions-copy,
.results-empty-copy {
    margin: 10px 0 0;
    color: var(--resource-card-meta-text);
    line-height: 1.6;
}

.results-meta-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.results-info-layout {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.results-info-main {
    min-width: 0;
}

.results-sidebar-save-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(135, 165, 230, 0.1);
}

.results-sidebar-actions-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(135, 165, 230, 0.1);
}

.results-sidebar-actions-block h2 {
    margin: 0 0 10px;
}

.results-sidebar-actions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.results-sidebar-actions-head h2 {
    margin: 0;
}

.results-sidebar-actions-block {
    margin-top: 0;
    padding-top: 0;
    padding-left: 28px;
    border-top: 0;
    border-left: 1px solid rgba(135, 165, 230, 0.1);
}

.results-sidebar-save-block h2 {
    margin: 0 0 10px;
}

.results-share-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(135, 165, 230, 0.1);
}

.results-share-inline {
    display: grid;
    gap: 12px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(135, 165, 230, 0.1);
}

.results-share-link {
    color: #7db8ff;
    font-weight: 700;
    text-decoration: none;
}

.results-share-link:hover {
    text-decoration: underline;
}

.results-meta-list p {
    margin: 0;
    color: var(--resource-card-meta-text);
    line-height: 1.55;
}

.results-meta-list strong {
    color: var(--panel-title-text);
}

.results-save-button {
    width: 100%;
    margin-top: 1rem;
}

.results-save-button:disabled,
.save-material-input:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.results-save-button:disabled:hover {
    transform: none;
}

.results-user-link {
    width: fit-content;
    justify-self: start;
    margin-top: 4px;
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
}

.results-resource-list-head,
.results-preview-topbar,
.results-preview-title-row,
.results-action-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.results-resource-count,
.results-preview-status,
.results-rating-chip {
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(95, 176, 255, 0.12);
    color: #7db8ff;
    font-size: 0.82rem;
    font-weight: 800;
}

.results-resource-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.results-resource-item {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(135, 165, 230, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--panel-text);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.results-resource-item.is-active {
    background: linear-gradient(135deg, rgba(95, 176, 255, 0.16), rgba(45, 109, 246, 0.18));
    border-color: rgba(125, 184, 255, 0.42);
}

.results-resource-item:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 184, 255, 0.28);
}

.results-resource-item-title,
.results-resource-item-subtitle {
    display: block;
}

.results-resource-item-title {
    font-weight: 800;
    color: var(--panel-title-text);
}

.results-resource-item-subtitle {
    margin-top: 4px;
    font-size: 0.92rem;
    color: var(--resource-card-meta-text);
}

.results-preview-arrows {
    display: flex;
    gap: 10px;
}

.results-inline-alert {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.results-inline-alert-error {
    background: rgba(214, 56, 56, 0.12);
    color: #ff9e9e;
}

.results-inline-alert-warn {
    background: rgba(255, 191, 87, 0.12);
    color: #ffcf75;
}

.results-preview-viewport {
    min-height: 720px;
    border-radius: 20px;
    border: 1px solid rgba(135, 165, 230, 0.12);
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
    overflow: auto;
}

.results-preview-viewport * {
    max-width: 100%;
    box-sizing: border-box;
}

.results-preview-viewport .preview-frame {
    min-height: 560px;
}

.results-preview-viewport .preview-editor {
    min-height: 420px;
}

.results-preview-save-card {
    max-width: 360px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(135, 165, 230, 0.12);
}

.results-preview-save-card h3 {
    margin: 0;
    color: var(--panel-title-text);
}

.results-action-panel {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.results-action-panel[hidden] {
    display: none !important;
}

.results-action-panel-static {
    margin-top: 34px;
}

.results-action-panel h3 {
    margin: 0;
    color: var(--panel-title-text);
}

.results-action-stack {
    display: grid;
    gap: 12px;
}

.results-action-stack form {
    margin: 0;
}

.results-action-stack .btn-sec,
.results-action-stack .btn-primario,
.results-action-stack form button {
    width: 100%;
}

.results-action-panel-static .save-material-label {
    margin-top: 0.2rem;
}

.results-download-wrapper .download-menu {
    width: 100%;
}

body[data-theme="claro"] .results-info-card,
body[data-theme="claro"] .results-actions-card,
body[data-theme="claro"] .results-preview-shell {
    background: #ffffff;
    border-color: rgba(71, 118, 201, 0.12);
}

body[data-theme="claro"] .sidebar-preview-title-editable,
body[data-theme="claro"] .sidebar-preview-edit-surface {
    background: #f8fbff;
    border-color: rgba(71, 118, 201, 0.18);
    color: #163154;
}

body[data-theme="claro"] .results-sidebar-save-block {
    border-top-color: rgba(71, 118, 201, 0.12);
}

body[data-theme="claro"] .results-share-block {
    border-top-color: rgba(71, 118, 201, 0.12);
}

body[data-theme="claro"] .results-share-inline {
    border-top-color: rgba(71, 118, 201, 0.12);
}

body[data-theme="claro"] .results-sidebar-actions-block {
    border-left-color: rgba(71, 118, 201, 0.12);
}

body[data-theme="claro"] .results-resource-item {
    background: rgba(240, 245, 255, 0.82);
    border-color: rgba(71, 118, 201, 0.12);
}

body[data-theme="claro"] .results-preview-viewport {
    background: #f9fbff;
    border-color: rgba(71, 118, 201, 0.12);
}

@media (max-width: 1280px) {
    .results-studio {
        grid-template-columns: 420px minmax(0, 1fr);
    }
}

@media (max-width: 920px) {
    .results-studio {
        grid-template-columns: 1fr;
    }

    .results-info-layout {
        grid-template-columns: 1fr;
    }

    .results-preview-viewport {
        min-height: 520px;
    }
}

.choice-chip-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.choice-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-chip {
    position: relative;
    display: inline-flex;
}

.choice-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(135, 165, 230, 0.16);
    color: var(--panel-text);
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body[data-theme="claro"] .choice-chip span {
    background: rgba(255, 255, 255, 0.88);
}

.choice-chip input:checked + span {
    background: linear-gradient(135deg, rgba(95, 176, 255, 0.22), rgba(45, 109, 246, 0.28));
    border-color: rgba(125, 184, 255, 0.6);
    color: #ffffff;
}

body[data-theme="claro"] .choice-chip input:checked + span {
    color: #17335f;
}

.choice-chip:hover span {
    transform: translateY(-1px);
    border-color: rgba(125, 184, 255, 0.4);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dashboard-sidebar {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 30px;
    background: var(--sidebar-bg);
    border: 1px solid rgba(135, 165, 230, 0.12);
    box-shadow: 0 28px 70px rgba(1, 9, 20, 0.18);
    min-height: calc(100vh - 180px);
}

.dashboard-brand-card h1 {
    margin: 0;
    color: var(--panel-title-text);
}

.dashboard-brand-card p:last-child {
    margin: 12px 0 0;
    color: var(--resource-card-meta-text);
}

.dashboard-resource-list {
    display: grid;
    gap: 14px;
    align-content: start;
    max-height: 68vh;
    overflow-y: auto;
    padding-right: 4px;
}

.resource-tabs {
    grid-template-columns: 1fr;
    margin: 0;
}

.recurso-card-dashboard {
    padding: 18px;
    border-radius: 20px;
    margin-bottom: 0;
}

.dashboard-main {
    display: grid;
    gap: 18px;
}

.dashboard-main-panel {
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.dashboard-placeholder {
    min-height: 640px;
    padding: 30px;
    border-radius: 30px;
    background: var(--panel-bg);
    border: 1px solid rgba(135, 165, 230, 0.12);
}

.dashboard-hero {
    width: 100%;
    min-height: 580px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 22px;
    align-items: center;
}

.dashboard-hero-copy h3 {
    margin: 0;
    color: var(--panel-title-text);
    font-size: clamp(2.2rem, 4vw, 3.9rem);
    line-height: 0.98;
    max-width: 11ch;
}

.dashboard-hero-copy p {
    margin: 16px 0 0;
    max-width: 54ch;
    color: var(--resource-card-meta-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.dashboard-create-button {
    margin-top: 28px;
    min-height: 56px;
    padding: 0.95rem 1.35rem;
}

.dashboard-hero-visual {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 22% 22%, rgba(95, 176, 255, 0.42), transparent 26%),
        linear-gradient(155deg, rgba(10, 28, 49, 0.95), rgba(16, 57, 104, 0.74));
    overflow: hidden;
}

.dashboard-hero-window {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 8px;
}

.dashboard-hero-window span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.54);
}

.dashboard-hero-cards {
    position: absolute;
    inset: 74px 26px 28px;
    display: grid;
    gap: 16px;
}

.dashboard-hero-cards div {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(232, 241, 255, 0.12);
}

.resource-menu {
    position: relative;
    justify-self: end;
}

.resource-menu-button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

.resource-menu-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.resource-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 0.45rem;
    border-radius: 18px;
    background: var(--menu-bg);
    border: 1px solid rgba(135, 165, 230, 0.16);
    box-shadow: 0 24px 50px rgba(1, 9, 20, 0.26);
    z-index: 30;
}

.resource-menu-dropdown a,
.resource-menu-dropdown button {
    width: 100%;
    display: block;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--menu-text);
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.resource-menu-dropdown a:hover,
.resource-menu-dropdown button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.resource-menu-dropdown button:disabled {
    color: var(--menu-text-muted);
    cursor: not-allowed;
}

.resource-menu-dropdown form {
    margin: 0;
}

.resource-menu.is-open .resource-menu-dropdown {
    display: block;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal {
    width: min(420px, calc(100vw - 24px));
    padding: 24px;
    border-radius: 24px;
    background: var(--panel-bg);
    color: var(--panel-text);
    border: 1px solid rgba(135, 165, 230, 0.16);
    box-shadow: 0 28px 60px rgba(1, 9, 20, 0.3);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.modal-share-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.modal-share-form label {
    font-weight: 700;
}

.modal-share-form input {
    width: 100%;
    padding: 0.9rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--form-input-border);
    background: var(--form-input-bg);
    color: var(--form-input-text);
}

.btn-delete,
.btn-cancelar,
.modal-submit-button {
    min-height: 46px;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn-delete {
    background: #d84f6a;
    color: #fff;
}

.btn-cancelar {
    background: rgba(255, 255, 255, 0.12);
    color: var(--panel-text);
}

.config-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.config-status-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.config-status-badge {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
}

.config-status-badge.is-ready {
    background: rgba(76, 203, 133, 0.18);
    color: #4dcb85;
}

.config-status-badge.is-pending {
    background: rgba(255, 183, 77, 0.16);
    color: #ffbf57;
}

.generator-inline-message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(135, 165, 230, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.generator-inline-message-error {
    color: #ff9c9c;
}

.generator-inline-message-success {
    color: #7fe0ab;
}

@media (max-width: 1180px) {
    .dashboard-grid,
    .workspace-generator-layout,
    .generator-grid,
    .dashboard-hero,
    .generator-field-grid {
        grid-template-columns: 1fr;
    }

    .generator-card-sticky {
        position: static;
    }

    .generator-actions {
        grid-column: 1 / -1;
        margin-top: 0;
        justify-content: flex-start;
    }

    .dashboard-sidebar {
        min-height: auto;
    }

    .dashboard-resource-list {
        max-height: none;
    }
}

@media (max-width: 760px) {
    main {
        width: min(100%, calc(100% - 24px));
        padding-top: 18px;
    }

    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .theme-toggle {
        order: -1;
    }

    .dashboard-sidebar,
    .dashboard-placeholder,
    .generator-card {
        padding: 18px;
        border-radius: 22px;
    }

    .choice-chip-grid {
        grid-template-columns: 1fr;
    }

    .generator-actions {
        align-items: stretch;
    }

    .generator-submit,
    .btn-sec,
    .btn-primario,
    .btn-crear {
        width: 100%;
    }
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: calc(100vh - 88px);
}

.app-shell-content {
    min-width: 0;
    display: grid;
    gap: 24px;
    padding: 34px 34px 0;
    background: linear-gradient(180deg, rgba(9, 21, 38, 0.8), rgba(7, 26, 43, 0.94));
    border-left: 1px solid rgba(135, 165, 230, 0.08);
}

.app-sidebar {
    position: sticky;
    top: 78px;
    min-height: calc(100vh - 78px);
    height: calc(100vh - 78px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 26px 18px 18px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(20, 34, 56, 0.97), rgba(13, 25, 43, 0.99));
    border-right: 1px solid rgba(135, 165, 230, 0.12);
    box-shadow: none;
}

body.workspace-page .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    min-height: 100vh;
    height: 100vh;
    z-index: 110;
}

body[data-theme="claro"] .app-sidebar {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,255,0.98));
}

body[data-theme="claro"] .app-shell-content {
    background: linear-gradient(180deg, #f6f9ff, #edf3ff);
}

.app-sidebar-top,
.app-sidebar-bottom,
.app-sidebar-nav,
.app-sidebar-meta {
    display: grid;
    gap: 12px;
}

.app-sidebar-bottom {
    margin-top: auto;
}

.app-sidebar-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 8px 4px 18px;
}

.app-sidebar-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 auto;
}

.app-sidebar-brand-title {
    font-size: 2rem;
    font-weight: 900;
    color: #2b77ff;
}

.app-sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--panel-text);
    font-weight: 700;
    transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.app-sidebar-link:hover {
    transform: translateX(2px);
    background: rgba(95, 176, 255, 0.08);
}

.app-sidebar-link.is-active {
    background: rgba(95, 176, 255, 0.12);
    color: #6db6ff;
}

.app-sidebar-link.is-active::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: -8px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #78beff, #2d6df6);
}

.app-sidebar-link-icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    color: inherit;
}

.app-sidebar-meta {
    padding-top: 12px;
    border-top: 1px solid rgba(135, 165, 230, 0.14);
}

.app-sidebar-meta-link {
    padding: 0.4rem 0;
    color: var(--resource-card-meta-text);
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.app-sidebar-meta-link:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.app-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(135, 165, 230, 0.14);
}

.app-sidebar-user strong {
    color: var(--panel-title-text);
}

.app-sidebar-user p {
    margin: 2px 0 0;
    color: var(--resource-card-meta-text);
    font-size: 0.9rem;
}

.app-sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.app-sidebar-user-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(95, 176, 255, 0.16);
    color: #7db8ff;
    font-weight: 800;
}

.dashboard-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
}

.dashboard-callout {
    border-radius: 28px;
    padding: 26px;
    border: 1px solid rgba(135, 165, 230, 0.14);
    box-shadow: 0 24px 60px rgba(1, 9, 20, 0.14);
}

.dashboard-callout-primary {
    background: linear-gradient(135deg, #1c67ea, #378cff);
    color: #ffffff;
}

.dashboard-callout-secondary {
    background: rgba(255, 255, 255, 0.08);
}

body[data-theme="claro"] .dashboard-callout-secondary {
    background: rgba(255, 255, 255, 0.88);
}

.dashboard-callout-badge,
.dashboard-resource-tag,
.history-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-callout-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.dashboard-callout h2,
.dashboard-callout h3,
.dashboard-resource-card h3,
.history-card h3,
.dashboard-section-head h2 {
    margin: 0;
    color: var(--panel-title-text);
}

.dashboard-callout-primary h2,
.dashboard-callout-primary p,
.dashboard-callout-primary .dashboard-callout-badge {
    color: #ffffff;
}

.dashboard-callout p,
.dashboard-section-head p,
.dashboard-resource-card p,
.history-card p {
    color: var(--resource-card-meta-text);
}

.dashboard-callout-primary p {
    color: rgba(255,255,255,0.9);
}

.dashboard-callout-button {
    margin-top: 18px;
}

.dashboard-mini-icon,
.dashboard-resource-icon,
.history-card-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(95, 176, 255, 0.14);
    color: #6db6ff;
    font-weight: 900;
}

.dashboard-recent-section,
.history-board {
    display: grid;
    gap: 18px;
}

.dashboard-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-inline-link {
    color: #6db6ff;
    text-decoration: none;
    font-weight: 700;
}

.dashboard-recent-grid,
.history-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-resource-card,
.history-card {
    display: grid;
    gap: 16px;
    border-radius: 24px;
    padding: 20px;
    background: var(--panel-bg);
    border: 1px solid rgba(135, 165, 230, 0.14);
    box-shadow: 0 18px 42px rgba(1, 9, 20, 0.1);
}

.dashboard-resource-card-empty,
.dashboard-resource-card-create {
    border-style: dashed;
}

.dashboard-resource-card-top,
.history-card-top,
.dashboard-resource-card-footer,
.history-card-meta,
.history-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-resource-card-footer a,
.history-card-actions a {
    color: #6db6ff;
    text-decoration: none;
    font-weight: 700;
}

.history-card {
    padding: 0;
    overflow: hidden;
}

.history-card-accent {
    height: 6px;
    background: linear-gradient(90deg, #3b7cff, #6bd8d0, #8f7cff);
}

.history-card-body {
    display: grid;
    gap: 14px;
    padding: 18px 20px 0;
}

.history-card-actions {
    padding: 0 20px 20px;
}

.history-card-meta {
    color: var(--resource-card-meta-text);
    font-size: 0.92rem;
}

.history-shared-section {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.history-grid-shared {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1280px) {
    .dashboard-recent-grid,
    .history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-grid-shared {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    body.workspace-page header {
        position: sticky;
        left: auto;
        width: 100%;
    }

    body.workspace-page .header-brand {
        display: grid;
    }

    body.workspace-page main {
        padding-top: 0;
    }

    body.workspace-page .app-shell-content {
        margin-left: 0;
        min-height: auto;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
        min-height: auto;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(135, 165, 230, 0.12);
    }

    body.workspace-page .app-sidebar {
        position: static;
        width: auto;
        min-height: auto;
        height: auto;
    }

    .dashboard-hero-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-recent-grid,
    .history-grid,
    .history-grid-shared {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        padding: 18px 16px;
        border-radius: 0;
    }

    .app-sidebar-link.is-active::after {
        display: none;
    }
}

/* Landing refresh */
.landing-page-product {
    width: min(1260px, calc(100% - 48px));
    padding: 34px 0 18px;
    gap: 28px;
}

.landing-hero-product {
    min-height: auto;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 34px;
    padding: 18px 0 8px;
}

.landing-hero-product .landing-copy h1 {
    max-width: 9ch;
    font-size: clamp(3.3rem, 7vw, 5.4rem);
}

.landing-visual-product {
    min-height: 500px;
}

.landing-product-frame {
    position: relative;
    width: min(100%, 620px);
    min-height: 500px;
    display: grid;
    place-items: center;
}

.landing-product-glow {
    position: absolute;
    inset: 12% 10%;
    border-radius: 40px;
    background:
        radial-gradient(circle, rgba(65, 214, 255, 0.26), transparent 44%),
        radial-gradient(circle at bottom, rgba(54, 116, 255, 0.2), transparent 46%);
    filter: blur(14px);
}

.landing-product-device {
    position: relative;
    width: min(100%, 560px);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, #08131f, #12263d 58%, #0d1827);
    border: 1px solid rgba(115, 195, 255, 0.18);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.landing-product-device-top {
    display: flex;
    gap: 8px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
}

.landing-product-device-top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
}

.landing-product-device-body {
    position: relative;
    min-height: 390px;
    padding: 32px;
    display: grid;
    place-items: center;
}

.landing-product-doc {
    position: relative;
    z-index: 2;
    width: 190px;
    min-height: 230px;
    border-radius: 26px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(112, 227, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(112, 227, 255, 0.28);
    box-shadow: 0 22px 44px rgba(14, 38, 63, 0.42);
}

.landing-product-doc-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #42e1ff, #2f7dff);
}

.landing-product-doc-lines {
    display: grid;
    gap: 12px;
}

.landing-product-doc-lines span {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
}

.landing-product-doc-lines span:nth-child(2) {
    width: 82%;
}

.landing-product-doc-lines span:nth-child(3) {
    width: 66%;
}

.landing-product-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(77, 209, 255, 0.18);
}

.landing-product-orbit-a {
    width: 300px;
    height: 300px;
    box-shadow: 0 0 0 28px rgba(77, 209, 255, 0.04);
}

.landing-product-orbit-b {
    width: 390px;
    height: 390px;
    box-shadow: 0 0 0 40px rgba(77, 209, 255, 0.025);
}

.landing-product-chip {
    position: absolute;
    z-index: 3;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.landing-product-chip-a {
    top: 76px;
    left: 54px;
}

.landing-product-chip-b {
    right: 54px;
    top: 140px;
}

.landing-product-chip-c {
    bottom: 70px;
    left: 88px;
}

.landing-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.landing-stat-card {
    display: grid;
    gap: 8px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.landing-stat-card strong {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
}

.landing-stat-card span {
    color: rgba(255, 255, 255, 0.72);
}

.landing-section-product {
    padding: 36px;
}

.landing-section-head-centered {
    text-align: center;
    justify-items: center;
}

.landing-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.landing-capability-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
}

.landing-capability-card h3 {
    margin: 0;
    color: #16233a;
    font-size: 1.35rem;
}

.landing-capability-card p {
    margin: 0;
    color: rgba(22, 35, 58, 0.74);
    line-height: 1.6;
}

.landing-capability-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #317dff, #57b0ff);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.landing-capability-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-capability-tags span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(49, 125, 255, 0.1);
    color: #245bd4;
    font-weight: 700;
    font-size: 0.88rem;
}

.landing-inline-link {
    color: #245bd4;
    text-decoration: none;
    font-weight: 800;
}

.landing-capability-card-visual {
    background: linear-gradient(160deg, #eef5ff, #dfeeff);
}

.landing-capability-photo-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 160px 120px;
    gap: 12px;
    min-height: 100%;
}

.landing-capability-photo-grid div {
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(18, 35, 58, 0.16), rgba(18, 35, 58, 0.04)),
        linear-gradient(145deg, #f7fbff, #cfdff8);
}

.landing-capability-photo-grid div:first-child {
    grid-row: 1 / span 2;
}

.landing-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.landing-process-card {
    display: grid;
    gap: 14px;
    padding: 24px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
}

.landing-process-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(49, 125, 255, 0.12);
    color: #245bd4;
    font-weight: 900;
}

.landing-process-card h3 {
    margin: 0;
    color: #16233a;
}

.landing-process-card p {
    margin: 0;
    color: rgba(22, 35, 58, 0.72);
    line-height: 1.58;
}

.landing-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 30px 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #125fd8, #2c83ff);
    color: #ffffff;
    box-shadow: 0 26px 60px rgba(18, 95, 216, 0.22);
}

.landing-cta-panel h2,
.landing-cta-panel p {
    margin: 0;
    color: #ffffff;
}

.landing-cta-panel h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.landing-cta-panel p {
    margin-top: 10px;
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.86);
}

.landing-cta-secondary-light {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1080px) {
    .landing-hero-product,
    .landing-capability-grid,
    .landing-process-grid,
    .landing-stat-grid {
        grid-template-columns: 1fr;
    }

    .landing-product-frame {
        min-height: 420px;
    }
}

@media (max-width: 700px) {
    .landing-page-product {
        width: min(100%, calc(100% - 24px));
        padding-top: 18px;
    }

    .landing-section-product,
    .landing-cta-panel {
        padding: 22px 18px;
    }

    .landing-product-device-body {
        padding: 22px;
    }

    .landing-product-chip {
        position: static;
        justify-self: center;
    }

    .landing-product-device-body {
        gap: 12px;
    }

    .landing-capability-photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 140px 120px 120px;
    }

    .landing-capability-photo-grid div:first-child {
        grid-row: auto;
    }
}

.app-sidebar-meta-link.is-active {
    color: #6db6ff;
}

.settings-workspace {
    display: grid;
    gap: 24px;
}

.settings-workspace-header {
    display: grid;
    gap: 10px;
}

.settings-workspace-header h1 {
    margin: 0;
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    line-height: 0.98;
    color: var(--panel-title-text);
}

.settings-workspace-header p:last-child {
    max-width: 820px;
    margin: 0;
    font-size: 1.08rem;
    color: var(--resource-card-meta-text);
}

.settings-workspace-form {
    display: grid;
    gap: 22px;
}

.settings-workspace-card {
    display: grid;
    gap: 14px;
    padding: 0;
    border-radius: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.settings-workspace-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.settings-workspace-card-head h2 {
    margin: 0 0 4px;
    color: var(--panel-title-text);
    font-size: 1rem;
}

.settings-workspace-card-head p {
    margin: 0;
    color: var(--resource-card-meta-text);
    font-size: 0.92rem;
    line-height: 1.4;
}

.settings-workspace-messages {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.settings-workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-theme-tile {
    position: relative;
    display: block;
}

.settings-theme-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-theme-tile-card {
    position: relative;
    display: grid;
    gap: 7px;
    min-height: 132px;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(135, 165, 230, 0.14);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.settings-theme-tile-card:hover {
    transform: translateY(-2px);
}

.settings-theme-tile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(125, 184, 255, 0.16), transparent 36%);
    pointer-events: none;
}

.settings-theme-tile-card-dark {
    background:
        radial-gradient(circle at 82% 20%, rgba(125, 184, 255, 0.14), transparent 22%),
        linear-gradient(145deg, rgba(22, 35, 59, 0.96), rgba(10, 18, 31, 0.98));
}

.settings-theme-tile-card-light {
    background:
        radial-gradient(circle at 18% 14%, rgba(99, 164, 255, 0.18), transparent 24%),
        linear-gradient(145deg, rgba(247, 250, 255, 0.98), rgba(229, 238, 252, 0.98));
    border-color: rgba(71, 118, 201, 0.16);
}

.settings-theme-tile-label {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    background: rgba(95, 176, 255, 0.14);
    color: #7dc4ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-theme-tile-card-light .settings-theme-tile-label {
    background: rgba(71, 118, 201, 0.12);
    color: #28539c;
}

.settings-theme-tile-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--panel-title-text);
}

.settings-theme-tile-card-light .settings-theme-tile-title,
.settings-theme-tile-card-light .settings-theme-tile-copy {
    color: #17335f;
}

.settings-theme-tile-copy {
    max-width: 28ch;
    color: var(--resource-card-meta-text);
    font-size: 0.84rem;
    line-height: 1.35;
}

.settings-theme-mini {
    margin-top: auto;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 6px;
    align-items: stretch;
    min-height: 38px;
}

.settings-theme-mini span {
    display: block;
    border-radius: 12px;
}

.settings-theme-mini span:first-child {
    background: rgba(14, 27, 47, 0.72);
}

.settings-theme-mini span:nth-child(2) {
    background: rgba(255, 255, 255, 0.08);
}

.settings-theme-mini span:last-child {
    grid-column: 1 / -1;
    min-height: 9px;
    background: rgba(95, 176, 255, 0.28);
}

.settings-theme-mini-light span:first-child {
    background: rgba(138, 176, 230, 0.28);
}

.settings-theme-mini-light span:nth-child(2) {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(71, 118, 201, 0.12);
}

.settings-theme-mini-light span:last-child {
    background: rgba(71, 118, 201, 0.22);
}

.settings-theme-tile input:checked + .settings-theme-tile-card {
    border-color: rgba(125, 184, 255, 0.62);
    box-shadow: 0 0 0 2px rgba(109, 182, 255, 0.16), 0 20px 42px rgba(24, 64, 140, 0.18);
}

.settings-workspace-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.settings-modal-page .header-brand,
.settings-modal-page .site-title,
.settings-modal-page .logo {
    cursor: pointer;
}

body.workspace-page.settings-modal-page header {
    left: 0;
    width: 100%;
}

body.workspace-page.settings-modal-page .header-brand {
    display: inline-flex;
}

body.workspace-page.settings-modal-page .header-top {
    justify-content: space-between;
}

body.workspace-page.settings-modal-page main {
    flex: 1;
    display: grid;
    justify-items: center;
    align-items: center;
    padding-top: 112px;
    padding-bottom: 24px;
    box-sizing: border-box;
}

.settings-modal-shell {
    width: min(760px, calc(100% - 88px));
    margin: 16px auto 0;
    padding-bottom: 4px;
}

.settings-modal-card {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 20, 36, 0.96), rgba(8, 18, 33, 0.98));
    border: 1px solid rgba(135, 165, 230, 0.14);
    box-shadow: 0 28px 70px rgba(1, 9, 20, 0.24);
}

body.workspace-page.settings-modal-page footer {
    padding-top: 0.2rem;
    padding-bottom: 0.35rem;
}

.settings-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.settings-modal-header-copy {
    display: grid;
    gap: 6px;
}

.settings-workspace-card-modal {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.settings-workspace-actions-modal {
    padding-top: 4px;
}

.settings-workspace-actions-modal .btn-sec,
.settings-workspace-actions-modal .btn-primario {
    min-height: 42px;
    padding: 0.62rem 1.15rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

body[data-theme="claro"] .settings-modal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
    border-color: rgba(71, 118, 201, 0.14);
}

@media (max-width: 960px) {
    .settings-workspace-grid {
        grid-template-columns: 1fr;
    }

    .settings-workspace-card-head,
    .settings-workspace-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .settings-workspace-messages {
        justify-items: start;
    }

    .settings-modal-shell {
        width: min(100%, calc(100% - 24px));
    }

    .settings-modal-card {
        padding: 22px 18px;
    }
}
