/* WorkOS Design System — Fase 1 (Fundamentos)
   Mismo contrato de clases que la versión anterior (wos-shell, wos-card, wos-btn,
   wos-field, wos-badge, wos-table, wos-tabs, wos-resource-grid/card, wos-error) —
   ninguna página .razor necesita cambiar para adoptar este sistema. Ver el artefacto
   de propuesta visual para el razonamiento completo detrás de cada decisión. */

:root {
    --wos-bg: #f9f8f6;
    --wos-surface: #ffffff;
    --wos-surface-2: #f2f0ec;
    --wos-surface-3: #ebe8e2;
    --wos-border: #e3e0d9;
    --wos-border-strong: #cfcbc0;
    --wos-text: #18171c;
    --wos-text-muted: #6b685f;
    --wos-text-faint: #99958a;

    --wos-primary: #2547d0;
    --wos-primary-dark: #1c39ab;
    --wos-primary-soft: #e8ecfb;
    --wos-accent-2: #c97a12;
    --wos-accent-2-soft: #faf0dc;

    --wos-success: #157a4a;
    --wos-success-soft: #e3f5ea;
    --wos-warning: #a5690a;
    --wos-warning-soft: #fbf0da;
    --wos-danger: #b3242f;
    --wos-danger-soft: #fbe7ea;

    --wos-sidebar-bg: #14161c;
    --wos-sidebar-text: #c7c9d4;
    --wos-sidebar-text-muted: #7d8090;
    --wos-sidebar-hover: #1f222b;
    --wos-sidebar-active: #232849;

    --wos-radius-sm: 6px;
    --wos-radius: 10px;
    --wos-radius-lg: 16px;
    --wos-shadow-sm: 0 1px 2px rgba(20,18,10,0.05);
    --wos-shadow-md: 0 6px 20px rgba(20,18,10,0.08), 0 1px 3px rgba(20,18,10,0.06);
    --wos-shadow-lg: 0 16px 40px rgba(20,18,10,0.14);

    --wos-font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --wos-bg: #0e0f13;
        --wos-surface: #181a21;
        --wos-surface-2: #20232c;
        --wos-surface-3: #282c37;
        --wos-border: #2c303c;
        --wos-border-strong: #3b404e;
        --wos-text: #edeef2;
        --wos-text-muted: #a3a6b3;
        --wos-text-faint: #6c6f7c;

        --wos-primary: #7089ff;
        --wos-primary-dark: #8fa2ff;
        --wos-primary-soft: #1c2340;
        --wos-accent-2: #e5a538;
        --wos-accent-2-soft: #332812;

        --wos-success: #4bd390;
        --wos-success-soft: #123526;
        --wos-warning: #f0b849;
        --wos-warning-soft: #392b0f;
        --wos-danger: #f2828d;
        --wos-danger-soft: #3a1a1e;

        --wos-sidebar-bg: #0b0c10;
        --wos-sidebar-hover: #17191f;
        --wos-sidebar-active: #1f2542;

        --wos-shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
        --wos-shadow-md: 0 6px 20px rgba(0,0,0,0.4);
        --wos-shadow-lg: 0 16px 40px rgba(0,0,0,0.5);
    }
}

:root[data-theme="dark"] {
    --wos-bg: #0e0f13;
    --wos-surface: #181a21;
    --wos-surface-2: #20232c;
    --wos-surface-3: #282c37;
    --wos-border: #2c303c;
    --wos-border-strong: #3b404e;
    --wos-text: #edeef2;
    --wos-text-muted: #a3a6b3;
    --wos-text-faint: #6c6f7c;

    --wos-primary: #7089ff;
    --wos-primary-dark: #8fa2ff;
    --wos-primary-soft: #1c2340;
    --wos-accent-2: #e5a538;
    --wos-accent-2-soft: #332812;

    --wos-success: #4bd390;
    --wos-success-soft: #123526;
    --wos-warning: #f0b849;
    --wos-warning-soft: #392b0f;
    --wos-danger: #f2828d;
    --wos-danger-soft: #3a1a1e;

    --wos-sidebar-bg: #0b0c10;
    --wos-sidebar-hover: #17191f;
    --wos-sidebar-active: #1f2542;

    --wos-shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --wos-shadow-md: 0 6px 20px rgba(0,0,0,0.4);
    --wos-shadow-lg: 0 16px 40px rgba(0,0,0,0.5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--wos-bg);
    color: var(--wos-text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--wos-primary);
}

h1, h2, h3 {
    font-weight: 700;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }

:focus-visible {
    outline: 2px solid var(--wos-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---------- shell ---------- */

.wos-shell {
    display: flex;
    min-height: 100vh;
}

.wos-sidebar {
    width: 232px;
    flex-shrink: 0;
    background: var(--wos-sidebar-bg);
    color: var(--wos-sidebar-text);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wos-sidebar .wos-brand {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.wos-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wos-sidebar nav a {
    color: var(--wos-sidebar-text);
    text-decoration: none;
    padding: 0.5rem 0.65rem;
    border-radius: var(--wos-radius-sm);
    font-size: 0.87rem;
    font-weight: 500;
    transition: background 0.12s ease, color 0.12s ease;
}

.wos-sidebar nav a:hover {
    background: var(--wos-sidebar-hover);
    color: #fff;
}

.wos-sidebar nav a.active {
    background: var(--wos-sidebar-active);
    color: #fff;
}

.wos-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.wos-nav-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--wos-sidebar-text-muted);
}

.wos-sidebar nav a:hover .wos-nav-icon,
.wos-sidebar nav a.active .wos-nav-icon {
    color: #a9b6ff;
}

.wos-nav-group-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--wos-sidebar-text-muted);
    padding: 0.9rem 0.65rem 0.3rem;
}

.wos-nav-group-label:first-child {
    padding-top: 0;
}

.wos-main {
    flex: 1;
    padding: 1.9rem 2.2rem;
    max-width: 1140px;
}

.wos-topbar {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.4rem;
    color: var(--wos-text-muted);
    font-size: 0.85rem;
}

.wos-topbar a {
    color: var(--wos-text-muted);
    text-decoration: none;
    transition: color 0.12s ease;
}

.wos-topbar a:hover {
    color: var(--wos-text);
}

/* ---------- user menu (avatar, top-right) ---------- */

.wos-user-menu {
    position: relative;
}

.wos-user-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--wos-primary-soft);
    color: var(--wos-primary);
    border: 1px solid var(--wos-border);
    cursor: pointer;
    transition: background 0.12s ease;
}

.wos-user-menu-trigger:hover {
    background: var(--wos-primary);
    color: #fff;
}

.wos-user-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.wos-user-menu-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 41;
    min-width: 12rem;
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    box-shadow: var(--wos-shadow-md, var(--wos-shadow-sm));
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.wos-user-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    padding: 0.5rem 0.6rem;
    border-radius: calc(var(--wos-radius) - 4px);
    color: var(--wos-text);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.wos-user-menu-item:hover {
    background: var(--wos-sidebar-hover, var(--wos-primary-soft));
}

.wos-user-menu-divider {
    height: 1px;
    background: var(--wos-border);
    margin: 0.3rem 0.1rem;
}

/* ---------- cards ---------- */

