:root {
    --bg: #edf2f7;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #0f172a;
    --text-soft: #64748b;
    --line: #e2e8f0;
    --brand: #0f766e;
    --brand-strong: #115e59;
    --brand-soft: #ccfbf1;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --success: #047857;
    --success-soft: #dcfce7;
    --warning: #b45309;
    --warning-soft: #fef3c7;
    --info: #1d4ed8;
    --info-soft: #dbeafe;
    --shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    --brand-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --print-folio-width: 216mm;
    --print-folio-height: 330mm;
    --print-folio-margin-x: 16mm;
    --print-folio-margin-y: 14mm;
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --font-display: var(--font-body, "Aptos", "Segoe UI", sans-serif);
    --font-size-xs: 0.78rem;
    --font-size-sm: 0.88rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.12rem;
    --font-size-xl: 1.35rem;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body, "Aptos", "Segoe UI", "Helvetica Neue", sans-serif);
    background:
        radial-gradient(circle at top left, rgba(15,118,110,.15), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(59,130,246,.10), transparent 26%),
        radial-gradient(circle at bottom right, rgba(20,184,166,.11), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.56), rgba(237,242,247,.68)),
        var(--bg);
    color: var(--text);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

body.sidebar-open {
    overflow: hidden;
}

body.is-navigating::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand), var(--brand-strong), transparent);
    transform-origin: left;
    animation: navigationBar 1.1s ease-in-out infinite;
}

::selection {
    background: color-mix(in srgb, var(--brand) 24%, transparent);
    color: var(--text);
}

a {
    color: inherit;
}

.page-shell {
    padding: 28px;
    min-width: 0;
    animation: pageEnter .34s ease both;
}

.card,
.doc,
.panel {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.panel {
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.91)),
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 28%);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.085);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.panel:hover {
    border-color: color-mix(in srgb, var(--brand) 12%, rgba(226, 232, 240, .9));
    box-shadow: 0 26px 66px rgba(15, 23, 42, 0.105);
}

.padded-card {
    padding: 22px;
}

.panel-space-bottom {
    margin-bottom: 18px;
}

.panel-space-top {
    margin-top: 18px;
}

.stack-lg {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stack-md {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-gap-sm {
    margin-top: 8px;
}

.top-gap-md {
    margin-top: 14px;
}

.top-gap-lg {
    margin-top: 22px;
}

.page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(226, 232, 240, .78);
}

.page-intro-copy h2,
.page-intro-copy h3 {
    margin: 0 0 8px;
    letter-spacing: -.03em;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.05;
}

.page-intro-copy h2::before,
.page-intro-copy h3::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 999px;
    vertical-align: middle;
    background: var(--brand);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 12%, transparent);
}

.page-intro-copy p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.stack-lg > .panel:first-child:not(.commercial-hero):has(.page-intro) {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.98), color-mix(in srgb, var(--brand-soft) 18%, #fff));
}

.stack-lg > .panel:first-child:not(.commercial-hero):has(.page-intro)::after {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -92px;
    width: 210px;
    height: 210px;
    border-radius: 66px;
    background: color-mix(in srgb, var(--brand) 9%, transparent);
    transform: rotate(24deg);
    pointer-events: none;
}

.stack-lg > .panel:first-child:not(.commercial-hero):has(.page-intro) > * {
    position: relative;
    z-index: 1;
}

.section-title {
    margin: 0;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.section-title-lg {
    margin: 0;
    font-size: 32px;
    letter-spacing: -.05em;
}

.section-copy {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chip-usuarios strong {
    font-weight: 800;
    margin-left: 0.15rem;
}

.chip-usuarios--activos {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.chip-usuarios--online {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.chip-usuarios-btn {
    cursor: pointer;
    font: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}

.chip-usuarios-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.chip-usuarios-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
    outline-offset: 2px;
}

.presencia-dialog {
    width: min(520px, calc(100vw - 32px));
}

.presencia-usuarios-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    max-height: min(50vh, 420px);
    overflow: auto;
}

.presencia-usuarios-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.75);
}

.presencia-usuarios-item strong {
    font-size: 14px;
    color: var(--text);
}

.presencia-usuarios-item .muted {
    font-size: 12px;
    line-height: 1.45;
}

.presencia-usuarios-vacio {
    margin: 0;
}

.chip--hora {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-variant-numeric: tabular-nums;
}

.metric-card--danger {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}

.metric-card--danger strong {
    color: #b91c1c;
}

.chip-row--dashboard-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.superadmin-context-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    border: 1px solid #bae6fd;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
}

.superadmin-context-banner-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 42rem;
}

.superadmin-context-banner-copy strong {
    color: #0f766e;
    font-size: 0.92rem;
}

.superadmin-context-banner-copy span {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
}

.superadmin-context-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, var(--surface-soft));
    border: 1px solid rgba(226, 232, 240, .88);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.metric-grid.spaced-bottom {
    margin-bottom: 22px;
}

.metric-card {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .92);
    background:
        radial-gradient(circle at 95% 8%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 30%),
        linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 74px;
    height: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 28%, #fff));
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: -36px;
    width: 94px;
    height: 94px;
    border-radius: 34px;
    background: color-mix(in srgb, var(--brand) 7%, transparent);
    transform: rotate(22deg);
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 20%, var(--line));
    box-shadow: 0 20px 44px rgba(15, 23, 42, .105);
}

a.metric-card.metric-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.metric-card span {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.metric-card strong {
    display: block;
    font-size: 28px;
    letter-spacing: -.04em;
}

.metric-card small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    line-height: 1.5;
}

.metric-card span,
.metric-card strong {
    position: relative;
    z-index: 1;
}

.surface-note {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15,118,110,.08), rgba(37,99,235,.06));
    border: 1px solid rgba(15,118,110,.12);
    color: var(--text-soft);
    line-height: 1.7;
}

.surface-note.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08));
    border-color: rgba(245, 158, 11, 0.28);
    color: #92400e;
}

.surface-note.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(220, 252, 231, 0.78));
    border-color: rgba(4, 120, 87, 0.20);
    color: var(--success);
}

.surface-note.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.11), rgba(219, 234, 254, 0.76));
    border-color: rgba(29, 78, 216, 0.18);
    color: var(--info);
}

.surface-note.danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.11), rgba(254, 226, 226, 0.78));
    border-color: rgba(220, 38, 38, 0.22);
    color: var(--danger);
}

.assembly-virtual-roadmap {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, .14), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(20, 184, 166, .16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .88));
}

.virtual-stage-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.virtual-stage-card {
    position: relative;
    min-height: 156px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
}

.virtual-stage-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 16px 18px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: .55;
}

.virtual-stage-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .2);
}

.virtual-stage-card strong {
    display: block;
    margin-top: 14px;
    color: var(--text);
    font-size: 1rem;
}

.virtual-stage-card small {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    line-height: 1.55;
}

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

.method-choice {
    align-items: flex-start;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(248, 250, 252, .74));
}

.method-choice strong,
.method-choice small {
    display: block;
}

.method-choice small {
    margin-top: 4px;
    color: var(--text-soft);
    line-height: 1.45;
}

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

.experience-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 30%),
        linear-gradient(180deg, #fff, var(--surface-soft));
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .055);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.experience-tab:hover,
.experience-tab.is-active {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
    box-shadow: 0 22px 44px rgba(15, 23, 42, .1);
}

.experience-tab.is-active {
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
}

.experience-tab .icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: color-mix(in srgb, var(--brand) 12%, #fff);
    color: var(--brand-strong);
    font-weight: 900;
    text-transform: uppercase;
}

.experience-tab.is-active .icon {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.experience-tab strong,
.experience-tab small {
    display: block;
}

.experience-tab strong {
    font-size: 16px;
    letter-spacing: -.02em;
}

.experience-tab small {
    margin-top: 4px;
    color: var(--text-soft);
    font-weight: 700;
}

.experience-tab.is-active small {
    color: rgba(255, 255, 255, .74);
}

.experience-space-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.experience-space-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 28%),
        linear-gradient(180deg, #fff, var(--surface-soft));
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.experience-space-card.is-new {
    border-style: dashed;
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.experience-space-card-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.experience-space-card-head .icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: color-mix(in srgb, var(--brand) 13%, #fff);
    color: var(--brand-strong);
    font-weight: 900;
    text-transform: uppercase;
}

.experience-space-card-head strong,
.experience-space-card-head small {
    display: block;
}

.experience-space-card-head small {
    margin-top: 4px;
    color: var(--text-soft);
    font-weight: 700;
}

.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toggle-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--line));
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand) 5%, #fff);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.reservation-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.reservation-day {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 34%),
        #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .055);
}

