* {
    box-sizing: border-box;
}

body {
    font-family: Helvetica, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f4f7f8;
    color: #263238;
}

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

.sidebar {
    padding: 32px 20px;
    background: #004d31;
    color: #ffffff;
}

.sidebar-brand {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    color: #d4e622;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.35;
}

.sidebar-brand span {
    color: #ffffff;
}

.sidebar-caption {
    margin: 26px 12px 10px;
    color: rgba(255, 255, 255, .65);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-link {
    display: block;
    padding: 13px 12px;
    border-radius: 7px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.active {
    background: #d4e622;
    color: #004d31;
}

.app-card {
    align-self: center;
    width: min(100%, 900px);
    margin: 48px auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7e0e8;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(38, 50, 56, .12);
}

.app-content {
    padding: clamp(28px, 6vw, 56px);
}

.eyebrow {
    margin: 0 0 12px;
    color: #1565c0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 620px;
    margin: 0;
    color: #172b4d;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.1;
}

.intro {
    max-width: 560px;
    margin: 18px 0 28px;
    color: #607080;
    font-size: 1.05rem;
    line-height: 1.6;
}

.welcome-panel {
    max-width: 620px;
    padding: 20px;
    border-left: 4px solid #d4e622;
    border-radius: 8px;
    background: #f7fbe2;
}

.welcome-panel strong {
    color: #004d31;
    font-size: 1.1rem;
}

.welcome-panel p {
    margin: 8px 0 0;
    color: #607080;
    line-height: 1.5;
}

.primary-link,
.install-banner button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.primary-link {
    padding: 13px 18px;
    background: #1565c0;
    color: #ffffff;
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.secondary-link {
    padding: 13px 18px;
    border: 1px solid #1565c0;
    border-radius: 8px;
    color: #1565c0;
    font-weight: 700;
    text-decoration: none;
}

.primary-link:hover,
.primary-link:focus-visible {
    background: #0d47a1;
}

.secondary-link:hover,
.secondary-link:focus-visible {
    background: #eef6ff;
}

.install-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px clamp(24px, 6vw, 56px);
    background: #eef6ff;
    border-top: 1px solid #d6e8fb;
}

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

.install-banner h2 {
    margin: 0 0 5px;
    color: #172b4d;
    font-size: 1.1rem;
}

.install-banner p {
    margin: 0;
    color: #526579;
    line-height: 1.45;
}

.install-banner button {
    flex: 0 0 auto;
    padding: 11px 16px;
    background: #1565c0;
    color: #ffffff;
}

@media (max-width: 520px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        padding: 18px 14px;
    }

    .sidebar-brand {
        padding-bottom: 14px;
    }

    .sidebar-caption {
        margin: 14px 4px 6px;
    }

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

    .sidebar-link {
        padding: 10px 8px;
        font-size: .86rem;
    }

    .app-card {
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body {
        padding: 0;
    }

    .app-content {
        padding: 28px 22px;
    }

    .install-banner {
        align-items: stretch;
        flex-direction: column;
        padding: 20px 22px;
    }

    .install-banner button {
        width: 100%;
    }
}

/* Panel de inicio inspirado en la referencia visual. */
.dashboard-page {
    min-height: 100vh;
    padding: 0 0 88px;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(222, 232, 215, .55), transparent 38%),
        radial-gradient(ellipse at 90% 48%, rgba(244, 235, 221, .55), transparent 42%),
        #f5f6f2;
    color: #29312b;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.home-header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px max(16px, calc((100vw - 454px) / 2));
    background: rgba(250, 251, 248, .96);
    border-bottom: 1px solid rgba(40, 55, 35, .08);
}

.home-header::after {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 30px;
    background: linear-gradient(100deg, #5e811d, #7e9f3a);
    box-shadow: 0 3px 8px rgba(40, 55, 35, .13);
    content: "";
}

.home-brand {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.home-brand-mark {
    position: relative;
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #dce4d4;
    border-radius: 50%;
    background: #fff;
    color: #668b27;
    font-size: .72rem;
    font-weight: 800;
}

.home-brand-home {
    position: absolute;
    right: -4px;
    bottom: -3px;
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    border: 1px solid #dce4d4;
    border-radius: 50%;
    background: #edf3e5;
    color: #557622;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.home-brand-copy,
.home-brand-copy strong,
.home-brand-copy small {
    display: block;
}

.home-brand-copy strong {
    overflow: hidden;
    color: #557622;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-brand-copy small {
    margin-top: 2px;
    color: #78806f;
    font-size: .59rem;
}

.logout-pill {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid #f1b8b2;
    border-radius: 999px;
    background: #fff1ef;
    color: #c94b43;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.logout-form { display: flex; margin: 0; }

.home-header-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.messages-pill {
    position: relative;
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #dce6d0;
    border-radius: 999px;
    background: #fff;
    color: #557622;
    font-size: .68rem;
    font-weight: 750;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.messages-pill:hover,
.messages-pill:focus-visible { background: #edf3e5; outline: none; }
.messages-pill > span:first-child { font-size: .92rem; line-height: 1; }
.messages-unread-badge {
    position: absolute;
    top: -6px;
    right: -5px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fafbf8;
    border-radius: 999px;
    background: #c94b43;
    color: #fff;
    font-size: .57rem;
    font-weight: 800;
    line-height: 1;
}
.messages-unread-badge[hidden] { display: none; }

.notifications-wrap { position: relative; }
.notifications-pill { cursor: pointer; font: inherit; }
.notifications-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: min(340px, calc(100vw - 24px));
    max-height: min(70vh, 460px);
    overflow: auto;
    border: 1px solid #dce6d0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(46, 58, 38, .18);
}
.notifications-panel[hidden] { display: none; }
.notifications-panel > header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #edf1e8; background: #fff; font-size: .78rem; }
.notifications-read-all { border: 0; background: none; color: #557622; font: inherit; font-size: .66rem; font-weight: 750; cursor: pointer; }
.notifications-list { margin: 0; padding: 0; list-style: none; }
.notifications-item > a, .notifications-item > div { display: block; padding: 10px 12px 10px 14px; border-bottom: 1px solid #f1f4ed; color: #3f4a37; text-decoration: none; }
.notifications-item > a:hover, .notifications-item > a:focus-visible { background: #f5f8f1; outline: none; }
.notifications-item.unread > a, .notifications-item.unread > div { box-shadow: inset 3px 0 0 #c94b43; background: #fffaf8; }
.notifications-item.unread.ok > a, .notifications-item.unread.ok > div { box-shadow: inset 3px 0 0 #6a9a2c; background: #f7fbf1; }
.notifications-item strong { display: block; font-size: .74rem; }
.notifications-item p { margin: 3px 0; font-size: .7rem; line-height: 1.35; }
.notifications-item small { color: #7c8574; font-size: .62rem; }
.notifications-empty { padding: 16px 12px; color: #7c8574; font-size: .72rem; text-align: center; }

@media (max-width: 380px) {
    .home-header { gap: 7px; padding-right: 10px; padding-left: 10px; }
    .messages-pill { width: 32px; padding: 5px; }
    .messages-pill-label { display: none; }
    .home-header-actions { gap: 5px; }
    .logout-pill { padding-right: 8px; padding-left: 8px; }
}

.dashboard-main {
    display: grid;
    width: min(100% - 30px, 454px);
    gap: 14px;
    margin: 42px auto 0;
}

.dashboard-main[hidden] {
    display: none;
}

.inicio-error[hidden] { display: none; }
.inicio-error:not([hidden]) {
    width: min(calc(100% - 32px), 560px);
    margin: 48px auto;
    padding: 18px;
    border: 1px solid #f1b8b2;
    border-radius: 14px;
    background: #fff1ef;
    color: #b54840;
    text-align: center;
}

.admin-home-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    margin: 0;
    padding: 0 0 calc(72px + env(safe-area-inset-bottom));
    background:
        radial-gradient(ellipse at 15% 20%, rgba(222, 232, 215, .55), transparent 38%),
        radial-gradient(ellipse at 90% 48%, rgba(244, 235, 221, .55), transparent 42%),
        #f5f6f2;
    color: #30372f;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.admin-home {
    display: flex;
    width: min(100%, 1220px);
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
    gap: 12px;
    padding: 24px 18px 28px;
}

.admin-welcome {
    width: 100%;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid #dce6d0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 35px rgba(46, 55, 39, .1);
    text-align: center;
}

.admin-welcome h1 {
    max-width: none;
    margin: 0;
    color: #557622;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.admin-welcome-user {
    margin: 12px 0 0;
    color: #68755d;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 650;
}

.admin-dashboard { display:grid; gap:12px; }
.admin-dashboard-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; padding:0 2px; }
.admin-dashboard-heading h2 { margin:0; color:#30372f; font-size:.98rem; }
.admin-dashboard-heading p { margin:3px 0 0; color:#78806f; font-size:.68rem; }
.admin-dashboard-updated { color:#78806f; font-size:.64rem; white-space:nowrap; }
.admin-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.admin-kpi { min-width:0; padding:12px 13px; border:1px solid #e1e4da; border-radius:12px; background:#fff; box-shadow:0 2px 8px rgba(46,55,39,.045); }
.admin-kpi-link { display:block; color:inherit; text-decoration:none; cursor:pointer; transition:border-color .15s, box-shadow .15s, transform .15s; }
.admin-kpi-link:hover, .admin-kpi-link:focus-visible { border-color:#9cbf4a; box-shadow:0 4px 14px rgba(85,118,34,.16); transform:translateY(-1px); }
.admin-kpi-link:focus-visible { outline:2px solid #668b27; outline-offset:2px; }
.admin-kpi-label { color:#78806f; font-size:.66rem; font-weight:700; }
.admin-kpi-value { display:block; margin-top:4px; color:#557622; font-size:clamp(1.2rem,2vw,1.65rem); font-weight:800; line-height:1.1; font-variant-numeric:tabular-nums; }
.admin-kpi-note { display:block; margin-top:4px; color:#8a9181; font-size:.61rem; }
.admin-charts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.admin-chart-card { min-width:0; padding:12px; border:1px solid #e1e4da; border-radius:12px; background:#fff; box-shadow:0 2px 8px rgba(46,55,39,.045); }
.admin-chart-card h3 { margin:0; color:#3f5f18; font-size:.77rem; }
.admin-chart-card > p { margin:3px 0 10px; color:#858d7c; font-size:.62rem; }
.admin-chart-list { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.admin-chart-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; align-items:center; }
.admin-chart-label { overflow:hidden; color:#59644f; font-size:.65rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-chart-value { color:#30372f; font-size:.64rem; font-weight:750; font-variant-numeric:tabular-nums; }
.admin-chart-track { grid-column:1/-1; height:7px; overflow:hidden; border-radius:999px; background:#edf0e9; }
.admin-chart-bar { display:block; height:100%; min-width:0; border-radius:inherit; background:linear-gradient(90deg,#9cbf4a,#5e811d); transition:width .35s ease; }
.admin-chart-empty,.admin-dashboard-error { margin:0; padding:12px; border:1px solid #e1e4da; border-radius:9px; color:#78806f; font-size:.68rem; text-align:center; }
.admin-dashboard-error { border-color:#f1b8b2; background:#fff1ef; color:#a64d40; }
.admin-dashboard-retry { display:block; margin:8px auto 0; padding:5px 9px; border:1px solid #d6dfc9; border-radius:7px; background:#fff; color:#557622; font:inherit; font-size:.66rem; font-weight:700; cursor:pointer; }
.admin-dashboard-subheading { margin-top:5px; }
.admin-donut-layout { display:grid; grid-template-columns:minmax(74px, .7fr) minmax(0, 1.3fr); gap:10px; align-items:center; min-height:130px; }
.admin-chart-donut { display:block; width:min(100%, 112px); aspect-ratio:1; justify-self:center; border:1px solid rgba(48,55,47,.08); border-radius:50%; position:relative; }
.admin-chart-donut::after { position:absolute; inset:25%; border-radius:50%; background:#fff; content:""; }
.admin-donut-legend { display:grid; gap:6px; min-width:0; margin:0; padding:0; list-style:none; }
.admin-donut-legend li { display:grid; grid-template-columns:8px minmax(0,1fr) auto; gap:5px; align-items:center; }
.admin-donut-swatch { width:8px; height:8px; border-radius:50%; }
.admin-donut-legend strong { color:#30372f; font-size:.6rem; font-variant-numeric:tabular-nums; }
.admin-comparison-list { gap:10px; }
.admin-comparison-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; align-items:center; }
.admin-comparison-row > .admin-chart-label { grid-column:1/-1; font-weight:750; }
.admin-comparison-value { color:#78806f; font-size:.58rem; }
.admin-comparison-row .admin-chart-track { grid-column:auto; height:6px; }
.admin-activities { display:grid; gap:9px; padding:12px; border:1px solid #e1e4da; border-radius:12px; background:#fff; box-shadow:0 2px 8px rgba(46,55,39,.045); }
.admin-activities-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.admin-activities-heading h2 { margin:0; color:#30372f; font-size:.88rem; }
.admin-activities-heading p { margin:3px 0 0; color:#78806f; font-size:.65rem; }
.admin-activities-controls { display:flex; gap:4px; }
.admin-activities-controls button { min-width:30px; min-height:29px; padding:4px 8px; border:1px solid #dce6d0; border-radius:7px; background:#f8faf5; color:#557622; font:inherit; font-size:.65rem; font-weight:700; cursor:pointer; }
.admin-activities-controls button:hover,.admin-activities-controls button:focus-visible { background:#edf3e5; }
.admin-activity-list { display:grid; gap:5px; margin:0; padding:0; list-style:none; }
.admin-activity-list li { display:grid; grid-template-columns:72px minmax(0,1fr) 8px; gap:8px; align-items:center; padding:8px 9px; border:1px solid #edf0e9; border-radius:8px; }
.admin-activity-list time { color:#66724e; font-size:.62rem; font-weight:750; }
.admin-activity-copy { display:grid; gap:2px; min-width:0; }
.admin-activity-copy strong { overflow:hidden; color:#394233; font-size:.67rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-activity-copy small { overflow:hidden; color:#858d7c; font-size:.59rem; text-overflow:ellipsis; white-space:nowrap; }
.admin-activity-color { width:8px; height:8px; border-radius:50%; }
@media(max-width:850px) { .admin-charts { grid-template-columns:repeat(2,minmax(0,1fr)); }.admin-chart-card:last-child { grid-column:1/-1; }.admin-charts-secondary .admin-chart-card:last-child { grid-column:auto; } }
@media(max-width:580px) { .admin-home { gap:10px; padding:17px 10px 20px; }.admin-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.admin-charts { grid-template-columns:1fr; }.admin-chart-card:last-child { grid-column:auto; }.admin-dashboard-heading { align-items:flex-start; flex-direction:column; } }

.admin-bottom-nav {
    position: fixed;
    z-index: 10;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    min-height: calc(72px + env(safe-area-inset-bottom));
    padding: 6px max(10px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid rgba(40, 55, 35, .1);
    background: rgba(250, 251, 248, .97);
    box-shadow: 0 -4px 14px rgba(40, 55, 35, .06);
}

.admin-bottom-nav-link {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #626b58;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.admin-bottom-nav-link:hover,
.admin-bottom-nav-link:focus-visible {
    background: #edf3e5;
    outline: none;
}

.admin-bottom-nav-link.active {
    background: #e4edcf;
    color: #557622;
}

.admin-bottom-nav-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.admin-bottom-nav-link small {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(.58rem, 2.1vw, .72rem);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bottom-nav-link.active small { font-weight: 800; }

.welcome-card,
.workshop-card,
.weekly-card,
.quick-card,
.tool-row {
    border: 1px solid #e1e4da;
    box-shadow: 0 2px 8px rgba(46, 55, 39, .045);
}

.workshop-card[hidden] { display: none; }

.welcome-card {
    display: flex;
    min-height: 137px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-color: #f2d9d4;
    border-radius: 19px;
    background: #fceae7;
    box-shadow: 0 5px 12px rgba(68, 54, 48, .11);
}

.welcome-copy {
    min-width: 0;
}

.card-kicker {
    display: inline-block;
    margin: 0 0 7px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ffd2c7;
    color: #d94d2b;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .045em;
}

.welcome-card h1 {
    max-width: 300px;
    margin: 0;
    color: #d94620;
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    line-height: 1.16;
}

.welcome-card .welcome-copy > p:not(.card-kicker) {
    margin: 6px 0 8px;
    color: #a85137;
    font-size: .68rem;
    line-height: 1.35;
}

.welcome-link {
    color: #557722;
    font-size: .66rem;
    font-weight: 750;
    text-decoration: none;
}

.welcome-link:hover,
.welcome-link:focus-visible {
    text-decoration: underline;
}

.informative-notices {
    display: grid;
    grid-column: 1 / -1;
    min-width: 0;
    gap: 0;
    padding: 7px 14px;
    border: 1px solid #dce6d0;
    border-radius: 15px;
    background: #edf3e5;
    box-shadow: 0 3px 9px rgba(46, 55, 39, .07);
    color: #3d4b32;
}

.informative-notices[hidden] { display: none; }

.informative-notice {
    min-width: 0;
    padding: 9px 4px;
    border-bottom: 1px solid rgba(85, 118, 34, .16);
}

.informative-notice:last-child { border-bottom: 0; }

.informative-notice h2 {
    margin: 0;
    color: #557622;
    font-size: .78rem;
    line-height: 1.3;
}

.informative-notice p {
    margin: 4px 0 0;
    color: #4d5746;
    font-size: .71rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.welcome-illustration {
    display: grid;
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 15px rgba(91, 67, 57, .12);
    font-size: 2rem;
}

.workshop-card,
.weekly-card {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 17px;
    background: rgba(255, 255, 255, .96);
    color: inherit;
    text-decoration: none;
}

.shortcut-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid #d6dfc9;
    border-radius: 12px;
    background: #edf3e5;
    color: #668b27;
    font-size: 1.2rem;
}

.shortcut-tools {
    border-color: #e4daf4;
    background: #f0e9fb;
    color: #8b70ba;
}

.shortcut-bank {
    border-color: #d6dfc9;
    background: #eaf0df;
    color: #678b2c;
}

.workshop-copy,
.workshop-copy strong,
.workshop-copy > span,
.weekly-card > span:nth-child(2),
.weekly-card strong,
.weekly-card small,
.tool-row > span:nth-child(2),
.tool-row strong,
.tool-row small {
    display: block;
}

.workshop-copy {
    min-width: 0;
    flex: 1;
}

.card-overline {
    margin-bottom: 3px;
    color: #878d7f;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.workshop-copy strong,
.weekly-card strong,
.tool-row strong {
    color: #30372f;
    font-size: .76rem;
}

.workshop-copy > span:last-child,
.weekly-card small,
.tool-row small {
    margin-top: 3px;
    color: #72796f;
    font-size: .63rem;
    line-height: 1.35;
}

.card-arrow {
    flex: 0 0 auto;
    color: #7e8a70;
    font-size: 1.2rem;
}

.weekly-card {
    min-height: 57px;
}

.weekly-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    background: #fff1d9;
    color: #c17920;
    font-size: 1.1rem;
    font-weight: 800;
}

.weekly-card > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.weekly-card > .weekly-count {
    display: grid;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    flex: 0 0 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #f0dfbe;
    border-radius: 11px;
    background: #fff8eb;
    color: #a96213;
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.weekly-card .weekly-copy {
    display: block;
    min-width: 0;
    flex: 1;
}

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

.quick-card {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    color: inherit;
    text-decoration: none;
}

.quick-icon,
.tool-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 800;
}

.quick-icon-orange {
    background: #fff0d6;
    color: #bf771b;
}

.quick-icon-blue {
    background: #e6f1fa;
    color: #4a8ab8;
}

.quick-icon-green {
    background: #eaf0df;
    color: #678b2c;
}

.quick-title {
    margin-top: 7px;
    color: #333a32;
    font-size: .68rem;
    font-weight: 750;
}

.quick-caption {
    margin-top: 2px;
    color: #81877d;
    font-size: .57rem;
    line-height: 1.3;
}

.charts-section {
    position: relative;
    left: 50%;
    display: grid;
    width: min(calc(100vw - 40px), 1560px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    transform: translateX(-50%);
}

.chart-card {
    min-width: 0;
    padding: 18px 20px 14px;
    border: 1px solid #e5e9ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(38, 50, 56, .08);
}

.chart-card h2 {
    min-height: 1.35em;
    margin: 0 0 12px;
    color: #243247;
    font-size: .95rem;
    line-height: 1.35;
}

.chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 205px;
}

.chart-message {
    margin: 8px 0 0;
    color: #77806f;
    font-size: .72rem;
    text-align: center;
}

.chart-message[hidden] {
    display: none;
}

@media (max-width: 1000px) {
    .charts-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .charts-section {
        width: calc(100vw - 28px);
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .chart-card {
        padding: 15px 16px 12px;
    }

    .chart-canvas-wrap {
        height: 220px;
    }
}

.tools-section h2 {
    margin: 2px 0 8px;
    color: #30372f;
    font-size: .9rem;
}

.tools-section {
    display: grid;
    gap: 7px;
}

.tools-section h2 {
    grid-column: 1 / -1;
}

.tool-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    color: inherit;
    text-decoration: none;
}

.tool-row > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.tool-icon {
    flex: 0 0 27px;
    background: #e5f0fa;
    color: #4f8fbd;
}

.tool-icon-lilac {
    background: #f0e9fb;
    color: #8b70ba;
}

.home-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    min-height: 59px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 5px max(12px, calc((100vw - 454px) / 2)) max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid #e1e5dc;
    background: rgba(250, 251, 248, .97);
    box-shadow: 0 -4px 16px rgba(47, 57, 41, .07);
    backdrop-filter: blur(12px);
}

.bottom-nav-link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 12px;
    color: #5b6256;
    text-decoration: none;
}

.bottom-nav-link > span {
    font-size: 1.05rem;
    line-height: 1.1;
}

.bottom-nav-link small {
    font-size: .58rem;
}

.bottom-nav-link.active {
    background: #e3edcf;
    color: #4f741b;
    font-weight: 800;
}

.install-banner {
    align-items: center;
    padding: 14px;
    border: 1px solid #e1e4da;
    border-radius: 15px;
    background: #fff;
}

.install-banner h2 {
    color: #35402f;
    font-size: .9rem;
}

.install-banner p {
    color: #72796f;
    font-size: .72rem;
}

.install-banner button {
    border-radius: 999px;
    background: #5e811d;
    font-size: .75rem;
}

.dashboard-page a:focus-visible,
.dashboard-page button:focus-visible {
    outline: 3px solid #d28a47;
    outline-offset: 3px;
}

@media (max-width: 380px) {
    .dashboard-main {
        width: min(100% - 22px, 454px);
        gap: 11px;
    }

    .welcome-card {
        padding: 13px;
    }

    .welcome-illustration {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        font-size: 1.65rem;
    }

    .quick-card {
        padding: 8px;
    }
}

@media (min-width: 900px) {
    .dashboard-main {
        width: min(calc(100% - 48px), 1560px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 18px;
        margin-top: 34px;
    }

    .welcome-card,
    .quick-links,
    .charts-section,
    .install-banner {
        grid-column: 1 / -1;
    }

    .charts-section {
        left: auto;
        width: 100%;
        max-width: none;
        transform: none;
    }

    .home-bottom-nav {
        padding-right: max(24px, calc((100vw - 1400px) / 2));
        padding-left: max(24px, calc((100vw - 1400px) / 2));
    }
}
.admin-operativo { display: grid; gap: 10px; }
.admin-operativo-listas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-priority-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admin-priority-list li { display: grid; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid #edf0e9; font-size: .72rem; overflow-wrap: anywhere; }
.admin-priority-list a { color: #557622; font-weight: 700; }
.admin-priority-list span { color: #68755d; font-size: .68rem; }
.admin-priority-late { color: #b54840; font-size: .66rem; }
.admin-priority-due { color: #85621a; font-size: .66rem; }
@media (max-width: 580px) { .admin-operativo-listas { grid-template-columns: 1fr; } }