.wos-card {
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--wos-shadow-sm);
}

/* ---------- tables ---------- */

.wos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.89rem;
}

.wos-table th, .wos-table td {
    text-align: left;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--wos-border);
    vertical-align: middle;
}

.wos-table th {
    color: var(--wos-text-muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wos-table tr:last-child td {
    border-bottom: none;
}

.wos-table tr:hover td {
    background: var(--wos-surface-2);
}

.wos-table-compact th, .wos-table-compact td {
    padding: 0.35rem 0.6rem;
}

.wos-table-sort-header {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit;
    padding: 0;
    cursor: pointer;
}

.wos-table-sort-header svg { width: 11px; height: 11px; }

.wos-table-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.wos-table-page-info {
    color: var(--wos-text-muted);
    font-size: 0.82rem;
    margin-right: auto;
}

/* ---------- WosTable column/density picker (same overlay+panel pattern as the user menu) ---------- */

.wos-table-view-menu {
    position: relative;
}

.wos-table-view-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.wos-table-view-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 41;
    min-width: 15rem;
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    box-shadow: var(--wos-shadow-md, var(--wos-shadow-sm));
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wos-table-view-section-label {
    color: var(--wos-text-faint);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.5rem 0.15rem;
}

.wos-table-view-column-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.3rem;
    border-radius: calc(var(--wos-radius) - 4px);
    cursor: grab;
}

.wos-table-view-column-row label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
}

.wos-table-view-grip {
    color: var(--wos-text-faint);
    display: flex;
}

.wos-table-view-grip svg { width: 12px; height: 12px; }

.wos-table-dragover {
    outline: 2px dashed var(--wos-primary);
    outline-offset: -2px;
    background: var(--wos-primary-soft);
}

.wos-table-view-density {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.5rem 0.3rem;
}

.wos-table-view-density label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.wos-table-view-divider {
    height: 1px;
    background: var(--wos-border);
    margin: 0.3rem 0.1rem;
}

.wos-table-view-restore {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    padding: 0.5rem 0.6rem;
    border-radius: calc(var(--wos-radius) - 4px);
    color: var(--wos-text);
    cursor: pointer;
    font-size: 0.85rem;
}

.wos-table-view-restore:hover {
    background: var(--wos-sidebar-hover, var(--wos-primary-soft));
}

.wos-table-view-restore svg { width: 13px; height: 13px; }

/* ---------- buttons ---------- */

.wos-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--wos-primary);
    color: #fff;
    border: 1px solid transparent;
    border-radius: var(--wos-radius-sm);
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.12s ease, transform 0.05s ease;
}

.wos-btn:hover {
    background: var(--wos-primary-dark);
}

.wos-btn:active {
    transform: translateY(1px);
}

.wos-btn.secondary {
    background: var(--wos-surface);
    color: var(--wos-text);
    border-color: var(--wos-border-strong);
}

.wos-btn.secondary:hover {
    background: var(--wos-surface-2);
}

.wos-btn.danger {
    background: var(--wos-danger);
}

.wos-btn.danger:hover {
    filter: brightness(0.92);
}

.wos-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wos-btn.ghost {
    background: transparent;
    color: var(--wos-text-muted);
    border-color: transparent;
}

.wos-btn.ghost:hover {
    background: var(--wos-surface-2);
    color: var(--wos-text);
}

.wos-btn.sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
}

/* ---------- fields ---------- */

.wos-field {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    margin-bottom: 0.95rem;
}

.wos-field label {
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--wos-text-muted);
}

.wos-field input, .wos-field select, .wos-field textarea {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--wos-border-strong);
    border-radius: var(--wos-radius-sm);
    font-size: 0.89rem;
    font-family: inherit;
    background: var(--wos-surface);
    color: var(--wos-text);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.wos-field input:focus, .wos-field select:focus, .wos-field textarea:focus {
    outline: none;
    border-color: var(--wos-primary);
    box-shadow: 0 0 0 3px var(--wos-primary-soft);
}

/* ---------- badges ---------- */

.wos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
    background: var(--wos-surface-3);
    color: var(--wos-text-muted);
}

.wos-badge.pending { background: var(--wos-warning-soft); color: var(--wos-warning); }
.wos-badge.inprogress { background: var(--wos-primary-soft); color: var(--wos-primary); }
.wos-badge.completed { background: var(--wos-success-soft); color: var(--wos-success); }
.wos-badge.excluded { background: var(--wos-surface-3); color: var(--wos-text-muted); }
.wos-badge.unclassified { background: var(--wos-danger-soft); color: var(--wos-danger); }
.wos-badge.active { background: var(--wos-success-soft); color: var(--wos-success); }
.wos-badge.locked { background: var(--wos-warning-soft); color: var(--wos-warning); }
.wos-badge.suspended { background: var(--wos-danger-soft); color: var(--wos-danger); }
.wos-badge.revoked { background: var(--wos-surface-3); color: var(--wos-text-muted); }
.wos-badge.running { background: var(--wos-primary-soft); color: var(--wos-primary); }
.wos-badge.failed { background: var(--wos-danger-soft); color: var(--wos-danger); }
.wos-badge.succeeded { background: var(--wos-success-soft); color: var(--wos-success); }
.wos-badge.breached { background: var(--wos-danger-soft); color: var(--wos-danger); }
.wos-badge.paused { background: var(--wos-warning-soft); color: var(--wos-warning); }
.wos-badge.soon { background: var(--wos-warning-soft); color: var(--wos-warning); }
.wos-badge.ontrack { background: var(--wos-success-soft); color: var(--wos-success); }

/* ---------- misc ---------- */

.wos-error {
    color: var(--wos-danger);
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.wos-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--wos-border);
    margin-bottom: 1.25rem;
    /* Matches the mockup's own .wos-tabs exactly — found missing during the
       H2 visual audit's responsive check: a 7-tab module row (Helpdesk's own)
       overflowed its container on a narrow viewport instead of wrapping. */
    flex-wrap: wrap;
}

.wos-tabs a {
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--wos-text-muted);
    border-bottom: 2px solid transparent;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.wos-tabs a.active {
    color: var(--wos-primary);
    border-bottom-color: var(--wos-primary);
}

/* ---------- module shell (ModuleShell.razor) ----------
   Every module carries its own accent (--mod-accent/--mod-accent-soft, set
   inline by the module's own Layout from ACCENTS in the mockup — see
   ModuleShell.razor) so .wos-tabs a.active below and any module-scoped
   accent use picks it up instead of the platform default --wos-primary. */

.wos-module-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.wos-module-header .wmh-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--wos-radius);
    background: var(--mod-accent-soft, var(--wos-primary-soft));
    color: var(--mod-accent, var(--wos-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wos-module-header .wmh-icon svg {
    width: 20px;
    height: 20px;
}

.wos-module-header h1 {
    margin-bottom: 0.15rem;
}

.wos-module-header .wmh-suite {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mod-accent, var(--wos-primary));
    margin-bottom: 0.3rem;
}

.wos-module-header .wmh-tag {
    color: var(--wos-text-muted);
    font-size: 0.85rem;
}

.wos-tabs.wos-module-tabs a.active {
    color: var(--mod-accent, var(--wos-primary));
    border-bottom-color: var(--mod-accent, var(--wos-primary));
}

/* ---------- grouped configuration tabs (ConfigTabs.razor) ---------- */

.cfg-note {
    display: flex;
    gap: 0.5rem;
    background: var(--wos-surface-2);
    border-radius: var(--wos-radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
    color: var(--wos-text-muted);
    margin-bottom: 1rem;
}

.cfg-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wos-text-faint);
    margin-bottom: 0.4rem;
}

