:root {
    --brand-purple: #5b3cc4;
    --brand-purple-dark: #37208f;
    --brand-navy: #15185f;
    --brand-green: #2f9f57;
    --brand-green-dark: #1f7f42;
    --surface: #fbf8f3;
    --panel: #ffffff;
    --text: #12143f;
    --muted: #667085;
    --line: #dde3ee;
    --danger: #b42318;
    --lavender: #eeebff;
    --lavender-strong: #e7e0ff;
    --mint: #edf7ef;
    --mint-strong: #e7f2eb;
    --cream: #fff6e5;
    --shadow-soft: 0 12px 32px rgba(27, 32, 92, 0.08);
    --button-hover-shadow: 0 18px 36px rgba(27, 32, 92, 0.16);
    --button-focus-ring: 0 0 0 4px rgba(91, 60, 196, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: url(../images/fondo-seguria-app.webp) center center / cover;
}

.landing-page {
    overflow-x: clip;
    background: #fff;
    color: #12152f;
}

.landing-page,
.landing-page button {
    font-family: "Nunito", sans-serif;
}

.landing-page section[id] {
    scroll-margin-top: 120px;
}

.landing-page .landing-container {
    width: min(100% - 48px, 1380px);
    margin-inline: auto;
}

.landing-page .text-purple { color: #6034c4; }
.landing-page .text-green { color: #35a044; }

.landing-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid #e8e8ef;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 18px rgba(25, 25, 50, .04);
    backdrop-filter: blur(14px);
}

.landing-header-inner {
    display: grid;
    min-height: 102px;
    grid-template-columns: 230px 1fr auto;
    align-items: center;
    gap: 34px;
}

.landing-logo {
    display: block;
    width: 190px;
    height: 62px;
    object-fit: contain;
}

.landing-nav {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 3.3vw, 54px);
    height: 100%;
}

.landing-nav a {
    position: relative;
    display: grid;
    align-items: center;
    color: #242331;
    font-size: 15px;
    font-weight: 600;
}

.landing-nav a.is-active::after {
    position: absolute;
    right: 0;
    bottom: 27px;
    left: 0;
    height: 2px;
    background: #7143df;
    content: "";
}

.landing-menu-toggle {
    display: none;
}

.landing-header-actions,
.landing-hero-actions,
.landing-final-actions {
    display: flex;
    gap: 18px;
}

.landing-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.landing-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(74, 43, 156, .16);
}

.landing-button-primary {
    background: linear-gradient(135deg, #6030c3, #6834c4);
    color: #fff;
}

.landing-button-outline {
    border-color: #7042dc;
    background: #fff;
    color: #5e31bd;
}

.landing-button-green {
    background: linear-gradient(135deg, #38a848, #2d913d);
    color: #fff;
}

.landing-button-green-outline {
    border-color: #4fa95c;
    background: #fff;
    color: #2d923c;
}

.landing-hero {
    position: relative;
    padding: 74px 0 76px;
    background: #fff;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(430px, .88fr) minmax(600px, 1.12fr);
    align-items: center;
    gap: 58px;
}

.landing-hero-copy h1 {
    margin: 0;
    font-size: clamp(46px, 4vw, 64px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.09;
}

.landing-hero-copy {
    position: relative;
    z-index: 2;
}

.landing-lead {
    max-width: 630px;
    margin: 30px 0 0;
    color: #4e5269;
    font-size: 17px;
    line-height: 1.55;
}

.landing-alert {
    display: flex;
    max-width: 570px;
    align-items: center;
    gap: 18px;
    margin-top: 31px;
    padding: 16px 20px;
    border: 1px solid #c9b5f1;
    border-radius: 10px;
    background: linear-gradient(105deg, #fbf9ff, #f3effd);
}

.landing-alert-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8ddff;
    color: #7043d4;
}

.landing-alert p {
    margin: 0;
    color: #343750;
    font-size: 15px;
    line-height: 1.45;
}

.landing-alert strong { display: block; }

.landing-hero-actions {
    position: relative;
    z-index: 3;
    margin-top: 36px;
}

.landing-hero-actions .landing-button {
    min-width: 210px;
    min-height: 58px;
    font-size: 17px;
}

.landing-dashboard-wrap {
    position: relative;
    min-width: 0;
}

.landing-orb {
    position: absolute;
    z-index: 0;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    filter: blur(.2px);
}

.landing-orb-purple {
    top: -100px;
    right: -90px;
    background: linear-gradient(145deg, #eee8ff, #e4dbfb);
}

.landing-orb-green {
    right: -115px;
    bottom: -90px;
    background: linear-gradient(145deg, #eff8e9, #e4f1dc);
}

.landing-dashboard {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 580px;
    grid-template-columns: 178px 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 55px rgba(39, 40, 67, .15);
}

.landing-dashboard-sidebar {
    padding: 23px 16px;
    border-right: 1px solid #f0edf7;
    background: rgba(255, 255, 255, .78);
}

.landing-dashboard-logo {
    width: 120px;
    height: 40px;
    object-fit: contain;
}

.landing-dashboard-menu {
    display: grid;
    gap: 7px;
    margin-top: 30px;
}

.landing-dashboard-menu span {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-radius: 8px;
    color: #555a72;
    font-size: 10px;
    font-weight: 700;
}

.landing-dashboard-menu span.is-active {
    background: #f0eafd;
    color: #5d34bc;
}

.landing-dashboard-content { padding: 30px 25px 25px; }

.landing-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.landing-dashboard-top span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
}

.landing-dashboard-top i {
    display: inline-grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: #ede7df;
    color: #53483f;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}

.landing-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.landing-dashboard-stats article {
    position: relative;
    min-height: 94px;
    padding: 18px 13px;
    border: 1px solid #ececf4;
    border-radius: 13px;
    box-shadow: 0 5px 12px rgba(31, 31, 55, .04);
}

.landing-dashboard-stats small {
    display: block;
    color: #51546a;
    font-size: 8px;
    font-weight: 700;
}

.landing-dashboard-stats strong {
    display: block;
    margin-top: 20px;
    font-size: 21px;
}

.landing-dashboard-stats i {
    position: absolute;
    right: 10px;
    bottom: 12px;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    background: #eee8ff;
    color: #7544df;
}

.landing-dashboard-stats i.green {
    background: #e7f6e8;
    color: #38a346;
}

.landing-dashboard-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-top: 17px;
}

.landing-dashboard-left,
.landing-dashboard-right {
    display: grid;
    gap: 15px;
}

.landing-dashboard-card {
    padding: 18px;
    border: 1px solid #ededf4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 12px rgba(31, 31, 55, .04);
}

.landing-dashboard-card > strong { font-size: 11px; }

.landing-courses p {
    display: grid;
    grid-template-columns: 1fr auto 54px;
    align-items: center;
    gap: 8px;
    margin: 18px 0 0;
    color: #34384e;
    font-size: 8px;
}

.landing-courses em {
    padding: 4px 7px;
    border-radius: 20px;
    background: #e9f6e7;
    color: #318e3b;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
}

.landing-courses em.pending {
    background: #fff0d9;
    color: #e7911c;
}

.landing-courses small {
    color: #8a8da0;
    font-size: 7px;
}

.landing-chart-grid {
    height: 88px;
    margin-top: 20px;
    border-bottom: 1px solid #e7e7ef;
    background: repeating-linear-gradient(to bottom, transparent 0 28px, #f0f0f5 29px);
    color: #6535cc;
}

.landing-chart-grid svg { width: 100%; height: 100%; overflow: visible; }

.landing-chart-labels {
    display: flex;
    justify-content: space-between;
    padding-top: 7px;
    color: #8d8fa0;
    font-size: 7px;
}

.landing-compliance { text-align: center; }

.landing-compliance > strong {
    display: block;
    text-align: left;
}

.landing-progress-ring {
    display: grid;
    width: 86px;
    height: 86px;
    margin: 15px auto 9px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#35a044 0 98%, #eeeef4 98% 100%);
}

.landing-progress-ring::before {
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.landing-progress-ring span {
    position: relative;
    z-index: 1;
    font-size: 21px;
    font-weight: 900;
}

.landing-compliance small {
    display: block;
    font-size: 7px;
    line-height: 1.4;
}

.landing-actions-card {
    background: linear-gradient(180deg, #f4efff, #fff);
}

.landing-actions-card p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 8px;
    line-height: 1.35;
}

.landing-actions-card i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border: 2px solid #8562df;
    border-radius: 50%;
}

.landing-actions-card i.green-dot {
    border-color: #43ac52;
    background: #43ac52;
}

.landing-benefits {
    padding: 38px 0;
    background: linear-gradient(90deg, #fbf9ff, #f6f2ff 45%, #fbf9ff);
}

.landing-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.landing-benefits article {
    display: flex;
    min-height: 178px;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 20px;
    border: 1px solid rgba(237, 235, 245, .7);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.landing-feature-icon,
.landing-step-icon,
.landing-plan-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.landing-feature-icon { width: 62px; height: 62px; }
.landing-feature-icon.purple,
.landing-step-icon.purple,
.landing-plan-icon.purple { background: #eee8ff; color: #6940cc; }
.landing-feature-icon.green,
.landing-step-icon.green,
.landing-plan-icon.green { background: #e8f5e5; color: #319641; }

.landing-benefits strong {
    display: block;
    margin: 8px 0 15px;
    font-size: 15px;
}

.landing-benefits p,
.landing-steps p,
.landing-final-card p {
    margin: 0;
    color: #53576e;
    font-size: 14px;
    line-height: 1.55;
}

.landing-section { padding: 46px 0; }

.landing-section-title {
    position: relative;
    margin: 0 0 58px;
    text-align: center;
    font-size: 34px;
    line-height: 1;
}

.landing-section-title::after {
    display: block;
    width: 38px;
    height: 2px;
    margin: 14px auto 0;
    background: #7241dc;
    content: "";
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}

.landing-steps article {
    position: relative;
    text-align: center;
}

.landing-steps article:not(:last-child)::after {
    position: absolute;
    top: 57px;
    left: calc(50% + 86px);
    width: calc(100% - 92px);
    border-top: 2px dashed #dedde5;
    content: "";
}

.landing-step-number {
    position: absolute;
    z-index: 2;
    top: -17px;
    left: calc(50% - 20px);
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #6136bf;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.landing-step-icon {
    width: 104px;
    height: 104px;
    margin: 0 auto 17px;
}

.landing-steps h3 {
    margin: 0 0 11px;
    font-size: 17px;
}

.landing-steps p {
    max-width: 265px;
    margin-inline: auto;
}

.landing-plans {
    border-top: 1px solid #eeeef2;
}

.landing-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1380px;
    margin-inline: auto;
}

.landing-plan {
    position: relative;
    display: flex;
    min-height: 408px;
    flex-direction: column;
    padding: 31px 28px 25px;
    border: 1px solid #e3e3e8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(34, 37, 58, .08);
}

.landing-plan.is-featured {
    border-color: #86c78e;
}

.landing-plan-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    min-width: 220px;
    padding: 7px 20px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #10a024;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-plan-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
}

.landing-plan h3 {
    margin: 0;
    text-align: center;
    font-size: 17px;
}

.landing-price {
    margin: 13px 0 22px;
    color: #41445a;
    text-align: center;
    font-size: 14px;
}

.landing-price strong {
    color: #5f33bf;
    font-size: clamp(25px, 2vw, 34px);
}

.landing-price.green strong { color: #2b9b3a; }

.landing-plan-description {
    min-height: 54px;
    margin: -10px 0 20px;
    color: #676a7d;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.landing-plan ul {
    display: grid;
    gap: 10px;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.landing-plan li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #45495c;
    font-size: 14px;
}

.landing-plan li svg { color: #2ea13e; }

.landing-plan .landing-button {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
}

.landing-plans-empty {
    grid-column: 1 / -1;
    color: #676a7d;
    text-align: center;
}

.landing-final { padding: 0 0 46px; }

.landing-final-card {
    display: grid;
    grid-template-columns: 180px 1fr 355px;
    min-height: 190px;
    align-items: center;
    gap: 28px;
    padding: 28px 50px;
    border: 1px solid #9fca8f;
    border-radius: 16px;
    background: linear-gradient(90deg, #f4faef, #fff);
}

.landing-final-icon {
    display: grid;
    width: 130px;
    height: 130px;
    place-items: center;
    border: 7px solid #b7a0ec;
    border-radius: 42% 42% 52% 52%;
    color: #6040b9;
}

.landing-final-card h2 {
    margin: 0 0 15px;
    font-size: 30px;
    line-height: 1.18;
}

.landing-final-actions {
    flex-direction: column;
    gap: 14px;
}

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

.landing-video-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.landing-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 13, 35, .78);
    backdrop-filter: blur(5px);
}

.landing-video-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.landing-video-heading {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
}

.landing-video-heading h2 {
    margin: 0;
    font-size: 20px;
}

.landing-video-heading button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f0ebfc;
    color: #5f33bf;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.landing-video-frame {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    background: #101121;
    color: #fff;
}

.landing-video-frame video,
.landing-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.landing-video-frame p {
    margin: 0;
    padding: 30px;
    text-align: center;
}

body.landing-modal-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .landing-header-inner {
        grid-template-columns: 190px 1fr auto;
        gap: 20px;
    }

    .landing-nav {
        gap: 22px;
    }

    .landing-header-actions .landing-button {
        padding-inline: 16px;
    }

    .landing-hero-grid {
        grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr);
        gap: 34px;
    }

    .landing-dashboard {
        grid-template-columns: 145px 1fr;
    }

    .landing-dashboard-content {
        padding-inline: 18px;
    }

    .landing-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 820px;
    }

    .landing-final-card {
        grid-template-columns: 130px 1fr 290px;
        padding-inline: 34px;
    }
}

@media (max-width: 959px) {
    .landing-page .landing-container {
        width: min(100% - 32px, 720px);
    }

    .landing-header-inner {
        position: relative;
        grid-template-columns: 1fr auto;
        min-height: auto;
        padding: 12px 0;
    }

    .landing-logo {
        width: 155px;
        height: 48px;
    }

    .landing-menu-toggle {
        display: grid;
        width: 46px;
        height: 46px;
        grid-column: 2;
        grid-row: 1;
        place-content: center;
        gap: 5px;
        border: none;
        background: #fff;
        color: #5e31bd;
        cursor: pointer;
    }

    .landing-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
    }

    .landing-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .landing-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .landing-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .landing-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        height: auto;
        flex-direction: column;
        gap: 0;
        padding: 8px 16px 14px;
        border-bottom: 1px solid #e8e8ef;
        background: #fff;
        box-shadow: 0 18px 28px rgba(25, 25, 50, .12);
    }

    .landing-nav.is-open {
        display: flex;
    }

    .landing-nav a {
        min-height: 48px;
        padding: 0 8px;
    }

    .landing-nav a.is-active::after {
        top: 10px;
        right: auto;
        bottom: 10px;
        left: 0;
        width: 3px;
        height: auto;
    }

    .landing-header-actions {
        display: none;
    }

    .landing-hero {
        padding: 50px 0 60px;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }


    .landing-dashboard {
        grid-template-columns: 150px 1fr;
    }

    .landing-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-steps {
        gap: 32px;
    }

    .landing-steps article:not(:last-child)::after {
        display: none;
    }

    .landing-final-card {
        grid-template-columns: 120px 1fr;
    }

    .landing-final-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .landing-final-actions .landing-button {
        flex: 1;
    }
}

@media (max-width: 639px) {
    .landing-page .landing-container {
        width: min(100% - 24px, 520px);
    }

    .landing-header-actions .landing-button {
        min-height: 42px;
        padding-inline: 13px;
        font-size: 13px;
    }

    .landing-hero-copy h1 {
        font-size: 39px;
    }

    .landing-lead {
        margin-top: 22px;
        font-size: 16px;
    }

    .landing-alert {
        align-items: flex-start;
    }

    .landing-hero-actions,
    .landing-final-actions {
        flex-direction: column;
    }

    .landing-hero-actions .landing-button {
        width: 100%;
    }

    .landing-dashboard-wrap {
        margin-inline: -5px;
    }

    .landing-dashboard {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .landing-dashboard-sidebar {
        display: none;
    }

    .landing-dashboard-content {
        padding: 20px 14px;
    }

    .landing-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }

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

    .landing-benefits-grid,
    .landing-steps,
    .landing-plans-grid {
        grid-template-columns: 1fr;
    }

    .landing-benefits article {
        min-height: 0;
    }

    .landing-section-title {
        margin-bottom: 48px;
    }

    .landing-steps {
        gap: 58px;
    }

    .landing-plan {
        padding-inline: 32px;
    }

    .landing-final-card {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        text-align: center;
    }

    .landing-final-icon {
        margin-inline: auto;
    }

    .landing-final-card h2 {
        font-size: 26px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

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

.auth-brand {
    display: none;
    background:
        linear-gradient(#5b3cc4bf, #5b3cc4bf),
        url("/images/fondo_login.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

.auth-brand-inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-kicker {
    color: #a5f0bd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.brand-title {
    max-width: 560px;
    margin: 18px 0 0;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.02;
}

.brand-copy {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.7;
}

.brand-foot {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.auth-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-box {
    width: min(100%, 390px);
}

.auth-box-wide {
    width: min(100%, 860px);
}

.legal-page-box {
    width: min(100%, 860px);
}

.auth-box-categories {
    display: grid;
    gap: 24px;
}

.auth-panel-brand {
    display: none;
    align-items: center;
    margin-bottom: 20px;
}

.auth-panel-brand-logo {
    height: 52px;
}

.mobile-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 32px;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 48px;
    object-fit: contain;
}

.auth-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 32px;
    line-height: 1.15;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

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

.category-choice-card {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 100%;
    padding: 26px 24px;
    border: 1px solid rgba(111, 94, 247, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(111, 94, 247, 0.08), transparent 40%),
        #fff;
    box-shadow: 0 22px 60px rgba(44, 35, 91, 0.08);
}

.category-choice-card-active {
    border-color: rgba(47, 159, 87, 0.14);
    background:
        radial-gradient(circle at top right, rgba(47, 159, 87, 0.08), transparent 42%),
        #fff;
}

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

.category-choice-header h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 24px;
    line-height: 1.12;
}

.category-choice-copy {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.category-choice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eaf8ef;
    color: var(--brand-green-dark);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.category-choice-badge-soon {
    background: #eef0f6;
    color: #6f7892;
}

.category-choice-actions {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.category-choice-actions .btn {
    width: 100%;
}

.legal-copy {
    color: #5d6680;
    line-height: 1.72;
}

.legal-sections {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.legal-section {
    padding: 18px 20px;
    border: 1px solid rgba(111, 94, 247, 0.12);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(111, 94, 247, 0.08), transparent 42%),
        #fff;
}

.legal-section h2 {
    margin: 0 0 10px;
    color: var(--brand-navy);
    font-size: 18px;
    line-height: 1.3;
}

.legal-section p + p {
    margin-top: 10px;
}

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

.legal-modal {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 33, 0.76);
    backdrop-filter: blur(5px);
}

.legal-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 860px);
    max-height: min(88vh, 920px);
    overflow: hidden;
    border: 1px solid rgba(111, 94, 247, 0.14);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(20, 28, 58, 0.25);
}

.legal-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(111, 94, 247, 0.12);
}

.legal-modal-kicker {
    margin: 0 0 6px;
    color: #7a6ee8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-modal-header h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.1;
}

.legal-modal-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f3efff;
    color: #6543d7;
    font-size: 30px;
    line-height: 1;
}

.legal-modal-body {
    max-height: calc(88vh - 102px);
    overflow: auto;
    padding: 0 24px 24px;
}

body.legal-modal-open {
    overflow: hidden;
}

.oauth-grid,
.form-grid {
    display: grid;
    gap: 14px;
}

.oauth-grid {
    margin-top: 30px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.btn,
.icon-button,
.btn-outline,
.training-filter,
.capsule-action,
.capsule-primary-cta,
.capsule-secondary-cta,
.help-link,
.training-callout-link,
.feature-arrow {
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.btn:hover,
.icon-button:hover,
.btn-outline:hover,
.training-filter:hover,
.capsule-action:hover,
.capsule-primary-cta:hover,
.capsule-secondary-cta:hover,
.help-link:hover,
.training-callout-link:hover,
.feature-arrow:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-hover-shadow);
}

.btn:focus-visible,
.icon-button:focus-visible,
.btn-outline:focus-visible,
.training-filter:focus-visible,
.capsule-action:focus-visible,
.capsule-primary-cta:focus-visible,
.capsule-secondary-cta:focus-visible,
.help-link:focus-visible,
.training-callout-link:focus-visible,
.feature-arrow:focus-visible {
    outline: none;
    box-shadow: var(--button-hover-shadow), var(--button-focus-ring);
}

.btn-primary {
    width: 100%;
    background: var(--brand-green);
    color: white;
}

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

.btn-google {
    border: 1px solid var(--line);
    background: white;
    color: var(--brand-navy);
}

.btn-facebook {
    background: var(--brand-purple);
    color: white;
}

.field label {
    display: block;
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 800;
}

.field input {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--text);
    outline: none;
    padding: 0 12px;
}

.field select {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--text);
    outline: none;
    padding: 0 12px;
}

.field input:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(91, 60, 196, 0.14);
}

