:root {
    --sidebar: 258px;
    --navy: #142737;
    --navy-deep: #0c1b26;
    --blue: #1683ff;
    --green: #16a36a;
    --orange: #f59e0b;
    --red: #ef5b5b;
    --violet: #7557d8;
    --canvas: #f3f6f9;
    --ink: #172536;
    --muted: #748394;
    --line: #dfe7ef;
}

/* ==========================================================
   SIDEBAR: MENÚS DESPLEGABLES
   ========================================================== */

.sidebar .submenu-toggle {
    width: 100%;
    border: 0;
    outline: 0;
    text-align: left;
    cursor: pointer;
}

.sidebar .submenu-toggle > span {
    min-width: 0;
}

.sidebar .submenu-toggle .submenu-arrow {
    width: auto;
    margin-left: auto;
    font-size: .76rem;
    transition: transform .2s ease;
}

.sidebar .submenu-toggle[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar .submenu-collapse {
    width: 100%;
}

.sidebar .submenu-items {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 2px 0 8px;
    padding: 3px 0 3px 38px;
}

.sidebar .submenu-items::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 1px;
    background: #30343a;
    content: "";
}

.sidebar .submenu-link {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #9ba9b9;
    background: transparent;
    font-size: .69rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease;
}

.sidebar .submenu-link .submenu-indicator {
    position: absolute;
    top: 50%;
    left: -21px;
    z-index: 1;
    width: 7px;
    height: 7px;
    border: 2px solid #171717;
    border-radius: 50%;
    background: #526174;
    transform: translateY(-50%);
    transition:
        background-color .18s ease,
        box-shadow .18s ease;
}

.sidebar .submenu-link > i {
    flex: 0 0 18px;
    width: 18px;
    color: #71849b;
    font-size: .82rem;
    text-align: center;
}

.sidebar .submenu-link > span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
}

.sidebar .submenu-link:hover,
.sidebar .submenu-link:focus-visible {
    color: #ffffff;
    background: #242424;
    text-decoration: none;
}

.sidebar .submenu-link:hover > i,
.sidebar .submenu-link:focus-visible > i {
    color: #a9c4ff;
}

.sidebar .submenu-link:focus-visible {
    outline: 2px solid rgba(88, 137, 244, .55);
    outline-offset: 1px;
}

.sidebar .submenu-link.active {
    color: #ffffff;
    border-color: rgba(91, 135, 230, .12);
    background: #202d42;
    font-weight: 750;
    text-decoration: none;
}

.sidebar .submenu-link.active > i {
    color: #68a1ff;
}

.sidebar .submenu-link.active .submenu-indicator {
    background: #4e86ec;
    box-shadow: 0 0 0 4px rgba(78, 134, 236, .14);
}