.cfg-group {
    margin-bottom: 0.9rem;
}

.cfg-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.cfg-pill {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.79rem;
    font-weight: 600;
    border: 1px solid var(--wos-border);
    background: var(--wos-surface);
    color: var(--wos-text-muted);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.cfg-pill:hover {
    color: var(--wos-text);
}

.cfg-pill.active {
    background: var(--wos-text);
    color: var(--wos-bg);
    border-color: transparent;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--wos-border);
    font-size: 0.8rem;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

.api-endpoint:last-child {
    border-bottom: none;
}

.http-method {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 5px;
    font-family: -apple-system, sans-serif;
    flex-shrink: 0;
    width: 3.6rem;
    text-align: center;
}

.http-method.get { background: var(--wos-primary-soft); color: var(--wos-primary); }
.http-method.post { background: var(--wos-success-soft); color: var(--wos-success); }
.http-method.patch, .http-method.put { background: var(--wos-warning-soft); color: var(--wos-warning); }
.http-method.delete { background: var(--wos-danger-soft); color: var(--wos-danger); }

.event-chip {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.75rem;
    background: var(--wos-surface-2);
    border: 1px solid var(--wos-border);
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.8rem;
}

.tile {
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    padding: 0.9rem 1rem;
    background: var(--wos-surface);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tile-ic {
    width: 2rem;
    height: 2rem;
    border-radius: 7px;
    background: var(--wos-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wos-text-muted);
}

.tile-ic svg {
    width: 14px;
    height: 14px;
}

/* Read-only status indicator (not an interactive control — see Conectividad
   tiles, which show real "not connected" state, never a clickable fake
   toggle) */
.toggle {
    width: 32px;
    height: 18px;
    border-radius: 99px;
    background: var(--wos-surface-3);
    position: relative;
    flex-shrink: 0;
    display: inline-block;
}

.toggle.on {
    background: var(--wos-success);
}

.toggle::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    box-shadow: var(--wos-shadow-sm);
}

.toggle.on::after {
    left: 16px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.kpi-card {
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    padding: 1rem 1.15rem;
    box-shadow: var(--wos-shadow-sm);
}

.kpi-card .kl {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wos-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-card .kv {
    font-size: 1.65rem;
    font-weight: 700;
    margin-top: 0.3rem;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.qa-btn {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    padding: 0.7rem 0.8rem;
    border-radius: var(--wos-radius-sm);
    border: 1px solid var(--wos-border);
    background: var(--wos-surface);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    color: var(--wos-text);
}

.qa-btn:hover {
    border-color: var(--mod-accent, var(--wos-primary));
    background: var(--mod-accent-soft, var(--wos-primary-soft));
}

.qa-btn svg {
    width: 16px;
    height: 16px;
    color: var(--mod-accent, var(--wos-primary));
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.2rem 0 0.8rem;
}

.list-toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.lt-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--wos-surface);
    border: 1px solid var(--wos-border-strong);
    border-radius: var(--wos-radius-sm);
    padding: 0.42rem 0.7rem;
    font-size: 0.82rem;
    color: var(--wos-text-faint);
    min-width: 190px;
}

.lt-select {
    padding: 0.42rem 0.6rem;
    border: 1px solid var(--wos-border-strong);
    border-radius: var(--wos-radius-sm);
    font-size: 0.8rem;
    background: var(--wos-surface);
    color: var(--wos-text);
    font-family: inherit;
}

.lt-spacer {
    flex: 1;
}

.flow-intro {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.8rem 0.95rem;
    border-radius: var(--wos-radius-sm);
    background: var(--mod-accent-soft, var(--wos-primary-soft));
    color: var(--mod-accent, var(--wos-primary));
    font-size: 0.84rem;
    margin-bottom: 1.2rem;
}

.wos-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.wos-resource-card {
    display: block;
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    padding: 1.15rem 1.3rem;
    text-decoration: none;
    color: var(--wos-text);
    box-shadow: var(--wos-shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.wos-resource-card:hover {
    border-color: var(--wos-border-strong);
    box-shadow: var(--wos-shadow-md);
    transform: translateY(-1px);
}

/* Bloque 2B: minimal responsive breakpoint — WorkOS.Web is the platform's own front
   door, more likely than most of the 18 Apps to be opened from a phone. Below
   768px the sidebar stops being a fixed-width column and becomes a horizontal
   strip above the content, which then goes full-width; the resource grid collapses
   to a single column. */
@media (max-width: 768px) {
    .wos-shell {
        flex-direction: column;
    }

    .wos-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1rem;
        overflow-x: auto;
    }

    .wos-sidebar nav {
        flex-direction: row;
    }

    .wos-main {
        max-width: 100%;
        padding: 1.1rem 1rem;
    }

    .wos-resource-grid {
        grid-template-columns: 1fr;
    }

    .wos-card {
        padding: 1rem;
    }
}

/* ---------- login / signup split panel ---------- */

.wos-auth-shell {
    display: flex;
    min-height: 100vh;
}

.wos-auth-brand {
    flex: 1.1;
    background: linear-gradient(155deg, #161a3d, var(--wos-primary) 130%);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wos-auth-brand .wos-auth-brand-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.wos-auth-brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.wos-auth-brand blockquote {
    font-family: var(--wos-font-display);
    font-weight: normal;
    font-size: 1.6rem;
    line-height: 1.35;
    margin: 0;
}

.wos-auth-brand .wos-auth-brand-foot {
    font-size: 0.8rem;
    opacity: 0.75;
}

.wos-auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.wos-auth-form-inner {
    width: 100%;
    max-width: 340px;
}

.wos-auth-form-inner h1 {
    font-family: var(--wos-font-display);
    font-weight: normal;
    font-size: 1.7rem;
    margin: 0 0 0.3rem;
}

.wos-auth-form-inner .wos-auth-sub {
    color: var(--wos-text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.6rem;
}

.wos-auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--wos-text-muted);
    margin-top: 1.2rem;
}

@media (max-width: 720px) {
    .wos-auth-brand {
        display: none;
    }

    .wos-auth-form {
        padding: 1.25rem;
    }
}

/* ---------- public landing page (/) ---------- */

.wos-landing {
    background: var(--wos-bg);
}

.wos-lp-nav {
    display: flex;
    align-items: center;
    padding: 1.1rem 3rem;
    gap: 1rem;
    border-bottom: 1px solid var(--wos-border);
}

.wos-lp-nav .wos-lp-brand {
    font-family: var(--wos-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.wos-lp-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--wos-primary), #6d8bff);
}

.wos-lp-nav .wos-lp-spacer {
    flex: 1;
}

.wos-lp-nav .wos-lp-actions {
    display: flex;
    gap: 0.6rem;
}

.wos-lp-hero {
    text-align: center;
    padding: 5.5rem 3rem 4.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.wos-lp-hero .wos-lp-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wos-primary);
}

.wos-lp-hero h1 {
    font-family: var(--wos-font-display);
    font-weight: normal;
    font-size: 3rem;
    line-height: 1.12;
    margin: 0.6rem 0 1rem;
    text-wrap: balance;
    letter-spacing: normal;
}

.wos-lp-hero p {
    color: var(--wos-text-muted);
    font-size: 1.1rem;
    max-width: 56ch;
    margin: 0 auto 1.8rem;
}

.wos-lp-cta-row {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.wos-lp-section {
    padding: 3.5rem 3rem;
    border-top: 1px solid var(--wos-border);
}

.wos-lp-section .wos-lp-inner {
    max-width: 1040px;
    margin: 0 auto;
}

.wos-lp-section h2 {
    font-family: var(--wos-font-display);
    font-weight: normal;
    font-size: 1.9rem;
    margin: 0 0 0.6rem;
    text-align: center;
    letter-spacing: normal;
}

.wos-lp-section .wos-lp-sub {
    text-align: center;
    color: var(--wos-text-muted);
    max-width: 60ch;
    margin: 0 auto 2.2rem;
}

.wos-lp-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.wos-lp-feature .wos-lp-icwrap {
    width: 40px;
    height: 40px;
    border-radius: var(--wos-radius-sm);
    background: var(--wos-primary-soft);
    color: var(--wos-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
}

.wos-lp-feature h3 {
    font-size: 1rem;
    margin: 0 0 0.3rem;
}

.wos-lp-feature p {
    font-size: 0.86rem;
    color: var(--wos-text-muted);
    margin: 0;
}

.wos-lp-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    max-width: 760px;
    margin: 0 auto;
}

.wos-lp-compare .wos-lp-col {
    border-radius: var(--wos-radius);
    padding: 1.4rem 1.5rem;
}

.wos-lp-compare .wos-lp-col.bad {
    background: var(--wos-surface-2);
    border: 1px solid var(--wos-border);
}

.wos-lp-compare .wos-lp-col.good {
    background: var(--wos-primary-soft);
    border: 1px solid var(--wos-primary);
}

.wos-lp-compare h4 {
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
}

.wos-lp-compare ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.84rem;
    color: var(--wos-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.wos-lp-growth {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.wos-lp-growth .wos-lp-step {
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    padding: 1rem 1.3rem;
    font-size: 0.86rem;
    font-weight: 600;
    box-shadow: var(--wos-shadow-sm);
}

.wos-lp-growth .wos-lp-arrow {
    color: var(--wos-text-faint);
    padding: 0 0.8rem;
    font-size: 1.1rem;
}

.wos-lp-pricing {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.wos-lp-price-card {
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    padding: 1.6rem 1.7rem;
    width: 250px;
    text-align: left;
}

.wos-lp-price-card.highlight {
    border-color: var(--wos-primary);
    box-shadow: var(--wos-shadow-md);
    position: relative;
}

.wos-lp-price-card .wos-lp-tag-pop {
    position: absolute;
    top: -11px;
    left: 1.4rem;
    background: var(--wos-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}

.wos-lp-price-card h4 {
    margin: 0;
    font-size: 0.95rem;
}

.wos-lp-price-card .wos-lp-amt {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.wos-lp-price-card .wos-lp-amt small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--wos-text-faint);
}

.wos-lp-price-card p {
    font-size: 0.82rem;
    color: var(--wos-text-muted);
    margin: 0;
}

.wos-lp-final {
    text-align: center;
    padding: 4rem 3rem;
}

.wos-lp-final h2 {
    font-family: var(--wos-font-display);
    font-weight: normal;
    font-size: 1.9rem;
    margin: 0 0 0.6rem;
    letter-spacing: normal;
}

.wos-lp-final p {
    color: var(--wos-text-muted);
    margin-bottom: 1.4rem;
}

.wos-lp-footer {
    text-align: center;
    padding: 2rem;
    color: var(--wos-text-faint);
    font-size: 0.78rem;
    border-top: 1px solid var(--wos-border);
}

/* ---------- dashboard widgets ---------- */

.wos-widget-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.wos-w-3 { grid-column: span 3; }
.wos-w-4 { grid-column: span 4; }
.wos-w-6 { grid-column: span 6; }
.wos-w-8 { grid-column: span 8; }
.wos-w-12 { grid-column: span 12; }

@media (max-width: 900px) {
    .wos-w-3, .wos-w-4, .wos-w-6, .wos-w-8 { grid-column: span 12; }
}

.wos-stat-big {
    font-variant-numeric: tabular-nums;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--wos-text);
    line-height: 1.1;
}

.wos-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wos-quick-action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--wos-radius-sm);
    border: 1px solid var(--wos-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wos-text);
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.wos-quick-action:hover {
    background: var(--wos-surface-2);
    border-color: var(--wos-border-strong);
}

.wos-quick-action .wos-nav-icon {
    color: var(--wos-primary);
}

.wos-activity-row {
    display: flex;
    gap: 0.7rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--wos-border);
    font-size: 0.85rem;
}

.wos-activity-row:last-child {
    border-bottom: none;
}

.wos-activity-row .wos-activity-meta {
    color: var(--wos-text-faint);
    font-size: 0.76rem;
}

.wos-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.87rem;
}

.wos-checklist-item .wos-tick {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.6px solid var(--wos-border-strong);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wos-checklist-item.done .wos-tick {
    background: var(--wos-success);
    border-color: var(--wos-success);
}

.wos-checklist-item.done span:last-child {
    color: var(--wos-text-faint);
    text-decoration: line-through;
}

/* ---------- avatars ---------- */

.wos-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--wos-primary);
    flex-shrink: 0;
}

.wos-row-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
}