.field select:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(91, 60, 196, 0.14);
}

.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.check-field input {
    accent-color: var(--brand-green);
}

.form-link {
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.form-inline-link {
    margin: -2px 0 0;
    color: var(--brand-purple);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

.form-link a {
    color: var(--brand-purple);
    font-weight: 800;
}

.error {
    margin-top: 8px;
    color: var(--danger);
    font-size: 14px;
}

.status {
    margin-bottom: 20px;
    border: 1px solid rgba(47, 159, 87, 0.24);
    border-radius: 8px;
    background: rgba(47, 159, 87, 0.1);
    color: var(--brand-green-dark);
    padding: 12px 14px;
}

.app-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(21, 24, 95, 0.06);
    background: rgba(251, 248, 243, 0.9);
    backdrop-filter: blur(16px);
}

.app-nav-inner,
.app-main,
.bottom-nav {
    width: min(100% - 28px, 1120px);
    margin: 0 auto;
}

.app-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 10px;
}

.app-logo {
    display: inline-flex;
    align-items: center;
}

.app-logo .brand-logo {
    height: 45px;
}

.app-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    position: relative;
    display: inline-flex;
    height: 42px;
    width: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-soft);
    color: var(--brand-navy);
}

.icon-button:hover {
    border-color: rgba(91, 60, 196, 0.16);
}

.icon-button svg,
.progress-arrow svg,
.bottom-nav-item svg,
.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.icon-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 10px;
    height: 10px;
    border: 2px solid white;
    border-radius: 999px;
    background: var(--brand-purple);
}

.btn-outline {
    min-height: 42px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    background: white;
    color: var(--brand-navy);
    padding: 0 16px;
    box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
    border-color: var(--brand-purple);
}

.app-shell {
    padding-bottom: 96px;
}

.app-content {
    min-width: 0;
}

.desktop-sidebar {
    display: none;
}

.app-main {
    padding: 10px 0 24px;
}

.dashboard-phone {
    width: min(100%, 440px);
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 2px 18px;
}

.dashboard-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.user-menu {
    position: relative;
}