.reservation-day-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, #fff), #fff);
}

.reservation-day-head strong,
.reservation-day-head span {
    font-size: 13px;
    font-weight: 900;
}

.reservation-day-head span {
    color: var(--text-soft);
}

.reservation-events {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.reservation-event {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border-left: 4px solid var(--brand);
    border-radius: 14px;
    background: var(--surface-soft);
}

.reservation-event strong {
    font-size: 13px;
}

.reservation-event span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

.status-border-success { border-left-color: var(--success); }
.status-border-warning { border-left-color: var(--warning); }
.status-border-danger { border-left-color: var(--danger); }
.status-border-info { border-left-color: var(--info); }
.status-border-muted { border-left-color: var(--text-soft); }

.compact-upload-form,
.reservation-actions {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.compact-upload-form input[type="file"] {
    max-width: 220px;
    padding: 8px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 12px;
}

.btn-mini {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.dashboard-metrics.compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.dashboard-metrics.compact .metric-card {
    padding: 15px 16px;
}

.commercial-dashboard {
    animation: dashboardReveal .42s ease both;
}

.commercial-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 22px;
    align-items: stretch;
    padding: 32px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 28%),
        radial-gradient(circle at 96% 8%, rgba(59, 130, 246, .13), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--brand-soft) 32%, #ffffff) 100%);
}

.commercial-hero::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .72);
    pointer-events: none;
}

.commercial-hero::after {
    content: "";
    position: absolute;
    right: -72px;
    bottom: -118px;
    width: 270px;
    height: 270px;
    border-radius: 86px;
    background: color-mix(in srgb, var(--brand) 13%, transparent);
    transform: rotate(26deg);
    pointer-events: none;
}

.commercial-hero > * {
    position: relative;
    z-index: 1;
}

.commercial-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.command-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.command-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent);
}

.commercial-hero h2 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: .95;
    letter-spacing: -.075em;
}

.commercial-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.65;
}

.hero-chips {
    margin-top: 18px;
}

.fee-breakdown-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--brand) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
}

.fee-breakdown-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-soft, #475569);
}

.fee-breakdown-list li.is-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed color-mix(in srgb, var(--brand) 18%, var(--border));
    font-weight: 700;
    color: var(--text, #0f172a);
}

.dashboard-inftec-billing-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin: 0 0 18px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, #7c3aed 28%, var(--border));
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .14), transparent 52%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(245, 243, 255, .92));
    box-shadow: 0 14px 36px rgba(91, 33, 182, .08);
}

.dashboard-inftec-billing-alert-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #5b21b6;
    background: color-mix(in srgb, #7c3aed 16%, #fff);
    border: 1px solid color-mix(in srgb, #7c3aed 24%, var(--border));
}

.dashboard-inftec-billing-alert-copy {
    flex: 1 1 280px;
    min-width: 0;
}

.dashboard-inftec-billing-alert-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6d28d9;
}

.dashboard-inftec-billing-alert-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.25;
    color: var(--text, #0f172a);
}

.dashboard-inftec-billing-alert-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-soft, #475569);
}

.dashboard-inftec-billing-alert-note {
    margin-top: 8px !important;
    font-size: 13px !important;
}

.dashboard-inftec-billing-alert-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.menu-link.menu-link-highlight {
    border-color: color-mix(in srgb, #7c3aed 30%, var(--border));
    background: color-mix(in srgb, #7c3aed 8%, var(--surface, #fff));
}

.menu-link.menu-link-highlight .text {
    font-weight: 700;
}

.payment-hub--inftec {
    border-color: color-mix(in srgb, #7c3aed 22%, var(--border));
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .12), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94));
    padding: 16px 18px;
}

.payment-hub--inftec .payment-hub-head {
    margin-bottom: 12px;
}

.payment-hub--inftec .payment-hub-amount {
    font-size: 26px;
}

.payment-hub--inftec .payment-card {
    min-height: 0;
    padding: 14px 16px;
    gap: 10px;
}

.payment-hub--inftec .payment-card-form {
    margin-top: 0;
    padding-top: 4px;
}

.payment-hub--inftec .fee-breakdown-list {
    margin: 0;
}

.payment-hub--inftec .payment-card-meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-soft);
}

.payment-hub--inftec .payment-card-form--inline .btn-primary {
    width: auto;
    min-width: 220px;
}

.payment-hub--inftec .payment-badge.is-live {
    background: color-mix(in srgb, #7c3aed 14%, #fff);
    color: #5b21b6;
}

.payment-hub {
    margin: 0 0 22px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--border));
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94));
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.payment-hub-head {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.payment-hub-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-strong);
}

.payment-hub h3 {
    margin: 0;
    font-size: 24px;
}

.payment-hub-amount {
    margin: 10px 0 0;
    font-size: 30px;
    font-weight: 900;
    color: var(--text);
}

.payment-hub-copy {
    margin: 10px 0 0;
    max-width: 640px;
    color: var(--text-soft);
    line-height: 1.6;
}

.payment-hub-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .82);
    color: var(--text-soft);
}

.payment-badge.is-live {
    border-color: color-mix(in srgb, #16a34a 30%, var(--border));
    color: #166534;
    background: color-mix(in srgb, #16a34a 10%, #fff);
}

.payment-badge.is-soon {
    border-color: color-mix(in srgb, #d97706 28%, var(--border));
    color: #92400e;
    background: color-mix(in srgb, #f59e0b 12%, #fff);
}

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

.payment-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .9);
}

.payment-card.is-ready {
    border-color: color-mix(in srgb, var(--brand) 18%, var(--border));
}

.payment-card.is-disabled {
    opacity: .92;
}

.payment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.payment-card-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--brand-strong);
}

.payment-card-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}

.transfer-data-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.transfer-data-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, .9);
}

.transfer-data-list span {
    color: var(--text-soft);
    font-size: 13px;
}

.payment-card-form {
    margin-top: auto;
}

@media (max-width: 900px) {
    .payment-hub-grid {
        grid-template-columns: 1fr;
    }
}

.pwa-install-button {
    min-height: 46px;
    padding: 0 15px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.26), transparent 24%),
        linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: var(--brand-shadow);
    cursor: pointer;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease;
}

.pwa-install-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--brand) 24%, transparent);
}

.pwa-install-button[hidden] {
    display: none;
}

.command-score-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .72);
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.26), transparent 28%),
        linear-gradient(135deg, var(--brand-strong), var(--brand));
    box-shadow: 0 24px 56px color-mix(in srgb, var(--brand) 22%, rgba(15, 23, 42, .16));
}

.command-score-card::before {
    content: "";
    position: absolute;
    inset: 16px 16px auto auto;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.08) 42%, transparent 43%),
        conic-gradient(from 180deg, rgba(255,255,255,.88), rgba(255,255,255,.12), rgba(255,255,255,.88));
    opacity: .54;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .12));
}

.command-score-card.is-warning {
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.26), transparent 28%),
        linear-gradient(135deg, #92400e, #d97706);
    box-shadow: 0 24px 56px rgba(217, 119, 6, .18);
}

.command-score-card.is-danger {
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #991b1b, #dc2626);
    box-shadow: 0 24px 56px rgba(220, 38, 38, .16);
}

.command-score-card span {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.command-score-card strong {
    display: block;
    margin: 18px 0 8px;
    font-size: clamp(54px, 8vw, 82px);
    line-height: .9;
    letter-spacing: -.08em;
}

.command-score-card small {
    display: block;
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
}

.quick-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.quick-command-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 12px;
    min-height: 150px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, .92);
    color: var(--text);
    text-decoration: none;
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 36%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.panel[data-reveal-ready="1"],
.quick-command-card[data-reveal-ready="1"],
.metric-card[data-reveal-ready="1"],
.workflow-step[data-reveal-ready="1"],
.lab-stage-card[data-reveal-ready="1"] {
    animation: commercialStagger .44s ease both;
    animation-delay: calc(var(--reveal-index, 0) * 28ms);
}