/* ---------- module catalog cards ---------- */

.wos-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}

.wos-module-card {
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    border-radius: var(--wos-radius);
    padding: 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: var(--wos-shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.wos-module-card:hover {
    border-color: var(--wos-primary);
    box-shadow: var(--wos-shadow-md, var(--wos-shadow-sm));
}

.wos-module-card .wos-module-icwrap {
    width: 40px;
    height: 40px;
    border-radius: var(--wos-radius-sm);
    background: var(--wos-primary-soft);
    color: var(--wos-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Discoverable but not accessible — same card shape, no link affordance. */
.wos-module-card.locked {
    opacity: 0.65;
}

.wos-module-card.locked .wos-module-icwrap {
    background: var(--wos-surface-3);
    color: var(--wos-text-muted);
}

.wos-module-card h4 {
    margin: 0;
    font-size: 1rem;
}

.wos-module-card .wos-module-meta {
    color: var(--wos-text-muted);
    font-size: 0.82rem;
    margin: 0;
}

/* ---------- toolbar / filter pills ---------- */

.wos-toolbar-row {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.wos-toolbar-row .wos-field {
    margin-bottom: 0;
    min-width: 150px;
}

.wos-toolbar-row .wos-search {
    position: relative;
    min-width: 220px;
    flex: 1;
    max-width: 320px;
}

.wos-toolbar-row .wos-search input {
    width: 100%;
    padding: 0.5rem 0.7rem 0.5rem 2.1rem;
    border: 1px solid var(--wos-border-strong);
    border-radius: var(--wos-radius-sm);
    font-size: 0.87rem;
    font-family: inherit;
    background: var(--wos-surface);
    color: var(--wos-text);
}

.wos-toolbar-row .wos-search input:focus {
    outline: none;
    border-color: var(--wos-primary);
    box-shadow: 0 0 0 3px var(--wos-primary-soft);
}

.wos-toolbar-row .wos-search svg {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--wos-text-faint);
    pointer-events: none;
}

.wos-filter-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: -0.4rem 0 1rem;
}

.wos-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--wos-primary-soft);
    color: var(--wos-primary);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem 0.25rem 0.65rem;
    border-radius: 999px;
}

.wos-filter-chip button {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    opacity: 0.7;
}

.wos-filter-chip button:hover {
    opacity: 1;
}

.wos-clear-filters {
    font-size: 0.78rem;
    color: var(--wos-text-faint);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}

.wos-list-count {
    font-size: 0.82rem;
    color: var(--wos-text-muted);
}

/* ---------- alerts / banners ---------- */

.wos-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.95rem;
    border-radius: var(--wos-radius-sm);
    font-size: 0.87rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.wos-alert svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.wos-alert.info { background: var(--wos-primary-soft); color: var(--wos-primary-dark); border-color: var(--wos-primary); }
.wos-alert.success { background: var(--wos-success-soft); color: var(--wos-success); border-color: var(--wos-success); }
.wos-alert.warning { background: var(--wos-warning-soft); color: var(--wos-warning); border-color: var(--wos-warning); }
.wos-alert.danger { background: var(--wos-danger-soft); color: var(--wos-danger); border-color: var(--wos-danger); }

/* ---------- modal / confirm dialog ---------- */

.wos-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 14, 10, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
    animation: wos-fade-in 0.12s ease;
}