.user-menu summary {
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu-trigger {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-soft);
    color: var(--brand-navy);
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.user-menu[open] .user-menu-trigger,
.user-menu-trigger:hover,
.user-menu-trigger:focus-visible {
    border-color: rgba(91, 60, 196, 0.18);
    box-shadow: var(--button-hover-shadow);
    outline: none;
}

.user-menu-avatar {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(111, 94, 247, 0.18), rgba(47, 159, 87, 0.16));
    color: var(--brand-navy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.user-menu-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(21, 24, 95, 0.64);
    transform: rotate(-90deg);
    transition: transform 180ms ease;
}

.user-menu[open] .user-menu-caret {
    transform: rotate(90deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    min-width: 220px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 18px;
    background: white;
    box-shadow: 0 24px 70px rgba(21, 24, 95, 0.18);
}

.user-menu-info {
    padding: 4px 14px 10px;
    border-bottom: 1px solid rgba(21, 24, 95, 0.08);
    margin-bottom: 2px;
}

.user-menu-info strong {
    display: block;
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

.user-menu-panel form {
    margin: 0;
}

.user-menu-item {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
    background: rgba(111, 94, 247, 0.08);
    color: var(--brand-purple-dark);
    outline: none;
}

.user-menu-item-danger:hover,
.user-menu-item-danger:focus-visible {
    background: rgba(218, 76, 76, 0.1);
    color: var(--danger);
}

.hello-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: clamp(32px, 8vw, 40px);
    font-weight: 600;
    line-height: 1.02;
}

.hello-copy {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.4;
}

.hero-card,
.progress-card,
.account-panel {
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.hero-card {
    padding: 22px 20px;
}

.section-title {
    margin: 0 0 18px;
    color: var(--brand-navy);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.progress-ring {
    --progress-ring-value: 75%;
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    border-radius: 999px;
    background: conic-gradient(var(--brand-purple) 0 var(--progress-ring-value), #ececf2 var(--progress-ring-value) 100%);
}

.progress-ring-inner {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 999px;
    background: white;
    color: var(--brand-navy);
    font-size: 26px;
    font-weight: 900;
}

.progress-overview-greeting {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.hero-copy h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 30px;
    line-height: 1.08;
}

.hero-copy p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
}

.progress-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.progress-steps span {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #dfdfdf;
}

.progress-steps .is-active {
    background: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(47, 159, 87, 0.14);
}

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

.feature-card {
    position: relative;
    min-height: 180px;
    border-radius: 22px;
    padding: 18px 16px;
    box-shadow: var(--shadow-soft);
}

.feature-card h3 {
    margin: 22px 0 0;
    color: var(--brand-navy);
    font-size: 26px;
    line-height: 1.1;
}

.feature-card p {
    margin: 12px 0 0;
    max-width: 22ch;
    color: rgba(21, 24, 95, 0.78);
    font-size: 14px;
    line-height: 1.45;
}

.feature-mint {
    background: linear-gradient(180deg, #eef7f0 0%, #edf3ec 100%);
}

.feature-lilac {
    background: linear-gradient(180deg, #efebff 0%, #ece7fb 100%);
}

.feature-lilac-strong {
    background: linear-gradient(180deg, #ebe4ff 0%, #ece6fa 100%);
}

.feature-mint-soft {
    background: linear-gradient(180deg, #eff8ef 0%, #edf4ea 100%);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: var(--brand-navy);
}

.feature-mint .feature-icon,
.feature-mint-soft .feature-icon {
    color: var(--brand-green);
}

.feature-lilac .feature-icon,
.feature-lilac-strong .feature-icon {
    color: var(--brand-purple);
}

.feature-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--brand-navy);
}

.feature-arrow svg,
.help-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.progress-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 18px;
    background: linear-gradient(180deg, #fff8ec 0%, #fff4dd 100%);
}

.progress-badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    color: #d2a51c;
}

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

.progress-card-copy h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 24px;
    line-height: 1.1;
}

.progress-card-copy p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.progress-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
}

.training-page {
    width: 100%;
}

.training-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 0 22px;
}

.training-title {
    margin: 0;
    color: var(--brand-navy);
    font-size: clamp(34px, 7vw, 56px);
    font-weight: 600;
    line-height: 1.02;
}

.training-subtitle {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.training-stats-card {
    display: none;
}

.training-stats-icon {
    display: none;
}

.training-stats-icon svg,
.training-search svg,
.training-filter svg,
.capsule-time svg,
.capsule-action svg,
.training-side-icon svg,
.training-callout-icon svg,
.training-callout-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

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

.training-toolbar {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.training-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(21, 24, 95, 0.12);
    border-radius: 999px;
    background: white;
    color: var(--muted);
    box-shadow: var(--shadow-soft);
}

.training-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--brand-navy);
    font-size: 17px;
}

.training-search input::placeholder {
    color: #8a94a6;
}

.training-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.wellness-toolbar {
    display: grid;
    gap: 14px;
    align-items: start;
}

.wellness-toolbar .training-search {
    width: 100%;
    max-width: 560px;
}

.wellness-filters {
    row-gap: 12px;
}

.wellness-filter-dropdown {
    position: relative;
}

.wellness-filter-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.wellness-filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.wellness-filter-dropdown summary svg:last-child {
    transition: transform 160ms ease;
}

.wellness-filter-dropdown[open] summary svg:last-child {
    transform: rotate(180deg);
}

.wellness-filter-dropdown.is-active summary,
.wellness-filter-dropdown[open] summary {
    border-color: rgba(91, 60, 196, 0.16);
    background: linear-gradient(180deg, #f1ebff 0%, #eee8fb 100%);
    color: var(--brand-purple-dark);
}

.wellness-filter-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 30;
    display: grid;
    gap: 10px;
    min-width: min(100vw - 48px, 420px);
    max-width: 520px;
    padding: 14px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(21, 24, 95, 0.12);
    backdrop-filter: blur(12px);
}

.wellness-filter-menu .training-filter {
    width: 100%;
    justify-content: flex-start;
}

.wellness-category-menu {
    max-width: 520px;
}

.training-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(21, 24, 95, 0.12);
    border-radius: 999px;
    background: white;
    color: var(--brand-navy);
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
}

.training-filter-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.training-filter:hover {
    border-color: rgba(91, 60, 196, 0.16);
}

.training-filter.is-active {
    border-color: rgba(91, 60, 196, 0.16);
    background: linear-gradient(180deg, #f1ebff 0%, #eee8fb 100%);
    color: var(--brand-purple-dark);
}

.training-filter-green {
    color: var(--brand-green-dark);
}

.training-filter-purple {
    color: var(--brand-purple-dark);
}

.training-filter-green:hover {
    border-color: rgba(47, 159, 87, 0.2);
}

.training-filter-green.is-active {
    border-color: rgba(47, 159, 87, 0.18);
    background: linear-gradient(180deg, #effaf3 0%, #e8f6ed 100%);
    color: var(--brand-green-dark);
}

.training-filter-purple.is-active {
    color: var(--brand-purple-dark);
}

.training-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.training-empty-state {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 28px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.training-empty-state h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 24px;
    line-height: 1.1;
}

.training-empty-state p {
    margin: 0;
    max-width: 42ch;
}

.capsule-card {
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.capsule-card-link {
    display: block;
    height: 100%;
}

.capsule-card:hover .capsule-illustration-image,
.capsule-card:hover .capsule-video-image,
.capsule-card:focus-within .capsule-illustration-image,
.capsule-card:focus-within .capsule-video-image {
    transform: scale(1.045);
    filter: saturate(1.02);
}

.capsule-illustration {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(180deg, #f2ecff 0%, #ece6fa 100%);
}

.capsule-illustration-image,
.capsule-video-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 260ms ease, filter 260ms ease;
}

.capsule-illustration::before,
.capsule-illustration::after,
.capsule-video::before,
.capsule-video::after,
.progress-bottom-illustration::before,
.progress-bottom-illustration::after {
    display: none;
    content: none;
}

.capsule-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(91, 60, 196, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--brand-purple);
    font-size: 14px;
    font-weight: 800;
}

.capsule-badge-progress {
    border-color: rgba(47, 159, 87, 0.12);
    color: var(--brand-green-dark);
}

.capsule-body {
    padding: 18px 18px 16px;
}

.capsule-category {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(91, 60, 196, 0.1);
    color: var(--brand-purple-dark);
    font-size: 12px;
    font-weight: 800;
}

.capsule-body h2 {
    margin: 12px 0 0;
    color: var(--brand-navy);
    font-size: 20px;
    line-height: 1.15;
}

.capsule-body p {
    margin: 12px 0 0;
    color: var(--muted);
    /*font-size: 16px;*/
    line-height: 1.5;
}

.capsule-progress {
    margin-top: 18px;
}

.capsule-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 800;
}

.capsule-progress-bar {
    height: 9px;
    margin-top: 10px;
    border-radius: 999px;
    background: #e9eaf0;
    overflow: hidden;
}

.capsule-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #48c57a 0%, #26a95c 100%);
}

.capsule-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.capsule-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.capsule-time svg {
    width: 18px;
    height: 18px;
}

.capsule-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(91, 60, 196, 0.16);
    border-radius: 14px;
    background: white;
    color: var(--brand-purple);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.capsule-action-continue {
    border-color: rgba(47, 159, 87, 0.14);
    background: rgba(47, 159, 87, 0.06);
    color: var(--brand-green-dark);
}

.capsule-page {
    display: grid;
    gap: 22px;
}

.capsule-page-header {
    display: grid;
    gap: 16px;
}

.capsule-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #7080a8;
    font-size: 15px;
    font-weight: 700;
}

.capsule-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7f87c9;
}

.capsule-layout {
    display: grid;
    gap: 22px;
}

.capsule-media-card,
.capsule-sidebar-card,
.capsule-footer-panel {
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.capsule-media-card {
    overflow: hidden;
}

.capsule-video {
    display: grid;
    place-items: center;
    min-height: 280px;
}

.capsule-video-player {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    background: #000;
}

.capsule-play-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 116px;
    height: 116px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 29, 80, 0.58);
    box-shadow: 0 18px 40px rgba(20, 24, 72, 0.18);
    color: white;
    backdrop-filter: blur(8px);
}

.capsule-play-button svg {
    margin-left: 4px;
}

.capsule-media-content {
    padding: 22px 24px 24px;
}

.capsule-media-content h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 28px;
    line-height: 1.12;
}

.capsule-sidebar-card {
    padding: 24px;
}

.capsule-sidebar-card h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 28px;
    line-height: 1.1;
}

.capsule-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.capsule-sidebar-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 999px;
    background: white;
    color: var(--brand-purple-dark);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.capsule-sidebar-toggle svg {
    width: 16px;
    height: 16px;
    transform: rotate(-90deg);
    transition: transform 200ms ease;
}

.capsule-sidebar-card.is-open .capsule-sidebar-toggle svg {
    transform: rotate(90deg);
}

.capsule-sidebar-body {
    display: none;
}

.capsule-sidebar-card.is-open .capsule-sidebar-body {
    display: block;
}

.capsule-section-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.capsule-section-item {
    padding: 0;
    border-bottom: 1px solid rgba(21, 24, 95, 0.08);
}

.capsule-section-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    text-decoration: none;
}

.capsule-section-link.is-active {
    color: var(--brand-purple-dark);
}

.capsule-section-main {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--brand-navy);
    font-size: 18px;
    font-weight: 700;
}

.capsule-section-index {
    width: 24px;
    color: var(--brand-navy);
}

.capsule-section-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: var(--brand-purple);
    font-size: 14px;
    line-height: 1;
}

.capsule-section-link.is-active .capsule-section-current {
    color: var(--brand-purple-dark);
}

.capsule-section-copy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.capsule-sidebar-card .wellness-badge {
    width: fit-content;
    min-width: 0;
    padding-inline: 12px;
    font-size: 12px;
}

.capsule-section-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4d9e6;
}

.capsule-section-state.is-complete {
    color: var(--brand-green);
}

.capsule-meta-grid {
    display: grid;
    gap: 16px;
    margin-top: 22px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
}

.capsule-meta-item {
    display: grid;
    gap: 8px;
}

.capsule-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7d84a7;
    font-size: 14px;
    font-weight: 700;
}

.capsule-content-card {
    display: grid;
    gap: 20px;
    padding: 24px;
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-soft);
    scroll-margin-top: 24px;
}

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

.capsule-content-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brand-green-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.capsule-content-header h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 30px;
    line-height: 1.08;
}

.capsule-content-body {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.capsule-section-video-wrap {
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 22px;
    background: #11131f;
    box-shadow: var(--shadow-soft);
}

.capsule-section-video-player {
    display: block;
    width: 100%;
    max-height: 420px;
    background: #000;
}

.capsule-section-iframe-wrap {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.capsule-section-iframe {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
}

.capsule-checklist {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    margin-top: 18px;
}

.capsule-checklist-item {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(47, 159, 87, 0.12);
    border-radius: 18px;
    background: rgba(47, 159, 87, 0.06);
    color: var(--brand-navy);
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.capsule-checklist-item:hover {
    border-color: rgba(47, 159, 87, 0.24);
    box-shadow: 0 12px 24px rgba(21, 24, 95, 0.08);
    transform: translateY(-1px);
}

.capsule-checklist-item.is-checked {
    border-color: rgba(47, 159, 87, 0.28);
    background: rgba(47, 159, 87, 0.1);
}

.capsule-checklist-item.is-checked .capsule-checklist-label {
    color: var(--brand-green-dark);
}

.capsule-checklist-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--brand-green-dark);
}

.capsule-checklist-bullet {
    position: relative;
    display: inline-flex;
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.capsule-checklist-bullet::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 160ms ease, transform 160ms ease;
}

.capsule-checklist-label {
    flex: 1 1 auto;
}

.capsule-checklist-item.is-checked .capsule-checklist-bullet::after {
    opacity: 1;
    transform: scale(1);
}

.capsule-content-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(21, 24, 95, 0.08);
}