@media (max-width: 991.98px) {
    .sidebar .submenu-items {
        padding-right: 2px;
    }
}
* {
    box-sizing: border-box;
}
body {
    background: var(--canvas);
    color: var(--ink);
    font-size: .875rem;
}
.sidebar {
    background: radial-gradient(circle at 10% 0, rgba(22, 131, 255, .18), transparent 27%), linear-gradient(180deg, var(--navy), var(--navy-deep));
    bottom: 0;
    color: #d7e2eb;
    display: flex;
    flex-direction: column;
    left: 0;
    position: fixed;
    top: 0;
    width: var(--sidebar);
    z-index: 1040;
}
.brand {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    display: flex;
    gap: 12px;
    min-height: 70px;
    padding: 0 22px;
}
.brand-mark {
    align-items: center;
    background: linear-gradient(145deg, #2c9cff, #0870e2);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(22, 131, 255, .3);
    display: flex;
    font-size: 1.3rem;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}
.brand > span:last-child {
    display: flex;
    flex-direction: column;
}
.brand strong {
    font-size: 1rem;
    letter-spacing: .12em;
}
.brand small {
    color: #85c0fa;
    font-size: .72rem;
    font-weight: 600;
}
.network-label {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    flex-direction: column;
    padding: 17px 22px;
}
.network-label small, .nav-section {
    color: #60798d;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .15em;
}
.network-label strong {
    color: #ced9e2;
    font-size: .75rem;
    margin-top: 3px;
}
.sidebar .nav {
    overflow-y: auto;
    padding-top: 10px;
}
.nav-section {
    margin: 15px 12px 7px;
}
.sidebar .nav-link {
    align-items: center;
    border-radius: 10px;
    color: #adbfce;
    display: flex;
    font-size: .76rem;
    gap: 11px;
    margin: 2px 0;
    min-height: 43px;
    padding: 0 12px;
    transition: .15s;
}
.sidebar .nav-link i {
    color: #7891a5;
    font-size: 1rem;
    width: 22px;
}
.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}
.sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(22, 131, 255, .27), rgba(22, 131, 255, .08));
    box-shadow: inset 3px 0 #2c98ff;
    color: #fff;
}
.sidebar .nav-link.active i {
    color: #65b3ff;
}
.sat-link {
    border: 1px solid rgba(80, 168, 255, .14);
}
.sat-link .badge {
    background: #1683ff;
    font-size: .55rem;
}
.sidebar-state {
    align-items: center;
    background: rgba(5, 14, 22, .34);
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    gap: 11px;
    min-height: 66px;
    padding: 0 20px;
}
.sidebar-state > span:last-child {
    display: flex;
    flex-direction: column;
}
.sidebar-state strong {
    font-size: .7rem;
}
.sidebar-state small {
    color: #718a9e;
    font-size: .62rem;
}
.state-dot {
    background: #22c97d;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 201, 125, .13);
    height: 9px;
    width: 9px;
}
.state-dot.offline {
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .14);
}
.app-content {
    margin-left: var(--sidebar);
    min-height: 100vh;
}
.topbar {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    display: flex;
    height: 70px;
    padding: 0 25px;
    backdrop-filter: blur(12px);
}
.breadcrumb-lite {
    color: #98a4af;
    display: flex;
    font-size: .72rem;
    gap: 9px;
}
.breadcrumb-lite strong {
    color: var(--blue);
    letter-spacing: .07em
}
.breadcrumb-lite b {
    color: #435264
}
.updated {
    border-right: 1px solid var(--line);
    color: #8491a0;
    font-size: .65rem;
    padding-right: 15px;
}
.connection-pill {
    align-items: center;
    background: #fff8e8;
    border: 1px solid #f6d993;
    border-radius: 20px;
    color: #a86a00;
    display: flex;
    font-size: .65rem;
    font-weight: 700;
    gap: 7px;
    padding: 7px 11px;
}
.connection-pill i {
    background: var(--orange);
    border-radius: 50%;
    height: 7px;
    width: 7px;
}
.user-pill {
    align-items: center;
    background: linear-gradient(145deg, #2c9cff, #0870e2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: .7rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}
.app-content main {
    margin: 0 auto;
    max-width: 1580px;
    min-height: calc(100vh - 118px);
}
.prototype-alert {
    align-items: center;
    background: #fffbea;
    border: 1px solid #f0df9e;
    border-radius: 9px;
    color: #806413;
    display: flex;
    font-size: .68rem;
    gap: 10px;
    min-height: 39px;
    padding: 7px 11px;
}
.prototype-alert span {
    background: #f5ce45;
    border-radius: 4px;
    color: #5c4706;
    font-size: .5rem;
    font-weight: 900;
    letter-spacing: .12em;
    padding: 4px 6px;
}
.page-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin: 5px 0 20px;
}
.eyebrow {
    color: var(--blue);
    display: block;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .17em;
    margin-bottom: 5px;
}
.page-heading h1 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    letter-spacing: -.04em;
    margin: 0;
}
.page-heading p {
    color: var(--muted);
    font-size: .75rem;
    margin: 6px 0 0;
}
.btn {
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 650;
}
.btn-primary {
    background: linear-gradient(135deg, #1683ff, #0871df);
    border-color: #0871df;
    box-shadow: 0 6px 16px rgba(22, 131, 255, .16);
}
.metrics-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}
.metric-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(35, 58, 80, .04);
    display: flex;
    flex-direction: column;
    min-height: 140px;
    overflow: hidden;
    padding: 15px 16px;
    position: relative;
}
.metric-card:after {
    background: var(--blue);
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    width: 100%;
}
.metric-card.green:after {
    background: var(--green)
}
.metric-card.orange:after {
    background: var(--orange)
}
.metric-card.violet:after {
    background: var(--violet)
}
.metric-card.red:after {
    background: var(--red)
}
.metric-icon {
    align-items: center;
    background: #eaf4ff;
    border-radius: 8px;
    color: var(--blue);
    display: flex;
    font-size: 1rem;
    height: 32px;
    justify-content: center;
    margin-bottom: 10px;
    width: 32px;
}
.metric-card.green .metric-icon {
    background: #e8f8f1;
    color: var(--green)
}
.metric-card.orange .metric-icon {
    background: #fff6e3;
    color: var(--orange)
}
.metric-card.violet .metric-icon {
    background: #f0edff;
    color: var(--violet)
}
.metric-card.red .metric-icon {
    background: #ffeded;
    color: var(--red)
}
.metric-card > span {
    color: #68798a;
    font-size: .68rem;
}
.metric-card strong {
    font-size: 1.7rem;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin-top: 2px;
}
.metric-card small {
    color: #8b98a6;
    font-size: .6rem;
    margin-top: 5px
}
.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(39, 62, 84, .035);
    overflow: hidden;
}
.card-title-wrap {
    align-items: center;
    border-bottom: 1px solid #e8eef4;
    display: flex;
    justify-content: space-between;
    min-height: 62px;
    padding: 12px 16px;
}
.card-title-wrap h2 {
    font-size: .86rem;
    margin: 0;
}
.card-title-wrap p {
    color: #8290a0;
    font-size: .62rem;
    margin: 3px 0 0
}
.result-count {
    background: #eef5fc;
    border-radius: 14px;
    color: #4b6a89;
    font-size: .6rem;
    font-weight: 700;
    padding: 5px 9px
}
.bar-chart {
    align-items: flex-end;
    display: flex;
    gap: clamp(10px, 2.3vw, 28px);
    height: 245px;
    justify-content: center;
    padding: 35px 20px 18px;
}
.bar-chart > div {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    max-width: 46px;
}
.bar-chart span, .bar-chart small {
    color: #718293;
    font-size: .58rem
}
.bar-chart i {
    background: linear-gradient(#36a0ff, #147be5);
    border-radius: 5px 5px 2px 2px;
    display: block;
    margin: 5px 0 7px;
    width: 100%
}
.bar-chart > div:last-child i {
    background: linear-gradient(#38c888, #14955f)
}
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 27px 20px;
}
.progress-list > div {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 145px 1fr 35px
}
.progress-list span, .progress-list b {
    font-size: .65rem
}
.progress {
    height: 8px
}
.progress-bar {
    background: var(--blue)
}
.mini-stat {
    align-items: center;
    display: flex;
    gap: 18px;
    min-height: 130px;
    padding: 20px;
}
.mini-stat > i {
    font-size: 2rem
}
.mini-stat > div {
    display: flex;
    flex-direction: column
}
.mini-stat small {
    color: var(--muted)
}
.mini-stat strong {
    font-size: 1.8rem
}
.mini-stat span {
    color: #8a98a6;
    font-size: .62rem
}
.filter-row {
    align-items: center;
    background: #fbfcfd;
    border-bottom: 1px solid #e8eef4;
    display: flex;
    gap: 9px;
    padding: 12px 16px;
}
.filter-row .input-group {
    flex: 1
}
.filter-row .form-select {
    max-width: 280px
}
.form-control, .form-select, .input-group-text {
    border-color: #d8e2eb;
    border-radius: 7px;
    font-size: .72rem;
    min-height: 38px;
}
.data-table {
    min-width: 760px
}
.data-table th {
    background: #f7f9fb;
    color: #778697;
    font-size: .56rem;
    letter-spacing: .04em;
    padding: 11px 14px;
    text-transform: uppercase
}
.data-table td {
    border-color: #edf1f5;
    color: #45586c;
    font-size: .68rem;
    padding: 11px 14px
}
.person-cell {
    align-items: center;
    display: flex;
    gap: 9px;
    min-width: 180px
}
.person-cell>span {
    align-items: center;
    background: #e8f3ff;
    border-radius: 50%;
    color: #1479dd;
    display: flex;
    font-size: .7rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px
}
.person-cell>div {
    display: flex;
    flex-direction: column
}
.person-cell small {
    color: #91a0af;
    font-size: .55rem
}
.status {
    background: #fff6df;
    border: 1px solid #f5dfaa;
    border-radius: 12px;
    color: #a36a04;
    display: inline-block;
    font-size: .55rem;
    font-style: normal;
    font-weight: 750;
    padding: 4px 7px;
    text-transform: capitalize;
    white-space: nowrap;
}
.status-success {
    background: #eaf9f2;
    border-color: #c9eadb;
    color: #087749
}
.status-danger {
    background: #fff0f0;
    border-color: #f4cccc;
    color: #c23f3f
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr)
}
.detail-grid>div {
    border-bottom: 1px solid #edf1f5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 75px;
    padding: 15px 10px
}
.detail-grid span:first-child {
    color: var(--muted);
    font-size: .65rem
}
.next-action {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 30px
}
.next-action i {
    color: var(--blue);
    font-size: 2rem
}
.next-action strong {
    font-size: 1.5rem;
    margin-top: 8px
}
.next-action span {
    color: var(--muted);
    font-size: .7rem
}
.form-card {
    padding: 24px
}
.form-label {
    color: #586a7d;
    font-size: .68rem;
    font-weight: 650
}
.coverage-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px
}
.coverage-grid article {
    align-items: center;
    background: #fafcfe;
    border: 1px solid #e4ebf2;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    min-height: 88px;
    padding: 12px
}
.coverage-grid article>div:last-child {
    display: flex;
    flex-direction: column
}
.coverage-grid b {
    font-size: .7rem
}
.coverage-grid small {
    color: var(--muted);
    font-size: .58rem;
    margin-top: 4px
}
.coverage-ring {
    align-items: center;
    background: conic-gradient(var(--blue) var(--progress), #e8eff5 0);
    border-radius: 50%;
    display: flex;
    height: 56px;
    justify-content: center;
    position: relative;
    width: 56px
}
.coverage-ring:after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 41px;
    position: absolute;
    width: 41px
}
.coverage-ring span {
    font-size: .6rem;
    font-weight: 800;
    z-index: 1
}
.priority-list article {
    align-items: center;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    gap: 10px;
    min-height: 63px;
    padding: 9px 17px
}
.priority-list article>span {
    align-items: center;
    background: #fff0f0;
    border-radius: 50%;
    color: var(--red);
    display: flex;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px
}
.priority-list article>div {
    display: flex;
    flex: 1;
    flex-direction: column
}
.priority-list b {
    font-size: .7rem
}
.priority-list small {
    color: var(--muted);
    font-size: .58rem
}
.week-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, 1fr);
    padding: 15px
}
.week-grid article {
    background: #fafcfe;
    border: 1px solid #e3eaf1;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    padding: 11px
}
.week-grid article.today {
    background: #eaf5ff;
    border-color: #76b9f8
}
.week-grid small, .week-grid span {
    color: var(--muted);
    font-size: .6rem
}
.week-grid b {
    font-size: 1.4rem;
    margin-top: 6px
}
.week-grid span {
    margin-top: auto
}
.agenda-list article {
    align-items: center;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    gap: 16px;
    min-height: 64px;
    padding: 8px 18px
}
.agenda-list time {
    font-size: .7rem;
    font-weight: 800
}
.agenda-list article>div {
    display: flex;
    flex: 1;
    flex-direction: column
}
.agenda-list b {
    font-size: .7rem
}
.agenda-list small {
    color: var(--muted);
    font-size: .58rem
}
.reminder-box {
    display: flex;
    gap: 13px;
    margin-bottom: 20px
}
.reminder-box>i {
    align-items: center;
    background: #e8f4ff;
    border-radius: 10px;
    color: var(--blue);
    display: flex;
    font-size: 1.4rem;
    height: 45px;
    justify-content: center;
    width: 45px
}
.reminder-box b {
    font-size: .75rem
}
.reminder-box p {
    color: var(--muted);
    font-size: .65rem;
    margin-top: 5px
}
.report-filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1.35fr 1.2fr 1.1fr auto;
    padding: 166px
}
.report-filters label {
    display: flex;
    flex-direction: column;
    gap: 5px
}
.report-filters label>span {
    color: #657587;
    font-size: .6rem;
    font-weight: 700
}
.report-summary {
    background: linear-gradient(100deg, #123458, #176daf);
    border-radius: 12px;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden
}
.report-summary>div {
    border-right: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    flex-direction: column;
    padding: 18px 20px
}
.report-summary span {
    color: #a9cbe8;
    font-size: .6rem
}
.report-summary b {
    font-size: 1.5rem
}
.donut-report {
    align-items: center;
    background: conic-gradient(var(--blue) 0 87%, #dce6ef 87%);
    border-radius: 50%;
    display: flex;
    height: 145px;
    justify-content: center;
    margin: 28px auto;
    position: relative;
    width: 145px
}
.donut-report:after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 95px;
    position: absolute;
    width: 95px
}
.donut-report>div {
    display: flex;
    flex-direction: column;
    text-align: center;
    z-index: 1
}
.donut-report strong {
    font-size: 1.4rem
}
.donut-report small {
    color: var(--muted);
    font-size: .55rem
}
.sync-hero {
    align-items: center;
    background: radial-gradient(circle at 5% 0, rgba(115, 196, 255, .35), transparent 28%), linear-gradient(120deg, #0a467b, #0d76bd 70%, #1393cf);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 91, 149, .22);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: 85px 1fr 220px;
    min-height: 225px;
    padding: 28px
}
.sync-orbit {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    display: flex;
    font-size: 2rem;
    height: 68px;
    justify-content: center;
    outline: 1px solid rgba(255, 255, 255, .18);
    outline-offset: 10px;
    width: 68px
}
.sync-copy>small {
    color: #b8dcf7;
    font-size: .55rem;
    font-weight: 850;
    letter-spacing: .17em
}
.sync-copy h2 {
    font-size: 1.75rem;
    letter-spacing: -.03em;
    margin: 7px 0
}
.sync-copy p {
    color: #d2e8f8;
    font-size: .7rem;
    line-height: 1.65;
    max-width: 650px
}
.queue-box {
    background: rgba(2, 35, 61, .25);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 20px
}
.queue-box small {
    color: #b9d9f0;
    font-size: .5rem;
    letter-spacing: .13em
}
.queue-box strong {
    font-size: 3.2rem;
    line-height: 1.1
}
.queue-box span {
    color: #c3def2;
    font-size: .6rem
}
.queue-box .progress {
    background: rgba(255, 255, 255, .18);
    margin-top: 20px
}
.route-list {
    padding: 16px 20px
}
.route-list article {
    align-items: center;
    display: grid;
    grid-template-columns: 48px 16px 1fr;
    min-height: 53px
}
.route-list time {
    color: #738597;
    font-size: .6rem
}
.route-list article>i {
    background: #cbd6e0;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cbd6e0;
    height: 10px;
    position: relative;
    width: 10px
}
.route-list article:not(:last-child)>i:after {
    background: #dce4eb;
    content: "";
    height: 43px;
    left: 3px;
    position: absolute;
    top: 9px;
    width: 1px
}
.route-list .completado>i {
    background: var(--green);
    box-shadow: 0 0 0 1px var(--green)
}
.route-list .en_ruta>i {
    background: var(--blue);
    box-shadow: 0 0 0 3px #ddecff
}
.route-list article>div {
    display: flex;
    flex-direction: column;
    padding-left: 6px
}
.route-list b {
    font-size: .68rem
}
.route-list small {
    color: var(--muted);
    font-size: .58rem
}
footer {
    border-top: 1px solid var(--line);
    color: #8b98a5;
    font-size: .6rem
}
.sidebar-backdrop {
    display: none
}
.guest-body {
    background: #eef3f7
}
.login-shell {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 100vh
}
.login-visual {
    background: radial-gradient(circle at 15% 15%, rgba(74, 174, 255, .25), transparent 30%), linear-gradient(145deg, #0b2c48, #0b6ba9);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 45px 55px;
    position: relative
}
.login-brand {
    align-items: center;
    display: flex;
    font-size: 1rem;
    gap: 12px;
    letter-spacing: .05em
}
.login-brand span {
    align-items: center;
    background: #1683ff;
    border-radius: 11px;
    display: flex;
    font-size: 1.3rem;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    width: 42px
}
.login-message {
    margin: auto 0;
    max-width: 650px;
    position: relative;
    z-index: 2
}
.login-message small {
    color: #86c9ff;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .18em
}
.login-message h1 {
    font-size: clamp(2.3rem, 4vw, 4.3rem);
    letter-spacing: -.055em;
    line-height: 1.05;
    margin: 15px 0
}
.login-message p {
    color: #c2dcf0;
    font-size: .9rem;
    line-height: 1.7;
    max-width: 550px
}
.orbit-login {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    bottom: -120px;
    display: flex;
    font-size: 8rem;
    height: 420px;
    justify-content: center;
    opacity: .18;
    position: absolute;
    right: -80px;
    width: 420px
}
.login-form-wrap {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    padding: 40px
}
.login-form {
    max-width: 420px;
    width: 100%
}
.login-form h2 {
    font-size: 2rem;
    letter-spacing: -.04em;
    margin: 8px 0
}
.login-form>p {
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: 28px
}
.login-form .form-control {
    min-height: 49px
}
.demo-note {
    align-items: center;
    background: #f2f8fd;
    border: 1px solid #deebf5;
    border-radius: 9px;
    color: #4b6780;
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 12px
}
.demo-note>i {
    color: var(--blue);
    font-size: 1.3rem
}
.demo-note>span {
    display: flex;
    flex-direction: column
}
.demo-note b {
    font-size: .68rem
}
.demo-note small {
    font-size: .6rem
}
@media(max-width:1100px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .coverage-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .report-filters {
        grid-template-columns: repeat(2, 1fr)
    }
    .sync-hero {
        grid-template-columns: 70px 1fr 180px
    }
}
@media(max-width:991px) {
    .sidebar {
        transform: translateX(-102%);
        transition: .18s
    }
    .sidebar.show {
        transform: translateX(0)
    }
    .app-content {
        margin-left: 0
    }
    .sidebar-backdrop.show {
        background: rgba(9, 23, 35, .45);
        display: block;
        inset: 0;
        position: fixed;
        z-index: 1030
    }
    .login-shell {
        grid-template-columns: 1fr
    }
    .login-visual {
        display: none
    }
    .report-summary {
        grid-template-columns: repeat(2, 1fr)
    }
    .sync-hero {
        grid-template-columns: 65px 1fr
    }
    .queue-box {
        grid-column: 1/-1
    }
}
@media(max-width:650px) {
    .page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 13px
    }
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px
    }
    .filter-row {
        align-items: stretch;
        flex-direction: column
    }
    .filter-row .form-select {
        max-width: none
    }
    .coverage-grid {
        grid-template-columns: 1fr
    }
    .week-grid {
        overflow-x: auto
    }
    .week-grid article {
        min-width: 78px
    }
    .report-filters {
        grid-template-columns: 1fr
    }
    .report-summary {
        grid-template-columns: 1fr
    }
    .sync-hero {
        grid-template-columns: 1fr;
        padding: 22px
    }
    .sync-orbit {
        display: none
    }
    .login-form-wrap {
        padding: 25px
    }
    .detail-grid {
        grid-template-columns: 1fr
    }
}
@media(max-width:420px) {
    .metrics-grid {
        grid-template-columns: 1fr
    }
}
@media print {
    .sidebar, .topbar, .prototype-alert, .page-heading .btn, footer {
        display: none!important
    }
    .app-content {
        margin: 0
    }
    .content-card {
        break-inside: avoid
    }
}
/* Modificaciones visuales específicas para el login Wienner VitalIA */
.guest-body {
    background: #fff;
    margin: 0;
    min-height: 100vh;
}
.login-shell {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 100vh;
}
/* Panel visual izquierdo */
.login-visual {
    background: #dceaf8 url("../img/login-visual.png") left center no-repeat;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    min-height: 100vh;
}
/* Panel de formulario derecho */
.login-form-wrap {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    padding: 0;
    min-height: 100vh;
}
.login-form {
    max-width: 520px;
    width: 100%;
}
/* Logotipo médico Wienner VitalIA */
.login-form .eyebrow {
    color: transparent;
    display: block;
    font-size: 0;
    height: auto;
    letter-spacing: normal;
    margin: 0 0 60px 80px;
    position: relative;
}
/* Cruz médica azul */
.login-form .eyebrow::before {
    align-items: center;
    border: 3px solid #3476ef;
    border-radius: 12px;
    color: #3476ef;
    content: "+";
    display: flex;
    font-size: 3.5rem;
    font-weight: 300;
    height: 60px;
    justify-content: center;
    left: -80px;
    line-height: 1;
    position: absolute;
    top: 0;
    width: 60px;
}
/* Texto del logo */
.login-form .eyebrow::after {
    color: #102a55;
    content: "Wienner VitalIA\ACRED Conecta SAT · Seguimiento infantil conectado";
    display: block;
    font-size: 2.6rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.2;
    white-space: pre;
}
/* Encabezado ¡Bienvenido! */
.login-form h2 {
    color: transparent;
    font-size: 0;
    letter-spacing: normal;
    margin: 0 0 8px;
}
.login-form h2::after {
    color: #102a55;
    content: "¡Bienvenido!";
    display: block;
    font-size: 2.8rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.15;
}
.login-form>p {
    color: #65758b;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 32px;
}
/* Formulario */
.login-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.login-form form .mb-3 {
    margin-bottom: 0 !important;
}
.login-form .form-label {
    color: #10233f;
    display: block;
    font-size: 0.8rem;
    font-weight: 750;
    margin-bottom: 8px;
}
/* Inputs de texto */
.login-form .form-control {
    background: #fff;
    border: 1px solid #c8d5e5;
    border-radius: 8px;
    color: #10233f;
    font-size: 1.05rem;
    min-height: 70px;
    outline: none;
    padding: 0 20px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-form .form-control:hover {
    border-color: #9fb2c9;
}
.login-form .form-control:focus {
    background: #fff;
    border-color: #3476ef;
    box-shadow: 0 0 0 3px rgba(52, 118, 239, 0.12);
    color: #10233f;
}
.login-form .form-control::placeholder {
    color: #8b99aa;
}
/* Botón de ingreso */
.login-form .btn-primary {
    align-items: center;
    background: linear-gradient(135deg, #4381f5, #2e6ce4);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(47, 111, 232, 0.2);
    color: #fff;
    display: flex;
    font-size: 1rem;
    font-weight: 750;
    justify-content: center;
    margin-top: 10px;
    min-height: 68px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    width: 100%;
}
.login-form .btn-primary:hover, .login-form .btn-primary:focus {
    background: linear-gradient(135deg, #3476ef, #225fda);
    box-shadow: 0 13px 28px rgba(47, 111, 232, 0.28);
    color: #fff;
    transform: translateY(-1px);
}
.login-form .btn-primary:active {
    box-shadow: 0 6px 16px rgba(47, 111, 232, 0.2);
    transform: translateY(0);
}
/* Nota de demostración */
.demo-note {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #e0ebfc;
    border-radius: 10px;
    color: #18325c;
    display: flex;
    gap: 16px;
    margin-top: 36px;
    padding: 20px;
}
.demo-note>i {
    color: #3476ef;
    font-size: 2rem;
}
.demo-note>span {
    display: flex;
    flex-direction: column;
}
.demo-note b {
    color: #18325c;
    font-size: 0.8rem;
}
.demo-note small {
    color: #4e6280;
    font-size: 0.7rem;
    margin-top: 4px;
}
/* Responsive para tabletas y móviles */
@media (max-width: 991px) {
    .login-shell {
        display: block;
        min-height: 100vh;
    }
    .login-visual {
        display: none;
    }
    .login-form-wrap {
        min-height: 100vh;
        padding: 40px 20px;
    }
    .login-form {
        max-width: 500px;
    }
    .login-form .eyebrow {
        margin-bottom: 40px;
    }
    .login-form .eyebrow::after {
        font-size: 2rem;
        white-space: pre-wrap;
    }
}
/* ===== Wiener VitalIA · rediseño visual 2026 ===== */
:root {
    --sidebar: 300px;
    --wv-navy: #0b1f4d;
    --wv-blue: #2f6ff2;
    --wv-bg: #f7f8fb;
    --wv-black: #191919
}
body {
    background: var(--wv-bg);
    color: #172033
}
.sidebar {
    background: var(--wv-black);
    color: #fff;
    width: var(--sidebar)
}
.brand {
    border-bottom: 1px solid #303030;
    gap: 13px;
    min-height: 94px;
    padding: 0 30px
}
.brand-mark {
    background: #fff;
    border-radius: 50%;
    box-shadow: none;
    color: #171717;
    height: 36px;
    width: 36px
}
.brand strong {
    font-size: .92rem;
    letter-spacing: .03em
}
.brand small {
    color: #a9a9a9;
    font-size: .56rem;
    letter-spacing: .13em
}
.network-label {
    border-color: #303030;
    padding: 17px 30px
}
.network-label small, .nav-section {
    color: #777
}
.network-label strong {
    color: #ddd
}
.sidebar .nav {
    padding: 13px 18px
}
.sidebar .nav-section {
    padding-left: 12px
}
.sidebar .nav-link {
    border-radius: 12px;
    color: #d4d4d4;
    font-size: .82rem;
    margin: 4px 0;
    min-height: 54px;
    padding: 0 18px
}
.sidebar .nav-link i {
    color: inherit
}
.sidebar .nav-link:hover {
    background: #292929
}
.sidebar .nav-link.active {
    background: #fff;
    box-shadow: none;
    color: #171717;
    font-weight: 750
}
.sidebar .nav-link.active i {
    color: #171717
}
.sidebar .nav-link .nav-arrow {
    margin-left: auto;
    width: auto
}
.sidebar-state {
    background: #111;
    border-color: #303030;
    min-height: 78px;
    padding: 0 28px
}
.app-content {
    margin-left: var(--sidebar)
}
.topbar {
    background: #fff;
    border: 0;
    height: 80px;
    padding: 0 32px
}
.breadcrumb-lite {
    color: #a0a0a0
}
.breadcrumb-lite strong {
    color: #222
}
.updated {
    border-left: 1px solid #ddd;
    color: #172033;
    display: flex!important;
    flex-direction: column;
    font-size: .72rem;
    padding-left: 18px;
    text-align: right
}
.updated small {
    color: #758096;
    font-size: .6rem
}
.user-pill {
    background: #e9e9e9;
    color: #171717;
    height: 42px;
    width: 42px
}
.connection-pill {
    background: #f0f6ff;
    border-color: #d6e5ff;
    color: #245fcf
}
.app-content main {
    background: var(--wv-bg);
    max-width: none;
    padding: 28px 34px!important
}
.prototype-alert {
    border-radius: 4px
}
.page-heading {
    align-items: center;
    margin: 10px 0 25px
}
.dashboard-heading>div {
    display: grid;
    grid-template-columns: auto 1fr;
    position: relative
}
.dashboard-heading .heading-symbol {
    color: #5d9b91;
    font-size: 2.7rem;
    font-weight: 300;
    grid-row: 1/4;
    line-height: 1;
    margin-right: 8px
}
.dashboard-heading .eyebrow {
    grid-column: 2
}
.dashboard-heading h1, .dashboard-heading p {
    grid-column: 2
}
.page-heading h1 {
    color: #111;
    font-size: 2rem
}
.metrics-grid {
    gap: 18px
}
.metric-card, .content-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(24, 36, 58, .08)
}
.metric-card {
    min-height: 150px
}
.content-card {
    border: 1px solid #f0f0f0
}
.card-title-wrap {
    min-height: 70px
}
.bar-chart {
    height: 270px
}
footer {
    background: #fff
}
.guest-body {
    background: #fff;
    margin: 0;
    min-height: 100vh
}
.login-shell {
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: 100vh
}
.login-visual {
    background: #dceaf8 url("../img/login-visual.png") center center/cover no-repeat;
    min-height: 100vh;
    padding: 0
}
.login-form-wrap {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 45px 7vw
}
.login-form {
    max-width: 525px;
    width: 100%
}
.login-logo {
    align-items: center;
    display: flex;
    gap: 20px;
    margin-bottom: 48px
}
.login-logo>span:last-child {
    display: flex;
    flex-direction: column
}
.login-logo strong {
    color: var(--wv-navy);
    font-size: 2.45rem;
    letter-spacing: -.04em;
    line-height: 1
}
.login-logo em {
    color: var(--wv-blue);
    font-style: normal
}
.login-logo small {
    color: #1c55cb;
    font-size: .72rem;
    margin-top: 8px
}
.vitalia-mark {
    height: 67px;
    position: relative;
    width: 78px
}
.vitalia-mark i {
    border: 3px solid var(--wv-blue);
    border-radius: 4px;
    height: 30px;
    position: absolute;
    width: 30px
}
.vitalia-mark i:nth-child(1) {
    left: 24px;
    top: 0
}
.vitalia-mark i:nth-child(2) {
    left: 0;
    top: 24px
}
.vitalia-mark i:nth-child(3) {
    right: 0;
    top: 24px
}
.vitalia-mark i:nth-child(4) {
    bottom: 0;
    left: 24px
}
.vitalia-mark b {
    background: var(--wv-blue);
    border: 6px solid #fff;
    border-radius: 50%;
    height: 22px;
    left: 28px;
    position: absolute;
    top: 28px;
    width: 22px;
    z-index: 2
}
.login-form h2 {
    color: var(--wv-navy);
    font-size: 2.7rem;
    letter-spacing: -.045em;
    margin: 0 0 6px
}
.login-form>p {
    color: #3d4960;
    font-size: 1rem;
    margin: 0 0 30px
}
.login-form form {
    display: flex;
    flex-direction: column;
    gap: 20px
}
.login-form form .mb-3 {
    margin: 0!important
}
.login-form .form-label {
    color: #132449;
    font-size: .78rem;
    font-weight: 750;
    margin-bottom: 9px
}
.login-input {
    position: relative
}
.login-input>i {
    color: #7182a3;
    font-size: 1.45rem;
    left: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2
}
.login-form .form-control {
    border: 1px solid #bccae0;
    border-radius: 8px;
    color: #102148;
    font-size: 1rem;
    min-height: 67px;
    padding: 0 58px
}
.login-form .form-control:focus {
    border-color: var(--wv-blue);
    box-shadow: 0 0 0 3px rgba(47, 111, 242, .09)
}
.password-toggle {
    background: transparent;
    border: 0;
    color: #6f82a8;
    font-size: 1.3rem;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%)
}
.login-form .btn-primary {
    background: linear-gradient(135deg, #3f7cf4, #2f67e7);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 9px 20px rgba(47, 103, 231, .2);
    font-size: 1rem;
    min-height: 64px
}
.demo-divider {
    align-items: center;
    display: flex;
    margin: 28px 0 20px
}
.demo-divider span {
    background: #cad5e7;
    flex: 1;
    height: 1px
}
.demo-divider i {
    border-bottom: 9px solid #cad5e7;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    height: 0;
    margin: 0 2px;
    position: relative;
    width: 0
}
.demo-divider i:after {
    border-bottom: 8px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    content: "";
    left: -8px;
    position: absolute;
    top: 2px
}
.demo-note {
    background: #eef5ff;
    border: 0;
    border-radius: 10px;
    color: #172e60;
    gap: 17px;
    margin: 0;
    padding: 18px 24px
}
.demo-note>i {
    color: var(--wv-blue);
    font-size: 1.9rem
}
.demo-note b {
    font-size: .76rem
}
.demo-note small {
    font-size: .69rem;
    margin-top: 5px
}
.demo-note small strong {
    color: #153a9d;
    font-size: inherit
}
@media(max-width:1200px) {
    .login-form-wrap {
        padding: 40px 5vw
    }
    .login-logo strong {
        font-size: 2rem
    }
    .login-logo small {
        font-size: .62rem
    }
}
@media(max-width:991px) {
    :root {
        --sidebar: 300px
    }
    .app-content {
        margin-left: 0
    }
    .login-shell {
        display: block
    }
    .login-visual {
        display: none
    }
    .login-form-wrap {
        min-height: 100vh;
        padding: 40px 24px
    }
    .login-form {
        max-width: 525px
    }
    .topbar {
        padding: 0 18px
    }
}
@media(max-width:650px) {
    .app-content main {
        padding: 20px 14px!important
    }
    .login-logo {
        gap: 13px;
        margin-bottom: 38px
    }
    .login-logo strong {
        font-size: 1.65rem
    }
    .login-logo small {
        font-size: .55rem
    }
    .vitalia-mark {
        transform: scale(.8);
        transform-origin: left center;
        width: 62px
    }
    .login-form h2 {
        font-size: 2.2rem
    }
    .updated {
        display: none!important
    }
}
/* ===== Frontend utilities and global dark mode for internal pages ===== */
.theme-toggle {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

html[data-theme="dark"] {
    --canvas: #0f172a;
    --ink: #e5e7eb;
    --muted: #94a3b8;
    --line: #263244;
    --wv-bg: #0f172a;
    color-scheme: dark;
}

html[data-theme="dark"] body:not(.guest-body) {
    background: #0f172a;
    color: #e5e7eb;
}

html[data-theme="dark"] body:not(.guest-body) .app-content,
html[data-theme="dark"] body:not(.guest-body) .app-content main {
    background: #0f172a;
}

html[data-theme="dark"] body:not(.guest-body) .topbar {
    background: rgba(15, 23, 42, .96);
    border-bottom-color: #263244;
}

html[data-theme="dark"] body:not(.guest-body) .sidebar {
    background: radial-gradient(circle at 10% 0, rgba(47, 111, 242, .18), transparent 28%), linear-gradient(180deg, #0b1220, #050814);
    color: #dbeafe;
}

html[data-theme="dark"] body:not(.guest-body) .brand,
html[data-theme="dark"] body:not(.guest-body) .network-label,
html[data-theme="dark"] body:not(.guest-body) .sidebar-state {
    border-color: rgba(148, 163, 184, .18);
}

html[data-theme="dark"] body:not(.guest-body) .breadcrumb-lite,
html[data-theme="dark"] body:not(.guest-body) .breadcrumb-lite b,
html[data-theme="dark"] body:not(.guest-body) .updated,
html[data-theme="dark"] body:not(.guest-body) .page-heading p,
html[data-theme="dark"] body:not(.guest-body) .card-title-wrap p,
html[data-theme="dark"] body:not(.guest-body) .cell-secondary,
html[data-theme="dark"] body:not(.guest-body) .hint,
html[data-theme="dark"] body:not(.guest-body) .field-hint {
    color: #94a3b8;
}

html[data-theme="dark"] body:not(.guest-body) h1,
html[data-theme="dark"] body:not(.guest-body) h2,
html[data-theme="dark"] body:not(.guest-body) h3,
html[data-theme="dark"] body:not(.guest-body) .page-heading h1,
html[data-theme="dark"] body:not(.guest-body) .card-title-wrap h2,
html[data-theme="dark"] body:not(.guest-body) .person-text strong,
html[data-theme="dark"] body:not(.guest-body) .child-name,
html[data-theme="dark"] body:not(.guest-body) label,
html[data-theme="dark"] body:not(.guest-body) legend {
    color: #f8fafc;
}

html[data-theme="dark"] body:not(.guest-body) .content-card,
html[data-theme="dark"] body:not(.guest-body) .metric-card,
html[data-theme="dark"] body:not(.guest-body) .form-card,
html[data-theme="dark"] body:not(.guest-body) .list-card,
html[data-theme="dark"] body:not(.guest-body) .coverage-card,
html[data-theme="dark"] body:not(.guest-body) .summary-card,
html[data-theme="dark"] body:not(.guest-body) .detail-panel,
html[data-theme="dark"] body:not(.guest-body) .modal-content,
html[data-theme="dark"] body:not(.guest-body) .confirm-modal {
    background: #111827;
    border-color: #263244;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    color: #e5e7eb;
}

html[data-theme="dark"] body:not(.guest-body) .card-title-wrap,
html[data-theme="dark"] body:not(.guest-body) .filter-row,
html[data-theme="dark"] body:not(.guest-body) .filters,
html[data-theme="dark"] body:not(.guest-body) .section-header,
html[data-theme="dark"] body:not(.guest-body) .modal-header,
html[data-theme="dark"] body:not(.guest-body) .modal-footer,
html[data-theme="dark"] body:not(.guest-body) footer {
    background: #111827;
    border-color: #263244;
}

html[data-theme="dark"] body:not(.guest-body) table,
html[data-theme="dark"] body:not(.guest-body) .table {
    color: #e5e7eb;
}

html[data-theme="dark"] body:not(.guest-body) th,
html[data-theme="dark"] body:not(.guest-body) .data-table th,
html[data-theme="dark"] body:not(.guest-body) .cred-history-table th,
html[data-theme="dark"] body:not(.guest-body) .history-table th {
    background: #182235;
    color: #cbd5e1;
}

html[data-theme="dark"] body:not(.guest-body) td,
html[data-theme="dark"] body:not(.guest-body) .data-table td,
html[data-theme="dark"] body:not(.guest-body) .cred-history-table td,
html[data-theme="dark"] body:not(.guest-body) .history-table td {
    border-color: #263244;
    color: #dbe3ef;
}

html[data-theme="dark"] body:not(.guest-body) tbody tr:hover {
    background: #162033;
}

html[data-theme="dark"] body:not(.guest-body) input,
html[data-theme="dark"] body:not(.guest-body) select,
html[data-theme="dark"] body:not(.guest-body) textarea,
html[data-theme="dark"] body:not(.guest-body) .form-control,
html[data-theme="dark"] body:not(.guest-body) .form-select,
html[data-theme="dark"] body:not(.guest-body) .input-group-text {
    background-color: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}

html[data-theme="dark"] body:not(.guest-body) input::placeholder,
html[data-theme="dark"] body:not(.guest-body) textarea::placeholder {
    color: #64748b;
}

html[data-theme="dark"] body:not(.guest-body) .btn-light,
html[data-theme="dark"] body:not(.guest-body) .btn-outline-secondary,
html[data-theme="dark"] body:not(.guest-body) .secondary-button,
html[data-theme="dark"] body:not(.guest-body) .icon-button {
    background: #172033;
    border-color: #334155;
    color: #e5e7eb;
}

html[data-theme="dark"] body:not(.guest-body) .connection-pill {
    background: #211a08;
    border-color: #854d0e;
    color: #facc15;
}

html[data-theme="dark"] body:not(.guest-body) .user-pill {
    background: #1d4ed8;
    color: #fff;
}

html[data-theme="dark"] body:not(.guest-body) .alert,
html[data-theme="dark"] body:not(.guest-body) .prototype-alert,
html[data-theme="dark"] body:not(.guest-body) .info-box,
html[data-theme="dark"] body:not(.guest-body) .demo-note {
    background: #172033;
    border-color: #334155;
    color: #dbeafe;
}

html[data-theme="dark"] body:not(.guest-body) .progress {
    background-color: #263244;
}

html[data-theme="dark"] body:not(.guest-body) .dropdown-menu {
    background: #111827;
    border-color: #263244;
}

html[data-theme="dark"] body:not(.guest-body) .dropdown-item {
    color: #e5e7eb;
}

html[data-theme="dark"] body:not(.guest-body) .dropdown-item:hover {
    background: #1f2937;
}
.connection-pill i { background: #21a366; }
.connection-pill { background: #eaf8f0; border-color: #b8e3c9; color: #18794e; }
.connection-pill.is-offline i { background: #f59e0b; }
.connection-pill.is-offline { background: #fff6e5; border-color: #f4d39a; color: #b26a00; }

[data-sync-run-button].is-offline {
    background: #fff6e5;
    border-color: #f4d39a;
    color: #a85f00;
    cursor: not-allowed;
    box-shadow: none;
}

[data-sync-run-button].is-offline:hover,
[data-sync-run-button].is-offline:focus {
    background: #fff1d6;
    border-color: #efc36f;
    color: #8a4d00;
}