.wos-modal {
    background: var(--wos-surface);
    border-radius: var(--wos-radius);
    box-shadow: var(--wos-shadow-lg, var(--wos-shadow-md));
    max-width: 420px;
    width: 100%;
    padding: 1.4rem 1.5rem;
    animation: wos-modal-in 0.14s ease;
}

.wos-modal h3 {
    margin: 0 0 0.5rem;
}

.wos-modal p {
    color: var(--wos-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.3rem;
}

.wos-modal .wos-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

@keyframes wos-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wos-modal-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- toasts ---------- */

.wos-toast-host {
    position: fixed;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 250;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    pointer-events: none;
}

.wos-toast {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--wos-text);
    color: var(--wos-bg);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: var(--wos-radius-sm);
    box-shadow: var(--wos-shadow-md);
    pointer-events: auto;
    animation: wos-toast-in 0.16s ease;
}

.wos-toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.wos-toast.success svg { color: var(--wos-success); }
.wos-toast.danger svg { color: var(--wos-danger); }

@keyframes wos-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- skeletons ---------- */

.wos-skeleton {
    background: linear-gradient(90deg, var(--wos-surface-2) 25%, var(--wos-surface-3) 37%, var(--wos-surface-2) 63%);
    background-size: 400% 100%;
    animation: wos-skeleton-shimmer 1.4s ease infinite;
    border-radius: var(--wos-radius-sm);
}

@keyframes wos-skeleton-shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

.wos-skeleton-row { height: 2.5rem; margin-bottom: 0.5rem; }
.wos-skeleton-line { height: 0.9rem; margin-bottom: 0.5rem; width: 60%; }
.wos-skeleton-card { height: 5.5rem; margin-bottom: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
    .wos-skeleton { animation: none; background: var(--wos-surface-3); }
}

/* ---------- empty state ---------- */

.wos-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 2.5rem 1.5rem;
    color: var(--wos-text-muted);
}

.wos-empty-state .wos-empty-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--wos-surface-2);
    color: var(--wos-text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.wos-empty-state .wos-empty-icon svg { width: 20px; height: 20px; }
.wos-empty-state h4 { margin: 0; color: var(--wos-text); font-size: 0.95rem; text-transform: none; letter-spacing: 0; }
.wos-empty-state p { margin: 0; font-size: 0.85rem; max-width: 40ch; }
.wos-empty-state .wos-btn { margin-top: 0.6rem; }

/* ---------- responsive table wrapper ---------- */

.wos-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------- dashboard personalize mode ---------- */

.wos-widget-editing {
    border: 1.5px dashed var(--wos-border-strong) !important;
    position: relative;
}

.wos-widget-controls {
    display: flex;
    gap: 0.3rem;
}

.wos-widget-controls button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--wos-surface-2);
    color: var(--wos-text-muted);
    border-radius: var(--wos-radius-sm);
    cursor: pointer;
    padding: 0;
}

.wos-widget-controls button:hover { background: var(--wos-surface-3); color: var(--wos-text); }
.wos-widget-controls svg { width: 13px; height: 13px; }

.wos-add-widget-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 110px;
    border: 1.5px dashed var(--wos-border-strong);
    border-radius: var(--wos-radius);
    color: var(--wos-text-faint);
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
}

.wos-add-widget-tile:hover { border-color: var(--wos-primary); color: var(--wos-primary); background: var(--wos-primary-soft); }
.wos-add-widget-tile svg { width: 20px; height: 20px; }

.wos-widget-grip {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wos-text-faint);
    cursor: grab;
}

.wos-widget-grip svg { width: 13px; height: 13px; }

.wos-widget-editing[draggable="true"] { cursor: grab; }
.wos-widget-editing[draggable="true"]:active { cursor: grabbing; }

.wos-widget-dragover {
    outline: 2px dashed var(--wos-primary);
    outline-offset: 2px;
    background: var(--wos-primary-soft);
}