.capsule-nav-spacer {
    width: 144px;
    flex-shrink: 0;
}

.capsule-nav-cta {
    display: inline-flex;
    min-width: 144px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid rgba(47, 159, 87, 0.18);
    border-radius: 16px;
    background: white;
    color: var(--brand-green-dark);
    box-shadow: 0 10px 24px rgba(21, 24, 95, 0.06);
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.capsule-nav-cta svg {
    flex-shrink: 0;
}

.capsule-nav-cta:hover {
    border-color: rgba(47, 159, 87, 0.32);
    background: rgba(247, 252, 249, 0.96);
}

.capsule-nav-cta-prev {
    justify-content: flex-start;
}

.capsule-nav-cta-next {
    justify-content: flex-end;
}

.capsule-meta-item strong {
    color: var(--brand-navy);
    font-size: 17px;
    font-weight: 800;
}

.capsule-meta-status {
    color: var(--brand-green-dark) !important;
}

.capsule-footer-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.capsule-evaluation-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.capsule-evaluation-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.capsule-evaluation-header h2,
.capsule-question-card legend {
    margin: 0;
    color: var(--brand-navy);
}

.capsule-evaluation-header p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.capsule-evaluation-result {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(91, 60, 196, 0.12);
    border-radius: 16px;
    background: rgba(91, 60, 196, 0.06);
    color: var(--brand-purple-dark);
    font-weight: 800;
}

.capsule-evaluation-result.is-success {
    border-color: rgba(47, 159, 87, 0.18);
    background: rgba(47, 159, 87, 0.08);
    color: var(--brand-green-dark);
}

.capsule-evaluation-form,
.capsule-question-options {
    display: grid;
    gap: 14px;
}

.capsule-question-card {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 20px;
}

.capsule-question-card legend {
    padding: 0 6px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.capsule-question-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 14px;
    background: rgba(251, 248, 243, 0.72);
    cursor: pointer;
}

.capsule-question-option input {
    accent-color: var(--brand-purple);
}

.capsule-question-option span {
    color: var(--brand-navy);
    font-weight: 700;
}

.capsule-evaluation-submit {
    width: 100%;
}

.capsule-primary-cta,
.capsule-secondary-cta {
    display: inline-flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 800;
}

.capsule-primary-cta {
    background: linear-gradient(180deg, #39b261 0%, #23924b 100%);
    color: white;
}

.capsule-secondary-cta {
    border: 1px solid rgba(47, 159, 87, 0.25);
    background: rgba(47, 159, 87, 0.04);
    color: var(--brand-green-dark);
}

.capsule-secondary-cta:hover {
    border-color: rgba(47, 159, 87, 0.38);
}

.capsule-support-note {
    display: grid;
    gap: 14px;
    padding: 6px 4px;
}

.training-bottom-row {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.training-side-note,
.training-callout {
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.training-side-note {
    padding: 22px 20px;
    background: linear-gradient(180deg, #f1ecff 0%, #eeefff 100%);
}

.training-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-green);
}

.training-side-note h3,
.training-callout h3 {
    margin: 16px 0 0;
    color: var(--brand-navy);
    font-size: 22px;
    line-height: 1.12;
}

.training-side-note p,
.training-callout p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.training-callout {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(242, 191, 97, 0.3);
    background: linear-gradient(180deg, #fffdfa 0%, #fff8ef 100%);
}

.training-callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(47, 159, 87, 0.1);
    color: var(--brand-green-dark);
}

.training-callout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-purple);
    font-weight: 800;
    padding: 10px;
    border-radius: 15px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-purple);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--brand-purple-dark);
    text-decoration-color: currentColor;
    box-shadow: none;
    transform: none;
}

.text-link-secondary {
    color: var(--brand-green-dark);
}

.account-panel {
    margin-top: 18px;
    padding: 20px 18px;
}

.account-list {
    margin: 8px 0 0;
}

.account-list div + div {
    margin-top: 16px;
}

.account-list dt {
    color: var(--muted);
    font-size: 14px;
}

.account-list dd {
    margin: 4px 0 0;
    color: var(--brand-navy);
    font-weight: 700;
}

.account-logout {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-purple);
    font-weight: 800;
}

.bottom-nav {
    display: none;
    position: fixed;
    right: 0;
    bottom: 14px;
    left: 0;
    grid-template-columns: repeat(var(--bottom-nav-columns, 5), minmax(0, 1fr));
    gap: 6px;
    padding: 12px 10px;
    border: 1px solid rgba(21, 24, 95, 0.06);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(21, 24, 95, 0.12);
    backdrop-filter: blur(20px);
}

.bottom-nav-item {
    display: grid;
    justify-items: center;
    gap: 5px;
    color: var(--brand-navy);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.bottom-nav-item.is-current {
    color: var(--brand-purple);
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav-item span {
    line-height: 1.1;
}

.module-page {
    display: grid;
    gap: 22px;
}

.profile-page,
.profile-grid,
.profile-form-grid {
    display: grid;
    gap: 18px;
}

.profile-tabs,
.profile-tab-panels {
    display: grid;
    gap: 18px;
}

.profile-tab-list,
.app-tab-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.profile-tab-button,
.app-tab-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(21, 24, 95, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    /*box-shadow: var(--shadow-soft);*/
}

.profile-tab-button.is-active,
.profile-tab-button[aria-selected="true"],
.app-tab-button.is-active,
.app-tab-button[aria-selected="true"] {
    border-color: rgba(91, 60, 196, 0.16);
    background: linear-gradient(180deg, #f1ebff 0%, #eee8fb 100%);
    color: var(--brand-purple-dark);
}

.profile-tab-panel[hidden],
.app-tab-panel[hidden] {
    display: none;
}

.app-tabs,
.app-tab-panels {
    display: grid;
    gap: 18px;
}

.profile-form-grid {
    margin-top: 18px;
}

.profile-card {
    display: grid;
    gap: 6px;
}

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

.profile-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 18px;
    background: #fbfbfe;
}

.profile-toggle input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-green);
}

.profile-toggle strong {
    display: block;
    color: var(--brand-navy);
    font-size: 15px;
    line-height: 1.2;
}

.profile-toggle small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.push-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(111, 94, 247, 0.08), rgba(29, 207, 159, 0.08));
}

.push-panel-copy {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.push-panel-copy h3 {
    margin: 0 0 6px;
    color: var(--brand-navy);
    font-size: 16px;
}

.push-panel-copy p,
.push-panel-status {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.push-panel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-navy);
    background: rgba(21, 24, 95, 0.08);
}

.push-panel-badge[data-state="enabled"] {
    color: #0f6b4d;
    background: rgba(29, 207, 159, 0.18);
}

.push-panel-badge[data-state="disabled"] {
    color: #7a5b00;
    background: rgba(255, 212, 94, 0.28);
}

.push-panel-badge[data-state="blocked"] {
    color: #8b1e3f;
    background: rgba(255, 101, 132, 0.2);
}

.push-panel-badge[data-state="insecure"] {
    color: #7a5b00;
    background: rgba(255, 212, 94, 0.28);
}

.push-panel-badge[data-state="unsupported"] {
    color: #43506d;
    background: rgba(67, 80, 109, 0.14);
}

.profile-submit {
    width: auto;
    min-width: 220px;
}

.profile-certificate-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.profile-certificate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 18px;
    background: #fbfbfe;
}

.profile-certificate-item h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 17px;
    line-height: 1.2;
}

.profile-certificate-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.owner-page {
    gap: 18px;
}

.owner-stats-grid,
.owner-content-grid,
.owner-link-form {
    display: grid;
    gap: 18px;
}

.owner-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wellness-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wellness-stats-grid .owner-stat-card {
    min-width: 0;
}

.owner-stat-card,
.owner-panel-card {
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.owner-stat-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 22px 20px;
    overflow: hidden;
}

.owner-stat-icon {
    position: absolute;
    top: 12px;
    right: 14px;
    color: rgba(91, 60, 196, 0.12);
    pointer-events: none;
    transform: scale(1.5);
}

.owner-stat-card strong {
    position: relative;
    z-index: 1;
    color: var(--brand-navy);
    font-size: 30px;
    line-height: 1;
}

.owner-stat-card span {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.owner-panel-card {
    padding: 24px;
}

.owner-plan-card {
    display: grid;
    gap: 18px;
}

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

.owner-analytics-stat,
.owner-ranking-item {
    padding: 18px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 18px;
    background: #fbfbfe;
}

.owner-analytics-stat strong {
    display: block;
    color: var(--brand-navy);
    font-size: 26px;
    line-height: 1;
}

.owner-analytics-stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.owner-panel-card h2,
.owner-empty-state h3,
.owner-employee-item h3 {
    margin: 0;
    color: var(--brand-navy);
}

.owner-panel-card p,
.owner-empty-state p,
.owner-employee-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.owner-link-submit {
    width: 100%;
}

.modal-open {
    overflow: hidden;
}

.owner-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.owner-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.owner-add-button,
.owner-modal-close {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(91, 60, 196, 0.14);
    border-radius: 16px;
    background: white;
    color: var(--brand-purple-dark);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease;
}

.owner-add-button:hover,
.owner-modal-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-hover-shadow);
}

.owner-add-button span,
.owner-modal-close span {
    line-height: 1;
    font-size: 28px;
    font-weight: 700;
}

.owner-add-button svg {
    width: 18px;
    height: 18px;
}

.owner-add-button-secondary {
    border-color: rgba(21, 24, 95, 0.1);
    color: var(--brand-navy);
}

.owner-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.owner-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.owner-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 21, 62, 0.42);
    backdrop-filter: blur(8px);
}

.owner-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    padding: 28px;
    border-radius: 30px;
    background: white;
    box-shadow: 0 28px 80px rgba(21, 24, 95, 0.18);
}

.owner-modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.owner-modal-header h2 {
    margin: 0;
    color: var(--brand-navy);
}

.owner-modal-header p {
    margin: 10px 0 0;
    color: var(--muted);
}

.owner-modal-notifications {
    align-items: start;
    justify-items: end;
    padding: 92px 32px 24px;
}

.owner-modal-dialog-notifications {
    width: min(100%, 420px);
    padding: 24px;
    border-radius: 26px;
}

.owner-modal-header-notifications {
    margin-bottom: 16px;
}

.owner-alert-list-modal {
    margin-top: 0;
}

.owner-empty-state-modal {
    padding: 10px 0 0;
}

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

.owner-plan-stat {
    padding: 18px;
    border: 1px solid rgba(91, 60, 196, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.owner-plan-stat strong {
    display: block;
    color: var(--brand-navy);
    font-size: 24px;
    line-height: 1;
}

.owner-plan-stat span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.owner-plan-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.owner-plan-feature {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(91, 60, 196, 0.1);
    color: var(--brand-purple-dark);
    font-size: 13px;
    font-weight: 800;
}

.owner-ranking-list,
.owner-alert-list,
.owner-team-progress-list,
.owner-activity-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.owner-ranking-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.owner-ranking-order {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(91, 60, 196, 0.1);
    color: var(--brand-purple-dark);
    font-size: 18px;
    font-weight: 900;
}

.owner-ranking-copy h3,
.owner-activity-copy h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 17px;
    line-height: 1.2;
}

.owner-ranking-copy p,
.owner-activity-copy p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.owner-alert-item,
.owner-team-progress-item,
.owner-activity-item {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 18px;
    background: #fbfbfe;
}

.owner-alert-item {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.owner-alert-item.is-read {
    opacity: 0.82;
}

.owner-alert-item.is-unread {
    border-color: rgba(91, 60, 196, 0.18);
    background: rgba(245, 241, 255, 0.98);
}

.owner-alert-item.tone-amber {
    border-color: rgba(217, 119, 6, 0.18);
    background: rgba(255, 247, 237, 0.9);
}

.owner-alert-item.tone-purple {
    border-color: rgba(91, 60, 196, 0.14);
    background: rgba(243, 239, 255, 0.8);
}

.owner-alert-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: white;
    color: var(--brand-purple-dark);
}

.owner-alert-item.tone-amber .owner-alert-icon {
    color: #b45309;
}

.owner-alert-item h3,
.owner-team-progress-head h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 17px;
    line-height: 1.2;
}