[data-reveal-index="0"] { --reveal-index: 0; }
[data-reveal-index="1"] { --reveal-index: 1; }
[data-reveal-index="2"] { --reveal-index: 2; }
[data-reveal-index="3"] { --reveal-index: 3; }
[data-reveal-index="4"] { --reveal-index: 4; }
[data-reveal-index="5"] { --reveal-index: 5; }
[data-reveal-index="6"] { --reveal-index: 6; }
[data-reveal-index="7"] { --reveal-index: 7; }
[data-reveal-index="8"] { --reveal-index: 8; }
[data-reveal-index="9"] { --reveal-index: 9; }
[data-reveal-index="10"] { --reveal-index: 10; }
[data-reveal-index="11"] { --reveal-index: 11; }
[data-reveal-index="12"] { --reveal-index: 12; }
[data-reveal-index="13"] { --reveal-index: 13; }
[data-reveal-index="14"] { --reveal-index: 14; }

.quick-command-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 120px;
    height: 120px;
    border-radius: 38px;
    background: color-mix(in srgb, var(--brand) 9%, transparent);
    transform: rotate(22deg);
}

.quick-command-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
    box-shadow: 0 22px 52px rgba(15, 23, 42, .11);
}

.quick-command-card:hover::after {
    background: color-mix(in srgb, var(--brand) 15%, transparent);
}

.quick-command-card.is-highlight {
    border-color: color-mix(in srgb, #7c3aed 32%, var(--line));
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .12), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 243, 255, .95));
}

.quick-command-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: var(--brand-shadow);
}

.quick-command-card strong,
.quick-command-card small,
.quick-command-card .quick-command-icon {
    position: relative;
    z-index: 1;
}

.quick-command-card strong {
    font-size: 18px;
    letter-spacing: -.035em;
}

.quick-command-card small {
    color: var(--text-soft);
    line-height: 1.55;
}

.insight-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px;
    align-items: start;
}

.insight-panel {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.alert-dock {
    display: grid;
    gap: 10px;
}

.alert-dock-item {
    display: grid;
    gap: 4px;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.alert-dock-item strong {
    font-size: 13px;
    letter-spacing: -.01em;
}

.alert-dock-item span {
    color: var(--text-soft);
    line-height: 1.45;
}

.alert-dock-item.is-error {
    border-color: rgba(220, 38, 38, .18);
    background: linear-gradient(135deg, rgba(254, 226, 226, .82), #fff);
}

.alert-dock-item.is-warning {
    border-color: rgba(245, 158, 11, .22);
    background: linear-gradient(135deg, rgba(254, 243, 199, .86), #fff);
}

.alert-dock-item.is-info {
    border-color: rgba(29, 78, 216, .18);
    background: linear-gradient(135deg, rgba(219, 234, 254, .8), #fff);
}

.alert-dock-item.is-success {
    border-color: rgba(4, 120, 87, .16);
    background: linear-gradient(135deg, rgba(220, 252, 231, .82), #fff);
}

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

.bar-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.bar-track {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .18);
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

.bar-fill.is-soft {
    background: linear-gradient(90deg, #93c5fd, #2563eb);
}

.bar-0 { width: 4%; }
.bar-10 { width: 10%; }
.bar-20 { width: 20%; }
.bar-30 { width: 30%; }
.bar-40 { width: 40%; }
.bar-50 { width: 50%; }
.bar-60 { width: 60%; }
.bar-70 { width: 70%; }
.bar-80 { width: 80%; }
.bar-90 { width: 90%; }
.bar-100 { width: 100%; }

.workflow-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.workflow-step {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.86);
}

.workflow-step::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 14%, transparent));
}

.workflow-step::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -38px;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand) 7%, transparent);
    pointer-events: none;
}

.workflow-step span {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.workflow-step strong {
    position: relative;
    z-index: 1;
    letter-spacing: -.025em;
}

.workflow-step small {
    position: relative;
    z-index: 1;
    color: var(--text-soft);
    line-height: 1.45;
}

.readiness-page {
    --readiness-accent: color-mix(in srgb, var(--brand) 16%, #ffffff);
}

.readiness-hero {
    background:
        radial-gradient(circle at 8% 10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 28%),
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--info) 12%, transparent), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--brand-soft) 42%, #ffffff) 100%);
}

.readiness-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 18px;
    align-items: stretch;
}

.readiness-next,
.readiness-meter {
    min-height: 220px;
}

.readiness-next h3,
.readiness-meter h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.055em;
}

.readiness-next p,
.readiness-meter p {
    margin: 12px 0 18px;
    color: var(--text-soft);
    line-height: 1.7;
}

.readiness-meter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    background:
        radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.94));
}

.readiness-ring {
    position: relative;
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
        conic-gradient(var(--brand) 0 310deg, rgba(148, 163, 184, .22) 310deg 360deg);
    box-shadow: 0 20px 44px color-mix(in srgb, var(--brand) 18%, rgba(15, 23, 42, .12));
}

.readiness-ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    background: linear-gradient(180deg, #ffffff, var(--surface-soft));
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .86);
}

.readiness-ring span {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.readiness-ring.is-warning {
    background: conic-gradient(#d97706 0 245deg, rgba(148, 163, 184, .22) 245deg 360deg);
    box-shadow: 0 20px 44px rgba(217, 119, 6, .18);
}

.readiness-ring.is-danger {
    background: conic-gradient(#dc2626 0 170deg, rgba(148, 163, 184, .22) 170deg 360deg);
    box-shadow: 0 20px 44px rgba(220, 38, 38, .16);
}

.readiness-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    align-items: start;
}

.readiness-group {
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, .92);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.92));
    box-shadow: 0 20px 44px rgba(15, 23, 42, .07);
}

.section-header.compact {
    margin-bottom: 12px;
}

.readiness-list {
    display: grid;
    gap: 10px;
}

.readiness-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .86);
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.readiness-item:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 24%, var(--line));
    box-shadow: 0 18px 36px rgba(15, 23, 42, .08);
}

.readiness-status {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-size: 12px;
    font-weight: 900;
    box-shadow: var(--brand-shadow);
}

.readiness-item.is-pending .readiness-status {
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: 0 12px 24px rgba(217, 119, 6, .16);
}

.readiness-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.readiness-copy strong {
    letter-spacing: -.025em;
}

.readiness-copy small,
.readiness-action small {
    color: var(--text-soft);
    line-height: 1.45;
}

.readiness-action {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.readiness-item.is-pending .readiness-action {
    color: #92400e;
}

.readiness-flow .workflow-step {
    min-height: 132px;
}

.closing-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 18px;
    align-items: stretch;
}

.closing-next {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    justify-content: center;
}

.closing-next h3 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    letter-spacing: -.07em;
}

.closing-next p {
    max-width: 760px;
    margin: 14px 0 18px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.65;
}

.closing-risk-panel {
    min-height: 230px;
}

.closing-flow .workflow-step {
    min-height: 140px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 34%),
        rgba(255, 255, 255, .9);
}

.closing-checklist {
    display: grid;
    gap: 10px;
}

.closing-check {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .9);
    color: var(--text);
    text-decoration: none;
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.closing-check:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
    box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.closing-check span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-size: 12px;
    font-weight: 900;
    box-shadow: var(--brand-shadow);
}

.closing-check.is-pending span {
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: 0 12px 24px rgba(217, 119, 6, .16);
}

.closing-check strong {
    letter-spacing: -.025em;
}

.closing-check small {
    grid-column: 2 / 3;
    color: var(--text-soft);
    line-height: 1.45;
}

.closing-check em {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--brand-strong);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.closing-check.is-pending em {
    color: #92400e;
}

@keyframes dashboardReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes commercialStagger {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes navigationBar {
    0% {
        transform: translateX(-100%) scaleX(.35);
    }
    50% {
        transform: translateX(0) scaleX(.75);
    }
    100% {
        transform: translateX(100%) scaleX(.35);
    }
}

.command-palette-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: grid;
    place-items: start center;
    padding: 9vh 18px 24px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(10px);
    animation: paletteBackdropIn .18s ease both;
}

.inftec-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: grid;
    place-items: center;
    padding: 24px 18px;
    background: rgba(15, 23, 42, .52);
    backdrop-filter: blur(8px);
    animation: paletteBackdropIn .18s ease both;
}

.inftec-confirm-card {
    width: min(100%, 460px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .34);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    box-shadow: 0 32px 70px rgba(2, 6, 23, .28);
    padding: 24px 24px 20px;
    animation: palettePanelIn .2s ease both;
}