@media (max-width: 720px) {
    .wos-lp-nav {
        padding: 1rem 1.25rem;
    }

    .wos-lp-hero {
        padding: 3rem 1.25rem 3rem;
    }

    .wos-lp-hero h1 {
        font-size: 2.1rem;
    }

    .wos-lp-section {
        padding: 2.5rem 1.25rem;
    }

    .wos-lp-compare {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Chat — rediseño 2026-09-08. Clases con prefijo chat- para no colisionar con
   .wos-avatar/.wos-modal/.wos-badge etc. — Chat tiene su propio lenguaje visual
   (boceto "Chat WorkOS", 11 pantallas aprobado) que reutiliza los mismos
   tokens --wos-* de siempre, nunca una paleta paralela. Compartido entre
   Chat.razor (página completa) y ChatFloatingWidget.razor (panel flotante) —
   nunca duplicado entre los dos.
   ========================================================================= */

.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex: none; }
.chat-avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.chat-avatar.lg { width: 56px; height: 56px; font-size: 17px; }
.chat-avatar.group { background: linear-gradient(135deg, #5c4bb3, #2547d0); }

.chat-shell { display: grid; grid-template-columns: 320px 1fr; height: 640px; border: 1px solid var(--wos-border); border-radius: var(--wos-radius-lg); overflow: hidden; background: var(--wos-surface); box-shadow: var(--wos-shadow-md); position: relative; }
@media (max-width: 860px) { .chat-shell { grid-template-columns: 1fr; height: auto; } .chat-shell .chat-msg-pane { display: none; } .chat-shell.chat-thread-open .chat-conv-pane { display: none; } .chat-shell.chat-thread-open .chat-msg-pane { display: flex; height: 640px; } }

.chat-conv-pane { border-right: 1px solid var(--wos-border); display: flex; flex-direction: column; background: var(--wos-surface-2); min-width: 0; }
.chat-conv-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--wos-border); }
.chat-conv-head h2 { font-family: var(--wos-font-display); font-size: 19px; margin: 0 0 10px; }
.chat-conv-search { display: flex; align-items: center; gap: 8px; background: var(--wos-surface); border: 1px solid var(--wos-border-strong); border-radius: 999px; padding: 7px 12px; margin-bottom: 10px; }
.chat-conv-search svg { width: 14px; height: 14px; color: var(--wos-text-faint); flex: none; }
.chat-conv-search input { border: none; background: none; outline: none; color: var(--wos-text); font-size: 13px; width: 100%; }
.chat-new-btn { width: 100%; padding: 9px; border: none; border-radius: var(--wos-radius-sm); background: var(--wos-primary); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.chat-conv-list { flex: 1; overflow-y: auto; padding: 6px; }
.chat-conv-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px; border-radius: var(--wos-radius-sm); cursor: pointer; margin-bottom: 2px; }
.chat-conv-item:hover { background: var(--wos-surface-3); }
.chat-conv-item.active { background: var(--wos-primary-soft); }
.chat-conv-body { flex: 1; min-width: 0; }
.chat-conv-top { display: flex; justify-content: space-between; gap: 6px; }
.chat-conv-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conv-item.unread .chat-conv-name { font-weight: 700; }
.chat-conv-time { font-size: 11px; color: var(--wos-text-faint); flex: none; }
.chat-conv-item.unread .chat-conv-time { color: var(--wos-primary); font-weight: 700; }
.chat-conv-preview { font-size: 12.5px; color: var(--wos-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; display: flex; justify-content: space-between; gap: 8px; }
.chat-conv-item.unread .chat-conv-preview { color: var(--wos-text); font-weight: 600; }
.chat-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wos-primary); flex: none; margin-top: 3px; }
.chat-link-chip-mini { display: inline-flex; align-items: center; gap: 3px; background: var(--wos-surface-3); color: var(--wos-text-muted); border-radius: 5px; padding: 1px 6px; font-size: 10px; font-weight: 700; margin-top: 3px; }

.chat-msg-pane { display: flex; flex-direction: column; min-width: 0; }
.chat-msg-head { padding: 12px 20px; border-bottom: 1px solid var(--wos-border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-msg-head-who { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.chat-msg-head-name { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-msg-head-sub { font-size: 11.5px; color: var(--wos-text-faint); }
.chat-msg-head-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.chat-icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--wos-border-strong); background: var(--wos-surface); color: var(--wos-text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; position: relative; }
.chat-icon-btn svg { width: 15px; height: 15px; }
.chat-icon-btn.disabled { cursor: not-allowed; color: var(--wos-text-faint); opacity: .55; }
.chat-icon-btn:hover .chat-tooltip, .chat-composer-icon:hover .chat-tooltip { opacity: 1; }
.chat-link-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--wos-surface-3); color: var(--wos-text-muted); border-radius: 999px; padding: 4px 10px 4px 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; border: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-msg-scroll { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 2px; }
.chat-date-divider { text-align: center; margin: 14px 0 10px; font-size: 11px; color: var(--wos-text-faint); text-transform: uppercase; letter-spacing: .05em; }
.chat-msg-row { display: flex; gap: 9px; margin-bottom: 10px; max-width: 72%; }
.chat-msg-row.own { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-bubble { padding: 9px 13px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; line-height: 1.45; background: var(--wos-surface-3); color: var(--wos-text); white-space: pre-wrap; word-break: break-word; }
.chat-msg-row.own .chat-bubble { background: var(--wos-primary); color: #fff; border-radius: 14px 14px 4px 14px; }
.chat-msg-time { font-size: 10.5px; color: var(--wos-text-faint); margin: 0 4px; display: flex; align-items: center; gap: 3px; }
.chat-msg-row.own .chat-msg-time { justify-content: flex-end; }

.chat-meeting-card { align-self: flex-start; max-width: 78%; background: var(--wos-surface); border: 1px solid var(--wos-border-strong); border-radius: var(--wos-radius); padding: 12px 14px; margin: 8px 0; box-shadow: var(--wos-shadow-md); }
.chat-meeting-card .mc-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.chat-meeting-card .mc-when { font-size: 12px; color: var(--wos-text-muted); margin-bottom: 8px; }
.chat-meeting-card .mc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.chat-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; flex: none; }
.chat-badge.scheduled { background: var(--wos-primary-soft); color: var(--wos-primary-dark); }
.chat-badge.live { background: var(--wos-success-soft); color: var(--wos-success); }
.chat-badge.done { background: var(--wos-surface-3); color: var(--wos-text-muted); }
.chat-badge.cancelled { background: var(--wos-danger-soft); color: var(--wos-danger); }

.chat-file-msg { display: flex; align-items: center; gap: 10px; background: var(--wos-surface); border: 1px solid var(--wos-border-strong); border-radius: var(--wos-radius-sm); padding: 9px 12px; min-width: 220px; cursor: pointer; }
.chat-file-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--wos-primary-soft); color: var(--wos-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-file-icon svg { width: 16px; height: 16px; }
.chat-file-name { font-size: 12.5px; font-weight: 700; }
.chat-file-meta { font-size: 11px; color: var(--wos-text-faint); }

.chat-composer { border-top: 1px solid var(--wos-border); padding: 12px 16px; display: flex; align-items: flex-end; gap: 8px; }
.chat-composer-input { flex: 1; border: 1px solid var(--wos-border-strong); border-radius: 18px; padding: 9px 14px; font-size: 13.5px; background: var(--wos-surface); color: var(--wos-text); resize: none; min-height: 20px; max-height: 100px; font-family: inherit; }
.chat-composer-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--wos-border-strong); background: var(--wos-surface); color: var(--wos-text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; position: relative; }
.chat-composer-icon.disabled { color: var(--wos-text-faint); cursor: not-allowed; opacity: .6; }
.chat-composer-icon svg { width: 16px; height: 16px; }
.chat-tooltip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--wos-text); color: var(--wos-bg); font-size: 10.5px; padding: 4px 8px; border-radius: 5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 10; }
.chat-send-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--wos-primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; }
.chat-send-btn svg { width: 16px; height: 16px; }

.chat-empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--wos-text-muted); text-align: center; padding: 30px; }
.chat-empty-state svg { width: 44px; height: 44px; color: var(--wos-text-faint); }
.chat-empty-state h3 { margin: 0; font-family: var(--wos-font-display); font-size: 17px; color: var(--wos-text); }
.chat-empty-state p { margin: 0; font-size: 12.5px; max-width: 280px; }