.owner-alert-item p,
.owner-team-progress-head p,
.owner-team-progress-meta span {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.owner-team-progress-head,
.owner-team-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.owner-team-progress-meta {
    flex-wrap: wrap;
    margin-top: 2px;
}

.owner-activity-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.owner-activity-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.owner-activity-icon.tone-purple {
    background: rgba(91, 60, 196, 0.1);
    color: var(--brand-purple-dark);
}

.owner-activity-icon.tone-green {
    background: rgba(47, 159, 87, 0.12);
    color: var(--brand-green-dark);
}

.owner-activity-date {
    color: #7d84a7;
    font-size: 13px;
    font-weight: 700;
}

.owner-team-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #e9eaf0;
    overflow: hidden;
}

.owner-team-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #48c57a 0%, #26a95c 100%);
}

.owner-employee-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.owner-employee-item,
.owner-empty-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(21, 24, 95, 0.08);
}

.owner-employee-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.owner-empty-state {
    justify-content: flex-start;
    padding-bottom: 0;
    border-bottom: 0;
}

.owner-employee-main,
.owner-employee-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.owner-employee-main {
    min-width: 0;
}

.owner-employee-avatar {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(91, 60, 196, 0.1);
    color: var(--brand-purple);
}

.owner-employee-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.owner-employee-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(47, 159, 87, 0.1);
    color: var(--brand-green-dark);
    font-size: 14px;
    font-weight: 800;
}

.owner-employee-meta small {
    color: #7d84a7;
    font-size: 13px;
    font-weight: 700;
}

.wellness-featured-grid,
.wellness-grid {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.wellness-section-band,
.wellness-event-strip,
.wellness-detail-main,
.wellness-detail-meta-card {
    display: grid;
    gap: 18px;
}

.wellness-feature-card,
.wellness-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(72px, auto) auto auto;
    gap: 16px;
    height: 100%;
    padding: 20px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    overflow: hidden;
}

.wellness-feature-card {
    background: linear-gradient(180deg, #f2edff 0%, #ffffff 100%);
}

.wellness-feature-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(91, 60, 196, 0.1);
    color: var(--brand-purple);
}

.wellness-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 8;
    /*min-height: 220px;*/
    background: linear-gradient(180deg, #f2edff 0%, #eef8f1 100%);
    isolation: isolate;
}

.wellness-card-media-compact {
    aspect-ratio: 16 / 8;
    /*min-height: 220px;*/
}

.wellness-card-media-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 260ms ease, filter 260ms ease;
}

.wellness-card-media-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.wellness-card-media-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(91, 60, 196, 0.14) 0, transparent 26%),
        radial-gradient(circle at 78% 78%, rgba(47, 159, 87, 0.12) 0, transparent 24%),
        linear-gradient(180deg, #f2edff 0%, #eef8f1 100%);
}

.wellness-feature-kicker,
.wellness-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: fit-content;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.wellness-feature-kicker,
.wellness-badge {
    background: rgb(213 206 236 / 71%);
    color: var(--brand-purple-dark);
}

.wellness-badge.is-soft {
    background: rgb(216 240 225 / 71%);
    color: var(--brand-green-dark);
}

.wellness-card-meta {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.wellness-card-meta .wellness-badge,
.wellness-card-meta .wellness-feature-kicker {
    flex: 0 0 auto;
    align-self: flex-start;
    max-width: 100%;
}

.wellness-card-title-row {
    display: flex;
    gap: 12px;
}

.wellness-card-title-row {
    align-items: flex-start;
    flex-wrap: nowrap;
}

.wellness-card-title-row .module-card-icon,
.wellness-card-title-row .wellness-feature-icon {
    flex: 0 0 auto;
}

.wellness-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
}

.wellness-feature-card h2,
.wellness-card h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 22px;
    line-height: 1.14;
}

.wellness-feature-card p,
.wellness-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.wellness-card-summary {
    display: -webkit-box;
    min-height: 76px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.wellness-feature-card:hover .wellness-card-media-image,
.wellness-card:hover .wellness-card-media-image,
.wellness-feature-card:focus-within .wellness-card-media-image,
.wellness-card:focus-within .wellness-card-media-image {
    transform: scale(1.035);
    filter: saturate(1.02);
}

.wellness-section-band {
    margin-top: 22px;
}

.wellness-section-head,
.wellness-detail-meta-row,
.wellness-card-actions,
.wellness-card-info,
.wellness-event-card-head,
.wellness-event-card-footer,
.wellness-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wellness-section-head {
    margin-bottom: 6px;
}

.wellness-section-head h2,
.wellness-event-card h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 28px;
    line-height: 1.08;
}

.wellness-section-head p,
.wellness-event-card p,
.wellness-detail-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.wellness-event-strip {
    margin-top: 18px;
    display: grid;
    gap: 18px;
    justify-content: start;
    grid-template-columns: 1fr;
}

.wellness-event-card,
.wellness-detail-main,
.wellness-detail-meta-card {
    padding: 24px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.wellness-event-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(180deg, #f2edff 0%, #ffffff 100%);
    cursor: pointer;
}

.wellness-event-media {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 5;
    max-height: 160px;
    background: linear-gradient(180deg, #f2edff 0%, #eef8f1 100%);
}

.wellness-event-media-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 260ms ease, filter 260ms ease;
}

.wellness-event-card:hover .wellness-event-media-image,
.wellness-event-card:focus-within .wellness-event-media-image {
    transform: scale(1.035);
    filter: saturate(1.02);
}

.wellness-event-media-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(91, 60, 196, 0.14) 0, transparent 26%),
        radial-gradient(circle at 78% 78%, rgba(47, 159, 87, 0.12) 0, transparent 24%),
        linear-gradient(180deg, #f2edff 0%, #eef8f1 100%);
}

.wellness-event-card-head {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1;
    justify-content: space-between;
}

.wellness-event-date {
    color: var(--brand-purple-dark);
    font-size: 13px;
    font-weight: 800;
}

.wellness-card-info {
    color: var(--muted);
    font-size: 14px;
}

.wellness-card-actions {
    margin-top: auto;
    justify-content: space-between;
}

.wellness-card-secondary-link {
    position: relative;
    z-index: 3;
}

.training-callout-link.is-secondary {
    border-color: rgba(21, 24, 95, 0.12);
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-navy);
}

.wellness-detail-grid {
    align-items: start;
}

.wellness-detail-side {
    display: grid;
    align-content: start;
    gap: 20px;
}

.wellness-detail-main {
    min-height: 100%;
}

.wellness-detail-body {
    display: grid;
    gap: 16px;
    color: var(--brand-navy);
    font-size: 17px;
    line-height: 1.8;
}

.wellness-detail-hero {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, #f2edff 0%, #eef8f1 100%);
    min-height: 320px;
}

.wellness-detail-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
}

.wellness-detail-hero-placeholder {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(91, 60, 196, 0.14) 0, transparent 26%),
        radial-gradient(circle at 78% 78%, rgba(47, 159, 87, 0.12) 0, transparent 24%),
        linear-gradient(180deg, #f2edff 0%, #eef8f1 100%);
}

.wellness-detail-hero-icon {
    display: inline-flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-purple-dark);
    box-shadow: var(--shadow-soft);
}

.wellness-detail-meta-card {
    gap: 0;
}

.wellness-detail-meta-row {
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(21, 24, 95, 0.08);
}

.wellness-detail-meta-row:last-child {
    border-bottom: 0;
}

.wellness-detail-meta-row span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.wellness-detail-meta-row strong {
    color: var(--brand-navy);
    font-size: 15px;
    text-align: right;
}

.wellness-detail-actions {
    margin-top: 4px;
    padding: 4px 2px 0;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #38b563 0%, #2f9f57 100%);
    color: white;
    font-size: 16px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(47, 159, 87, 0.2);
    filter: saturate(1.03);
}

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

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

.module-stats-card,
.module-callout {
    display: grid;
    gap: 18px;
    padding: 22px 20px;
    border: 1px solid rgba(91, 60, 196, 0.1);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.module-grid {
    display: grid;
    gap: 18px;
}

.module-card {
    position: relative;
    overflow: hidden;
    padding: 22px 20px;
    border: 1px solid rgba(91, 60, 196, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(238, 235, 255, 0.72) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: var(--shadow-soft);
}

.module-card:nth-child(2n) {
    background: linear-gradient(180deg, rgba(237, 247, 239, 0.78) 0%, rgba(255, 255, 255, 1) 100%);
}

.module-card-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: white;
    color: var(--brand-purple);
    box-shadow: inset 0 0 0 1px rgba(91, 60, 196, 0.08);
}

.module-card h2 {
    margin: 18px 0 10px;
    color: var(--brand-navy);
    font-size: 24px;
    line-height: 1.1;
}

.module-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.module-card .feature-arrow {
    margin-top: 18px;
}

.progress-page {
    display: grid;
    gap: 22px;
}

.progress-overview-card,
.progress-panel,
.progress-bottom-callout {
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.progress-overview-card {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.progress-overview-main {
    display: grid;
    gap: 24px;
}

.progress-overview-copy h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 28px;
    line-height: 1.08;
}

.progress-overview-copy p {
    max-width: 16ch;
}

.progress-overview-stats {
    display: grid;
    gap: 18px;
    padding-top: 4px;
    border-top: 1px solid rgba(21, 24, 95, 0.08);
}

.progress-summary-stat,
.progress-streak {
    display: grid;
    justify-items: start;
    gap: 6px;
}

.progress-streak-mobile {
    display: none;
}

.progress-summary-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.progress-summary-icon.tone-purple {
    background: rgba(91, 60, 196, 0.1);
    color: var(--brand-purple);
}

.progress-summary-icon.tone-green {
    background: rgba(47, 159, 87, 0.12);
    color: var(--brand-green-dark);
}

.progress-summary-stat strong,
.progress-streak strong {
    color: var(--brand-navy);
    font-size: 22px;
    line-height: 1;
}

.progress-summary-stat span,
.progress-streak-label {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.progress-streak p {
    margin: 0;
    color: var(--brand-green-dark);
    font-size: 16px;
    font-weight: 800;
}

.progress-content-grid {
    display: grid;
    gap: 22px;
}

.progress-summary-callout {
    grid-column: auto;
}

.progress-panel {
    padding: 22px 24px;
}

.progress-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.progress-panel-header h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 22px;
    line-height: 1.1;
}

.progress-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-purple);
    font-size: 15px;
    font-weight: 800;
}

.progress-badges-modal .owner-modal-dialog {
    width: min(100%, 980px);
}

.progress-badge-grid-modal {
    grid-template-columns: 1fr;
    margin-top: 0;
    max-height: min(68vh, 720px);
    overflow-y: auto;
    padding-right: 6px;
}

.progress-quick-grid {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.progress-badge-grid {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.progress-badge-grid-recent .progress-badge-card:nth-child(n + 3) {
    display: none;
}

.progress-badge-card {
    display: grid;
    gap: 18px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(91, 60, 196, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(21, 24, 95, 0.08);
    min-height: 100%;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.progress-badge-card.is-empty {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px 20px;
    border-color: rgba(21, 24, 95, 0.08);
    background: #fbfbfe;
}

.progress-badge-card.is-empty .progress-badge-icon {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--lavender-strong);
    color: var(--brand-purple);
    box-shadow: none;
}

.progress-badge-card.is-empty .progress-badge-icon::before {
    display: none;
}

.progress-badge-card.is-empty h3 {
    align-self: end;
}

.progress-badge-card.is-empty p {
    align-self: start;
}

.progress-badge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(21, 24, 95, 0.12);
}

.progress-badge-card-top,
.progress-badge-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.progress-badge-mini {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(91, 60, 196, 0.12);
    background: white;
}

.progress-badge-reward {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: white;
    color: var(--brand-navy);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(21, 24, 95, 0.08);
}

.progress-badge-hero {
    display: grid;
    justify-items: center;
    padding-top: 2px;
}

.progress-badge-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 96px;
    height: 96px;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    color: white;
    box-shadow: inset 0 -8px 16px rgba(21, 24, 95, 0.16);
}

.progress-badge-icon::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.32);
}