.inftec-confirm-card--danger {
    border-color: color-mix(in srgb, var(--danger) 24%, rgba(255,255,255,.34));
}

.inftec-confirm-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--ink);
}

.inftec-confirm-message {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
}

.inftec-confirm-detail {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}

.inftec-confirm-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.inftec-confirm-card .btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
}

body.inftec-confirm-open {
    overflow: hidden;
}

.command-palette {
    width: min(100%, 720px);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .32);
    background:
        radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    box-shadow: 0 42px 90px rgba(2, 6, 23, .34);
    animation: palettePanelIn .2s ease both;
}

.command-palette-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid rgba(226, 232, 240, .85);
}

.command-palette-search {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
    color: var(--text);
    font-size: 18px;
    font-weight: 750;
    outline: none;
}

.command-palette-close {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, .9);
    background: linear-gradient(180deg, #fff, var(--surface-soft));
    color: var(--text-soft);
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
}

.command-palette-list {
    max-height: min(58vh, 520px);
    overflow: auto;
    padding: 10px;
}

.command-palette-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: 18px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.command-palette-item:hover,
.command-palette-item.is-active {
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 34%),
        #fff;
    border-color: color-mix(in srgb, var(--brand) 18%, var(--line));
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.command-palette-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.command-palette-item strong,
.command-palette-item span {
    display: block;
}

.command-palette-item strong {
    font-size: 15px;
    letter-spacing: -.02em;
}

.command-palette-item span {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.35;
}

.command-palette-kbd {
    padding: 5px 8px;
    border-radius: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 900;
}

.command-palette-empty {
    padding: 28px 18px 34px;
    text-align: center;
    color: var(--text-soft);
}

@keyframes paletteBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes palettePanelIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.toolbar .field {
    margin: 0;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form select,
.inline-form input {
    min-height: 42px;
    width: auto;
    min-width: min(260px, 100%);
}

.inline-field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.compact-inline-form {
    margin-top: 8px;
}

.content-grid {
    display: grid;
    gap: 20px;
}

.content-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-align-end {
    align-self: end;
}

.export-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lab-scoreboard {
    display: grid;
    grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
    gap: 14px;
}

.lab-score-main,
.lab-stage-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, .9);
    background:
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 32%),
        linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .075);
}

.lab-score-main {
    min-height: 190px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.28), transparent 32%),
        linear-gradient(135deg, var(--brand-strong), var(--brand));
    box-shadow: 0 24px 56px color-mix(in srgb, var(--brand) 22%, rgba(15, 23, 42, .16));
}

.lab-score-main.is-warning,
.lab-stage-card.is-warning {
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.22), transparent 32%),
        linear-gradient(135deg, #fff7ed, #fffbeb);
    border-color: rgba(217, 119, 6, .22);
}

.lab-score-main.is-warning {
    color: #7c2d12;
}

.lab-score-main.is-danger,
.lab-stage-card.is-danger {
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.2), transparent 32%),
        linear-gradient(135deg, #fff1f2, #fee2e2);
    border-color: rgba(220, 38, 38, .2);
}

.lab-score-main.is-danger {
    color: #7f1d1d;
}

.lab-score-main span,
.lab-stage-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    opacity: .78;
}

.lab-score-main strong,
.lab-stage-card strong {
    display: block;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -.075em;
    line-height: .9;
}

.lab-score-main small,
.lab-stage-card small {
    display: block;
    margin-top: 12px;
    line-height: 1.55;
    opacity: .82;
}

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

.lab-pipeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.lab-pipeline > div {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, .88);
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.9));
    box-shadow: 0 12px 26px rgba(15, 23, 42, .045);
}

.lab-pipeline span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.lab-pipeline strong {
    display: block;
    letter-spacing: -.025em;
}

.lab-pipeline small {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    line-height: 1.45;
}

.table-shell {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(15, 23, 42, .04);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.data-table th {
    color: var(--text-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.data-table tbody tr,
tbody tr {
    transition: background .16s ease;
}

.data-table tbody tr:hover,
tbody tr:hover {
    background: color-mix(in srgb, var(--brand) 5%, #fff);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.list-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.list-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .92);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 30%),
        linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.065);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.list-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand) 18%, var(--line));
    box-shadow: 0 20px 44px rgba(15, 23, 42, .095);
}

.list-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: -.03em;
}

.list-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.list-card .actions-row {
    margin-top: 16px;
}

.list-card .chip-row {
    margin-bottom: 12px;
}

.surface-section {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .92);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 8%, transparent), transparent 28%),
        linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.surface-section-title {
    margin: 0 0 14px;
    font-size: 17px;
    letter-spacing: -.03em;
}

.table-subtitle {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.4;
}

.info-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.info-badge {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.9);
}

.info-badge span {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.info-badge strong {
    display: block;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.checklist-panel {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    background: linear-gradient(135deg, rgba(15,118,110,.07), rgba(37,99,235,.05));
}

.checklist-panel.warning-panel {
    border-color: rgba(217, 119, 6, 0.2);
    background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(251,191,36,.06));
}

.checklist-panel h4 {
    margin: 0 0 10px;
    font-size: 15px;
    letter-spacing: -.02em;
}

.lower-gap-sm {
    margin-bottom: 12px;
}

.is-hidden {
    display: none !important;
}

.compact-list {
    margin: 0;
    padding-left: 18px;
}

.compact-list li + li {
    margin-top: 4px;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, .72);
}

.table-summary {
    font-size: 13px;
    color: var(--text-soft);
}

.table-empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--text-soft);
}

.section-header,
.doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.muted {
    color: var(--text-soft);
}

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

.actions-row.top-gap-md {
    margin-top: 18px;
}

.actions-row.top-gap-lg {
    margin-top: 24px;
}

.actions-row.centered {
    justify-content: center;
}

.inline-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.inline-upload label {
    font-weight: 700;
    color: var(--text-soft);
}

.btn,
.btn-doc,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: -.01em;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover,
.btn-doc:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-light:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-doc,
.btn {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: var(--brand-shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-doc::after,
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.18), transparent);
    transform: translateX(-120%);
    transition: transform .42s ease;
}

.btn-primary:hover::after,
.btn-doc:hover::after,
.btn:hover::after {
    transform: translateX(120%);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text);
}

.btn-light {
    background: linear-gradient(180deg, #fff, var(--surface-soft));
    color: var(--text);
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .045);
}

.btn-light:hover {
    border-color: color-mix(in srgb, var(--brand) 20%, var(--line));
    box-shadow: 0 14px 28px rgba(15, 23, 42, .075);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
}

.btn:disabled,
.btn-doc:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn-light:disabled,
button[aria-busy="true"],
form.is-submitting button[type="submit"] {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.btn-block {
    width: 100%;
}

.btn-top-gap-sm {
    margin-top: 6px;
}

.inline-button {
    margin-top: 10px;
}

.scanner-video {
    width: 100%;
    max-height: 260px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #020617;
    object-fit: contain;
}

.scanner-html5-reader {
    overflow: hidden;
    width: 100%;
    min-height: 220px;
    max-height: 280px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #020617;
}

.scanner-html5-reader > div {
    min-height: 220px !important;
    max-height: 280px !important;
}

.scanner-html5-reader video {
    max-height: 280px !important;
    object-fit: contain !important;
    border-radius: 18px;
}

.scanner-camera-wrap {
    display: grid;
    gap: 14px;
}

.field.is-disabled {
    opacity: .68;
}

.field.is-disabled input,
.field.is-disabled select,
.field.is-disabled textarea {
    cursor: not-allowed;
    background: color-mix(in srgb, var(--line) 26%, #fff);
}

.scanner-camera-actions {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(8px);
}

.scanner-mobile-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, #fff), #fff);
}

.scanner-mobile-qr {
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.scanner-mobile-qr img,
.scanner-mobile-qr canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scanner-mobile-link strong {
    display: block;
    margin-bottom: 4px;
}

.scanner-mobile-link p {
    margin: 0 0 8px;
    color: var(--text-soft);
    line-height: 1.5;
}

.scanner-mobile-link a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--brand-strong);
    font-weight: 800;
}

.totp-qr-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 10%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, var(--brand) 10%), #fff);
}