.chat-modal-backdrop { position: fixed; inset: 0; background: rgba(10, 10, 14, .55); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 1rem; }
.chat-modal { background: var(--wos-surface); border-radius: var(--wos-radius-lg); box-shadow: var(--wos-shadow-lg); width: 440px; max-width: 100%; max-height: 85vh; display: flex; flex-direction: column; border: 1px solid var(--wos-border); }
.chat-modal.wide { width: 520px; }
.chat-modal-head { padding: 20px 22px 0; }
.chat-modal-head h3 { font-family: var(--wos-font-display); font-size: 19px; margin: 0 0 14px; }
.chat-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--wos-border); padding: 0 22px; }
.chat-tab { padding: 9px 4px; margin-right: 18px; font-size: 13px; font-weight: 700; color: var(--wos-text-faint); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; }
.chat-tab.active { color: var(--wos-primary); border-color: var(--wos-primary); }
.chat-modal-body { padding: 16px 22px; overflow-y: auto; flex: 1; }
.chat-search-field { display: flex; align-items: center; gap: 8px; background: var(--wos-surface-2); border: 1px solid var(--wos-border-strong); border-radius: 999px; padding: 8px 14px; margin-bottom: 12px; }
.chat-search-field input { border: none; background: none; outline: none; color: var(--wos-text); font-size: 13px; width: 100%; }
.chat-person-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: var(--wos-radius-sm); cursor: pointer; }
.chat-person-row:hover { background: var(--wos-surface-2); }
.chat-person-row.selected { background: var(--wos-primary-soft); }
.chat-person-name { font-size: 13.5px; font-weight: 600; }
.chat-person-sub { font-size: 11.5px; color: var(--wos-text-faint); }
.chat-field { margin-bottom: 14px; }
.chat-field label { display: block; font-size: 12px; font-weight: 600; color: var(--wos-text-muted); margin-bottom: 6px; }
.chat-field input, .chat-field select { width: 100%; padding: 9px 12px; border: 1px solid var(--wos-border-strong); border-radius: var(--wos-radius-sm); background: var(--wos-surface); color: var(--wos-text); font-size: 13.5px; }
.chat-field-row { display: flex; gap: 10px; }
.chat-field-row .chat-field { flex: 1; }
.chat-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chat-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--wos-primary-soft); color: var(--wos-primary-dark); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 12px; font-weight: 600; }
.chat-chip .x { cursor: pointer; opacity: .7; border: none; background: none; color: inherit; font-size: 12px; padding: 0; }
.chat-modal-foot { padding: 14px 22px; border-top: 1px solid var(--wos-border); display: flex; justify-content: flex-end; gap: 10px; }
.chat-btn { border: 1px solid var(--wos-border-strong); background: var(--wos-surface); color: var(--wos-text); padding: 8px 16px; border-radius: var(--wos-radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; }
.chat-btn:disabled { opacity: .5; cursor: not-allowed; }
.chat-btn.solid { background: var(--wos-primary); color: #fff; border-color: var(--wos-primary); }
.chat-btn.danger { background: var(--wos-danger); color: #fff; border-color: var(--wos-danger); }
.chat-btn.sm { padding: 5px 11px; font-size: 12px; }

.chat-info-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 280px; background: var(--wos-surface); border-left: 1px solid var(--wos-border); box-shadow: -8px 0 20px rgba(0, 0, 0, .08); display: flex; flex-direction: column; z-index: 60; }
.chat-info-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--wos-border); display: flex; align-items: center; justify-content: space-between; }
.chat-info-head h3 { font-family: var(--wos-font-display); font-size: 17px; margin: 0; }
.chat-close-x { cursor: pointer; color: var(--wos-text-faint); font-size: 18px; line-height: 1; border: none; background: none; }
.chat-info-body { padding: 16px 18px; overflow-y: auto; }
.chat-info-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--wos-text-faint); margin-bottom: 10px; }
.chat-participant-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

/* ---- panel/burbuja flotante — anclado por esquina (data-corner) ---- */
.chat-widget-root { position: fixed; z-index: 400; }
.chat-widget-root[data-corner="bottom-right"] { bottom: 20px; right: 20px; }
.chat-widget-root[data-corner="bottom-left"] { bottom: 20px; left: 20px; }
.chat-widget-root[data-corner="top-right"] { top: 20px; right: 20px; }
.chat-widget-root[data-corner="top-left"] { top: 20px; left: 20px; }
.chat-bubble-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--wos-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--wos-shadow-lg); cursor: pointer; border: none; position: relative; }
.chat-bubble-btn svg { width: 24px; height: 24px; }
.chat-bubble-badge { position: absolute; top: -4px; right: -4px; background: var(--wos-danger); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 999px; min-width: 19px; height: 19px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--wos-bg); }
.chat-float-panel { position: absolute; width: 340px; height: 460px; background: var(--wos-surface); border: 1px solid var(--wos-border); border-radius: var(--wos-radius-lg); box-shadow: var(--wos-shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.chat-widget-root[data-corner="bottom-right"] .chat-float-panel { bottom: 70px; right: 0; }
.chat-widget-root[data-corner="bottom-left"] .chat-float-panel { bottom: 70px; left: 0; }
.chat-widget-root[data-corner="top-right"] .chat-float-panel { top: 70px; right: 0; }
.chat-widget-root[data-corner="top-left"] .chat-float-panel { top: 70px; left: 0; }
.chat-float-head { padding: 10px 12px; border-bottom: 1px solid var(--wos-border); display: flex; align-items: center; justify-content: space-between; cursor: grab; background: var(--wos-surface-2); touch-action: none; }
.chat-float-head-title { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.chat-float-head-title span.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-float-head-actions { display: flex; gap: 2px; flex: none; }
.chat-float-head-actions button { width: 26px; height: 26px; border-radius: 6px; border: none; background: transparent; color: var(--wos-text-faint); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-float-head-actions button:hover { background: var(--wos-surface-3); }
.chat-float-head-actions svg { width: 14px; height: 14px; }
.chat-float-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.chat-float-list { flex: 1; overflow-y: auto; padding: 6px; }
.chat-float-composer { padding: 8px 10px; }

@media (max-width: 480px) {
    .chat-float-panel { width: calc(100vw - 24px); height: 70vh; }
}

/* =========================================================================
   Notificaciones — rediseño 2026-09-08. Clases con prefijo notif- — mismo
   criterio que chat-: no colisiona con .wos-avatar/.wos-modal/.wos-badge,
   reutiliza los mismos tokens --wos-* de siempre.
   ========================================================================= */

.notif-bell-wrap { position: relative; }
.notif-bell { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--wos-border-strong); background: var(--wos-surface); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; color: var(--wos-text-muted); }
.notif-bell svg { width: 16px; height: 16px; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--wos-danger); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--wos-bg); }

.notif-dropdown { position: absolute; top: 46px; right: 0; width: 380px; background: var(--wos-surface); border: 1px solid var(--wos-border); border-radius: var(--wos-radius); box-shadow: var(--wos-shadow-lg); z-index: 250; overflow: hidden; }
.notif-dd-head { padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--wos-border); }
.notif-dd-head h4 { margin: 0; font-family: var(--wos-font-display); font-size: 16px; }
.notif-dd-head button { font-size: 11.5px; color: var(--wos-primary); font-weight: 700; cursor: pointer; text-decoration: none; border: none; background: none; padding: 0; }
.notif-dd-tabs { display: flex; gap: 4px; padding: 8px 12px 0; }
.notif-dd-tab { padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--wos-text-faint); cursor: pointer; border: 1px solid transparent; background: none; }
.notif-dd-tab.active { background: var(--wos-primary-soft); color: var(--wos-primary-dark); }
.notif-dd-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.notif-dd-empty { padding: 30px 16px; text-align: center; color: var(--wos-text-muted); font-size: 12.5px; }
.notif-dd-foot { padding: 10px 16px; text-align: center; border-top: 1px solid var(--wos-border); }
.notif-dd-foot a { font-size: 12px; font-weight: 700; color: var(--wos-primary); cursor: pointer; text-decoration: none; }