.progress-badge-image {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

.progress-badge-card.is-locked .progress-badge-image {
    filter: grayscale(0.7) opacity(0.8);
}

.progress-badge-icon-core {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff7b8 0%, #ffd54f 58%, #f5b700 100%);
    color: #8a4b00;
    box-shadow: inset 0 -5px 10px rgba(138, 75, 0, 0.2);
}

.progress-badge-card.tone-bronze .progress-badge-icon {
    background: linear-gradient(145deg, #f28a5e 0%, #d85a39 100%);
}

.progress-badge-card.tone-silver .progress-badge-icon {
    background: linear-gradient(145deg, #d6e2ee 0%, #a2b8cd 100%);
}

.progress-badge-card.tone-gold .progress-badge-icon {
    background: linear-gradient(145deg, #ffd24f 0%, #e2a800 100%);
}

.progress-badge-card.tone-platinum .progress-badge-icon {
    background: linear-gradient(145deg, #7aa6ff 0%, #4668df 100%);
}

.progress-badge-card.tone-emerald .progress-badge-icon {
    background: linear-gradient(145deg, #84df7e 0%, #36a856 100%);
}

.progress-badge-body {
    display: grid;
    gap: 10px;
    text-align: center;
}

.progress-badge-card h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 18px;
    line-height: 1.15;
}

.progress-badge-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.progress-badge-footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.progress-badge-progress {
    display: grid;
}

.progress-badge-progress-bar {
    position: relative;
    display: block;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #dfe3eb;
    overflow: hidden;
}

.progress-badge-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6955f0 0%, #39c3ff 100%);
}

.progress-badge-status strong {
    color: var(--brand-navy);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.progress-badge-status span,
.progress-badge-footer small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.progress-badge-card.is-unlocked .progress-badge-status strong {
    color: var(--brand-green-dark);
}

.progress-badge-card.is-unlocked .progress-badge-progress-bar span {
    background: linear-gradient(90deg, #6955f0 0%, #39c3ff 100%);
}

.progress-badge-card.is-locked {
    background: linear-gradient(180deg, #f8f8fc 0%, #ffffff 100%);
}

.progress-badge-card.is-locked .progress-badge-icon {
    filter: saturate(0.92);
}

.progress-quick-card {
    display: grid;
    justify-items: center;
    min-height: 164px;
    padding: 22px 18px;
    border-radius: 20px;
    text-align: center;
}

.progress-quick-card.tone-mint {
    background: linear-gradient(180deg, #edf7ef 0%, #f8fcf8 100%);
}

.progress-quick-card.tone-lilac {
    background: linear-gradient(180deg, #efeaff 0%, #f9f7ff 100%);
}

.progress-quick-icon {
    color: var(--brand-purple-dark);
}

.progress-quick-card.tone-mint .progress-quick-icon {
    color: var(--brand-green-dark);
}

.progress-quick-card h3 {
    margin: 16px 0 8px;
    color: var(--brand-navy);
    font-size: 18px;
    line-height: 1.12;
}

.progress-quick-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.4;
}

.progress-next-step-grid {
    grid-template-columns: minmax(0, 1fr);
}

.progress-next-step-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: start;
    min-height: 0;
    gap: 16px;
    padding: 26px 22px;
    border: 1px solid rgba(47, 159, 87, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, #eff8f0 0%, #fbfefb 100%);
    text-align: left;
}

.progress-next-step-card .progress-quick-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-green-dark);
}

.progress-next-step-copy {
    min-width: 0;
}

.progress-next-step-card h3 {
    margin: 0 0 6px;
}

.progress-next-step-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-purple);
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.progress-next-step-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.progress-activity-list {
    margin-top: 18px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 8px;
}

.progress-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(21, 24, 95, 0.08);
}

.progress-activity-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.progress-activity-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.progress-activity-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.progress-activity-icon.tone-purple {
    background: rgba(91, 60, 196, 0.1);
    color: var(--brand-purple);
}

.progress-activity-icon.tone-green {
    background: rgba(47, 159, 87, 0.12);
    color: var(--brand-green-dark);
}

.progress-activity-main h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 18px;
    line-height: 1.2;
}

.progress-activity-main p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.progress-points-chip {
    flex-shrink: 0;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(47, 159, 87, 0.1);
    color: var(--brand-green-dark);
    font-size: 15px;
    font-weight: 800;
}

.progress-bottom-callout {
    display: grid;
    gap: 18px;
    overflow: hidden;
    padding: 22px 24px;
}

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

.progress-bottom-copy h3 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 24px;
    line-height: 1.12;
}

.progress-bottom-copy p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.progress-bottom-illustration {
    position: relative;
    min-height: 150px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #f2ecff 0%, #ece6fa 100%);
}

.progress-bottom-illustration-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.app-notifications-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-items: start;
    justify-items: end;
    padding: 92px 32px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.app-notifications-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-notifications-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 21, 62, 0.32);
    backdrop-filter: blur(8px);
}

.app-notifications-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: min(78vh, 720px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 26px;
    background: white;
    box-shadow: 0 28px 80px rgba(21, 24, 95, 0.18);
    overflow: hidden;
}

.app-notifications-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.app-notifications-header h2 {
    margin: 0;
    color: var(--brand-navy);
}

.app-notifications-header p {
    margin: 10px 0 0;
    color: var(--muted);
}

.app-notifications-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(91, 60, 196, 0.14);
    border-radius: 14px;
    background: white;
    color: var(--brand-purple-dark);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.app-notifications-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--button-hover-shadow);
}

.app-notifications-close span {
    line-height: 1;
    font-size: 28px;
    font-weight: 700;
}

.app-notifications-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-notifications-text-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(91, 60, 196, 0.12);
    border-radius: 999px;
    background: rgba(243, 239, 255, 0.7);
    color: var(--brand-purple-dark);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.app-notifications-text-action:hover,
.app-notifications-text-action:focus-visible {
    background: rgba(243, 239, 255, 1);
    border-color: rgba(91, 60, 196, 0.18);
}

.app-notification-copy {
    min-width: 0;
}

.app-notification-read-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.owner-alert-item:hover .app-notification-read-toggle,
.owner-alert-item:focus-within .app-notification-read-toggle,
.app-notification-read-toggle.is-read {
    opacity: 1;
    transform: scale(1);
}

.app-notification-read-toggle:focus-visible {
    opacity: 1;
    transform: scale(1);
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(91, 60, 196, 0.14);
    outline: none;
}

.app-notification-read-toggle:not(:disabled):hover {
    transform: scale(1.08);
}

.app-notification-read-toggle:disabled {
    cursor: default;
}

.app-notification-read-dot {
    width: 10px;
    height: 10px;
    border: 2px solid var(--brand-purple);
    border-radius: 999px;
    background: transparent;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92);
    transition:
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.app-notification-read-toggle.is-read .app-notification-read-dot {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 1px rgba(91, 60, 196, 0.16);
}

.app-notifications-list {
    display: grid;
    flex: 1;
    gap: 14px;
    min-height: 0;
    max-height: calc(min(78vh, 720px) - 108px);
    overflow-y: auto;
    padding-right: 4px;
}

.app-notifications-list small {
    display: inline-block;
    margin-top: 8px;
    color: #7d84a7;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 959px) {
    .owner-content-grid,
    .owner-plan-grid,
    .wellness-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .wellness-stats-grid .owner-stat-card {
        min-height: 120px;
        padding: 18px 16px;
    }

    .wellness-stats-grid .owner-stat-card strong {
        font-size: 26px;
    }

    .wellness-stats-grid .owner-stat-card span {
        font-size: 13px;
        line-height: 1.25;
    }

    .wellness-toolbar {
        gap: 14px;
    }

    .wellness-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        overflow: visible;
        padding-bottom: 0;
    }

    .wellness-filter-dropdown {
        min-width: 0;
    }

    .wellness-filter-dropdown[open] {
        grid-column: 1 / -1;
    }

    .wellness-filter-dropdown summary {
        width: 100%;
    }

    .wellness-filter-dropdown summary.training-filter {
        justify-content: space-between;
        width: 100%;
        padding-inline: 16px;
    }

    .wellness-filter-dropdown summary.training-filter span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wellness-filter-menu {
        position: static;
        min-width: 0;
        max-width: none;
        margin-top: 10px;
        padding: 12px;
        box-shadow: var(--shadow-soft);
        backdrop-filter: none;
    }

    .wellness-featured-grid,
    .wellness-grid {
        grid-template-columns: 1fr;
    }

    .wellness-card,
    .wellness-feature-card {
        gap: 14px;
        padding: 16px;
    }

    .wellness-card-media,
    .wellness-card-media-compact {
        aspect-ratio: 4 / 3;
        min-height: 180px;
        width: 100%;
        max-width: 100%;
        border-radius: 22px;
    }

    .wellness-card-media-image {
        object-position: center top;
    }

    .wellness-card-media-badges {
        top: 12px;
        left: 12px;
        right: 12px;
        justify-content: flex-start;
        gap: 8px;
    }

    .wellness-card-media-badges .wellness-badge {
        max-width: 100%;
    }

    .wellness-event-strip {
        grid-template-columns: 1fr;
    }

    .wellness-card-actions,
    .wellness-event-card-head,
    .wellness-event-card-footer,
    .wellness-detail-meta-row,
    .wellness-card-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .wellness-detail-hero,
    .wellness-detail-hero-image,
    .wellness-detail-hero-placeholder {
        min-height: 220px;
    }

    .wellness-event-media,
    .wellness-event-media-image,
    .wellness-event-media-placeholder {
        aspect-ratio: 16 / 6;
        max-height: 132px;
    }

    .wellness-detail-side {
        gap: 16px;
    }

    .owner-employee-item,
    .owner-empty-state {
        align-items: flex-start;
        flex-direction: column;
    }

    .owner-panel-header {
        align-items: flex-start;
    }

    .owner-panel-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .owner-add-button,
    .owner-modal-close {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .owner-modal {
        align-items: end;
        padding: 16px;
    }

    .owner-modal-notifications {
        align-items: end;
        justify-items: stretch;
        padding: 16px;
    }

    .owner-modal-dialog {
        width: 100%;
        max-height: min(88vh, 720px);
        overflow-y: auto;
        padding: 24px 20px;
        border-radius: 24px;
    }

    .owner-modal-dialog-notifications {
        width: 100%;
    }

    .owner-modal-header {
        margin-bottom: 18px;
    }

    .owner-ranking-item,
    .owner-activity-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .owner-team-progress-head,
    .owner-team-progress-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .owner-employee-meta {
        align-items: flex-start;
    }

    .profile-certificate-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-notifications-modal {
        align-items: start;
        justify-items: stretch;
        padding: max(16px, env(safe-area-inset-top)) 16px 16px;
    }

    .app-notifications-dialog {
        width: 100%;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - 16px);
        padding: 24px 20px;
        border-radius: 24px;
    }

    .app-notifications-list {
        max-height: none;
    }

    .bottom-nav {
        display: grid;
    }

    .training-header {
        padding-top: 16px;
    }

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

    .capsule-footer-panel {
        padding-bottom: 110px;
    }

    .capsule-content-nav {
        gap: 12px;
    }

    .capsule-nav-spacer,
    .capsule-nav-cta {
        min-width: 0;
        width: 100%;
    }

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

    .progress-badge-grid {
        grid-template-columns: 1fr;
    }

    .progress-overview-card {
        gap: 18px;
        padding: 20px;
    }

    .progress-overview-main {
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: start;
        gap: 16px;
    }

    .progress-overview-copy {
        display: grid;
        gap: 10px;
        align-content: start;
        min-width: 0;
    }

    .progress-overview-copy h3 {
        font-size: 22px;
        line-height: 1.08;
    }

    .progress-overview-copy p {
        max-width: none;
        margin: 0;
        font-size: 15px;
    }

    .progress-streak-mobile {
        display: grid;
        gap: 4px;
        margin-top: 4px;
        padding: 12px 14px;
        border: 1px solid rgba(47, 159, 87, 0.14);
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(247, 250, 246, 0.98), rgba(236, 247, 240, 0.92));
    }

    .progress-streak-mobile strong {
        font-size: 18px;
    }

    .progress-streak-mobile .progress-streak-label {
        font-size: 13px;
    }

    .progress-streak-mobile p {
        font-size: 14px;
    }

    .progress-streak-desktop {
        display: none;
    }

    .progress-overview-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        padding-top: 18px;
    }

    .progress-summary-stat {
        min-width: 0;
        justify-items: center;
        gap: 8px;
        padding: 14px 10px;
        text-align: center;
        border: 1px solid rgba(21, 24, 95, 0.08);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.88);
    }

    .progress-summary-stat .progress-summary-icon {
        width: 48px;
        height: 48px;
    }

    .progress-summary-stat strong {
        font-size: 18px;
    }

    .progress-summary-stat span {
        font-size: 13px;
        line-height: 1.2;
    }
}