.totp-qr-code {
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.totp-qr-code img,
.totp-qr-code canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.totp-qr-code span,
.inftec-qr-fallback {
    color: var(--text-soft);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.totp-qr-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: clamp(18px, 2vw, 24px);
}

.totp-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.totp-advanced {
    margin: 10px 0 18px;
    color: var(--text-soft);
}

.totp-advanced summary {
    cursor: pointer;
    font-weight: 800;
}

.totp-advanced textarea {
    margin-top: 10px;
}

@media (max-width: 760px) {
    .totp-qr-card,
    .totp-copy-row {
        grid-template-columns: 1fr;
    }

    .totp-qr-code {
        justify-self: center;
        width: min(220px, 100%);
    }
}

.assembly-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 22%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--brand) 12%), #fff 58%);
}

.assembly-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border-radius: 80px;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    transform: rotate(22deg);
    pointer-events: none;
}

.assembly-hero > * {
    position: relative;
    z-index: 1;
}

.assembly-status-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text-soft);
}

.assembly-status-pill.is-ok,
.status-pill.is-ok {
    color: #065f46;
    border-color: rgba(5, 150, 105, .22);
    background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(209, 250, 229, .76));
}

.assembly-status-pill.is-pending,
.status-pill.is-warning {
    color: #92400e;
    border-color: rgba(245, 158, 11, .28);
    background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(254, 243, 199, .82));
}

.chip.chip-informativa,
.assembly-status-pill.chip-informativa {
    color: #1e3a8a;
    border-color: rgba(37, 99, 235, .24);
    background: linear-gradient(135deg, rgba(59, 130, 246, .14), rgba(219, 234, 254, .9));
    text-transform: none;
    letter-spacing: normal;
    font-weight: 700;
}

.assembly-informativa-note {
    margin-bottom: 16px;
}

.assembly-informativa-note p {
    margin: 8px 0 0;
}

.status-pill.is-muted {
    color: #475569;
    border-color: rgba(148, 163, 184, .26);
    background: linear-gradient(135deg, rgba(226, 232, 240, .72), rgba(248, 250, 252, .94));
}

.quorum-progress {
    margin: 22px 0;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .66);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
}

.quorum-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-soft);
}

.quorum-progress-meta strong {
    color: var(--text);
    font-size: 18px;
    letter-spacing: -.03em;
}

.quorum-progress-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, .22);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .12);
}

.quorum-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
    box-shadow: var(--brand-shadow);
    transition: width .45s ease;
}

.assembly-metrics .metric-card {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
}

.attendance-workbench {
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.9)),
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 12%, transparent), transparent 34%);
}

.scanner-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, #fff), rgba(255, 255, 255, .92));
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.scanner-callout-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: -.05em;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: var(--brand-shadow);
}

.scanner-callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    letter-spacing: -.03em;
}

.scanner-callout p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.scanner-callout-actions {
    justify-content: flex-end;
}

.scanner-callout-actions .btn-primary,
.scanner-callout-actions .btn-light {
    white-space: nowrap;
}

.scanner-dialog {
    width: min(760px, calc(100vw - 32px));
}

.scanner-dialog-shell {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 12%, transparent), transparent 34%),
        var(--surface);
}

.picker-dialog.scanner-dialog {
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
}

.picker-dialog.scanner-dialog .picker-dialog-shell {
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 18px;
}

.picker-dialog.scanner-dialog .form-grid {
    gap: 12px;
}

.picker-dialog.scanner-dialog textarea {
    min-height: 112px;
}

.scanner-dropzone {
    padding: 16px;
    border-radius: 20px;
    border: 1px dashed color-mix(in srgb, var(--brand) 34%, var(--line));
    background: rgba(255, 255, 255, .76);
}

.attendance-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 16px;
}

.attendance-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.attendance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.attendance-house-badge {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: var(--brand-shadow);
}

.attendance-card-body h3 {
    margin: 0 0 4px;
    font-size: 20px;
    letter-spacing: -.04em;
}

.attendance-card-body p {
    margin: 0 0 12px;
    color: var(--text-soft);
}

.attendance-note {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.attendance-document {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(248, 250, 252, .86);
}

.attendance-upload {
    display: grid;
    gap: 8px;
}

.attendance-upload label {
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.attendance-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.vote-live-board {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: center;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .28), transparent 26%),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-strong) 88%, #111827), var(--brand));
    box-shadow: 0 24px 56px color-mix(in srgb, var(--brand) 22%, rgba(15, 23, 42, .18));
}

.vote-live-copy .brand-label,
.vote-live-copy p {
    color: rgba(255, 255, 255, .78);
}

.vote-live-copy h3 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: .95;
    letter-spacing: -.07em;
}

.vote-live-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.vote-live-copy strong {
    color: #fff;
}

.vote-live-bars {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
}

.vote-live-track {
    display: flex;
    overflow: hidden;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, .22);
}

.vote-live-track span {
    display: block;
    height: 100%;
    transition: width .35s ease;
}

.vote-live-si {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.vote-live-no {
    background: linear-gradient(90deg, #fb7185, #ef4444);
}

.vote-live-abs {
    background: linear-gradient(90deg, #cbd5e1, #94a3b8);
}

.vote-live-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.vote-live-meta strong {
    color: #fff;
}

.vote-live-goal {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.vote-live-goal span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fbbf24, #fde68a);
    transition: width .35s ease;
}

.checkbox-line {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.checkbox-line input {
    width: auto;
    min-height: auto;
}

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

.timeline-item {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-left: 6px solid var(--accent, #0f766e);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.timeline-item.is-warning {
    border-left-color: #b45309;
}

.timeline-item strong,
.timeline-item span {
    display: block;
}

.timeline-item span {
    margin-top: 4px;
    color: var(--muted, #64748b);
}

.compact-actions {
    gap: 8px;
}

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

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

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

form.form-grid {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, .72);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 30%),
        rgba(248, 250, 252, .56);
}

form.form-grid .field-span-full .btn-block,
form.form-grid .btn-block {
    min-height: 48px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 800;
    letter-spacing: -.01em;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, .82);
    background: linear-gradient(180deg, #fff, #fcfdff);
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input[type="file"] {
    padding: 8px;
}

input[type="file"]::file-selector-button {
    min-height: 34px;
    margin-right: 12px;
    padding: 0 12px;
    border: 1px solid rgba(226, 232, 240, .94);
    border-radius: 10px;
    color: var(--text);
    background: linear-gradient(180deg, #fff, var(--surface-soft));
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.input-with-action {
    position: relative;
    width: 100%;
}

.input-with-action input {
    padding-right: 52px;
}

.input-action {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.input-action svg {
    width: 18px;
    height: 18px;
}

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

.field-feedback {
    min-height: 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
}

.field.is-valid .field-feedback {
    color: var(--success);
}

.field.is-invalid .field-feedback {
    color: var(--danger);
}

.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
    border-color: rgba(4, 120, 87, .38);
    box-shadow: 0 0 0 4px rgba(4, 120, 87, .1);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: rgba(220, 38, 38, .45);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .09);
}

.password-rules {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.textarea-tall {
    min-height: 380px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 118, 110, .45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12), 0 12px 24px rgba(15, 23, 42, .045);
}

.table-wrap,
.table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(15, 23, 42, .04);
    -webkit-overflow-scrolling: touch;
}

.auditoria-bitacora-panel {
    min-width: 0;
}

.auditoria-tabla-scroll {
    overflow: auto;
    max-height: min(65vh, 780px);
}

.auditoria-tabla-scroll .auditoria-tabla {
    min-width: 1080px;
}

.auditoria-tabla-scroll .auditoria-tabla th,
.auditoria-tabla-scroll .auditoria-tabla td {
    white-space: nowrap;
}

.auditoria-tabla-scroll .auditoria-tabla th:nth-child(5),
.auditoria-tabla-scroll .auditoria-tabla td:nth-child(5) {
    min-width: 220px;
}

.auditoria-tabla-scroll .auditoria-tabla th:nth-child(6),
.auditoria-tabla-scroll .auditoria-tabla td:nth-child(6) {
    min-width: 260px;
    white-space: normal;
    word-break: break-word;
}

.table-wrap.has-table-tools,
.table-shell.has-table-tools {
    overflow: hidden;
}

.table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 30%),
        linear-gradient(180deg, #fff, #f8fafc);
}

.table-tools-search {
    width: min(100%, 360px);
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 650;
}

.table-tools-count {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: 0;
}

th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-soft);
    background: linear-gradient(180deg, #fff, #f8fafc);
}

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

.kpi {
    padding: 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 30%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.kpi span {
    display: block;
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 8px;
}

.kpi strong {
    font-size: 28px;
    letter-spacing: -.03em;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.status-success { background: var(--success-soft); color: var(--success); }
.status-danger { background: var(--danger-soft); color: var(--danger); }
.status-warning { background: var(--warning-soft); color: var(--warning); }
.status-info { background: var(--info-soft); color: var(--info); }
.status-muted { background: var(--surface-soft); color: var(--text-soft); border-color: var(--line); }

.visit-qr {
    display: grid;
    width: 118px;
    min-width: 118px;
    min-height: 118px;
    place-items: center;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.visit-qr img,
.visit-qr canvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.visit-qr span,
.inftec-qr-fallback {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.visitor-pass-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 34%),
        linear-gradient(135deg, #fff, var(--surface-soft));
    box-shadow: 0 22px 46px rgba(15, 23, 42, .08);
}

.visitor-pass-main h3 {
    margin: 12px 0 6px;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -.04em;
}

.visitor-pass-main p {
    margin: 0;
    color: var(--text-soft);
    font-weight: 800;
}

.visitor-pass-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.visitor-pass-meta span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
}

.visitor-pass-actions {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
}

.visitor-timeline {
    display: grid;
    gap: 7px;
}

.visitor-timeline span {
    display: block;
    padding: 9px 10px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 850;
}

.visitor-timeline.compact span {
    padding: 5px 0;
    background: transparent;
}

.visit-qr.small {
    width: 86px;
    min-width: 86px;
    min-height: 86px;
    border-radius: 16px;
}

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

.resident-service-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 30%),
        linear-gradient(150deg, #ffffff, var(--surface-soft));
    box-shadow: 0 20px 46px rgba(15, 23, 42, .07);
}

.resident-service-head,
.resident-pass-row,
.resident-reservation-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.resident-service-head .icon {
    display: grid;
    width: 48px;
    min-width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: color-mix(in srgb, var(--brand) 12%, #ffffff);
    color: var(--brand-strong);
    font-weight: 950;
}

.resident-service-head h3 {
    margin: 0 0 6px;
    letter-spacing: -.03em;
}

.resident-service-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.45;
}

.compact-grid {
    gap: 14px;
}

.resident-history-grid {
    margin-top: 20px;
}

.resident-pass-row,
.resident-reservation-row {
    justify-content: space-between;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.resident-pass-row {
    justify-content: flex-start;
}

.resident-reservation-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 210px;
}

.status-pill.status-success,
.status-pill.is-success {
    color: #065f46;
    border-color: rgba(5, 150, 105, .22);
    background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(209, 250, 229, .76));
}

.status-pill.status-warning,
.status-pill.is-warning {
    color: #92400e;
    border-color: rgba(245, 158, 11, .28);
    background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(254, 243, 199, .82));
}

.status-pill.status-info,
.status-pill.is-info {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, .22);
    background: linear-gradient(135deg, rgba(59, 130, 246, .14), rgba(219, 234, 254, .82));
}

.status-pill.status-danger,
.status-pill.is-danger {
    color: #991b1b;
    border-color: rgba(220, 38, 38, .24);
    background: linear-gradient(135deg, rgba(248, 113, 113, .16), rgba(254, 226, 226, .86));
}

.alert,
.toast-inline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}