.notif-card { display: flex; gap: 10px; padding: 11px 10px; border-radius: var(--wos-radius-sm); cursor: pointer; margin-bottom: 2px; position: relative; }
.notif-card:hover { background: var(--wos-surface-2); }
.notif-card.unread { background: var(--wos-primary-soft); }
.notif-icwrap { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.notif-icwrap svg { width: 15px; height: 15px; }
.notif-icwrap.action { background: var(--wos-primary-soft); color: var(--wos-primary); }
.notif-icwrap.fyi { background: var(--wos-surface-3); color: var(--wos-text-muted); }
.notif-icwrap.alert { background: var(--wos-warning-soft); color: var(--wos-warning); }
.notif-icwrap.alert.urgent { background: var(--wos-danger-soft); color: var(--wos-danger); }
.notif-body { flex: 1; min-width: 0; }
.notif-top-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.notif-title { font-size: 13px; font-weight: 600; line-height: 1.35; }
.notif-card.unread .notif-title { font-weight: 700; }
.notif-time { font-size: 10.5px; color: var(--wos-text-faint); white-space: nowrap; flex: none; margin-top: 1px; }
.notif-sub { font-size: 12px; color: var(--wos-text-muted); margin-top: 2px; line-height: 1.4; }
.notif-subject-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--wos-surface-3); color: var(--wos-text-muted); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 700; margin-top: 6px; border: none; }
.notif-actions-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.notif-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wos-primary); flex: none; position: absolute; top: 14px; right: 10px; }

.nbadge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.nbadge.action { background: var(--wos-primary-soft); color: var(--wos-primary-dark); }
.nbadge.fyi { background: var(--wos-surface-3); color: var(--wos-text-muted); }
.nbadge.alert-normal { background: var(--wos-warning-soft); color: var(--wos-warning); }
.nbadge.alert-urgent { background: var(--wos-danger-soft); color: var(--wos-danger); }

.nbtn { border: 1px solid var(--wos-border-strong); background: var(--wos-surface); color: var(--wos-text); padding: 6px 13px; border-radius: var(--wos-radius-sm); font-size: 12px; font-weight: 700; cursor: pointer; }
.nbtn.solid { background: var(--wos-primary); color: #fff; border-color: var(--wos-primary); }
.nbtn.success { background: var(--wos-success); color: #fff; border-color: var(--wos-success); }
.nbtn.danger-ghost { color: var(--wos-danger); border-color: var(--wos-danger-soft); background: var(--wos-danger-soft); }
.nbtn.sm { padding: 4px 10px; font-size: 11px; }
.nbtn:disabled { opacity: .5; cursor: not-allowed; }

.notif-center { border: 1px solid var(--wos-border); border-radius: var(--wos-radius-lg); background: var(--wos-surface); box-shadow: var(--wos-shadow-md); overflow: hidden; }
.notif-center-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--wos-border); }
.notif-center-head h2 { font-family: var(--wos-font-display); font-size: 20px; margin: 0 0 12px; }
.notif-filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notif-chip { padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--wos-border-strong); background: var(--wos-surface); color: var(--wos-text-muted); cursor: pointer; display: flex; align-items: center; gap: 6px; }
.notif-chip.active { background: var(--wos-text); color: var(--wos-bg); border-color: var(--wos-text); }
.notif-chip .count { background: rgba(0, 0, 0, .12); border-radius: 999px; padding: 1px 6px; font-size: 10px; }
.notif-chip.active .count { background: rgba(255, 255, 255, .22); }
.notif-toolbar-right { margin-left: auto; display: flex; gap: 8px; }
.notif-date-divider { padding: 10px 22px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--wos-text-faint); font-weight: 700; background: var(--wos-surface-2); }
.notif-center-list .notif-card { border-radius: 0; padding: 14px 22px; margin-bottom: 0; border-bottom: 1px solid var(--wos-border); }
.notif-center-list .notif-card:last-child { border-bottom: none; }
.notif-center-list .notif-card.unread { background: var(--wos-primary-soft); }

.notif-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--wos-text-muted); text-align: center; padding: 50px 30px; }
.notif-empty svg { width: 40px; height: 40px; color: var(--wos-text-faint); }
.notif-empty h3 { margin: 0; font-family: var(--wos-font-display); font-size: 17px; color: var(--wos-text); }

.pref-card { background: var(--wos-surface); border: 1px solid var(--wos-border); border-radius: var(--wos-radius); padding: 16px 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 16px; }
.pref-icwrap { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.pref-icwrap svg { width: 16px; height: 16px; }
.pref-info { flex: 1; }
.pref-info .t { font-weight: 700; font-size: 13.5px; }
.pref-info .d { font-size: 12px; color: var(--wos-text-muted); margin-top: 2px; }
.pref-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--wos-border-strong); flex: none; cursor: pointer; border: none; padding: 0; }
.pref-switch.on { background: var(--wos-primary); }
.pref-switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.pref-switch.on .knob { left: 18px; }
.pref-switch:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Suscripción (Suscripciones/Precios/Cuotas/Pagos, 2026-09-13) ---------- */
.wos-stat-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.wos-stat-tile { flex: 1 1 180px; background: var(--wos-surface); border: 1px solid var(--wos-border); border-radius: var(--wos-radius); padding: 1rem 1.2rem; box-shadow: var(--wos-shadow-sm); }
.wos-stat-tile .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--wos-text-faint); margin-bottom: 0.4rem; }
.wos-stat-tile .value { font-family: var(--wos-font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.wos-stat-tile .hint { font-size: 0.78rem; color: var(--wos-text-muted); margin-top: 0.25rem; }
.wos-stat-tile .hint.warn { color: var(--wos-warning); }
.wos-stat-tile .hint.bad { color: var(--wos-danger); }

.wos-usage-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.wos-usage-item { display: flex; align-items: baseline; gap: 0.4rem; }
.wos-usage-item .num { font-family: var(--wos-font-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.wos-usage-item .lbl { font-size: 0.78rem; color: var(--wos-text-muted); }

.wos-cancel-panel { margin-top: 0.8rem; padding: 0.9rem 1rem; background: var(--wos-warning-soft); border: 1px solid var(--wos-warning); border-radius: var(--wos-radius); font-size: 0.83rem; }
.wos-cancel-panel ul { margin: 0.5rem 0 0.8rem; padding-left: 1.1rem; }
.wos-cancel-panel label.confirm-check { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.7rem; cursor: pointer; }

.wos-badge.overdue { background: var(--wos-danger-soft); color: var(--wos-danger); }