@media (min-width: 960px) {
    body.app-route {
        height: 100%;
        overflow: hidden;
    }

    .auth-shell {
        grid-template-columns: minmax(0, 1fr) 480px;
    }

    .auth-brand {
        display: block;
    }

    .mobile-brand {
        display: none;
    }

    .auth-panel-brand {
        display: inline-flex;
    }

    .brand-link .brand-logo {
        height: 64px;
    }

    .app-shell {
        padding-bottom: 36px;
    }

    .dashboard-phone {
        width: 100%;
    }

    .dashboard-header {
        padding: 6px 0 22px;
    }

    .hello-title {
        font-size: 44px;
    }

    .hero-card {
        padding: 24px 30px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-copy h3 {
        font-size: 28px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

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

    .account-panel {
        display: none;
    }

    .app-nav {
        display: none;
    }

    .app-shell {
        display: grid;
        grid-template-columns: var(--desktop-sidebar-width, 280px) minmax(0, 1fr);
        height: 100vh;
        overflow: hidden;
        transition: grid-template-columns 220ms ease;
    }

    .desktop-sidebar {
        display: block;
        overflow: hidden;
        border-right: 1px solid rgba(21, 24, 95, 0.08);
        background: rgba(255, 255, 255, 0.62);
        backdrop-filter: blur(20px);
    }

    .desktop-sidebar-inner {
        display: flex;
        height: 100%;
        flex-direction: column;
        padding: 32px 24px 24px;
        transition: padding 220ms ease;
    }

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

    .desktop-brand {
        display: inline-flex;
        align-items: center;
        min-width: 0;
    }

    .desktop-brand .brand-logo {
        height: 58px;
        width: auto;
        transition: width 220ms ease, height 220ms ease, transform 220ms ease, opacity 220ms ease;
    }

    .sidebar-toggle {
        display: inline-flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(21, 24, 95, 0.08);
        border-radius: 12px;
        background: white;
        color: var(--brand-navy);
        box-shadow: var(--shadow-soft);
        transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
    }

    .sidebar-toggle:hover {
        box-shadow: var(--button-hover-shadow);
    }

    .desktop-menu {
        display: grid;
        gap: 2px;
        margin-top: 20px;
    }

    .desktop-menu-item {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 16px;
        color: var(--brand-navy);
        font-size: 16px;
        font-weight: 700;
        transition: padding 220ms ease, gap 220ms ease, justify-content 220ms ease;
    }

    .desktop-menu-item svg,
    .help-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.9;
        flex-shrink: 0;
    }

    .desktop-menu-item span,
    .help-copy,
    .help-link span,
    .help-link svg {
        transition: opacity 160ms ease, transform 220ms ease, max-width 220ms ease;
    }

    .desktop-menu-item.is-current {
        background: linear-gradient(180deg, #f3efff 0%, #efeafb 100%);
        color: var(--brand-purple-dark);
    }

    .desktop-menu-divider {
        height: 1px;
        margin: 12px 14px;
        background: rgba(21, 24, 95, 0.08);
    }

    .help-card {
        margin-top: auto;
        padding: 20px;
        border: 1px solid rgba(91, 60, 196, 0.12);
        border-radius: 20px;
        background: white;
        box-shadow: var(--shadow-soft);
        transition: padding 220ms ease, transform 220ms ease, opacity 220ms ease;
        background: url(../images/f1e32c61-f5c6-41f8-ac44-cf7603d0beee.webp) center center / cover;
    }

    .help-copy h3 {
        margin: 0;
        color: var(--brand-navy);
        font-size: 22px;
        line-height: 1.1;
    }

    .help-copy p {
        margin: 10px 0 0;
        color: var(--muted);
        font-size: 15px;
        line-height: 1.45;
    }

    .help-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        margin: 18px 0;
        border-radius: 18px;
        background: linear-gradient(180deg, #f1ebff 0%, #efe8fb 100%);
        color: var(--brand-purple);
    }

    .help-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 12px;
        background: rgba(91, 60, 196, 0.08);
        color: var(--brand-purple-dark);
        font-weight: 800;
        box-shadow: var(--shadow-soft);
    }

    body.sidebar-collapsed {
        --desktop-sidebar-width: 96px;
    }

    body.sidebar-collapsed .desktop-sidebar-inner {
        padding: 24px 14px 18px;
    }

    body.sidebar-collapsed .desktop-sidebar-header {
        justify-content: center;
        flex-direction: column;
    }

    body.sidebar-collapsed .desktop-brand .brand-logo {
        width: 40px;
        height: 40px;
        object-fit: cover;
        object-position: left center;
        border-radius: 12px;
    }

    body.sidebar-collapsed .sidebar-toggle {
        width: 34px;
        height: 34px;
    }

    body.sidebar-collapsed .sidebar-toggle svg {
        transform: rotate(180deg);
    }

    body.sidebar-collapsed .desktop-menu {
        gap: 12px;
    }

    body.sidebar-collapsed .desktop-menu-item {
        justify-content: center;
        gap: 0;
        padding: 14px 10px;
    }

    body.sidebar-collapsed .desktop-menu-item span,
    body.sidebar-collapsed .help-copy,
    body.sidebar-collapsed .help-link span,
    body.sidebar-collapsed .help-link svg {
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateX(-4px);
        pointer-events: none;
    }

    body.sidebar-collapsed .desktop-menu-divider {
        margin: 12px 8px;
    }

    body.sidebar-collapsed .help-card {
        padding: 14px 10px;
    }

    body.sidebar-collapsed .help-icon {
        margin: 0 auto;
    }

    body.sidebar-collapsed .help-link {
        justify-content: center;
        padding: 0;
        min-height: 0;
        background: transparent;
        box-shadow: none;
    }

    .app-content {
        min-width: 0;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 32px 42px 40px;
    }

    .app-main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .dashboard-bell {
        flex-shrink: 0;
    }

    .hero-grid {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 32px;
    }

    .progress-ring {
        width: 176px;
        height: 176px;
    }

    .progress-ring-inner {
        width: 148px;
        height: 148px;
        font-size: 40px;
    }

    .hero-copy p {
        max-width: 18ch;
        font-size: 18px;
    }

    .progress-card {
        padding: 20px 28px;
    }

    .progress-card-copy h3 {
        font-size: 22px;
    }

    .progress-arrow {
        margin-left: auto;
        transform: scale(1.2);
    }

    .training-page {
        display: grid;
        gap: 22px;
    }

    .capsule-page {
        display: grid;
        gap: 22px;
    }

    .progress-page {
        display: grid;
        gap: 22px;
    }

.module-page {
    display: grid;
    gap: 22px;
}

@media (max-width: 767px) {
    .module-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .training-subtitle {
        max-width: none;
    }
}

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

    .training-header {
        align-items: center;
        padding: 0;
    }

    .capsule-page-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .module-header {
        align-items: center;
    }

    .training-title {
        font-size: 44px;
    }

    .training-subtitle {
        font-size: 17px;
    }

    .training-toolbar {
        grid-template-columns: minmax(280px, 368px) minmax(0, 1fr);
        align-items: center;
    }

    .training-filters {
        justify-content: flex-end;
        overflow: visible;
    }

    .wellness-toolbar {
        grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
        gap: 18px;
        align-items: center;
    }

    .wellness-filters {
        justify-content: flex-end;
        flex-wrap: wrap;
        padding-top: 2px;
    }

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

    .capsule-card {
        display: flex;
        flex-direction: column;
    }

    .capsule-body {
        display: flex;
        min-height: 272px;
        flex: 1;
        flex-direction: column;
    }

    .capsule-body p {
        font-size: 15px;
    }

    .capsule-footer {
        margin-top: auto;
        padding-top: 18px;
    }

    .training-bottom-row {
        grid-template-columns: 252px minmax(0, 1fr);
        align-items: stretch;
    }

    .training-callout {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .training-callout h3 {
        margin-top: 0;
    }

    .training-callout p {
        margin-top: 4px;
    }

    .training-callout-link {
        justify-self: end;
        white-space: nowrap;
    }

    .capsule-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
        align-items: stretch;
    }

    .capsule-sidebar-toggle {
        display: none;
    }

    .capsule-sidebar-body {
        display: block;
    }

    .capsule-video {
        min-height: 350px;
    }

    .capsule-media-content h2 {
        font-size: 30px;
    }

    .capsule-meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        align-items: stretch;
    }

    .capsule-meta-item {
        padding: 0 16px;
        border-right: 1px solid rgba(21, 24, 95, 0.08);
    }

    .capsule-meta-item:last-child {
        border-right: 0;
    }

    .capsule-footer-panel {
        grid-template-columns: 340px 260px minmax(0, 1fr);
        align-items: center;
    }

    .progress-overview-card {
        grid-template-columns: minmax(320px, 1.1fr) minmax(420px, 1fr);
        align-items: center;
        padding: 26px 30px;
    }

    .progress-overview-main {
        grid-template-columns: 190px minmax(0, 1fr);
        align-items: center;
        gap: 34px;
        padding-right: 28px;
        border-right: 1px solid rgba(21, 24, 95, 0.08);
    }

    .progress-overview-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        gap: 0;
        padding-top: 0;
        border-top: 0;
        padding-left: 28px;
    }

    .progress-summary-stat,
    .progress-streak {
        min-height: 132px;
        align-content: center;
        padding: 0 22px;
        border-right: 1px solid rgba(21, 24, 95, 0.08);
    }

    .progress-streak-desktop {
        display: grid;
    }

    .progress-streak {
        border-right: 0;
    }

    .progress-content-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .progress-content-grid-single {
        grid-template-columns: minmax(0, 1fr);
    }

    .progress-panel-activity {
        grid-column: 1 / -1;
    }

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

    .progress-next-step-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .progress-bottom-callout {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 18px;
        padding: 24px;
    }

    .progress-bottom-illustration {
        min-height: 300px;
        border-radius: 0;
    }

    .progress-bottom-illustration::before {
        inset: auto auto 0 80px;
    }

    .progress-bottom-illustration::after {
        right: 54px;
    }

    .progress-next-step-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .progress-next-step-link {
        grid-column: 2;
        margin-top: 4px;
        white-space: normal;
    }

    .capsule-support-note {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        padding: 0 6px;
    }

    .module-stats-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        padding: 26px 24px;
    }

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

    .owner-content-grid {
        grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
        align-items: start;
    }

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

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

    .wellness-event-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wellness-detail-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    }

.module-callout {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}
}

@media (min-width: 1440px) {
    .progress-badge-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .progress-badge-grid-recent .progress-badge-card:nth-child(n + 3) {
        display: grid;
    }

    .progress-badge-grid-modal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 1439px) {
    .progress-badge-grid-modal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.profile-certificate-actions,
.owner-team-progress-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-certificate-link,
.owner-activity-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--seguria-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.certificate-page {
    display: grid;
    gap: 24px;
}

.certificate-page-header {
    align-items: center;
}

.certificate-card,
.certificate-support-card {
    background: #fff;
    border: 1px solid rgba(92, 73, 196, 0.12);
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(44, 35, 91, 0.08);
}

.certificate-surface {
    display: grid;
    gap: 28px;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(92, 73, 196, 0.07), rgba(63, 179, 102, 0.05)),
        #fff;
}