.alert-success,
.toast-inline.success { background: var(--success-soft); color: var(--success); border-color: rgba(4, 120, 87, .12); }
.alert-error,
.toast-inline.error { background: var(--danger-soft); color: var(--danger); border-color: rgba(220, 38, 38, .12); }
.alert-warning,
.toast-inline.warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(180, 83, 9, .12); }
.alert-info,
.toast-inline.info { background: var(--info-soft); color: var(--info); border-color: rgba(29, 78, 216, .12); }

.readonly-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #713f12;
    border: 1px solid rgba(217, 119, 6, .22);
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 191, 36, .22), transparent 30%),
        linear-gradient(135deg, rgba(255, 251, 235, .96), rgba(254, 243, 199, .82));
    box-shadow: 0 16px 34px rgba(120, 53, 15, .08);
}

.readonly-banner strong {
    flex: 0 0 auto;
    letter-spacing: -.01em;
}

.readonly-banner span {
    color: #854d0e;
    line-height: 1.5;
}

.mode-readonly-global form[data-readonly-blocked="1"] button[type="submit"],
.mode-readonly-global form[data-readonly-blocked="1"] input[type="submit"] {
    filter: saturate(.62);
}

.toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(15,23,42,.18);
    animation: toastIn .24s ease;
}

.toast.success { background: linear-gradient(135deg, #059669, #047857); }
.toast.error { background: linear-gradient(135deg, #dc2626, #991b1b); }
.toast.info { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.toast.warning { background: linear-gradient(135deg, #d97706, #b45309); }

.empty-state {
    position: relative;
    overflow: hidden;
    padding: 48px 20px;
    text-align: center;
    color: var(--text-soft);
    border-radius: 22px;
    border: 1px dashed color-mix(in srgb, var(--brand) 22%, var(--line));
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 34%),
        linear-gradient(180deg, #fff, #f8fafc);
}

.empty-state::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, #fff), #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.empty-state-title {
    margin: 0 0 8px;
    font-size: var(--font-size-lg);
    color: var(--text);
}

.empty-state-copy {
    margin: 0 auto 16px;
    max-width: 52ch;
    line-height: 1.5;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    line-height: 1.3;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text-soft);
}

.legal-chip--legal {
    border-color: color-mix(in srgb, var(--info) 35%, var(--line));
    background: var(--info-soft);
    color: #1e3a8a;
}

.legal-chip--warning {
    border-color: color-mix(in srgb, var(--warning) 35%, var(--line));
    background: var(--warning-soft);
    color: #92400e;
}

.legal-chip--success {
    border-color: color-mix(in srgb, var(--success) 35%, var(--line));
    background: var(--success-soft);
    color: #065f46;
}

.skeleton-panel {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
}

.skeleton {
    border-radius: 10px;
    background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
    background-size: 220% 100%;
    animation: skeletonPulse 1.2s ease-in-out infinite;
}

.skeleton-title {
    height: 18px;
    width: 42%;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 12px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-metric {
    height: 72px;
    flex: 1;
}

.skeleton-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
}

@keyframes skeletonPulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: 0 0 var(--space-lg);
    padding: 0;
    list-style: none;
}

.wizard-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: var(--font-size-sm);
}

.wizard-step.is-active {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-weight: 700;
}

.wizard-step.is-done {
    border-color: color-mix(in srgb, var(--success) 35%, var(--line));
    background: var(--success-soft);
    color: var(--success);
}

.wizard-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    font-weight: 800;
    font-size: 0.75rem;
}

.onboarding-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(125deg, rgba(15,23,42,.82), rgba(15,118,110,.72)),
        url('/Fondo_de_Pantalla.png') center/cover no-repeat;
}

.auth-shell {
    width: min(100%, 1180px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 42px 90px rgba(2,6,23,.3);
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
}

.auth-shell-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
}

.auth-card {
    width: min(100%, 620px);
    padding: 34px;
    border-radius: 30px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 38px 72px rgba(2,6,23,.28);
    border: 1px solid rgba(255,255,255,.12);
}

.auth-panel {
    padding: 42px;
}

.auth-panel-brand {
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-panel-light {
    background: rgba(255,255,255,.97);
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ecfeff;
    font-size: 13px;
    font-weight: 700;
}

.auth-panel h1,
.auth-card h1 {
    margin: 0 0 12px;
    letter-spacing: -.05em;
}

.auth-panel-brand h1 {
    font-size: 54px;
    line-height: .94;
    margin-bottom: 18px;
}

.auth-panel-light h2 {
    margin: 0 0 8px;
    font-size: 30px;
    letter-spacing: -.04em;
}

.auth-panel p,
.auth-card p {
    margin: 0;
    line-height: 1.78;
}

.auth-panel-brand p {
    color: #dbe4ef;
}

.auth-panel-brand .auth-footnote {
    color: #dbe4ef;
}

.auth-panel-light p,
.auth-card p {
    color: var(--text-soft);
}

.auth-form {
    margin-top: 20px;
}

.auth-page--login-compact {
    overflow: hidden;
}

.auth-shell--login-single {
    width: min(100%, 460px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 42px 90px rgba(2, 6, 23, .3);
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .97);
}

.auth-card--login {
    width: 100%;
    padding: 28px 32px 24px;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
}

.auth-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-brand-logo {
    width: min(100%, 220px);
    height: auto;
    display: block;
}

.auth-chip--login {
    background: rgba(15, 118, 110, .1);
    color: var(--brand-strong, #0f766e);
    font-size: 12px;
    padding: 6px 12px;
}

.auth-login-title {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -.04em;
    text-align: center;
    white-space: nowrap;
}

.auth-login-lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-soft);
    text-align: center;
}

.auth-form--compact {
    margin-top: 0;
}

.auth-links--stack {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    gap: 8px;
}

.auth-module-switch {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.auth-module-switch-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-module-switch-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.auth-module-switch-options--wrap .auth-module-pill {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
}

.auth-module-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.auth-module-pill.is-active {
    background: var(--brand, #0f766e);
    border-color: var(--brand, #0f766e);
    color: #fff;
}

.auth-module-pill:hover {
    text-decoration: none;
}

.auth-module-switch-options--roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.auth-module-switch-options--roles .auth-module-pill {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
}

.auth-module-switch-options--roles .auth-module-pill.is-active {
    background: var(--auth-accent, var(--brand, #0f766e));
    border-color: color-mix(in srgb, var(--auth-accent, var(--brand)) 80%, #fff);
    box-shadow: 0 8px 22px var(--auth-glow, rgba(15, 118, 110, 0.35));
}

.auth-panel-brand--themed {
    background: var(--auth-gradient, linear-gradient(145deg, #0f172a 0%, #0f766e 100%));
    border: 1px solid color-mix(in srgb, var(--auth-accent, #14b8a6) 35%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 48px var(--auth-glow, rgba(15, 118, 110, 0.25));
}

.auth-panel-brand--themed .auth-chip {
    background: color-mix(in srgb, var(--auth-accent, #14b8a6) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--auth-accent, #14b8a6) 45%, transparent);
    color: #f8fafc;
}

.auth-panel-brand--themed .auth-feature-icon {
    background: color-mix(in srgb, var(--auth-accent, #14b8a6) 28%, rgba(255, 255, 255, 0.08));
    border-color: color-mix(in srgb, var(--auth-accent, #14b8a6) 40%, transparent);
}

.auth-page--perfil-remuneraciones .auth-panel-light .btn-primary {
    background: linear-gradient(135deg, color-mix(in srgb, var(--auth-accent) 70%, #000), var(--auth-accent));
    border-color: color-mix(in srgb, var(--auth-accent) 85%, #000);
}

@media (max-width: 640px) {
    .auth-module-switch-options--roles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
    flex-wrap: wrap;
}

.auth-links a {
    color: var(--brand-strong);
    font-weight: 600;
    text-decoration: none;
}

.auth-footnote {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-soft);
}

.alert-top-gap {
    margin-top: 18px;
}

.muted-block {
    display: block;
    margin-top: 8px;
    margin-bottom: 16px;
}

.muted-block-tight {
    display: block;
    margin-top: 8px;
    margin-bottom: 14px;
}

.field-top-gap {
    margin-top: 18px;
}

.selection-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.selection-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.selection-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    letter-spacing: -.03em;
}

.selection-card p {
    margin: 0 0 14px;
}

.profile-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
}

.profile-summary {
    padding: 24px;
    text-align: center;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    overflow: hidden;
    position: relative;
}

.profile-avatar img,
.avatar-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar.has-image .avatar-fallback,
.profile-avatar.has-image .profile-avatar-fallback,
.avatar-swatch.has-image .avatar-swatch-fallback {
    display: none;
}

.profile-avatar-fallback,
.avatar-swatch-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    grid-area: 1 / 1;
}

.profile-avatar img,
.profile-avatar-fallback,
.avatar-swatch img,
.avatar-swatch-fallback {
    grid-area: 1 / 1;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
}

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

.picker-current {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, var(--surface-soft));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.picker-current-copy {
    display: grid;
    gap: 4px;
}

.picker-current-copy strong {
    font-size: 16px;
}

.picker-current-visual {
    width: 72px;
    height: 72px;
    border-radius: 22px;
}

.picker-dialog {
    width: min(960px, calc(100vw - 32px));
    border: 0;
    padding: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
}

.picker-dialog[open] {
    animation: pickerDialogIn .18s ease both;
}

.picker-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.picker-dialog-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 24px;
    display: grid;
    gap: 18px;
}

.picker-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.picker-dialog-copy {
    display: grid;
    gap: 6px;
}

.picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    max-height: min(62vh, 720px);
    overflow: auto;
    padding-right: 4px;
}

.picker-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.picker-item:hover,
.theme-option:hover {
    transform: translateY(-1px);
}

.picker-item.is-selected,
.theme-option.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent), 0 12px 26px rgba(15, 23, 42, 0.08);
}

.picker-item-title {
    font-weight: 700;
}

.picker-item-meta {
    color: var(--text-soft);
    font-size: 13px;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    cursor: pointer;
}

.avatar-option input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.theme-option.is-selected::after {
    content: "Vista previa";
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: var(--brand-shadow);
}

.theme-option input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.theme-live-note {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--line));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 16%, transparent), transparent 40%),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-soft) 55%, #fff), var(--surface));
    color: var(--brand-strong);
    font-weight: 850;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--brand) 14%, transparent);
}

.theme-preview {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--theme-preview-bg, #edf2f7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.theme-preview-top {
    display: block;
    height: 20px;
    background: var(--theme-preview-sidebar, linear-gradient(135deg, var(--theme-preview-brand, #0f766e), var(--theme-preview-strong, #115e59)));
}

.theme-preview-body {
    display: flex;
    gap: 8px;
    padding: 12px;
}

.theme-preview-card {
    display: block;
    height: 50px;
    flex: 1 1 auto;
    border-radius: 12px;
    background: var(--theme-preview-surface, #ffffff);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.theme-preview-card::after {
    content: "";
    display: block;
    width: 54%;
    height: 8px;
    margin: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--theme-preview-brand, #0f766e), var(--theme-preview-strong, #115e59));
}

.theme-preview-card.small {
    max-width: 34%;
}

.avatar-swatch {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .42);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .10);
}

.avatar-keep {
    width: 100%;
    color: var(--text);
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.signature-preview {
    margin-top: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(15, 118, 110, 0.22);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.signature-preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

.divider {
    height: 1px;
    background: var(--line);
}

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

.field-help {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

@keyframes pickerDialogIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.entity-logo-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f8fafc;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.grid-casas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.casa-card {
    padding: 22px;
    border-radius: 18px;
}

.casa-header {
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.casas-periodo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, .85);
    background: rgba(248, 250, 252, .7);
}

.casas-periodo-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.casas-periodo-main label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    margin: 0;
}

.casas-periodo-main input[type="month"] {
    width: auto;
    min-width: 160px;
    min-height: 40px;
}

.casas-periodo-check {
    margin: 0;
    font-size: 13px;
    gap: 8px;
}

.casas-periodo-check span {
    color: var(--text-soft);
}

.casas-guardar-bar {
    align-items: center;
    gap: 14px;
}

.casas-dirty-hint {
    display: none;
}

.casas-dirty-hint.is-visible {
    display: inline-flex;
}

.gasto-tipo-field {
    display: grid;
    gap: 8px;
}

.gasto-tipo-nuevo[hidden] {
    display: none !important;
}

.gasto-tipo-nuevo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
    background: color-mix(in srgb, var(--brand-soft) 45%, #fff);
}

.gasto-tipo-ok-hint[hidden] {
    display: none !important;
}

.gasto-tipo-ok-hint {
    margin: 0;
    font-size: 0.85rem;
}

.gasto-evidencia-hint[hidden] {
    display: none !important;
}

.gasto-evidencia-requerida {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--warning) 45%, var(--line));
    background: color-mix(in srgb, var(--warning-soft) 40%, #fff);
}

.gasto-evidencia-requerida label {
    color: var(--warning);
}

.morosos-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.morosos-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

a.morosos-pager-btn:hover {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
    background: color-mix(in srgb, var(--brand-soft) 35%, #fff);
}

.morosos-pager-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.morosos-pager-meta {
    font-size: 0.85rem;
    color: var(--text);
    text-align: center;
    flex: 1 1 200px;
}

.morosos-pager-meta .muted {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
}

.morosos-pager-meta--solo {
    margin-top: 12px;
    text-align: center;
}

.morosos-deuda-contenido.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity .15s ease;
}

button.morosos-pager-btn {
    cursor: pointer;
    font: inherit;
}

button.morosos-pager-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.gasto-tipo-nuevo-input {
    flex: 1 1 180px;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 8px 10px;
    font-size: 0.85rem;
}

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

.unidad-leyenda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.unidad-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 20px;
    align-items: start;
}

.unidad-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.unidad-select {
    width: 100%;
    min-height: 42px;
}

.unidad-grid-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 2px;
}

.unidad-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #e2e8f0;
    color: #0f172a;
}

.unidad-chip.is-active {
    box-shadow: 0 0 0 2px #0f766e;
}

.unidad-chip--lista {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
}

.unidad-chip--pendiente {
    background: #ffedd5;
    border-color: #fdba74;
    color: #9a3412;
}

.unidad-chip--comite {
    background: #fef9c3;
    border-color: #fde047;
    color: #854d0e;
}

.unidad-editor {
    min-height: 280px;
}

.cobro-fila-form {
    margin: 0;
}

.cobro-fila-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cobro-monto-input {
    max-width: 140px;
    min-width: 100px;
}

.tabla-cobros-editable .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

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

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

.verification-public {
    min-height: 100vh;
    margin: 0;
    color: #101828;
    background:
        radial-gradient(circle at top left, rgba(46, 111, 108, .22), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #eef7f5 48%, #f7efe7 100%);
    font-family: var(--font-body, "Aptos", "Segoe UI", sans-serif);
}

.verification-shell {
    display: grid;
    min-height: 100vh;
    padding: 34px 18px;
    place-items: center;
}

.verification-card {
    width: min(980px, 100%);
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 34px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .12);
}

.verification-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.verification-brand p {
    margin: 0;
    color: #667085;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.verification-brand strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
}

.verification-brand-mark {
    display: grid;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #184e4a, #3b7d78);
    font-weight: 900;
    place-items: center;
}

.verification-status {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
}

.verification-status-ok {
    color: #065f46;
    background: #d1fae5;
}

.verification-status-danger {
    color: #991b1b;
    background: #fee2e2;
}

.verification-card h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -.05em;
}

.verification-lead {
    max-width: 760px;
    color: #667085;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.45;
}

.verification-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
    gap: 18px;
    margin-top: 26px;
}

.verification-panel,
.verification-hash {
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    padding: 22px;
}

.verification-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.verification-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 11px 16px;
    margin: 0;
}

.verification-list dt {
    color: #667085;
    font-weight: 800;
}

.verification-list dd {
    margin: 0;
    font-weight: 800;
}

.verification-panel-code {
    display: grid;
    justify-items: center;
    text-align: center;
}

.verification-qr {
    width: 182px;
    height: 182px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 20px;
    background: #fff;
}

.verification-panel-code code,
.verification-hash code {
    display: block;
    max-width: 100%;
    margin-top: 14px;
    padding: 12px;
    overflow-wrap: anywhere;
    border-radius: 16px;
    color: #123a37;
    background: #ecfdf5;
    font-weight: 900;
}

.verification-hash {
    margin-top: 18px;
}

.verification-hash span {
    color: #667085;
    font-weight: 900;
}

.verification-note {
    margin: 18px 0 0;
    color: #667085;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .verification-grid,
    .verification-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .commercial-hero,
    .insight-layout,
    .readiness-overview {
        grid-template-columns: 1fr;
    }

    .command-score-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .page-shell {
        padding: 16px;
    }

    .page-intro {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .form-grid-3,
    .kpi-grid,
    .experience-tabs,
    .visitor-pass-card,
    .resident-service-grid,
    .resident-history-grid,
    .virtual-stage-grid,
    .method-choice-grid,
    .content-grid.two-up,
    .content-grid.three-up {
        grid-template-columns: 1fr;
    }

    .profile-shell {
        grid-template-columns: 1fr;
    }

    .auth-shell-split {
        grid-template-columns: 1fr;
    }

    .auth-panel-brand {
        display: none;
    }

    .auth-panel,
    .auth-card {
        padding: 28px 22px;
    }

    .resident-reservation-row {
        flex-direction: column;
    }

    .resident-reservation-actions {
        justify-items: stretch;
        min-width: 0;
    }

    .section-header,
    .doc-header {
        flex-direction: column;
        align-items: stretch;
    }

    .scanner-callout {
        grid-template-columns: 1fr;
    }

    .scanner-callout-icon {
        width: 52px;
        height: 52px;
    }

    .scanner-mobile-link {
        grid-template-columns: 1fr;
    }

    .attendance-card-grid {
        grid-template-columns: 1fr;
    }

    .vote-live-board {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .quorum-progress-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .commercial-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .readiness-meter,
    .readiness-item,
    .lab-scoreboard,
    .lab-stage-grid,
    .lab-pipeline,
    .closing-control-grid,
    .closing-check {
        grid-template-columns: 1fr;
    }

    .readiness-ring {
        width: 118px;
        height: 118px;
    }

    .readiness-board {
        grid-template-columns: 1fr;
    }

    .readiness-action {
        justify-items: start;
        white-space: normal;
    }

    .closing-check small,
    .closing-check em {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
        white-space: normal;
    }

    .command-palette-backdrop {
        padding-top: 18px;
        align-items: start;
    }

    .command-palette {
        border-radius: 22px;
    }

    .command-palette-header {
        grid-template-columns: 1fr;
    }

    .command-palette-close {
        position: absolute;
        right: 28px;
        top: 28px;
        width: 38px;
        height: 38px;
    }

    .command-palette-search {
        padding-right: 58px;
        font-size: 16px;
    }

    .table-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .table-tools-search {
        width: 100%;
    }

    .table-tools-count {
        white-space: normal;
    }

    .commercial-hero h2 {
        font-size: clamp(32px, 12vw, 44px);
    }

    .bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Visual V (fallback si visual-v.css falla en el servidor) */
.card-elevated,
.panel.card-elevated {
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.admin-product-page .commercial-hero,
.product-shell .commercial-hero {
    box-shadow: 0 30px 70px color-mix(in srgb, var(--brand) 18%, rgba(15, 23, 42, 0.12));
}

.assembly-legal-plazo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.assembly-legal-plazo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.assembly-legal-plazo-grid strong {
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.assembly-legal-plazo-grid .muted {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.assembly-status-pill.is-warn,
.assembly-status-pill.is-neutral {
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(254, 243, 199, 0.82));
}

.label-with-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legal-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.assembly-morosos-panel .section-header,
.assembly-orden-dia .section-header {
    margin-bottom: 4px;
}

.portal-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
}

.portal-bottom-nav-link {
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 8px 6px;
    border-radius: 14px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}

.portal-bottom-nav-link.is-active {
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.portal-app-shell .page-shell,
.portal-app .page-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.assembly-day-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, #fff), rgba(248, 250, 252, 0.96));
}

.assembly-day-bar-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.assembly-day-bar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.assembly-day-bar-title {
    display: block;
    font-size: 18px;
}

.assembly-day-bar-meta {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.assembly-day-bar-stats,
.assembly-day-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.assembly-onboarding {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 16px;
}

.assembly-onboarding-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.assembly-dashboard-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .assembly-day-bar {
        grid-template-columns: 1fr;
    }

    .assembly-onboarding {
        grid-template-columns: 1fr;
    }
}

.khipu-log-view {
    max-height: 280px;
    overflow: auto;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    padding: 12px;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.khipu-log-view--tall {
    max-height: 320px;
}

.conserje-hub .conserje-hero {
    display: grid;
    gap: 20px;
    align-items: stretch;
}

@media (min-width: 900px) {
    .conserje-hub .conserje-hero {
        grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
    }
}

.conserje-portal-shell .menu-link-highlight {
    border-left: 3px solid var(--accent, #0f766e);
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.12), transparent);
}

.quick-action-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.quick-action-card strong {
    font-size: 1rem;
    color: var(--text-strong, #0f172a);
}

.quick-action-card span {
    font-size: .88rem;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