.certificate-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.certificate-brand-logo {
    width: min(240px, 52vw);
    height: auto;
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(92, 73, 196, 0.08);
    color: var(--seguria-primary);
    font-size: 13px;
    font-weight: 800;
}

.certificate-copy {
    display: grid;
    gap: 12px;
    text-align: center;
}

.certificate-eyebrow {
    color: var(--seguria-success);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.certificate-copy h2 {
    margin: 0;
    color: var(--seguria-primary);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.certificate-copy strong {
    color: var(--seguria-ink);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
}

.certificate-copy p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--seguria-muted);
    font-size: 18px;
    line-height: 1.65;
}

.certificate-copy p span {
    color: var(--seguria-primary);
    font-weight: 800;
}

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

.certificate-meta-item {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(92, 73, 196, 0.1);
}

.certificate-meta-item span {
    color: var(--seguria-muted);
    font-size: 13px;
    font-weight: 700;
}

.certificate-meta-item strong {
    color: var(--seguria-primary);
    font-size: 17px;
    line-height: 1.3;
}

.certificate-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-top: 8px;
    border-top: 1px solid rgba(92, 73, 196, 0.1);
}

.certificate-signature-label {
    display: block;
    margin-bottom: 6px;
    color: var(--seguria-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.certificate-footer strong {
    color: var(--seguria-primary);
    font-size: 20px;
}

.certificate-stamp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(53, 166, 94, 0.1);
    color: var(--seguria-success);
    font-size: 14px;
    font-weight: 800;
}

.certificate-support-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.pause-grid,
.risk-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.pause-list,
.pause-history-list,
.risk-analysis-history {
    display: grid;
    gap: 16px;
}

.pause-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.pause-layout-main,
.pause-layout-side {
    display: grid;
    gap: 20px;
}

.pause-page .owner-panel-card {
    padding: 24px 22px;
    border-radius: 28px;
}

.pause-page .owner-panel-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pause-page .owner-panel-header h2 svg {
    width: 20px;
    height: 20px;
    color: var(--brand-purple);
}

.pause-card,
.pause-history-item,
.risk-analysis-history-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(92, 73, 196, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

.pause-suggested-panel,
.pause-history-panel,
.pause-learn-panel,
.pause-benefits-panel {
    background: rgba(255, 255, 255, 0.9);
}

.pause-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 184px;
    gap: 18px;
    padding: 18px 18px 18px 18px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(111, 94, 247, 0.04);
}

.pause-feature-main {
    min-width: 0;
    padding-right: 18px;
    border-right: 1px solid rgba(21, 24, 95, 0.08);
}

.pause-feature-main h3 {
    margin: 14px 0 10px;
    color: var(--brand-navy);
    font-size: 20px;
    line-height: 1.15;
}

.pause-feature-main p {
    margin: 0;
    color: var(--brand-navy);
    font-size: 15px;
    line-height: 1.65;
}

.pause-feature-main small {
    display: block;
    margin-top: 8px;
    color: var(--brand-navy);
    font-size: 15px;
    line-height: 1.8;
}

.pause-feature-actions {
    display: grid;
    align-content: center;
    gap: 14px;
}

.pause-feature-primary {
    display: inline-flex;
    width: 100%;
    min-height: 56px;
    gap: 10px;
    justify-content: center;
    text-align: center;
}

.pause-feature-primary svg {
    width: 20px;
    height: 20px;
}

.pause-feature-secondary {
    display: inline-flex;
    width: 100%;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid rgba(111, 94, 247, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, #f7f4ff 0%, #fefcff 100%);
    color: var(--brand-purple-dark);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.pause-feature-secondary svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

.pause-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(21, 24, 95, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.pause-mini-card strong {
    color: var(--brand-navy);
}

.pause-mini-card p {
    margin: 6px 0 0;
    color: var(--seguria-muted);
    font-size: 14px;
}

.pause-card h3,
.risk-analysis-placeholder h3 {
    margin: 0 0 8px;
}

.pause-card p,
.pause-history-item p,
.risk-analysis-history-item p,
.risk-analysis-legal p {
    margin: 0;
    color: var(--seguria-muted);
}

.pause-card small {
    display: block;
    margin-top: 10px;
    color: var(--seguria-muted);
    line-height: 1.5;
}

.pause-learn-panel {
    gap: 18px;
}

.pause-video-card {
    position: relative;
    overflow: hidden;
    min-height: 264px;
    border-radius: 24px;
    background: linear-gradient(180deg, #efeaff 0%, #faf8ff 100%);
}

.pause-video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pause-video-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.pause-video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(111, 94, 247, 0.78);
    color: white;
    box-shadow: 0 18px 38px rgba(91, 60, 196, 0.24);
}

.pause-video-play svg {
    width: 28px;
    height: 28px;
}

.pause-video-overlay {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    justify-items: end;
    color: var(--brand-navy);
    text-align: right;
}

.pause-video-overlay strong,
.pause-video-overlay span {
    font-size: 24px;
    line-height: 1.12;
}

.pause-tip-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f3edff 0%, #f7f3ff 100%);
}

.pause-tip-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-purple);
}

.pause-tip-card strong {
    color: var(--brand-navy);
}

.pause-tip-card p {
    margin: 6px 0 0;
    color: var(--brand-navy);
    font-size: 14px;
    line-height: 1.55;
}

.pause-history-panel {
    min-height: 304px;
}

.pause-history-empty {
    display: grid;
    gap: 18px;
    padding: 10px 0 0;
}

.pause-history-empty-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.pause-history-empty-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(47, 159, 87, 0.1);
    color: var(--brand-green-dark);
}

.pause-history-empty h3 {
    margin: 0 0 8px;
}

.pause-history-empty p {
    margin: 0;
}

.pause-history-empty-illustration {
    position: relative;
    min-height: 190px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
    overflow: hidden;
}

.pause-history-empty-clipboard,
.pause-history-empty-clock {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(111, 94, 247, 0.68);
}

.pause-history-empty-clipboard {
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%) rotate(-8deg);
}

.pause-history-empty-clock {
    left: calc(50% + 54px);
    top: calc(50% + 24px);
    transform: translate(-50%, -50%);
}

.pause-history-empty-spark {
    position: absolute;
    left: calc(50% - 62px);
    top: calc(50% - 38px);
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(111, 94, 247, 0.22);
    box-shadow:
        18px -18px 0 0 rgba(111, 94, 247, 0.14),
        -10px 20px 0 0 rgba(47, 159, 87, 0.16);
}

.pause-history-empty-leaf {
    position: absolute;
    bottom: 16px;
    width: 18px;
    height: 34px;
    border-radius: 18px 18px 2px 18px;
    background: rgba(47, 159, 87, 0.18);
    transform-origin: bottom center;
}

.pause-history-empty-leaf-left {
    left: calc(50% - 90px);
    transform: rotate(-24deg);
}

.pause-history-empty-leaf-right {
    right: calc(50% - 94px);
    transform: rotate(22deg);
}

.pause-benefits-list {
    display: grid;
    gap: 20px;
}

.pause-benefit-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.pause-benefit-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.pause-benefit-item p {
    margin: 0;
    color: var(--brand-navy);
    font-size: 15px;
}

.pause-benefit-item.tone-green .pause-benefit-icon {
    background: rgba(47, 159, 87, 0.1);
    color: var(--brand-green-dark);
}

.pause-benefit-item.tone-purple .pause-benefit-icon {
    background: rgba(111, 94, 247, 0.12);
    color: var(--brand-purple);
}

.pause-benefit-item.tone-blue .pause-benefit-icon {
    background: rgba(57, 195, 255, 0.12);
    color: #2394d0;
}

.pause-benefit-item.tone-orange .pause-benefit-icon {
    background: rgba(255, 170, 75, 0.16);
    color: #f39a1d;
}

.pause-reminder-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 20px 26px;
    border-radius: 28px;
    background: linear-gradient(90deg, rgba(243, 237, 255, 0.96) 0%, rgba(236, 232, 255, 0.98) 100%);
    box-shadow: var(--shadow-soft);
}

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

.pause-reminder-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-purple);
}

.pause-reminder-copy strong {
    display: block;
    color: var(--brand-navy);
}

.pause-reminder-copy p {
    margin: 4px 0 0;
    color: var(--brand-navy);
}

.pause-reminder-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #7b4df1 0%, #6137d8 100%);
    color: white;
    font-size: 15px;
    font-weight: 800;
}

.risk-analysis-placeholder,
.risk-analysis-legal {
    display: grid;
    gap: 16px;
}

.risk-analysis-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.status-error {
    background: #fff0ef;
    color: var(--danger);
}

.risk-analysis-upload-form,
.risk-analysis-upload-actions,
.risk-analysis-recommendations {
    display: grid;
    gap: 16px;
}

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

.risk-analysis-upload-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px dashed rgba(92, 73, 196, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.risk-analysis-upload-card input[type="file"] {
    width: 100%;
}

.risk-analysis-upload-card-single {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 22px 20px;
    border-style: solid;
    border-color: rgba(92, 73, 196, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.risk-analysis-upload-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.risk-analysis-upload-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(47, 159, 87, 0.1);
    color: var(--brand-green-dark);
}

.risk-analysis-upload-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.risk-analysis-upload-copy strong {
    color: var(--brand-navy);
    font-size: 18px;
    line-height: 1.2;
}

.risk-analysis-upload-copy > span {
    color: var(--seguria-muted);
}

.risk-analysis-upload-file-name {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(21, 24, 95, 0.14);
    border-radius: 10px;
    background: white;
    color: var(--brand-navy) !important;
    font-size: 14px;
    font-weight: 700;
}

.risk-analysis-upload-input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.risk-analysis-usage-badge {
    width: 100%;
    justify-content: flex-start;
    font-weight: 800;
}

.risk-analysis-legal p {
    font-size: 12px;
    line-height: 1.55;
}

.risk-analysis-thumb {
    width: 100%;
    max-width: 180px;
    margin-top: 12px;
    border-radius: 16px;
    object-fit: cover;
}

.risk-analysis-risk-card {
    display: grid;
    gap: 10px;
    min-width: min(100%, 320px);
    padding: 14px;
    border: 1px solid rgba(92, 73, 196, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.risk-analysis-risk-head,
.risk-analysis-risk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.risk-severity-low {
    background: rgba(53, 166, 94, 0.12);
    color: var(--seguria-success);
}

.risk-severity-medium {
    background: rgba(92, 73, 196, 0.12);
    color: var(--seguria-primary);
}

.risk-severity-high {
    background: rgba(180, 35, 24, 0.12);
    color: var(--danger);
}

.btn-sm {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
}

.public-certificate-page {
    min-height: 100vh;
    padding: 36px 18px 48px;
}

.certificate-badge.is-expired {
    background: #ffe3e0;
    color: var(--danger);
}

@media (max-width: 959px) {
    .certificate-brand,
    .certificate-footer {
        align-items: start;
        flex-direction: column;
    }

    .certificate-surface {
        padding: 24px 20px;
    }

    .certificate-copy p {
        font-size: 16px;
    }

    .pause-grid,
    .risk-analysis-grid,
    .pause-layout {
        grid-template-columns: 1fr;
    }

    .risk-analysis-upload-grid {
        grid-template-columns: 1fr;
    }

    .push-panel-copy {
        flex-direction: column;
    }

    .pause-card,
    .pause-history-item,
    .risk-analysis-history-item,
    .pause-feature-card,
    .pause-reminder-strip {
        flex-direction: column;
    }

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

    .pause-feature-main {
        padding-right: 0;
        padding-bottom: 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(21, 24, 95, 0.08);
    }

    .pause-video-card {
        min-height: 220px;
    }

    .pause-video-overlay {
        right: 18px;
    }

    .pause-video-overlay strong,
    .pause-video-overlay span {
        font-size: 20px;
    }

    .pause-reminder-strip {
        align-items: stretch;
        padding: 18px 20px;
    }

    .pause-reminder-button {
        width: 100%;
    }
}

@media print {
    .no-print,
    .desktop-sidebar,
    .mobile-nav {
        display: none !important;
    }

    .app-shell,
    .app-content,
    .app-main,
    .certificate-page {
        display: block !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .certificate-card {
        box-shadow: none;
        border-color: rgba(21, 24, 95, 0.12);
    }

    .certificate-surface {
        padding: 24px;
    }
}
