:root {
    --app-bg: #f4f7fb;
    --app-bg-start: #f7f9fc;
    --app-bg-end: #eef3f8;
    --app-sidebar: #152238;
    --app-sidebar-accent: #1f3352;
    --app-navbar: #0d1b2a;
    --app-border: #d7e0ea;
    --app-text-soft: #6b778c;
    --app-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}



html {
    scrollbar-gutter: stable;
}

body.app-shell {
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, var(--app-bg-start) 0%, var(--app-bg-end) 100%);
    font-family: var(--app-font-family);
    min-height: 100vh;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.app-navbar {
    background: linear-gradient(135deg, var(--app-navbar), #213b60);
}

.app-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
}

.app-brand-logo {
    border-radius: 0.35rem;
    height: 1.8rem;
    object-fit: contain;
    width: 1.8rem;
}

.site-config-logo-preview {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    height: 4rem;
    object-fit: contain;
    padding: 0.35rem;
    width: 4rem;
}

.topbar-app-link,
.topbar-app-dropdown {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    font-weight: 600;
    min-height: 2.1rem;
    padding: 0.25rem 0.7rem;
    text-decoration: none;
}

.topbar-app-nav {
    flex-wrap: wrap;
}

.topbar-app-dropdown {
    box-shadow: none !important;
}

.topbar-app-dropdown.btn {
    color: rgba(255, 255, 255, 0.92);
}

.topbar-app-dropdown:focus,
.topbar-app-dropdown:active {
    box-shadow: none !important;
}

.topbar-app-link.active,
.topbar-app-dropdown.active {
    background: rgba(9, 19, 34, 0.92);
    border-color: rgba(255, 255, 255, 0.52);
    color: #fff;
}

.topbar-app-link:hover,
.topbar-app-dropdown:hover {
    background: rgba(14, 30, 52, 0.88);
    border-color: rgba(255, 255, 255, 0.46);
    color: #fff;
    text-decoration: none;
}

.topbar-app-menu {
    border-radius: 0.85rem;
    min-width: 14rem;
}

.topbar-app-menu .dropdown-item {
    color: #14253c;
    font-weight: 600;
}

.topbar-app-menu .dropdown-item:hover,
.topbar-app-menu .dropdown-item:focus {
    background: #16345a;
    color: #ffffff;
}

.topbar-app-menu .dropdown-item.active,
.topbar-app-menu .dropdown-item:active {
    background: #0d223b;
    color: #ffffff;
}

@media (min-width: 992px) {
    .topbar-hover-dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.app-sidebar {
    background: linear-gradient(180deg, var(--app-sidebar) 0%, var(--app-sidebar-accent) 100%);
    min-height: calc(100vh - 56px);
    color: #fff;
}

.sidebar-sticky {
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    position: sticky;
    top: 1rem;
    padding: 1.5rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.38) transparent;
}

.sidebar-sticky::-webkit-scrollbar {
    width: 0.45rem;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.34);
    border-radius: 999px;
}

.sidebar-mobile-head {
    padding: 0.8rem 1rem;
}

.sidebar-mobile-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.9rem;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    gap: 0.7rem;
    justify-content: center;
    padding: 0.75rem 0.9rem;
    width: 100%;
}

.sidebar-mobile-toggle-icon,
.sidebar-mobile-toggle-icon::before,
.sidebar-mobile-toggle-icon::after {
    background: currentColor;
    border-radius: 999px;
    display: inline-block;
    height: 2px;
    width: 1.1rem;
}

.sidebar-mobile-toggle-icon {
    position: relative;
}

.sidebar-mobile-toggle-icon::before,
.sidebar-mobile-toggle-icon::after {
    content: "";
    left: 0;
    position: absolute;
}

.sidebar-mobile-toggle-icon::before {
    top: -0.38rem;
}

.sidebar-mobile-toggle-icon::after {
    top: 0.38rem;
}

.sidebar-section {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.sidebar-link {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    margin-bottom: 0.35rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-edit-link {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    height: 2.45rem;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 2.45rem;
}

.sidebar-edit-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.sidebar-edit-flyout {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    gap: 0.6rem;
    height: 2.7rem;
    margin-top: 0.2rem;
    max-width: 2.7rem;
    overflow: hidden;
    padding: 0 0.8rem;
    text-decoration: none;
    transition: max-width 0.22s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.sidebar-edit-flyout:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    max-width: 12rem;
}

.sidebar-edit-flyout-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    height: 1.1rem;
    justify-content: center;
    width: 1.1rem;
}

.sidebar-edit-flyout-label {
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.16s ease;
}

.sidebar-edit-flyout:hover .sidebar-edit-flyout-label,
.sidebar-edit-flyout:focus-visible .sidebar-edit-flyout-label {
    opacity: 1;
}

.app-user-link {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
}

.profile-avatar {
    --avatar-scale: 1;
    --avatar-offset-x: 0px;
    --avatar-offset-y: 0px;
    align-items: center;
    background: linear-gradient(135deg, #dcecff 0%, #b8d2f2 100%);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-avatar img {
    height: 100%;
    object-fit: cover;
    transform: translate(var(--avatar-offset-x), var(--avatar-offset-y)) scale(var(--avatar-scale));
    transform-origin: center center;
    width: 100%;
}

.profile-avatar-fallback {
    align-items: center;
    color: #1d3656;
    display: inline-flex;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.profile-avatar-nav {
    border: 2px solid rgba(255, 255, 255, 0.22);
    height: 2.35rem;
    width: 2.35rem;
}

.profile-avatar-nav .profile-avatar-fallback {
    font-size: 0.9rem;
}

.app-content {
    padding: 2rem 1.5rem 2.5rem;
}

.login-shell {
    align-items: flex-start;
    min-height: calc(100vh - 56px);
    padding-top: clamp(1rem, 3vh, 2rem);
}

.landing-page .app-content {
    padding: 0;
}

.landing-page .app-navbar {
    background: #f8fbff;
    border-bottom: 1px solid #dbe5f2;
}

.landing-page .app-navbar .navbar-brand,
.landing-page .app-navbar .nav-link {
    color: #10233f !important;
}

.landing-page .app-navbar .container-fluid {
    max-width: 1280px;
    padding-inline: 2rem;
}

.landing-page .app-brand {
    align-items: center;
    display: inline-flex;
    font-size: 0;
    font-weight: 800;
    gap: 0.55rem;
    letter-spacing: 0;
}

.landing-page .app-brand-logo {
    background: #0f2340;
    border-radius: 0.45rem;
    height: 2.05rem;
    padding: 0.15rem;
    width: 2.05rem;
}

.landing-page .app-brand span {
    color: #0f2340;
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
}

.landing-page .app-brand span::after {
    color: #2d6cdf;
    content: " CLOUD";
    font-size: 0.56em;
    font-weight: 700;
    letter-spacing: 0;
}

.flowza-top-menu .nav-link {
    color: #2c3e58 !important;
    font-size: 0.9rem;
    font-weight: 700;
    padding-inline: 0.65rem !important;
}

.flowza-top-menu .nav-link:hover {
    color: #1f6fff !important;
}

.flowza-top-menu .has-chevron span {
    font-size: 0.66rem;
    margin-left: 0.18rem;
    position: relative;
    top: -1px;
}

.flowza-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.flowza-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.landing-page .navbar-nav.ms-auto .btn {
    border-radius: 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 2.35rem;
    min-width: 7.4rem;
}

.landing-page .app-navbar .navbar-toggler {
    border-color: #c9d8ea;
}

.landing-page .app-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.flowza-hero {
    align-items: center;
    display: grid;
    gap: 2.35rem;
    grid-template-columns: minmax(0, 1fr) minmax(23rem, 1fr);
    min-height: auto;
    margin: 0 auto;
    max-width: 1280px;
    padding: clamp(1.4rem, 4.5vw, 3.4rem) clamp(1rem, 5vw, 4rem);
}

.flowza-hero-copy h1 {
    color: #0e2241;
    font-size: clamp(1.7rem, 3.25vw, 3.2rem);
    font-weight: 800;
    line-height: 1.07;
    margin-bottom: 0.85rem;
    max-width: 30rem;
}

.flowza-hero-copy .flowza-line {
    color: #0e2241;
    display: block;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .flowza-hero-copy h1 {
        max-width: 23rem;
    }
}

@media (max-width: 767.98px) {
    .flowza-hero {
        gap: 1rem;
    }

    .flowza-hero-mockup {
        display: none !important;
    }

    .flowza-hero-copy h1 {
        font-size: clamp(2rem, 12vw, 2.9rem);
        line-height: 1.06;
        margin-bottom: 0.75rem;
        max-width: none;
    }

    .flowza-hero-copy .flowza-line {
        white-space: normal;
    }

    .flowza-hero-copy p {
        font-size: 0.98rem;
    }

    .landing-flow-steps {
        gap: 0.9rem;
        grid-template-columns: 1fr;
        max-width: 23rem;
        width: 100%;
    }

    .landing-flow-steps div {
        border: 1px solid #dfe7f3;
        border-radius: 0.85rem;
        padding: 0.9rem 0.8rem;
    }

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

.flowza-hero-copy h1 .flowza-highlight {
    color: #1f6fff;
    display: inline-block;
    font-size: 1.08em;
    font-weight: 800;
    letter-spacing: -0.01em;
    position: relative;
    text-decoration: none;
}

.flowza-hero-copy h1 .flowza-highlight::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 26'%3E%3Cpath d='M6 18c40 4 74-4 112-5 28-1 52 4 78 5 40 1 74-5 118-3' fill='none' stroke='%232d6cdf' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
    content: "";
    height: 0.62rem;
    left: 2%;
    position: absolute;
    right: 2%;
    top: 92%;
}

.flowza-chip {
    background: #e9f1ff;
    border-radius: 999px;
    color: #2357b8;
    display: inline-flex;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
    padding: 0.45rem 0.8rem;
}

.flowza-icon-chip {
    color: #3a77e8;
    height: 0.9rem;
    width: 0.9rem;
}

.flowza-hero-copy p {
    color: #4b5f7a;
    font-size: 0.98rem;
    line-height: 1.52;
    max-width: 30rem;
}

.flowza-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.05rem;
}

.flowza-hero-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    justify-content: center;
    min-height: 3.05rem;
    min-width: 10.2rem;
}

.flowza-icon-arrow,
.flowza-icon-play {
    height: 0.95rem;
    width: 0.95rem;
}

.flowza-hero-points {
    color: #324b6a;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 1rem;
    margin-top: 0.82rem;
}

.flowza-hero-points span {
    align-items: center;
    display: inline-flex;
    gap: 0.42rem;
}

.flowza-hero-points span::before {
    content: none;
}

.flowza-hero-points i {
    color: #2d6cdf;
    height: 1rem;
    font-style: normal;
    width: 1rem;
}

.flowza-hero-mockup {
    background: #ffffff;
    border: 1px solid #dce6f3;
    border-radius: 1.15rem;
    box-shadow: 0 34px 65px rgba(22, 45, 79, 0.15);
    overflow: hidden;
    padding: 0;
}

.flowza-mockup-shell {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    min-height: 33.8rem;
}

.flowza-mockup-side {
    background: #fff;
    border-right: 1px solid #e1e9f4;
    display: flex;
    flex-direction: column;
    padding: 0.9rem 0.75rem;
}

.flowza-mockup-brand {
    align-items: center;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 0.42rem;
    margin-bottom: 0.8rem;
}

.flowza-mockup-brand img {
    background: #0f2340;
    border-radius: 0.45rem;
    height: 1.75rem;
    padding: 0.15rem;
    width: 1.75rem;
}

.flowza-mockup-brand em {
    color: #2d6cdf;
    font-style: normal;
}

.flowza-mockup-menu {
    display: grid;
    gap: 0.3rem;
}

.flowza-mockup-menu a {
    align-items: center;
    border-radius: 0.55rem;
    color: #20395b;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.45rem;
    padding: 0.42rem 0.5rem;
    text-decoration: none;
}

.flowza-mockup-menu a.is-active {
    background: #edf3ff;
}

.flowza-side-icon {
    color: #6f8199;
    display: inline-flex;
    height: 0.82rem;
    width: 0.82rem;
}

.flowza-side-icon svg {
    height: 100%;
    width: 100%;
}

.flowza-mockup-plan {
    background: #f8fbff;
    border: 1px solid #dde8f5;
    border-radius: 0.65rem;
    margin-top: auto;
    padding: 0.55rem 0.6rem;
}

.flowza-mockup-plan small {
    color: #6a7f98;
    display: block;
    font-size: 0.68rem;
}

.flowza-mockup-plan strong {
    color: #142b48;
    display: block;
    font-size: 0.96rem;
    margin-top: 0.25rem;
}

.flowza-mockup-plan span {
    color: #2d6cdf;
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.flowza-mockup-main {
    padding: 1rem;
}

.flowza-mockup-top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.95rem;
}

.flowza-mockup-top strong {
    color: #0f223f;
    display: block;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.18rem;
}

.flowza-mockup-top small {
    color: #596f8a;
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
}

.flowza-mockup-top span {
    color: #495f7a;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.flowza-metric-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flowza-metric-grid article {
    background: #fff;
    border: 1px solid #dce7f4;
    border-radius: 0.85rem;
    min-height: 5.5rem;
    padding: 0.75rem 0.8rem;
}

.flowza-metric-grid article:nth-child(1) { border-left: 4px solid #4fd1a5; }
.flowza-metric-grid article:nth-child(2) { border-left: 4px solid #f9c74f; }
.flowza-metric-grid article:nth-child(3) { border-left: 4px solid #79dc87; }
.flowza-metric-grid article:nth-child(4) { border-left: 4px solid #8a7cf7; }

.flowza-metric-icon {
    align-items: center;
    border-radius: 0.55rem;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    height: 1.8rem;
    justify-content: center;
    margin-bottom: 0.45rem;
    width: 1.8rem;
}

.flowza-metric-icon svg {
    height: 1.02rem;
    width: 1.02rem;
}

.flowza-metric-icon.is-green {
    background: #dff8ed;
    color: #26a873;
}

.flowza-metric-icon.is-yellow {
    background: #fff5d9;
    color: #f0a01a;
}

.flowza-metric-icon.is-mint {
    background: #e7fbe7;
    color: #29a54f;
}

.flowza-metric-icon.is-purple {
    background: #f2e9ff;
    color: #8556e6;
}

.flowza-metric-grid strong {
    color: #0f2341;
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
}

.flowza-metric-grid span {
    color: #5a6f8a;
    font-size: 0.76rem;
}

.flowza-mockup-bottom {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1.1fr 0.9fr;
    margin-top: 0.6rem;
}

.flowza-mockup-list {
    border: 1px solid #dfe9f4;
    border-radius: 0.8rem;
    padding: 0.7rem 0.75rem;
}

.flowza-mockup-list p {
    color: #142947;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.flowza-mockup-list ul {
    color: #405976;
    margin: 0;
    padding-left: 1rem;
}

.flowza-mockup-list li {
    display: flex;
    font-size: 0.78rem;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.flowza-mockup-list em {
    color: #d14141;
    font-style: normal;
    font-weight: 700;
}

.flowza-chart-ring {
    background: conic-gradient(#2d6cdf 0 33%, #33cc8c 33% 58%, #ff9f43 58% 79%, #8f7cff 79% 100%);
    border-radius: 999px;
    height: 5.2rem;
    margin: 0.2rem auto 0.55rem;
    padding: 0.62rem;
    width: 5.2rem;
}

.flowza-chart-ring span {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #213b5a;
    display: flex;
    font-size: 0.8rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    line-height: 1.05;
    text-align: center;
    width: 100%;
}

.flowza-sales-strip {
    align-items: center;
    background: #edf3fd;
    border: 1px solid #d8e6f8;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1.1rem 1.2rem;
}

.flowza-sales-strip span {
    color: #213a59;
    font-size: 1.05rem;
    font-weight: 600;
}

.flowza-mockup-list em {
    color: #d14141;
    font-style: normal;
    font-weight: 700;
}

.landing-nav-actions {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    position: fixed;
    right: 1rem;
    top: 0.7rem;
    z-index: 1040;
}

.landing-login-btn,
.landing-create-btn {
    border-radius: 999px;
    font-weight: 700;
    min-height: 2.35rem;
    padding-inline: 1rem;
}

.landing-login-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.landing-login-btn:hover,
.landing-login-btn:focus {
    background: #fff;
    border-color: #fff;
    color: #13233a;
}

.landing-login-modal .modal-dialog {
    max-width: 29rem;
}

.landing-register-modal .modal-dialog {
    max-width: 42rem;
}

.landing-login-modal .modal-content {
    background: transparent;
    border-radius: 1.35rem;
}

.landing-login-card {
    background:
        radial-gradient(circle at top left, rgba(45, 108, 223, 0.16), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(215, 224, 234, 0.95);
    border-radius: 1.35rem;
    box-shadow: 0 32px 70px rgba(13, 27, 42, 0.28);
    overflow: hidden;
    padding: 1.45rem;
    position: relative;
}

.landing-login-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.landing-login-head {
    align-items: center;
    display: flex;
    gap: 0.95rem;
    margin-bottom: 1.35rem;
    padding-right: 2rem;
}

.landing-login-head img {
    background: #13233a;
    border-radius: 1rem;
    height: 3.2rem;
    padding: 0.35rem;
    width: 3.2rem;
}

.landing-login-head p {
    color: #5b6b80;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-login-head h2 {
    color: #101c2e;
    font-weight: 800;
}

.landing-login-form .form-label {
    color: #263b56;
    font-weight: 700;
}

.landing-login-form .form-control {
    background: #fff;
    border-color: #ccd9ea;
    min-height: 3.15rem;
}

.landing-register-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-register-form .form-control,
.landing-register-form .form-select {
    min-height: 2.85rem;
}

.landing-login-form .form-control:focus {
    border-color: #2d6cdf;
    box-shadow: 0 0 0 0.2rem rgba(45, 108, 223, 0.16);
}

.landing-hero {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    min-height: calc(100vh - 56px);
    padding: clamp(2rem, 6vw, 5rem);
}

.landing-hero-main {
    max-width: 54rem;
}

.landing-brand-mark {
    align-items: center;
    color: #1b304c;
    display: inline-flex;
    font-weight: 800;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
}

.landing-brand-mark img {
    border-radius: 0.8rem;
    height: 3rem;
    width: 3rem;
}

.landing-hero h1 {
    color: #101c2e;
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.02;
    margin-bottom: 1.2rem;
    max-width: 58rem;
}

.landing-hero p {
    color: #4c5d73;
    font-size: 1.18rem;
    line-height: 1.65;
    max-width: 44rem;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.landing-hero-panel {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(16, 28, 46, 0.14);
    padding: 1.2rem;
}

.landing-panel-top {
    align-items: center;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.landing-panel-top span,
.landing-metric-grid span {
    color: var(--app-text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.landing-metric-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.landing-metric-grid div {
    background: #f5f8fc;
    border: 1px solid #dfe7f1;
    border-radius: 0.85rem;
    padding: 1rem;
}

.landing-metric-grid strong {
    color: #182940;
    display: block;
    font-size: 1.05rem;
    margin-top: 0.3rem;
}

.landing-section {
    background: #ffffff;
    margin: 0 auto;
    max-width: 1280px;
    padding: clamp(2.1rem, 5vw, 4.15rem) clamp(1rem, 6vw, 5rem);
}

#precios {
    background: linear-gradient(180deg, #f7faff 0%, #f3f7fd 100%);
    border-radius: 0.4rem;
}

.flowza-features-wrap {
    border-top: 1px solid #e0e8f3;
}

.flowza-pricing-wrap {
    margin-top: 0.4rem;
}

.flowza-steps-wrap {
    border-top: 1px solid #e0e8f3;
}

.landing-section-head,
.landing-flow {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.landing-section h2,
.landing-flow h2 {
    color: #13233a;
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    font-weight: 800;
    margin: 0;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    box-shadow: 0 12px 28px rgba(16, 28, 46, 0.06);
    padding: 1.05rem;
}

.landing-feature-card h3,
.landing-feature-card p {
    overflow-wrap: anywhere;
}

.icon-box {
    align-items: center;
    border-radius: 0.8rem;
    display: inline-flex;
    font-weight: 800;
    height: 3rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 3rem;
}

.landing-plan-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.8rem;
}

.landing-plan-card {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    box-shadow: 0 16px 40px rgba(16, 28, 46, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    min-height: 28.8rem;
    padding: 1.2rem;
}

.landing-plan-featured {
    border-color: #2d6cdf;
    box-shadow: 0 20px 48px rgba(45, 108, 223, 0.16);
    position: relative;
}

.landing-plan-badge {
    background: #2d6cdf;
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    left: 50%;
    padding: 0.35rem 0.8rem;
    position: absolute;
    top: -0.75rem;
    transform: translateX(-50%);
}

.landing-plan-head {
    align-items: flex-start;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
}

.landing-plan-head h3 {
    color: #13233a;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}

.landing-plan-head span,
.landing-plan-note {
    background: #edf4fc;
    border-radius: 999px;
    color: #315172;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
}

.landing-plan-card p {
    color: #58687d;
    margin: 0;
}

.landing-plan-price {
    color: #12243b;
    font-size: 1.6rem;
    font-weight: 800;
}

.landing-plan-price span {
    color: var(--app-text-soft);
    font-size: 0.95rem;
}

.landing-plan-card ul {
    color: #32455f;
    flex: 1;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.landing-plan-card li {
    margin-bottom: 0.48rem;
    padding-left: 1.25rem;
    position: relative;
}

.landing-plan-card li::before {
    color: #203d66;
    content: "✓";
    font-size: 0.9rem;
    font-weight: 800;
    left: 0;
    position: absolute;
    top: 0.08rem;
}

.landing-flow {
    align-items: flex-start;
    background: #fff;
    border-top: 1px solid var(--app-border);
    display: block;
    padding-top: 4.2rem;
    padding-bottom: 4.4rem;
    text-align: center;
}

.landing-flow-steps {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.65rem auto 0;
    max-width: 70rem;
    position: relative;
}

.landing-flow-steps div {
    border-radius: 0.9rem;
    padding: 0.9rem 0.8rem;
    position: relative;
}

.flowza-step-orb {
    align-items: center;
    background: #eaf2ff;
    border-radius: 999px;
    display: inline-flex;
    height: 4.6rem;
    justify-content: center;
    margin-bottom: 0.9rem;
    position: relative;
    width: 4.6rem;
}

.flowza-step-num {
    align-items: center;
    background: #2d6cdf;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(45, 108, 223, 0.16);
    color: #fff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    height: 2.1rem;
    justify-content: center;
    left: -0.45rem;
    position: absolute;
    top: -0.38rem;
    width: 2.1rem;
}

.flowza-step-icon {
    color: #2d6cdf;
    display: inline-flex;
    height: 1.95rem;
    width: 1.95rem;
}

.flowza-step-icon svg {
    height: 100%;
    width: 100%;
}

.landing-flow-steps h3 {
    color: #13233a;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.45rem;
}

.landing-flow-steps span {
    color: #43566f;
    display: block;
}

.landing-flow-steps div:not(:last-child)::after {
    background: repeating-linear-gradient(90deg, #c7daf9 0 6px, transparent 6px 14px);
    content: "";
    height: 3px;
    position: absolute;
    right: -17%;
    top: 2.35rem;
    width: 34%;
}

.register-plan-strip {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.register-plan-pill {
    background: #f5f8fc;
    border: 1px solid var(--app-border);
    border-radius: 0.85rem;
    color: #263b56;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
}

.register-plan-pill.active {
    background: #13233a;
    border-color: #13233a;
    color: #fff;
}

.register-plan-pill strong,
.register-plan-pill span {
    display: block;
}

.register-plan-pill span {
    font-size: 0.76rem;
    margin-top: 0.15rem;
}

.app-shell.chat-page .app-content {
    padding-bottom: 1rem;
}

.dashboard-card {
    border-left: 4px solid #2d6cdf;
}

.detail-grid dt {
    color: var(--app-text-soft);
}

.detail-pre {
    background: #0f172a;
    border-radius: 0.75rem;
    color: #e2e8f0;
    padding: 1rem;
    white-space: pre-wrap;
}

.copyable-value {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    max-width: 100%;
    min-width: 0;
}

.copyable-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.copy-inline-btn {
    align-items: center;
    background: #eef4fb;
    border: 1px solid #cdd9e8;
    border-radius: 999px;
    color: #315172;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.85rem;
    justify-content: center;
    padding: 0;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    width: 1.85rem;
}

.copy-inline-btn:hover,
.copy-inline-btn:focus-visible {
    background: #dce9f7;
    border-color: #9fb6d2;
    color: #183452;
}

.copy-inline-btn svg {
    height: 0.95rem;
    width: 0.95rem;
}

.copy-toast {
    background: rgba(15, 23, 42, 0.94);
    border-radius: 999px;
    bottom: 1.2rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    left: 50%;
    opacity: 0;
    padding: 0.6rem 0.9rem;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 0.5rem);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 1600;
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.wiki-content p:last-child {
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    border-color: var(--app-border);
}

.card {
    border-radius: 1rem;
}

.btn,
.form-control,
.form-select {
    border-radius: 0.75rem;
}

.menu-picker-grid {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.menu-picker-panel {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    overflow: hidden;
}

.menu-picker-panel-selected .menu-picker-panel-header {
    background: #447f9d;
    color: #fff;
}

.menu-picker-panel-header {
    background: #f8fbff;
    border-bottom: 1px solid var(--app-border);
    padding: 0.9rem 1rem;
}

.menu-picker-panel-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.menu-picker-panel-subtitle {
    font-size: 0.9rem;
    margin-top: 0.2rem;
    opacity: 0.9;
}

.menu-picker-panel-body {
    padding: 0.9rem 1rem 1rem;
}

.menu-picker-filter {
    margin-bottom: 0.75rem;
}

.menu-picker-list {
    min-height: 16rem;
}

.menu-picker-actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.menu-picker-action {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 1.35rem;
    height: 2.7rem;
    justify-content: center;
    padding: 0;
    width: 2.7rem;
}

.dashboard-picker-selected {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-customize-modal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

.dashboard-customize-modal .modal-body {
    max-height: min(72vh, 46rem);
    overflow-y: auto;
}

.dashboard-customize-modal .menu-picker-list {
    min-height: 14rem;
}


.profile-modal-page .app-content {
    position: relative;
}

.profile-settings-backdrop {
    background: rgba(16, 28, 46, 0.46);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1040;
}

.profile-settings-modal {
    z-index: 1050;
}

.profile-settings-dialog {
    margin: 1.2rem auto;
    max-width: min(74rem, calc(100vw - 2rem));
}

.profile-settings-content {
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 2.4rem);
    max-height: calc(100dvh - 2.4rem);
    overflow: hidden;
}

/* Flowza Pro dashboard + sidebar refresh */
.app-shell-auth .app-navbar {
    background: #f9fbff;
    border-bottom: 1px solid #e1e8f2;
    min-height: 72px;
    margin-left: 220px;
    width: calc(100% - 220px);
    z-index: 1035;
}

.app-shell-auth.nav-layout-top .app-navbar {
    margin-left: 0;
    width: 100%;
}

.app-shell-auth .app-brand {
    color: #102139;
}

.app-shell-auth .app-brand-logo {
    background: linear-gradient(180deg, #0f2a53 0%, #0a1730 100%);
    padding: 0.2rem;
}

.flowza-top-search-wrap {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e1ef;
    border-radius: 0.7rem;
    display: flex;
    gap: 0.55rem;
    max-width: 32rem;
    padding: 0.2rem 0.7rem;
    width: min(100%, 32rem);
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.topbar-auth-nav {
    gap: 0.15rem;
    margin-right: 0.8rem;
}

.topbar-auth-link {
    border: 1px solid transparent;
    border-radius: 0.6rem;
    color: #214067;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 0.45rem 0.6rem !important;
}

.topbar-auth-link:hover,
.topbar-auth-link:focus,
.topbar-auth-link.active {
    background: #edf3ff;
    border-color: #d7e4fb;
    color: #163d80;
}

.app-shell-auth.nav-layout-top .app-navbar {
    background: linear-gradient(135deg, #0c2142 0%, #142e56 100%);
    border-bottom: 1px solid #274877;
}

.app-shell-auth.nav-layout-top .topbar-auth-link {
    color: #f3f7ff;
}

.app-shell-auth.nav-layout-top .topbar-auth-tab {
    border-color: transparent;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem !important;
}

.app-shell-auth.nav-layout-top .topbar-auth-tab:hover,
.app-shell-auth.nav-layout-top .topbar-auth-tab:focus,
.app-shell-auth.nav-layout-top .topbar-auth-tab.active {
    background: rgba(13, 33, 66, 0.65);
    border-color: rgba(177, 202, 241, 0.5);
    color: #ffffff;
}

.app-shell-auth.nav-layout-top .flowza-top-icon-btn {
    background: rgba(12, 30, 59, 0.7);
    border-color: rgba(197, 214, 242, 0.75);
    color: #e9f2ff;
}

.app-shell-auth.nav-layout-top .flowza-top-icon-btn:hover {
    background: rgba(23, 50, 92, 0.92);
    border-color: #d7e6ff;
}

.app-shell-auth.nav-layout-top .flowza-top-user {
    background: rgba(10, 27, 55, 0.72);
    border-color: rgba(190, 210, 241, 0.7);
    color: #eff6ff;
    min-width: 11.5rem;
}

.app-shell-auth.nav-layout-top .flowza-top-user-text strong {
    color: #f5f9ff;
    font-size: 1rem;
    line-height: 1.05;
}

.app-shell-auth.nav-layout-top .flowza-top-user-text small {
    color: #c9daff;
}

.topbar-auth-dropdown {
    border: 1px solid #c8d6ea;
    border-radius: 0.95rem;
    min-width: 15rem;
    padding: 0.6rem;
}

.topbar-auth-dropdown .dropdown-item {
    border-radius: 0.6rem;
    color: #122746;
    font-size: 1.08rem;
    font-weight: 700;
    padding: 0.55rem 0.65rem;
}

.topbar-auth-dropdown .dropdown-item:hover,
.topbar-auth-dropdown .dropdown-item:focus,
.topbar-auth-dropdown .dropdown-item.active {
    background: #edf3ff;
    color: #163d80;
}

.flowza-top-search {
    background: transparent;
    border: 0;
    box-shadow: none !important;
    font-size: 0.95rem;
    padding-left: 0;
}

.flowza-top-search-icon,
.flowza-top-search-shortcut {
    color: #6d7f99;
    font-size: 0.85rem;
    font-weight: 600;
}

.flowza-top-search-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    height: 0.95rem;
    width: 0.95rem;
}

.flowza-top-search-shortcut {
    white-space: nowrap;
}

.flowza-global-search-results {
    background: #fff;
    border: 1px solid #d8e1ef;
    border-radius: 0.8rem;
    box-shadow: 0 12px 28px rgba(17, 30, 50, 0.12);
    left: 0;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.4rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 1100;
}

.flowza-global-search-item {
    border-radius: 0.6rem;
    color: #122746;
    display: block;
    padding: 0.45rem 0.55rem;
    text-decoration: none;
}

.flowza-global-search-item:hover {
    background: #eef4ff;
    color: #0f2f63;
}

.flowza-global-search-main {
    font-size: 0.92rem;
    font-weight: 700;
}

.flowza-global-search-meta,
.flowza-global-search-empty {
    color: #6c819f;
    font-size: 0.78rem;
}

.flowza-global-search-empty {
    padding: 0.45rem 0.5rem;
}

.flowza-top-icon-btn {
    border: 1px solid #d8e1ef;
    border-radius: 999px;
    color: #263b5b;
    font-weight: 700;
    height: 2.25rem;
    padding: 0;
    width: 2.25rem;
}

.flowza-top-icon-btn svg,
.sidebar-link-icon svg,
.dashboard-card-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.flowza-top-icon-btn svg {
    height: 1.1rem;
    width: 1.1rem;
}

.flowza-notif-btn {
    position: relative;
}

.flowza-notif-dot {
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 999px;
    height: 0.6rem;
    position: absolute;
    right: -0.08rem;
    top: -0.05rem;
    width: 0.6rem;
}

.flowza-notif-menu {
    border: 1px solid #dbe5f2;
    border-radius: 0.8rem;
    min-width: 18.5rem;
    padding: 0.3rem;
}

.flowza-notif-head {
    border-bottom: 1px solid #edf2f9;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    padding: 0.45rem 0.5rem 0.55rem;
}

.flowza-notif-head small {
    color: #6f819c;
}

.flowza-notif-item {
    border-radius: 0.55rem;
    display: block;
    margin-bottom: 0.2rem;
    padding: 0.45rem 0.55rem;
}

.flowza-notif-item span {
    color: #173156;
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
}

.flowza-notif-item small {
    color: #6d809d;
    display: block;
    font-size: 0.78rem;
}

.flowza-notif-item:hover {
    background: #eef4ff;
}

.flowza-top-user {
    align-items: center;
    border: 1px solid #d8e1ef;
    border-radius: 999px;
    color: #1a2f4d;
    display: inline-flex;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.2rem 0.4rem 0.2rem 0.2rem;
}

.flowza-top-actions {
    gap: 0.55rem !important;
}

.flowza-top-user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.flowza-top-user-text small {
    color: #6880a1;
    font-size: 0.74rem;
}

.app-shell-auth .app-sidebar {
    background: linear-gradient(180deg, #081a3b 0%, #081225 100%);
    height: 100dvh;
    left: 0;
    min-height: 100dvh;
    position: fixed;
    top: 0;
    z-index: 1040;
}

.app-shell-auth .app-sidebar.col-lg-2 {
    flex: 0 0 220px;
    max-width: 220px;
}

.app-shell-auth main.col-lg-10 {
    flex: 1 1 auto;
    margin-left: 220px;
    max-width: none;
    min-width: 0;
    width: calc(100% - 220px);
}

.app-shell-auth .app-content {
    padding: 1.25rem 1.35rem 1.8rem;
}

.app-shell-auth .container-fluid > .row {
    display: block;
}

.app-shell-auth .sidebar-link {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

.sidebar-link-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0.45rem;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    height: 1.15rem;
    justify-content: center;
    width: 1.15rem;
}

.sidebar-link-icon svg {
    height: 0.74rem;
    width: 0.74rem;
}

.sidebar-brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 800;
    gap: 0.5rem;
    margin-bottom: 0.95rem;
    text-decoration: none;
}

.sidebar-brand-top {
    margin-bottom: 0;
}

.sidebar-brand-logo {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.55rem;
    height: 1.7rem;
    padding: 0.2rem;
    width: 1.7rem;
}

.flowza-plan-cta {
    background: linear-gradient(135deg, rgba(57, 31, 166, 0.92), rgba(20, 73, 227, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.95rem;
    color: #fff;
    margin-top: 0.65rem;
    padding: 0.65rem;
}

.flowza-plan-cta-title {
    font-size: 0.84rem;
    font-weight: 700;
}

.flowza-plan-cta-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.74rem;
    margin-top: 0.35rem;
}

.sidebar-footer-links {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.flowza-top-left-spacer {
    display: none !important;
}

.app-shell-auth.nav-layout-top .flowza-top-left-spacer {
    align-items: center;
    display: flex !important;
    margin-right: 0.85rem;
}

.sidebar-footer-links .sidebar-link {
    color: rgba(255, 255, 255, 0.84);
}

.flowza-dash-head .h2 {
    color: #0e2140;
    font-weight: 800;
}

.dashboard-customize-icon-btn {
    align-items: center;
    display: inline-flex;
    height: 2.6rem;
    justify-content: center;
    width: 2.6rem;
}

.dashboard-customize-icon-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    height: 1rem;
    width: 1rem;
}

.dashboard-card {
    border: 1px solid #e1e8f2 !important;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(16, 37, 72, 0.04) !important;
}

.dashboard-card .card-body {
    position: relative;
}

.dashboard-card-icon {
    align-items: center;
    background: linear-gradient(160deg, #eff4ff 0%, #e6f0ff 100%);
    border-radius: 0.7rem;
    color: #2457c6;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    margin-bottom: 0.35rem;
    width: 2rem;
}

.dashboard-card-icon svg {
    height: 1.1rem;
    width: 1.1rem;
}

.dashboard-card-icon--habitos {
    background: linear-gradient(160deg, #e9f8ef 0%, #ddf2e5 100%);
    color: #1f9c5a;
}

.dashboard-card-icon--personales {
    background: linear-gradient(160deg, #f2ecff 0%, #ebe2ff 100%);
    color: #7a47e6;
}

.dashboard-card-icon--tareas {
    background: linear-gradient(160deg, #fff3df 0%, #ffeac9 100%);
    color: #ef9309;
}

.dashboard-card-icon--gastos {
    background: linear-gradient(160deg, #e8f8ea 0%, #d7f0dc 100%);
    color: #1f9c5a;
}

.dashboard-card-icon--clientes {
    background: linear-gradient(160deg, #e8f2ff 0%, #dceaff 100%);
    color: #2b78df;
}

.dashboard-card-icon--cuentas {
    background: linear-gradient(160deg, #e8f2ff 0%, #dceaff 100%);
    color: #2b78df;
}

.dashboard-card-icon--servicios {
    background: linear-gradient(160deg, #ffe8f2 0%, #ffd9ea 100%);
    color: #e54496;
}

.dashboard-card-icon--vencimientos {
    background: linear-gradient(160deg, #fff3df 0%, #ffeac9 100%);
    color: #ef9309;
}

.dashboard-card-icon--mensajes {
    background: linear-gradient(160deg, #f2ecff 0%, #ebe2ff 100%);
    color: #7a47e6;
}

.dashboard-widget-card {
    border: 1px solid #e1e8f2 !important;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(16, 37, 72, 0.04) !important;
}

.dashboard-widget-card .card-header {
    border-bottom: 1px solid #edf2f9;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
}

/* Dark mode */
body.app-dark {
    --app-bg-start: #0b1220;
    --app-bg-end: #121b2d;
    --app-border: #263348;
    --app-text-soft: #9eb2d1;
    color: #e4ebf7;
}

body.app-dark .app-navbar,
body.app-dark .card,
body.app-dark .dashboard-widget-card .card-header,
body.app-dark .flowza-top-search-wrap,
body.app-dark .flowza-top-user,
body.app-dark .flowza-top-icon-btn {
    background: #111a2b !important;
    border-color: #25334a !important;
    color: #e4ebf7 !important;
}

body.app-dark .app-content,
body.app-dark .table,
body.app-dark .table td,
body.app-dark .table th,
body.app-dark .text-muted,
body.app-dark p,
body.app-dark h1,
body.app-dark h2,
body.app-dark h3,
body.app-dark h4,
body.app-dark h5,
body.app-dark h6 {
    color: #dce6f6 !important;
}

body.app-dark .flowza-top-search::placeholder {
    color: #94a8c6;
}

body.app-dark .flowza-notif-menu,
body.app-dark .dropdown-menu {
    background: #111a2b;
    border-color: #27374f;
    color: #dce6f6;
}

.app-shell-auth .sidebar-sticky {
    padding: 0.85rem 0.72rem;
}

.app-shell-auth .sidebar-section {
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
    margin-top: 0.78rem !important;
}

.app-shell-auth .sidebar-link {
    border-radius: 0.62rem;
    font-size: 0.72rem;
    margin-bottom: 0.18rem;
    padding: 0.45rem 0.62rem;
}

@media (max-width: 991.98px) {
    .app-shell-auth .app-navbar {
        margin-left: 0;
        width: 100%;
    }

    .app-shell-auth .app-sidebar {
        height: auto;
        left: auto;
        min-height: 0;
        position: static;
        top: auto;
    }

    .app-shell-auth .container-fluid > .row {
        display: flex;
        flex-wrap: wrap;
    }

    .app-shell-auth main.col-lg-10 {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
    }

    .flowza-top-search-wrap {
        max-width: 100%;
        order: 2;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .topbar-auth-nav {
        margin-right: 0;
        order: 3;
        width: 100%;
    }

    .flowza-top-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.4rem !important;
    }

    .topbar-auth-link {
        padding: 0.5rem 0.65rem !important;
    }

    .app-shell-auth.nav-layout-top .topbar-auth-tab {
        font-size: 0.95rem;
    }

    .app-shell-auth.nav-layout-top .flowza-top-user {
        min-width: 0;
        width: 100%;
    }

    .flowza-global-search-results {
        max-height: 18rem;
    }

    .app-shell-auth.nav-layout-top .app-brand {
        color: #f3f8ff;
    }

    .app-shell-auth.nav-layout-top .navbar-toggler {
        border-color: rgba(197, 214, 242, 0.75);
    }

    .app-shell-auth.nav-layout-top .navbar-toggler-icon {
        filter: invert(1);
    }

    .flowza-top-actions .nav-item:nth-child(1),
    .flowza-top-actions .nav-item:nth-child(2) {
        flex: 0 0 auto;
    }

    .flowza-top-actions .nav-item:nth-child(3) {
        flex: 1 1 100%;
    }

    .flowza-top-actions .flowza-top-icon-btn {
        height: 2rem;
        width: 2rem;
    }

    .flowza-top-actions .flowza-top-icon-btn svg {
        height: 0.95rem;
        width: 0.95rem;
    }

    .flowza-top-actions .flowza-top-user-text strong {
        font-size: 0.9rem;
    }

    .flowza-top-actions .flowza-top-user-text small {
        font-size: 0.72rem;
    }

    .flowza-top-search-shortcut {
        display: none;
    }

    .flowza-plan-cta {
        display: none;
    }

    .sidebar-brand,
    .sidebar-footer-links {
        display: none;
    }

    .flowza-top-left-spacer {
        display: none !important;
    }
}

.profile-settings-header,
.profile-settings-footer {
    background: #fff;
    position: sticky;
    z-index: 2;
}

.profile-settings-header {
    top: 0;
}

.profile-settings-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.profile-settings-footer {
    border-top: 1px solid var(--app-border);
    bottom: 0;
    justify-content: flex-start;
}

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

.profile-avatar-panel {
    min-width: 0;
}

.profile-avatar-card {
    background: linear-gradient(180deg, #f9fbfe 0%, #f4f8fc 100%);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 0.95rem;
}

.profile-avatar-editor {
    border: 4px solid rgba(45, 108, 223, 0.09);
    box-shadow: inset 0 0 0 1px rgba(45, 108, 223, 0.08);
    cursor: grab;
    height: 11.5rem;
    margin: 0 auto;
    touch-action: none;
    width: 11.5rem;
}

.profile-avatar-editor:active {
    cursor: grabbing;
}

.profile-avatar-editor .profile-avatar-fallback {
    font-size: 2.6rem;
}

.profile-avatar-help {
    text-align: center;
}

.profile-main-panel {
    min-width: 0;
}

.profile-plan-card {
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(45, 108, 223, 0.12), transparent 42%),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #cfddeb;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem;
}

.profile-plan-eyebrow {
    color: #55708f;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.profile-plan-title {
    color: #13233a;
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.15;
}

.profile-plan-meta {
    color: #51657d;
    font-size: 0.92rem;
    margin-top: 0.25rem;
}

.profile-plan-status {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: right;
}

.profile-plan-badge {
    background: #13233a;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.38rem 0.72rem;
}

.profile-plan-badge-premium {
    background: #2d6cdf;
}

.profile-plan-expiry {
    color: #405671;
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-summary-card {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #cfddeb;
    border-radius: 0.95rem;
    display: grid;
    gap: 0.7rem 1rem;
    grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
    padding: 0.85rem 1rem;
}

.profile-summary-user {
    background: #d8eef6;
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
}

.profile-summary-user strong {
    color: #13324b;
}

.profile-summary-label {
    color: #35556d;
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.18rem;
    text-transform: uppercase;
}

.profile-summary-plan .profile-plan-eyebrow {
    margin-bottom: 0;
}

.profile-session-note {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    color: #405671;
    font-weight: 700;
    padding: 0.9rem 1rem;
}

.profile-usage-head {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.usage-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.usage-card {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.95rem;
    box-shadow: 0 10px 22px rgba(16, 28, 46, 0.05);
    padding: 0.95rem;
}

.usage-card-warning {
    border-color: #f3b15b;
    box-shadow: 0 12px 24px rgba(243, 177, 91, 0.12);
}

.usage-card-top {
    align-items: flex-start;
    display: flex;
    gap: 0.7rem;
    justify-content: space-between;
}

.usage-card-top span {
    color: #263b56;
    font-weight: 800;
}

.usage-card-top strong {
    color: #13233a;
    white-space: nowrap;
}

.usage-progress {
    background: #e9eef5;
    border-radius: 999px;
    height: 0.55rem;
    margin: 0.7rem 0 0.45rem;
    overflow: hidden;
}

.usage-progress span {
    background: linear-gradient(90deg, #2d6cdf, #5fc7d9);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.usage-card-warning .usage-progress span {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.usage-card-bottom {
    color: #5b6b80;
    font-size: 0.86rem;
    font-weight: 700;
}

.usage-restrictions {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 0.95rem;
    padding: 1rem;
}

.admin-usage-list {
    display: grid;
    gap: 1rem;
}

.admin-usage-card {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(16, 28, 46, 0.06);
    padding: 1rem;
}

.admin-usage-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.admin-usage-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: right;
}

.admin-usage-summary {
    align-items: center;
    color: #5b6b80;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.6rem;
    margin: 0.8rem 0;
}

.admin-usage-summary span {
    background: #f3f7fb;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

.admin-usage-grid {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.usage-card-compact {
    padding: 0.72rem;
}

.usage-card-compact .usage-card-top span,
.usage-card-compact .usage-card-top strong {
    font-size: 0.88rem;
}

.admin-stats-toolbar {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(16rem, 1fr) repeat(3, minmax(9rem, 0.45fr)) auto;
}

.admin-stats-table {
    min-width: 86rem;
}

.admin-stats-table th {
    color: #52657d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-stats-usage-pill {
    background: #eef3f8;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    min-width: 4.35rem;
    overflow: hidden;
    padding: 0.22rem 0.55rem;
    position: relative;
}

.admin-stats-usage-pill span {
    color: #13233a;
    font-size: 0.82rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.admin-stats-usage-pill i {
    background: linear-gradient(90deg, rgba(45, 108, 223, 0.32), rgba(95, 199, 217, 0.4));
    inset: 0 auto 0 0;
    position: absolute;
}

.admin-stats-usage-pill.is-full {
    background: #fff4df;
}

.admin-stats-usage-pill.is-full i {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.52), rgba(239, 68, 68, 0.52));
}

.menu-order-shell {
    border-top: 1px solid rgba(215, 224, 234, 0.7);
    padding-top: 1.5rem;
}

.dashboard-picker-order {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.workspace-header {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.workspace-header-tight {
    align-items: center;
}

.workspace-kicker {
    color: #6b778c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.workspace-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.workspace-subtitle {
    color: #5f6c80;
    font-size: 1.05rem;
    max-width: 52rem;
}

.workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.workspace-primary-action {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.55rem;
    padding-inline: 1.05rem 1.2rem;
}

.workspace-primary-action-subtle {
    padding-inline: 0.9rem 1rem;
}

.workspace-primary-action-icon {
    align-items: center;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
}

.workspace-surface {
    border-radius: 1.2rem;
}

.workspace-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.workspace-tabs {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
}

.workspace-tab {
    align-items: center;
    background: #f5f8fc;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    color: #31455f;
    display: inline-flex;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.workspace-tab:hover,
.workspace-tab.active {
    background: #13233a;
    border-color: #13233a;
    color: #fff;
}

.workspace-tab-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    height: 1.4rem;
    justify-content: center;
    min-width: 1.4rem;
    padding: 0 0.35rem;
}

.workspace-search {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: min(38rem, 100%);
}

.workspace-search-wrap {
    align-items: stretch;
    flex-direction: column;
}

.workspace-search .form-control {
    flex: 1;
    min-width: 15rem;
}

.workspace-filter-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    width: 100%;
}

.workspace-filter-field {
    min-width: 0;
}

.workspace-filter-field-lg {
    grid-column: span 2;
}

.workspace-filter-field .form-control,
.workspace-filter-field .form-select {
    width: 100%;
}

.workspace-table thead th {
    background: #fff;
    border-bottom-width: 1px;
    color: #182230;
    font-size: 0.98rem;
    font-weight: 700;
    padding-block: 1rem;
}

.workspace-table tbody td {
    padding-block: 1rem;
    vertical-align: middle;
}

.workspace-primary-cell {
    min-width: 16rem;
}

.workspace-link {
    color: #0d6efd;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.workspace-link:hover {
    text-decoration: underline;
}

.workspace-link-inline {
    font-size: 0.98rem;
}

.workspace-secondary-line {
    max-width: 22rem;
}

.workspace-inline-badge {
    background: #eef4fb;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    color: #385476;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
}

.workspace-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.workspace-row-actions-icons {
    align-items: center;
}

.workspace-detail-actions {
    justify-content: flex-start;
}

.workspace-link-sm {
    font-size: 0.96rem;
}

.workspace-search-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
}

.sidebar-link-wrap {
    align-items: center;
    display: flex;
    position: relative;
}

.sidebar-link-wrap .sidebar-link {
    flex: 1;
}

.menu-label-edit-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.75rem;
    height: 1.35rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.18s ease, transform 0.18s ease;
    width: 1.35rem;
}

.menu-edit-hover:hover .menu-label-edit-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1.02);
}

.menu-label-edit-btn-dropdown {
    background: #f4f7fb;
    border-color: #c7d3e3;
    color: #20344f;
    right: 0.35rem;
}

.menu-label-edit-btn-sidebar {
    right: 0.3rem;
}

.menu-label-edit-btn-top {
    right: -0.1rem;
}

.topbar-menu-item {
    align-items: center;
    display: flex;
    padding-right: 2rem;
    position: relative;
}

.topbar-menu-item .dropdown-item {
    flex: 1;
}

.topbar-app-nav .nav-item.menu-edit-hover {
    padding-right: 1.1rem;
    position: relative;
}

.sidebar-link-wrap .sidebar-link {
    padding-right: 2.1rem;
}

.workspace-search-grid .form-control,
.workspace-search-grid .form-select {
    min-width: 0;
    width: 100%;
}

.workspace-search-grid-personal {
    align-items: end;
    grid-template-columns: minmax(18rem, 2fr) repeat(2, minmax(11rem, 1fr)) auto;
}

.workspace-search-grid-personal > div {
    min-width: 0;
}

.workspace-search-grid .workspace-tabs,
.workspace-search-grid .workspace-search-actions {
    grid-column: 1 / -1;
}

.note-card-clickable {
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

#notes-owned-grid > [draggable="true"] {
    cursor: grab;
}

#notes-owned-grid > [draggable="true"]:active {
    cursor: grabbing;
}

.note-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.note-inline-confirm[hidden] {
    display: none !important;
}

.note-inline-confirm {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    min-width: 12rem;
    padding: 0.55rem;
    position: absolute;
    z-index: 1400;
}

.note-inline-confirm-text {
    color: #2a3d58;
    font-size: 0.84rem;
    margin-bottom: 0.45rem;
}

.note-inline-confirm-actions {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

.note-card-clickable:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12) !important;
    transform: translateY(-1px);
}

.note-card-body {
    padding-bottom: 3.3rem !important;
    position: relative;
}

.note-favorite-flag-wrap {
    position: absolute;
    right: 0.95rem;
    top: 0.9rem;
    z-index: 2;
}

.note-favorite-flag {
    align-items: center;
    background: rgba(255, 196, 0, 0.18);
    border: 1px solid rgba(255, 196, 0, 0.45);
    border-radius: 0.6rem;
    color: #d29b00;
    cursor: pointer;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    width: 2rem;
}

.note-card-clickable:hover .note-favorite-flag,
.note-favorite-flag:focus-visible,
.note-favorite-flag.is-active {
    opacity: 1;
}

.note-favorite-flag:hover {
    background: rgba(255, 196, 0, 0.28);
}

.note-favorite-flag.is-active {
    background: rgba(220, 53, 69, 0.18);
    border-color: rgba(220, 53, 69, 0.55);
    color: #dc3545;
}

.note-favorite-flag svg {
    height: 1rem;
    width: 1rem;
}

.note-favorite-hint {
    background: rgba(15, 23, 42, 0.92);
    border-radius: 0.45rem;
    color: #fff;
    font-size: 0.72rem;
    left: -0.2rem;
    line-height: 1.2;
    max-width: 13rem;
    opacity: 0;
    padding: 0.35rem 0.45rem;
    pointer-events: none;
    position: absolute;
    top: 2.2rem;
    transform: translateY(-2px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 5;
}

.note-favorite-hint.show {
    opacity: 1;
    transform: translateY(0);
}

.notes-page .app-content {
    padding-top: 0.75rem;
}

.notes-fab-create {
    align-items: center;
    background: #0d6efd;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    bottom: 1.35rem;
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.34);
    color: #fff;
    display: inline-flex;
    font-size: 1.9rem;
    font-weight: 500;
    height: 3.25rem;
    justify-content: center;
    line-height: 1;
    position: fixed;
    right: 1.35rem;
    text-decoration: none;
    width: 3.25rem;
    z-index: 1040;
}

.notes-fab-create-icon {
    align-items: center;
    display: inline-flex;
    height: 1.2rem;
    justify-content: center;
    width: 1.2rem;
}

.notes-fab-create-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.notes-fab-create-professional {
    background: linear-gradient(180deg, #2d74ff 0%, #165dff 100%);
    border-color: rgba(18, 69, 197, 0.34);
    box-shadow: 0 18px 34px rgba(23, 93, 255, 0.24);
    font-size: 0;
    height: 3.6rem;
    right: 1.55rem;
    width: 3.6rem;
}

.notes-fab-create:hover {
    background: #0b5ed7;
    color: #fff;
    text-decoration: none;
}

.notes-fab-create-professional:hover {
    background: linear-gradient(180deg, #256cff 0%, #0f54f0 100%);
    box-shadow: 0 20px 38px rgba(23, 93, 255, 0.28);
    transform: translateY(-1px);
}

.notes-toolbar-compact {
    display: flex;
    gap: 0.45rem;
    justify-content: flex-end;
}

.notes-toolbar-shell {
    margin-top: 0.05rem;
}

.notes-topline {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    justify-content: space-between;
    margin-bottom: 0.15rem;
}

.notes-topline-right {
    align-items: center;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    min-width: 0;
    position: relative;
}

.notes-toolbar-btn {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.7rem;
    color: #415a77;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    position: relative;
    transition: all 0.15s ease;
    width: 2rem;
}

.notes-toolbar-btn svg {
    height: 0.95rem;
    width: 0.95rem;
}

.notes-toolbar-badge {
    background: #dc3545;
    border-radius: 999px;
    color: #fff;
    font-size: 0.63rem;
    font-weight: 700;
    line-height: 1;
    min-width: 1rem;
    padding: 0.14rem 0.2rem;
    position: absolute;
    right: -0.25rem;
    top: -0.3rem;
    text-align: center;
}

.notes-state-active:hover,
.notes-state-active.is-current {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.notes-state-archived:hover,
.notes-state-archived.is-current {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.notes-filter-btn:hover {
    background: #f0b400;
    border-color: #f0b400;
    color: #1f2a3a;
}

.notes-filter-panel[hidden] {
    display: none !important;
}

.notes-filter-panel {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(11rem, 1.6fr) minmax(6.6rem, max-content) auto;
    gap: 0.45rem;
    margin-bottom: 0;
    min-width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: calc(100% + 0.55rem);
    top: 0;
    transition: max-width 0.22s ease, opacity 0.2s ease;
    width: min(34rem, 55vw);
    z-index: 5;
}

.notes-filter-panel.is-open {
    max-width: min(34rem, 55vw);
    opacity: 1;
    pointer-events: auto;
}

.notes-filter-panel.workspace-search {
    min-width: 0;
}

.personal-filter-panel {
    align-items: center;
    display: inline-grid;
    gap: 0.45rem;
    grid-template-columns: minmax(18rem, 32rem);
    margin-left: auto;
    order: 2;
    position: static;
    width: min(32rem, 100%);
}

.personal-filter-panel.is-open {
    max-width: min(32rem, 100%);
    width: min(32rem, 100%);
}

.personal-filter-search-field {
    position: relative;
}

.personal-filter-search-field .form-control {
    padding-right: 2.8rem;
}

.personal-filter-clear-btn {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #7a8ba3;
    display: inline-flex;
    height: 1.9rem;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.9rem;
}

.personal-filter-clear-btn:hover {
    background: rgba(31, 51, 82, 0.08);
    color: #314766;
}

.personal-filter-clear-btn svg {
    display: block;
    height: 0.9rem;
    width: 0.9rem;
}

.personal-toolbar-actions {
    order: 1;
}

.personal-shell {
    display: grid;
    gap: 1.15rem;
}

.personal-page-head {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.personal-page-head-copy {
    display: grid;
    gap: 0.4rem;
}

.personal-page-kicker {
    color: #3a6fd8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.personal-page-title {
    color: #172033;
    font-size: clamp(2rem, 2.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.04;
}

.personal-page-subtitle {
    color: #667790;
    font-size: 1rem;
    max-width: 48rem;
}

.personal-summary-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
}

.personal-summary-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.92) 100%);
    border: 1px solid rgba(208, 219, 235, 0.9);
    border-radius: 1.1rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    padding: 0.9rem 0.95rem 0.85rem;
    position: relative;
    text-decoration: none;
}

.personal-summary-card.is-mobile-active {
    border-color: rgba(61, 113, 255, 0.42);
    box-shadow: 0 16px 28px rgba(39, 92, 241, 0.12);
}

.personal-summary-card::before {
    border-radius: 999px;
    content: "";
    height: 2.45rem;
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    width: 2.45rem;
}

.personal-summary-card-primary::before {
    background: radial-gradient(circle at 30% 30%, rgba(77, 127, 255, 0.4), rgba(77, 127, 255, 0.12));
}

.personal-summary-card-warning::before {
    background: radial-gradient(circle at 30% 30%, rgba(255, 183, 77, 0.45), rgba(255, 183, 77, 0.16));
}

.personal-summary-card-danger::before {
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.42), rgba(255, 107, 107, 0.14));
}

.personal-summary-card-info::before {
    background: radial-gradient(circle at 30% 30%, rgba(84, 195, 247, 0.38), rgba(84, 195, 247, 0.12));
}

.personal-summary-label {
    color: #6e7e95;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.personal-summary-value {
    color: #152032;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.personal-summary-meta {
    color: #73849b;
    font-size: 0.8rem;
}

.personal-toolbar-shell {
    margin-bottom: 0;
}

.personal-toolbar-topline {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.9rem;
}

@media (min-width: 992px) {
    .personal-services-page .app-content {
        padding-left: 0.55rem;
        padding-right: 0.45rem;
    }

    .personal-services-page .personal-shell {
        gap: 1rem;
    }

    .personal-services-page .personal-table-card {
        margin-left: -0.45rem;
        margin-right: -0.6rem;
        width: calc(100% + 1.05rem);
    }
}

@media (min-width: 1400px) {
    .personal-services-page .personal-table-card {
        margin-left: -0.55rem;
        margin-right: -0.9rem;
        width: calc(100% + 1.45rem);
    }
}

@media (min-width: 768px) {
    .personal-services-page .personal-toolbar-topline {
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.7rem;
    }

    .personal-services-page .personal-segmented-nav {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 0.45rem;
        min-width: 0;
        overflow: hidden;
    }

    .personal-services-page .personal-segment {
        flex: 0 0 auto;
        font-size: 0.94rem;
        gap: 0.42rem;
        padding: 0.52rem 0.76rem;
        white-space: nowrap;
    }

    .personal-services-page .personal-segment-count {
        font-size: 0.72rem;
        min-width: 1.3rem;
        padding: 0.1rem 0.34rem;
    }

    .personal-services-page .personal-filter-panel,
    .personal-services-page .personal-filter-panel.is-open {
        flex: 0 1 26rem;
        grid-template-columns: minmax(0, 1fr);
        margin-left: auto;
        max-width: 26rem;
        min-width: 15.5rem;
        width: min(26rem, 30vw);
    }

    .personal-services-page .personal-filter-search-field .form-control {
        font-size: 0.95rem;
        min-height: 2.45rem;
        padding-left: 0.9rem;
        padding-right: 2.55rem;
    }
}

.notes-topline-right {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
    width: auto;
}

.personal-segmented-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.personal-segment {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(202, 214, 229, 0.95);
    border-radius: 999px;
    color: #3b4f68;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.58rem 0.88rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.personal-segment:hover,
.personal-segment-active {
    background: linear-gradient(135deg, #1c5dff 0%, #4586ff 100%);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(40, 98, 255, 0.2);
    color: #fff;
}

.personal-segment-count {
    align-items: center;
    background: rgba(16, 24, 40, 0.06);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    justify-content: center;
    min-width: 1.45rem;
    padding: 0.12rem 0.38rem;
}

.personal-segment-active .personal-segment-count,
.personal-segment:hover .personal-segment-count {
    background: rgba(255, 255, 255, 0.18);
}

.personal-toolbar-actions .notes-toolbar-btn {
    height: 2.35rem;
    width: 2.35rem;
}

.personal-mobile-archive-btn {
    display: none;
}

.personal-table-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1.4rem;
    overflow: hidden;
}

.personal-table-toolbar {
    border-bottom: 1px solid rgba(217, 226, 236, 0.95);
    padding: 0.72rem 0.9rem 0.68rem;
}

.personal-table thead th {
    background: rgba(248, 250, 253, 0.94);
    border-bottom: 1px solid rgba(217, 226, 236, 0.95);
    color: #182436;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 1.05rem 1rem;
}

.personal-table tbody td {
    border-color: rgba(226, 232, 240, 0.9);
    padding: 1rem;
}

.personal-table tbody tr:hover {
    background: rgba(245, 249, 255, 0.85);
}

.personal-data-row {
    cursor: pointer;
}

.personal-service-cell {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
}

.personal-service-icon {
    align-items: center;
    background: linear-gradient(135deg, #eaf2ff 0%, #d8e8ff 100%);
    border: 1px solid #c8daf9;
    border-radius: 0.95rem;
    color: #1e5cff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.92rem;
    font-weight: 800;
    height: 2.55rem;
    justify-content: center;
    width: 2.55rem;
}

.personal-service-logo-shell {
    background: #ffffff;
    overflow: hidden;
    padding: 0.22rem;
}

.personal-service-logo {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.personal-service-copy {
    min-width: 0;
}

.personal-row-link {
    cursor: pointer;
}

.personal-soft-badge {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.32rem 0.55rem;
}

.personal-status-badge {
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.42rem 0.6rem;
}

.personal-date-primary {
    color: #152032;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.personal-quick-header {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
}

.personal-quick-header-main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.personal-quick-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.personal-icon-preview {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    display: inline-flex;
    gap: 0.75rem;
    min-height: 3rem;
    padding: 0.5rem 0.7rem;
}

.personal-icon-search-wrap {
    position: relative;
}

.personal-icon-search-results {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    left: 0;
    margin-top: 0.35rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.35rem;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
}

.personal-icon-result-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.75rem;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    padding: 0.5rem;
    text-align: left;
    width: 100%;
}

.personal-icon-result-item:hover {
    background: #f5f8fc;
}

.personal-icon-result-media {
    align-items: center;
    display: inline-flex;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.personal-icon-result-logo,
.personal-icon-result-token {
    border-radius: 0.75rem;
    height: 2.4rem;
    object-fit: contain;
    width: 2.4rem;
}

.personal-icon-result-token {
    align-items: center;
    border: 1px solid #c8daf9;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
}

.personal-icon-result-copy {
    display: grid;
    min-width: 0;
}

.personal-icon-result-copy strong {
    color: #182230;
    font-size: 0.92rem;
}

.personal-icon-result-copy small {
    color: #708197;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.personal-icon-result-empty {
    color: #708197;
    font-size: 0.9rem;
    padding: 0.7rem 0.75rem;
}

.personal-icon-preview-logo {
    border-radius: 0.8rem;
    display: block;
    height: 2.55rem;
    object-fit: contain;
    width: 2.55rem;
}

.personal-icon-preview-label {
    color: #334862;
    font-size: 0.92rem;
    font-weight: 600;
}

.gastos-filter-panel {
    grid-template-columns: minmax(14rem, 1fr) auto;
    margin-right: 0.55rem;
}

.gastos-filter-panel.is-open {
    max-width: min(30rem, 48vw);
    width: min(30rem, 48vw);
}

@media (max-width: 767.98px) {
    .personal-services-page .app-content {
        padding: 0.85rem 0.5rem 1rem !important;
    }

    .personal-services-page .personal-shell {
        gap: 0.9rem;
    }

    .personal-page-subtitle {
        display: none;
    }

    .personal-page-head-copy {
        gap: 0.2rem;
    }

    .personal-page-title {
        font-size: 1.95rem;
        line-height: 1.02;
    }

    .habits-page .habit-page-title {
        font-size: 1.52rem;
    }

    .habits-page .habit-daily-board {
        gap: 0.6rem;
        grid-template-columns: 1fr;
    }

    .habits-page .habit-daily-board .card-body {
        padding: 0.82rem !important;
    }

    .habits-page .habit-daily-title {
        font-size: 1.05rem;
    }

    .habits-page .habit-daily-name {
        font-size: 0.92rem;
    }

    .habits-page .habit-grid-habit {
        padding: 0.7rem 0.75rem;
    }

    .habits-page .habit-grid-habit-name {
        font-size: 0.94rem;
    }

    .note-share-grid {
        grid-template-columns: 1fr;
    }

    .notes-topline {
        align-items: center;
        gap: 0.5rem;
    }

    .notes-topline > .d-inline-flex {
        min-width: 0;
    }

    .notes-topline-right {
        flex: 1;
        justify-content: flex-end;
    }

    .notes-filter-panel {
        right: calc(100% + 0.4rem);
        width: min(16rem, 72vw);
    }

    .personal-page-head,
    .personal-toolbar-topline {
        align-items: stretch;
        flex-direction: column;
    }

    .personal-services-page .personal-page-head,
    .personal-services-page .personal-summary-grid,
    .personal-services-page .personal-table-card {
        width: 100%;
    }

    .personal-services-page .personal-segmented-nav {
        display: none;
    }

    .personal-services-page .personal-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .personal-services-page .personal-summary-card {
        border-radius: 1rem;
        min-height: 7rem;
        padding: 0.8rem 0.82rem 0.75rem;
    }

    .personal-summary-card::before {
        height: 2rem;
        right: 0.75rem;
        top: 0.75rem;
        width: 2rem;
    }

    .personal-services-page .personal-summary-label {
        font-size: 0.74rem;
        margin-bottom: 0.32rem;
    }

    .personal-services-page .personal-summary-value {
        font-size: 1.15rem;
        margin-bottom: 0.22rem;
    }

    .personal-services-page .personal-summary-meta {
        font-size: 0.74rem;
    }

    .personal-services-page .personal-table-toolbar {
        padding: 0.8rem 0.75rem 0.75rem;
    }

    .personal-services-page .notes-topline-right {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        margin-left: 0;
        width: 100%;
    }

    .personal-services-page .personal-mobile-archive-btn {
        align-items: center;
        align-self: flex-end;
        background: #fff;
        border: 1px solid rgba(202, 214, 229, 0.95);
        border-radius: 0.9rem;
        color: #3b4f68;
        display: inline-flex;
        flex: 0 0 auto;
        height: 2.65rem;
        justify-content: center;
        text-decoration: none;
        width: 2.65rem;
    }

    .personal-services-page .personal-mobile-archive-btn.is-active {
        background: linear-gradient(135deg, #1c5dff 0%, #4586ff 100%);
        border-color: transparent;
        box-shadow: 0 12px 28px rgba(40, 98, 255, 0.18);
        color: #fff;
    }

    .personal-services-page .personal-mobile-archive-btn svg {
        height: 1rem;
        width: 1rem;
    }

    .personal-services-page .notes-topline-right form,
    .personal-services-page .notes-topline-right .workspace-search {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
    }

    .personal-services-page .personal-toolbar-topline > * {
        width: 100%;
    }

    .personal-services-page .personal-filter-panel {
        grid-template-columns: minmax(0, 1fr);
        margin-left: 0;
        width: 100%;
    }

    .personal-services-page .personal-filter-panel.is-open {
        max-width: 100%;
        width: 100%;
    }

    .personal-services-page .personal-filter-search-field {
        display: block;
        position: static;
        width: 100%;
    }

    .personal-services-page .personal-filter-search-field .form-control {
        display: block;
        min-height: 2.65rem;
        width: 100%;
    }

    .gastos-filter-panel.is-open {
        max-width: min(15.5rem, 62vw);
        width: min(15.5rem, 62vw);
    }

    .notes-filter-panel.is-open {
        max-width: min(16rem, 72vw);
    }

    .notes-filter-panel .form-control {
        min-width: 0;
    }

    .personal-table thead th,
    .personal-table tbody td {
        padding-inline: 0.85rem;
    }

    .notes-toolbar-shell.notes-search-mode .notes-topline > .d-inline-flex,
    .notes-toolbar-shell.notes-search-mode .notes-share-btn,
    .notes-toolbar-shell.notes-search-mode .notes-state-btn {
        display: none !important;
    }

    .notes-toolbar-shell.notes-search-mode .notes-topline-right {
        width: 100%;
    }

    .notes-toolbar-shell.notes-search-mode .notes-toolbar-compact {
        margin-left: auto;
    }

    .notes-toolbar-shell.notes-search-mode .notes-filter-panel {
        left: 0;
        max-width: none;
        position: absolute;
        right: auto;
        top: 0;
        width: calc(100vw - 8.2rem);
    }

    .notes-toolbar-shell.notes-search-mode .notes-filter-panel.is-open {
        max-width: calc(100vw - 8.2rem);
    }

    .notes-toolbar-shell.notes-search-mode .notes-filter-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .notes-toolbar-shell.notes-search-mode .notes-filter-type-wrap,
    .notes-toolbar-shell.notes-search-mode .notes-filter-clear {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .personal-services-page .app-content {
        padding-inline: 0.3rem !important;
    }

    .personal-services-page .personal-summary-grid {
        gap: 0.55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .personal-services-page .personal-page-title {
        font-size: 1.8rem;
    }

    .personal-services-page .personal-page-head-copy {
        padding-inline: 0.2rem;
    }

    .personal-services-page .personal-service-cell {
        gap: 0.65rem;
    }

    .personal-services-page .personal-service-icon {
        height: 2.2rem;
        width: 2.2rem;
    }

    .personal-services-page .personal-summary-card {
        min-height: 6.35rem;
        padding: 0.72rem 0.72rem 0.68rem;
    }

    .personal-services-page .personal-summary-label {
        font-size: 0.72rem;
    }

    .personal-services-page .personal-summary-value {
        font-size: 0.98rem;
    }

    .personal-services-page .personal-summary-meta {
        font-size: 0.7rem;
    }

    .personal-services-page .personal-toolbar-topline {
        align-items: stretch;
        flex-direction: column;
        gap: 0.7rem;
    }

    .personal-services-page .personal-table-card {
        border-radius: 1rem;
    }

    .personal-services-page .notes-topline-right {
        align-items: center;
        display: flex;
        flex-direction: row;
        gap: 0.45rem;
        width: 100%;
    }

    .personal-services-page .personal-filter-panel,
    .personal-services-page .personal-filter-panel.is-open,
    .personal-services-page .personal-filter-search-field {
        display: grid;
        flex: 1 1 auto;
        width: 100%;
    }

    .personal-services-page .personal-filter-search-field .form-control {
        min-height: 2.5rem;
        width: 100%;
    }

    .personal-services-page .personal-table-toolbar {
        padding: 0.7rem 0.55rem;
    }

    .personal-services-page .personal-toolbar-actions {
        display: none;
    }

    .personal-services-page .personal-mobile-archive-btn {
        align-self: auto;
        height: 2.5rem;
        width: 2.5rem;
    }

    .personal-quick-header {
        flex-direction: column;
    }
}

.notes-filter-panel .form-control,
.notes-filter-panel .form-select {
    height: 2rem;
    padding-block: 0.3rem;
}

.notes-filter-panel .form-select {
    min-width: 6.8rem;
    width: auto;
}

#vto-toolbar-shell.vto-filter-expanded .notes-topline-right {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

#vto-toolbar-shell.vto-filter-expanded .notes-filter-panel {
    max-width: 100%;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    position: static;
    right: auto;
    top: auto;
    width: min(100%, 68rem);
}

.notes-filter-type-wrap {
    min-width: 0;
}

.notes-filter-clear {
    min-height: 2rem;
    padding-block: 0.25rem;
}

.note-hover-meta {
    align-items: center;
    bottom: 0.9rem;
    display: inline-flex;
    gap: 0.5rem;
    justify-content: space-between;
    left: 0.95rem;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: 0.95rem;
    transition: opacity 0.18s ease;
}

.note-card-clickable:hover .note-hover-meta {
    opacity: 1;
    pointer-events: auto;
}

.note-archive-btn {
    border-color: rgba(220, 53, 69, 0.35);
    color: #dc3545;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
}

.note-archive-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.note-hover-meta .icon-action-btn {
    height: 2rem;
    width: 2rem;
}

.note-delete-forever-btn {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.45);
    color: #dc3545;
}

.note-delete-forever-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.note-archived-actions {
    display: inline-flex;
    gap: 0.32rem;
    margin-left: auto;
}

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

.note-quick-modal[hidden] {
    display: none !important;
}

.note-quick-modal {
    inset: 0;
    position: fixed;
    z-index: 1200;
}

.note-quick-backdrop {
    background: rgba(15, 23, 42, 0.35);
    inset: 0;
    position: absolute;
}

.note-quick-sheet {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    left: 50%;
    max-height: min(84vh, 52rem);
    max-width: min(52rem, 92vw);
    overflow: hidden;
    position: absolute;
    top: 4rem;
    transform: translateX(-50%);
    width: min(52rem, 92vw);
}

.note-quick-sheet #note-quick-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.note-quick-header {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    padding: 0.9rem 1rem 0.4rem;
}

.note-quick-title-input {
    background: transparent;
    border: 0;
    color: #182230;
    flex: 1;
    font-size: 1.45rem;
    font-weight: 600;
    outline: none;
}

.note-quick-close-btn {
    background: transparent;
    border: 0;
    color: #5f6c80;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0 0.3rem;
}

.note-quick-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.25rem 1rem 0.45rem;
    scrollbar-gutter: stable;
}

.note-quick-toolbar {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0 1rem 0.3rem;
}

.note-quick-tool-btn {
    background: #f7f9fc;
    border: 1px solid var(--app-border);
    border-radius: 0.55rem;
    color: #334862;
    font-size: 0.82rem;
    height: 1.9rem;
    line-height: 1;
    padding: 0 0.5rem;
}

.note-quick-body-input {
    background: transparent;
    border: 0;
    color: #1f2a3a;
    min-height: 16rem;
    outline: none;
    resize: vertical;
    white-space: pre-wrap;
    width: 100%;
}

.note-quick-body::-webkit-scrollbar {
    width: 10px;
}

.note-quick-body::-webkit-scrollbar-thumb {
    background: #b9c7d8;
    border-radius: 999px;
}

.note-quick-body::-webkit-scrollbar-track {
    background: transparent;
}

.note-quick-body-input:empty::before {
    color: #8a97aa;
    content: attr(data-placeholder);
}

.note-quick-footer {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--app-border);
    display: flex;
    gap: 0.7rem;
    justify-content: space-between;
    position: sticky;
    bottom: 0;
    padding: 0.7rem 1rem 0.9rem;
    z-index: 2;
}

.note-quick-type-input {
    max-width: 10rem;
}

.note-category-inline {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
}

.note-category-chip {
    background: #edf4ff;
    border: 1px solid #c9d9ef;
    border-radius: 999px;
    color: #24466d;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 600;
    max-width: 12rem;
    overflow: hidden;
    padding: 0.33rem 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-category-edit-btn {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    color: #4d6888;
    display: inline-flex;
    height: 1.8rem;
    justify-content: center;
    width: 1.8rem;
}

.note-category-edit-btn svg {
    height: 0.85rem;
    width: 0.85rem;
}

.note-quick-type-input.is-editing {
    background: #fff;
    border: 1px solid #b8cbe4;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}

.note-quick-actions {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
}

.note-quick-meta-left {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    position: relative;
}

.note-quick-share-select {
    min-width: 9.2rem;
}

.note-quick-share-tools {
    align-items: center;
    display: inline-flex;
    gap: 0.38rem;
}

.note-quick-share-icon {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid var(--app-border);
    border-radius: 0.62rem;
    color: #324a67;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.note-quick-share-icon svg {
    height: 1rem;
    width: 1rem;
}

.note-quick-share-text {
    color: #54657d;
    font-size: 0.78rem;
    max-width: 13rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-share-modal[hidden] {
    display: none !important;
}

.note-share-modal {
    align-items: center;
    display: flex;
    justify-content: center;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    position: fixed;
    z-index: 1300;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.note-share-backdrop {
    background: rgba(15, 23, 42, 0.34);
    inset: 0;
    position: absolute;
}

.note-share-panel {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
    left: 50%;
    max-width: min(33rem, 92vw);
    padding: 0.9rem;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(33rem, 92vw);
}

.note-share-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.note-share-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-share-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.personal-share-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border-radius: 1.2rem;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
    margin: auto;
    max-height: calc(100dvh - 2rem);
    max-width: min(52rem, calc(100vw - 2rem));
    position: relative;
    padding: 0;
    width: min(52rem, calc(100vw - 2rem));
    overflow: hidden;
}

.personal-share-kicker {
    color: #6f81a0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.personal-share-title {
    color: #182230;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.personal-share-panel .note-share-head {
    border-bottom: 1px solid rgba(217, 226, 236, 0.95);
    margin-bottom: 0;
    padding: 1rem 1.05rem 0.95rem;
}

.personal-share-layout {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.05rem 1.05rem;
}

.personal-share-card,
.personal-share-current {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.96) 100%);
    border: 1px solid rgba(217, 226, 236, 0.98);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 0.95rem;
}

.personal-share-card-head,
.personal-share-current-head {
    margin-bottom: 0.75rem;
}

.personal-share-card-title {
    color: #1b2a3d;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.18rem;
}

.personal-share-card-copy {
    color: #73839b;
    font-size: 0.83rem;
    line-height: 1.4;
}

.personal-share-search-wrap {
    position: relative;
}

.personal-share-search-wrap .form-control,
.personal-share-inline-actions .form-select {
    border-radius: 0.9rem;
    min-height: 2.9rem;
}

.personal-share-compact-card {
    display: grid;
    gap: 0.78rem;
}

.personal-share-kind-toggle {
    align-items: center;
    display: inline-grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
}

.personal-share-kind-option {
    cursor: pointer;
    margin: 0;
}

.personal-share-kind-option input {
    display: none;
}

.personal-share-kind-option span {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(202, 214, 229, 0.95);
    border-radius: 999px;
    color: #455a73;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.35rem 0.8rem;
    transition: all 0.18s ease;
}

.personal-share-kind-option input:checked + span {
    background: linear-gradient(135deg, #1c5dff 0%, #4586ff 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(40, 98, 255, 0.18);
    color: #fff;
}

.personal-share-inline-actions {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 0.72rem;
}

.personal-share-inline-actions .btn {
    border-radius: 0.9rem;
    min-width: 6.7rem;
}

.personal-share-inline-actions-compact {
    margin-top: 0;
}

.personal-share-results {
    background: #fff;
    border: 1px solid rgba(205, 218, 235, 0.96);
    border-radius: 0.95rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    left: 0;
    margin-top: 0.35rem;
    max-height: 14rem;
    overflow-y: auto;
    position: absolute;
    right: 0;
    z-index: 8;
}

.personal-share-result-item {
    align-items: flex-start;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(232, 237, 244, 0.92);
    display: flex;
    gap: 0.7rem;
    padding: 0.72rem 0.8rem;
    text-align: left;
    width: 100%;
}

.personal-share-result-item:last-child {
    border-bottom: 0;
}

.personal-share-result-item:hover {
    background: rgba(244, 248, 255, 0.88);
}

.personal-share-result-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.personal-share-result-copy strong {
    color: #1b2a3d;
    font-size: 0.94rem;
    line-height: 1.25;
}

.personal-share-result-copy small,
.personal-share-result-empty {
    color: #73839b;
    font-size: 0.8rem;
    line-height: 1.35;
}

.personal-share-result-empty {
    padding: 0.8rem;
}

.personal-share-current-list {
    display: grid;
    gap: 0.65rem;
}

.personal-share-current-item {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(220, 228, 239, 0.96);
    border-radius: 0.95rem;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    padding: 0.8rem 0.85rem;
}

.personal-share-current-actions {
    align-items: center;
    display: inline-grid;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 9.5rem) auto;
    min-width: 0;
}

.personal-share-permission-select {
    border-radius: 0.85rem;
    min-height: 2.35rem;
}

.personal-share-current-main {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.personal-share-current-name {
    color: #172438;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.25;
}

.personal-share-current-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.personal-share-type-badge,
.personal-share-permission-badge,
.personal-share-status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 700;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0.18rem 0.58rem;
}

.personal-share-type-badge {
    background: #eef4ff;
    color: #2c5cc5;
}

.personal-share-permission-badge {
    background: #eef9f2;
    color: #18794e;
}

.personal-share-status-badge {
    background: #edf2f7;
    color: #516275;
}

.personal-share-status-badge.is-pending {
    background: #fff4d8;
    color: #9a6700;
}

.personal-share-empty {
    color: #73839b;
    font-size: 0.86rem;
    padding: 0.15rem 0.1rem;
}

.note-quick-error {
    color: #dc3545;
    font-size: 0.82rem;
    min-height: 1.2rem;
    padding: 0 1rem 0.8rem;
}

@media (max-width: 767.98px) {
    body.notes-page #notes-owned-grid > [class*="col-"],
    body.notes-page .row.g-4 > [class*="col-"] {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    body.notes-page #notes-owned-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    body.notes-page .note-card-body {
        padding: 0.85rem !important;
    }

    body.notes-page .note-card-clickable {
        min-height: 14.5rem;
    }

    body.notes-page .note-card-clickable h2 {
        font-size: 1.05rem;
        line-height: 1.2;
        margin-bottom: 0.4rem !important;
    }

    body.notes-page .note-card-clickable p {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        display: -webkit-box;
        font-size: 0.86rem;
        overflow: hidden;
    }

    .note-quick-sheet {
        border-radius: 1rem;
        height: calc(100dvh - 1rem);
        left: 0.5rem;
        max-height: none;
        max-width: none;
        right: 0.5rem;
        top: 0.5rem;
        transform: none;
        width: auto;
    }

    .note-quick-header {
        padding: 0.75rem 0.8rem 0.35rem;
    }

    .note-quick-title-input {
        font-size: 1.05rem;
    }

    .note-quick-toolbar {
        padding: 0 0.8rem 0.3rem;
    }

    .note-quick-body {
        padding: 0.2rem 0.8rem 0.4rem;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .note-quick-body-input {
        min-height: 9.5rem;
    }

    .note-quick-footer {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.55rem 0.8rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .note-quick-meta-left,
    .note-quick-actions {
        width: 100%;
    }

    .note-quick-actions {
        justify-content: space-between;
    }

    .note-quick-share-text {
        max-width: 52vw;
    }

    .personal-share-panel {
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - 1rem);
        max-width: calc(100vw - 1rem);
        margin: 0;
        width: calc(100vw - 1rem);
    }

    .personal-share-panel .note-share-head {
        align-items: flex-start;
        flex: 0 0 auto;
        gap: 0.75rem;
        padding: 0.9rem 0.85rem 0.82rem;
    }

    .personal-share-title {
        font-size: 1.12rem;
    }

    .personal-share-layout {
        flex: 1 1 auto;
        gap: 0.85rem;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0.85rem;
        -webkit-overflow-scrolling: touch;
    }

    .personal-share-card,
    .personal-share-current {
        border-radius: 0.95rem;
        padding: 0.82rem;
    }

    .personal-share-kind-toggle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .personal-share-kind-option span {
        width: 100%;
    }

    .personal-share-inline-actions {
        grid-template-columns: 1fr;
    }

    .personal-share-inline-actions .btn {
        width: 100%;
    }

    .personal-share-current-item {
        align-items: stretch;
        flex-direction: column;
        padding: 0.75rem 0.78rem;
    }

    .personal-share-current-actions {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .personal-share-current-item .btn {
        width: 100%;
    }
}

.workspace-primary-action-subtle {
    padding-inline: 0.9rem 1rem;
}

.workspace-table-email {
    color: #5f6c80;
    font-size: 0.92rem;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-action-bar {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.icon-action-btn {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.8rem;
    color: #415a77;
    display: inline-flex;
    height: 2.2rem;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
    width: 2.2rem;
}

.icon-action-btn:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.icon-action-btn svg {
    display: block;
    height: 0.98rem;
    width: 0.98rem;
}

.icon-action-btn-lg {
    height: 2.45rem;
    width: 2.45rem;
}

.icon-action-view:hover {
    border-color: #8db8ff;
    color: #0d6efd;
}

.icon-action-edit:hover {
    border-color: #b8c2cf;
    color: #4f5e73;
}

.icon-action-archive:hover {
    background: #f8fafc;
    border-color: #677386;
    color: #182230;
}

.icon-action-restore:hover {
    border-color: #93d5a0;
    color: #1f8b3d;
}

.icon-action-delete:hover {
    border-color: #f3b2b8;
    color: #dc3545;
}

.workspace-row-actions-icons {
    gap: 0.4rem;
}

.workspace-detail-actions {
    align-items: center;
}

.icon-action-btn {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.8rem;
    color: #385476;
    display: inline-flex;
    height: 2.45rem;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
    width: 2.45rem;
}

.icon-action-btn:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.icon-action-btn svg {
    height: 1.05rem;
    width: 1.05rem;
}

.icon-action-btn-lg {
    height: 2.8rem;
    width: 2.8rem;
}

.icon-action-btn-lg svg {
    height: 1.15rem;
    width: 1.15rem;
}

.icon-action-btn-label {
    gap: 0.35rem;
    justify-content: center;
    min-width: 6.9rem;
    padding: 0 0.8rem;
    width: auto;
}

.icon-action-btn-label .small {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .workspace-header .workspace-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        overflow: visible;
        padding-bottom: 0;
        width: 100%;
    }

    .workspace-header .workspace-actions .icon-action-btn {
        flex: 0 0 auto;
    }

    .workspace-header .workspace-actions .icon-action-btn-label {
        min-width: 0;
        padding: 0 0.55rem;
    }

    .workspace-header .workspace-actions .icon-action-btn-label .small {
        font-size: 0.9rem;
    }

    .workspace-header .workspace-actions .icon-action-btn-lg {
        height: 2.45rem;
        width: 2.45rem;
    }

    .workspace-header .workspace-actions .icon-action-btn-label.icon-action-btn-lg {
        width: auto;
    }

    .cliente-detail-kpi {
        border-radius: 0.8rem;
        padding: 0.75rem 0.65rem;
    }

    .cliente-detail-kpi .small {
        font-size: 0.72rem;
        line-height: 1.15;
        margin-bottom: 0.2rem;
    }

    .cliente-detail-kpi .fs-4 {
        font-size: 1.7rem !important;
        line-height: 1;
    }

    .cliente-detail-table-wrap {
        overflow-x: auto;
    }

    .cliente-detail-table {
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }

    .cliente-detail-table th,
    .cliente-detail-table td {
        background: transparent !important;
        border-bottom: 1px solid var(--app-border);
        font-size: 0.9rem;
        padding: 0.5rem 0.45rem;
        white-space: normal;
        word-break: break-word;
    }

    .cliente-detail-table td::before {
        content: none !important;
        display: none !important;
    }

    .cliente-detail-table th:first-child,
    .cliente-detail-table td:first-child {
        width: 55%;
    }

    .cliente-detail-table th:last-child,
    .cliente-detail-table td:last-child {
        width: 45%;
    }

    .cliente-meta-compact .card-body {
        padding: 0.85rem 0.9rem;
    }

    .cliente-meta-compact .detail-grid dt,
    .cliente-meta-compact .detail-grid dd {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
}

.icon-action-view:hover {
    border-color: #9bbcf8;
    color: #0d6efd;
}

.icon-action-edit:hover {
    border-color: #a9b5c5;
    color: #495057;
}

.icon-action-archive:hover {
    border-color: #8d98aa;
    color: #202937;
}

.icon-action-restore:hover {
    border-color: #8ac78c;
    color: #198754;
}

.icon-action-delete:hover {
    border-color: #ef9aa6;
    color: #dc3545;
}

.icon-action-alert:hover {
    border-color: #9bbcf8;
    color: #0d6efd;
}

.password-rules-card {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.dashboard-widget-card .card-header {
    padding: 1rem 1.25rem;
}

.dashboard-widget-value {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-widget-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dashboard-mini-card {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 0.85rem;
    padding: 0.85rem 0.95rem;
}

.dashboard-chat-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-chat-item {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 0.85rem;
    color: inherit;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-chat-item:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dashboard-habit-card {
    background: #f8fbff;
    border: 1px solid var(--app-border);
    border-radius: 0.85rem;
    color: inherit;
    display: block;
    height: 100%;
    padding: 0.95rem 1rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-habit-card:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.habit-mini-progress,
.habito-progress .progress {
    background: #e7eef7;
    border-radius: 999px;
    overflow: hidden;
}

.habit-mini-progress .progress-bar,
.habito-progress .progress-bar {
    background: linear-gradient(135deg, #2d6cdf 0%, #43a5ff 100%);
}

.habito-week-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(5.2rem, 1fr));
}

.habito-day-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    color: #182230;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    justify-content: center;
    min-height: 5.2rem;
    padding: 0.65rem 0.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
    width: 100%;
}

.habito-day-button:hover {
    border-color: #9fb7dd;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.habito-day-button.checked {
    background: linear-gradient(135deg, #d8f8d0 0%, #c9f1bf 100%);
    border-color: #9ed39a;
}

.habito-day-button.today {
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.18);
}

.habito-day-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.habito-day-number {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.habit-month-wrapper {
    overflow-x: auto;
    padding: 1rem;
}

.habit-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.habit-icon-badge {
    align-items: center;
    background: #edf3ff;
    border: 1px solid #d8e5fa;
    border-radius: 999px;
    color: #2d5fa8;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.66rem;
    font-weight: 700;
    height: 1.1rem;
    justify-content: center;
    width: 1.1rem;
}

.habit-quick-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    color: #182230;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.52rem 0.78rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.habit-quick-button:hover {
    border-color: #9fb7dd;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.habit-quick-button.checked {
    background: linear-gradient(135deg, #d8f8d0 0%, #c9f1bf 100%);
    border-color: #8bc284;
}

.habit-quick-button-mark {
    align-items: center;
    background: rgba(45, 108, 223, 0.08);
    border-radius: 999px;
    color: #2d6cdf;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 700;
    height: 1.42rem;
    justify-content: center;
    width: 1.42rem;
}

.habit-daily-board {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.habit-quick-button-create {
    text-decoration: none;
}

.habit-quick-button-create:hover {
    color: #182230;
    text-decoration: none;
}

.habits-page .workspace-header {
    margin-bottom: 0.65rem !important;
}

.habits-page .app-content {
    padding: 1.1rem 0.95rem 1.5rem;
}

.habits-page .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.habits-page .container-fluid > .row {
    --bs-gutter-x: 0.45rem;
}

.habits-page main.col-lg-10 {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.habits-page .habit-page-title {
    font-size: 1.55rem;
    line-height: 1.1;
}

.habits-page .workspace-surface > .card-body.p-4 {
    padding: 1rem !important;
}

.habits-page .habit-daily-board {
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.habits-page .habit-daily-board .card-body {
    padding: 1rem !important;
}

.habit-daily-title {
    color: #7b8698;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
}

.habit-daily-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.habit-daily-item-form {
    margin: 0;
}

.habit-daily-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.75rem;
    color: #182230;
    display: flex;
    gap: 0.7rem;
    padding: 0.2rem 0.1rem;
    text-align: left;
    width: 100%;
}

.habit-daily-item:hover {
    background: rgba(45, 108, 223, 0.04);
}

.habit-daily-item.checked .habit-daily-checkbox {
    background: #2d6cdf;
    border-color: #2d6cdf;
    color: #fff;
}

.habit-daily-checkbox {
    align-items: center;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 0.35rem;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 700;
    height: 1.35rem;
    justify-content: center;
    width: 1.35rem;
}

.habit-daily-name {
    font-size: 1.03rem;
}

.habit-grid-habit-name .habit-icon-badge {
    margin-right: 0.28rem;
}

.habits-page .habit-daily-title {
    font-size: 1.08rem;
}

.habits-page .habit-daily-name {
    font-size: 0.94rem;
}

.habits-page .habit-daily-checkbox,
.habits-page .habit-calendar-toggle {
    line-height: 1;
}

.habit-fab-create {
    bottom: 1.05rem;
    right: 1.05rem;
    z-index: 1040;
}

.habit-quick-create-fab {
    align-items: center;
    background: linear-gradient(135deg, #2f7bff 0%, #0d6efd 100%);
    border: 1px solid #2f76e8;
    border-radius: 0.72rem;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 700;
    height: 2.1rem;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 2.1rem;
}

.habit-quick-create-fab:hover {
    background: linear-gradient(135deg, #4a8cff 0%, #1f6fff 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.habit-quick-sheet {
    max-width: min(32rem, 92vw);
    width: min(32rem, 92vw);
}

.report-habit-select {
    min-width: 14rem;
}

.habits-page .habit-month-nav-head {
    margin-bottom: 0.5rem !important;
}

.habits-page .habit-month-nav-title .small {
    font-size: 0.78rem;
    margin-bottom: 0.05rem;
}

.habits-page .habit-month-nav-title h2 {
    font-size: 1.65rem;
    line-height: 1.05;
}

.habits-page .habit-month-nav-actions .btn {
    border-radius: 0.82rem;
    font-size: 0.88rem;
    min-height: 2.2rem;
    padding: 0.38rem 0.8rem;
}

.habits-page .habit-month-nav-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem !important;
}

.habits-page .habit-month-nav-actions .btn {
    width: auto;
}

@media (min-width: 1200px) {
    .habits-page .habit-daily-board {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767.98px) {
    .habits-page .app-content {
        padding: 0.8rem 0.3rem 1.05rem;
    }

    .habits-page .container-fluid {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }

    .habits-page .container-fluid > .row {
        --bs-gutter-x: 0.25rem;
    }

    .habits-page main.col-lg-10 {
        padding-left: 0.18rem;
        padding-right: 0.18rem;
    }

    .habits-page .habit-month-nav-head {
        align-items: center !important;
        gap: 0.6rem !important;
        margin-bottom: 0.3rem !important;
    }

    .habits-page .habit-month-nav-title {
        width: 100%;
    }

    .habits-page .habit-month-nav-title .small {
        font-size: 0.72rem;
    }

    .habits-page .habit-month-nav-title h2 {
        font-size: 1.02rem;
    }

    .habits-page .habit-month-nav-actions {
        display: flex;
        flex-wrap: nowrap !important;
        gap: 0.36rem !important;
        width: 100%;
    }

    .habits-page .habit-month-nav-actions .btn {
        font-size: 0.68rem;
        flex: 1 1 0;
        min-height: 1.9rem;
        padding: 0.2rem 0.22rem;
        white-space: nowrap;
    }

    .habits-page .habit-grid-habit .small.text-muted {
        display: none;
    }

    .habits-page .habit-month-wrapper {
        overflow-x: auto;
        padding: 0.3rem;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .habits-page .habit-month-wrapper::before,
    .habits-page .habit-month-wrapper::after {
        bottom: 0.3rem;
        content: "";
        pointer-events: none;
        position: absolute;
        top: 0.3rem;
        width: 0.7rem;
        z-index: 5;
    }

    .habits-page .habit-month-wrapper::before {
        background: linear-gradient(90deg, #f4f7fb 0%, rgba(244, 247, 251, 0) 100%);
        left: 0.3rem;
    }

    .habits-page .habit-month-wrapper::after {
        background: linear-gradient(270deg, #f4f7fb 0%, rgba(244, 247, 251, 0) 100%);
        right: 0.3rem;
    }

    .habits-page .habit-month-grid {
        grid-template-columns: minmax(9.5rem, 11rem) repeat(var(--habit-day-count), minmax(1.25rem, 1fr));
        min-width: max-content;
        width: auto;
    }

    .habits-page .habit-grid-header {
        min-height: 2.7rem;
        padding: 0.18rem 0.08rem;
    }

    .habits-page .habit-grid-habit,
    .habits-page .habit-grid-cell {
        min-height: 2.95rem;
    }

    .habits-page .habit-grid-habit {
        padding: 0.35rem 0.42rem;
    }

    .habits-page .habit-grid-habit-name {
        font-size: 0.88rem;
    }

    .habits-page .habit-grid-weekday {
        font-size: 0.58rem;
    }

    .habits-page .habit-grid-day-number {
        font-size: 0.86rem;
    }

    .habits-page .habit-calendar-toggle {
        height: 1.12rem;
        width: 1.12rem;
        font-size: 0.72rem;
    }

    .habits-page .workspace-header {
        margin-bottom: 0.5rem !important;
    }

    .habits-page .habit-page-title {
        font-size: 1.28rem;
    }

    .habits-page .workspace-surface > .card-body.p-4,
    .habits-page .habit-daily-board .card-body {
        padding: 0.82rem !important;
    }

    .habits-page .small.text-muted {
        font-size: 0.74rem;
    }

    .habits-page .habit-quick-buttons {
        gap: 0.42rem;
    }

    .habits-page .habit-quick-button {
        font-size: 0.72rem;
        gap: 0.4rem;
        padding: 0.4rem 0.62rem;
    }

    .habits-page .habit-quick-button-mark {
        font-size: 0.78rem;
        height: 1.18rem;
        width: 1.18rem;
    }

    .habits-page .habit-quick-create-fab {
        border-radius: 0.6rem;
        font-size: 1rem;
        height: 1.9rem;
        width: 1.9rem;
    }

    .habits-page .habit-daily-title {
        font-size: 0.96rem;
    }

    .habits-page .habit-daily-name {
        font-size: 0.84rem;
    }

    .habits-page .habit-daily-list {
        gap: 0.35rem;
    }

    .habits-page .habit-daily-item {
        gap: 0.52rem;
        padding: 0.15rem 0.05rem;
    }

    .habits-page .habit-daily-checkbox {
        height: 1.18rem;
        width: 1.18rem;
    }

    .habits-page .habit-daily-board > .card:nth-child(n + 3) {
        display: none;
    }

    .habits-manage-page .workspace-actions {
        width: 100%;
    }

    .habits-manage-page .workspace-actions .btn {
        flex: 1 1 auto;
    }

    .habits-manage-page .habit-manage-table > tbody > tr > td[data-label="Acciones"] {
        grid-template-columns: 1fr;
    }

    .habits-manage-page .habit-manage-table > tbody > tr > td[data-label="Acciones"] .table-action-bar {
        justify-content: flex-start !important;
    }

    .habits-manage-page .habit-manage-table > tbody > tr > td {
        padding: 0.6rem 0.82rem;
    }

    .habits-manage-page .habit-manage-table .badge {
        min-width: 6rem;
        text-align: center;
    }

    .habits-manage-page .table-responsive {
        overflow-x: auto;
    }

    .habits-manage-page .table-responsive > .table {
        border-collapse: collapse;
        border-spacing: 0;
        display: table;
        min-width: 100%;
    }

    .habits-manage-page .table-responsive > .table > thead {
        display: table-header-group;
    }

    .habits-manage-page .table-responsive > .table > tbody {
        display: table-row-group;
    }

    .habits-manage-page .table-responsive > .table > tbody > tr {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: table-row;
        margin: 0;
        padding: 0;
    }

    .habits-manage-page .table-responsive > .table > tbody > tr > td {
        border-top: 1px solid var(--app-border);
        display: table-cell;
        font-size: 0.9rem;
        padding: 0.5rem 0.45rem;
        text-align: left !important;
        vertical-align: middle;
        width: auto;
    }

    .habits-manage-page .table-responsive > .table > tbody > tr > td::before {
        content: none;
        display: none;
    }

    .habits-manage-page .habit-manage-table .table-action-bar {
        gap: 0.3rem;
        justify-content: flex-end !important;
    }

    .habits-manage-page .habit-manage-table .icon-action-btn {
        height: 2.2rem;
        width: 2.2rem;
    }
}

.habit-month-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 22rem) repeat(var(--habit-day-count), minmax(2.5rem, 1fr));
    min-width: max-content;
}

.habits-page .habit-month-wrapper {
    overflow-x: hidden;
    padding: 0.22rem;
}

.habits-page .habit-month-grid {
    grid-template-columns: minmax(7.2rem, 10rem) repeat(var(--habit-day-count), minmax(0, 1fr));
    min-width: 0;
    width: 100%;
}

.habits-page .habit-grid-header {
    min-height: 2.3rem;
    padding: 0.14rem 0.04rem;
}

.habits-page .habit-grid-habit,
.habits-page .habit-grid-cell {
    min-height: 2.45rem;
}

.habits-page .habit-grid-habit {
    padding: 0.3rem 0.38rem;
}

.habits-page .habit-grid-habit-name {
    font-size: 0.76rem;
    line-height: 1.05;
}

.habits-page .habit-calendar-toggle {
    border-radius: 0.26rem;
    font-size: 0.64rem;
    height: 1.02rem;
    width: 1.02rem;
}

.habit-grid-header,
.habit-grid-habit,
.habit-grid-cell {
    border-bottom: 1px solid var(--app-border);
    border-right: 1px solid var(--app-border);
}

.habit-grid-header {
    align-items: center;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    gap: 0.03rem;
    justify-content: center;
    min-height: 2.3rem;
    padding: 0.14rem 0.04rem;
    position: sticky;
    top: 0;
    z-index: 2;
}

.habit-grid-header-main {
    align-items: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    justify-content: center;
    padding-inline: 0.38rem;
}

.habit-grid-weekday {
    color: #6b778c;
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
}

.habit-grid-day-number {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.habit-grid-habit {
    background: #fff;
    min-height: 2.45rem;
    padding: 0.3rem 0.38rem;
}

.habit-grid-habit-name {
    color: #0d6efd;
    font-size: 0.76rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

.habit-grid-habit-name:hover {
    text-decoration: underline;
}

.sticky-column {
    left: 0;
    position: sticky;
    z-index: 3;
}

.habit-grid-header.sticky-column {
    z-index: 4;
}

.habit-grid-cell {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.1rem;
}

.habit-calendar-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 0.45rem;
    color: #1f3352;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    width: 2rem;
}

.habit-calendar-toggle:hover:not(:disabled) {
    border-color: #89a8d6;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.habit-calendar-toggle.checked {
    background: linear-gradient(135deg, #d8f8d0 0%, #c9f1bf 100%);
    border-color: #8bc284;
    color: #1d4b17;
}

.habit-calendar-toggle.today {
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.18);
}

.habit-calendar-toggle:disabled {
    background: #f5f7fa;
    border-color: #e2e8f0;
    color: #bac6d4;
    cursor: not-allowed;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background:
        radial-gradient(circle at top right, rgba(45, 108, 223, 0.06), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
    border-radius: 1rem;
}

.chat-index-shell {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.chat-index-panel {
    overflow: hidden;
}

.chat-index-panel-header {
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(45, 108, 223, 0.12), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    border-bottom: 1px solid var(--app-border);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.2rem;
}

.chat-index-panel-title-wrap {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.chat-index-panel-title {
    color: #182230;
    font-size: 1.05rem;
    font-weight: 700;
}

.chat-index-panel-search {
    min-width: min(26rem, 42vw);
}

.chat-compose-panel {
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(244, 248, 253, 0.95) 100%);
    border-bottom: 1px solid var(--app-border);
    padding: 1rem 1.2rem 1.2rem;
}

.chat-compose-start-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
}

.chat-compose-label {
    color: #182230;
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.chat-compose-user-picker,
.chat-compose-message-box {
    min-width: 0;
}

.chat-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.75rem;
    max-height: 15rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.chat-user-option {
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.85rem;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.chat-user-option:hover {
    border-color: #9fb7dd;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.chat-user-option input[type="radio"] {
    margin: 0;
}

.chat-user-option-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-user-option-name {
    color: #182230;
    font-size: 0.98rem;
    font-weight: 700;
}

.chat-user-option-meta {
    color: #6b778c;
    font-size: 0.85rem;
}

.chat-compose-start-form textarea.form-control {
    max-height: 12rem;
    min-height: 9rem;
    overflow-y: auto;
    resize: none;
}

.chat-compose-start-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.chat-index-list {
    display: flex;
    flex-direction: column;
}

.chat-index-item {
    align-items: center;
    border-bottom: 1px solid rgba(215, 224, 234, 0.75);
    color: inherit;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 1rem 1.2rem;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.chat-index-item:last-child {
    border-bottom: 0;
}

.chat-index-item:hover {
    background: rgba(45, 108, 223, 0.04);
}

.chat-index-avatar {
    align-items: center;
    background: linear-gradient(135deg, #2d6cdf 0%, #43a5ff 100%);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 700;
    height: 3.1rem;
    justify-content: center;
    width: 3.1rem;
}

.chat-index-avatar.group {
    background: linear-gradient(135deg, #0ea5c6 0%, #22c3ee 100%);
}

.chat-index-main {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.chat-index-topline,
.chat-index-bottomline {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
}

.chat-index-name-wrap {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    min-width: 0;
}

.chat-index-name {
    color: #182230;
    font-size: 1.12rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-index-tag {
    background: rgba(14, 165, 198, 0.14);
    border-radius: 999px;
    color: #056780;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
}

.chat-index-time {
    color: #758397;
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 600;
}

.chat-index-preview {
    color: #5e6d83;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-index-side {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 2rem;
}

.chat-index-unread {
    align-items: center;
    background: #2d6cdf;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    height: 1.55rem;
    justify-content: center;
    min-width: 1.55rem;
    padding: 0 0.45rem;
}

.chat-index-empty {
    padding: 3rem 1.2rem;
    text-align: center;
}

.chat-index-empty-title {
    color: #182230;
    font-size: 1.15rem;
    font-weight: 700;
}

.chat-index-empty-text {
    color: var(--app-text-soft);
    margin-top: 0.45rem;
}

.chat-index-create-button {
    align-items: center;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 500;
    height: 2.35rem;
    justify-content: center;
    line-height: 1;
    min-width: 2.35rem;
    padding: 0;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.chat-index-create-button:hover {
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.28);
    color: #fff;
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.chat-index-search-toggle {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 2.35rem;
    padding-inline: 0.65rem;
}

.chat-index-search-toggle.active {
    background: rgba(45, 108, 223, 0.08);
    border-color: #9fb7dd;
    color: #24446f;
}

.chat-screen {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 7.75rem);
    min-height: 36rem;
}

.chat-panel {
    overflow: hidden;
}

.chat-panel-full {
    display: flex;
    flex: 1;
    height: 100%;
    flex-direction: column;
    min-height: 0;
}

.chat-search-bar,
.chat-search-bar-footer {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.chat-search-bar {
    padding: 0.9rem 1.1rem 0.85rem;
}

.chat-header-row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.chat-header-title {
    color: #182230;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.chat-search-row {
    align-items: center;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 26rem);
    margin-top: 0.5rem;
}

.chat-search-input-wrap {
    min-width: 0;
}

.chat-search-tools {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.chat-search-status {
    color: #6b778c;
    font-size: 0.9rem;
    min-height: 1.25rem;
    text-align: right;
}

.chat-search-nav {
    display: flex;
    gap: 0.5rem;
}

.chat-search-toggle {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 2.4rem;
    padding-inline: 0.65rem;
}

.chat-search-toggle.active {
    background: rgba(45, 108, 223, 0.08);
    border-color: #9fb7dd;
    color: #24446f;
}

.chat-search-icon {
    border: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
    height: 0.78rem;
    position: relative;
    width: 0.78rem;
}

.chat-search-icon::after {
    background: currentColor;
    content: "";
    height: 0.48rem;
    position: absolute;
    right: -0.28rem;
    top: 0.56rem;
    transform: rotate(-45deg);
    width: 2px;
}

.chat-thread-scroll {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    min-height: 0;
}

.chat-search-bar-footer {
    border-top: 1px solid rgba(215, 224, 234, 0.9);
    padding: 0.85rem 1.1rem;
}

.chat-compose-note {
    color: #6b778c;
    font-size: 0.88rem;
    margin-bottom: 0.55rem;
}

.chat-compose-row {
    align-items: flex-end;
    display: flex;
    gap: 0.75rem;
}

.chat-compose-input {
    flex: 1;
    min-width: 0;
    position: relative;
}

.chat-compose-actions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-compose-form textarea.form-control {
    max-height: 10rem;
    min-height: 3rem;
    overflow-y: auto;
    resize: none;
}

.chat-compose-toolbar {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    position: relative;
}

.chat-emoji-toggle {
    align-items: center;
    display: inline-flex;
    font-size: 1.1rem;
    height: 2.2rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 2.4rem;
}

.chat-emoji-toggle.active {
    background: rgba(45, 108, 223, 0.08);
    border-color: #9fb7dd;
    color: #24446f;
}

.chat-emoji-panel {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.9rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding: 0.55rem;
    position: absolute;
    top: calc(100% + 0.35rem);
    width: 15.5rem;
    z-index: 8;
}

.chat-emoji-option {
    align-items: center;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.18rem;
    height: 2.35rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    width: 100%;
}

.chat-emoji-option:hover {
    background: #f8fbff;
    border-color: #d7e0ea;
    transform: translateY(-1px);
}

.chat-row {
    display: flex;
    width: 100%;
}

.chat-row-own {
    justify-content: flex-end;
}

.chat-row-other {
    justify-content: flex-start;
}

.chat-bubble {
    border-radius: 1.1rem;
    max-width: 78%;
    padding: 0.8rem 1rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.chat-bubble-own {
    background: linear-gradient(135deg, #d8f8d0 0%, #c9f1bf 100%);
    border: 1px solid #9ed39a;
}

.chat-bubble-other {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
    border: 1px solid #d7e0ea;
}

.chat-bubble-own::after,
.chat-bubble-other::after {
    content: "";
    position: absolute;
    top: 14px;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border-radius: 0.15rem;
}

.chat-bubble-own::after {
    right: -6px;
    background: #c9f1bf;
    border-top: 1px solid #9ed39a;
    border-right: 1px solid #9ed39a;
}

.chat-bubble-other::after {
    left: -6px;
    background: #f8fbff;
    border-left: 1px solid #d7e0ea;
    border-bottom: 1px solid #d7e0ea;
}

.chat-meta {
    color: #5f6c80;
    margin-bottom: 0.35rem !important;
}

.chat-body-text {
    color: #182230;
    font-size: 1.06rem;
    line-height: 1.4;
}

.chat-bubble-match {
    background: linear-gradient(135deg, #fff4a8 0%, #ffe071 100%);
    border-color: #f0b400;
    box-shadow: 0 0 0 4px rgba(240, 180, 0, 0.35), 0 14px 28px rgba(240, 180, 0, 0.22);
    transform: scale(1.01);
}

@media (max-width: 991.98px) {
    .navbar .container-fluid {
        align-items: center;
    }

    .navbar-brand {
        letter-spacing: 0.02em;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 0.25rem;
        padding-top: 0.75rem;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn {
        min-height: 2.75rem;
    }

    .app-sidebar {
        min-height: auto;
    }

    .sidebar-sticky {
        max-height: calc(100dvh - 8.2rem);
        overflow-y: auto;
        padding: 0.2rem 1rem 1rem;
        position: static;
    }

    .sidebar-section {
        margin-top: 1rem !important;
    }

    .sidebar-link {
        border-radius: 0.85rem;
        margin-bottom: 0.45rem;
        min-height: 2.85rem;
        padding: 0.78rem 0.9rem;
    }

    .app-content {
        padding: 1.15rem 0.85rem 2rem;
    }

    .card {
        border-radius: 0.9rem;
    }

    .card-body {
        padding: 1rem;
    }

    .workspace-title {
        font-size: 1.85rem;
        letter-spacing: 0;
    }

    .workspace-subtitle {
        font-size: 0.98rem;
    }

    .workspace-header,
    .workspace-toolbar,
    .workspace-search {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-actions,
    .workspace-tabs,
    .workspace-row-actions {
        flex-wrap: wrap;
    }

    .workspace-actions .btn,
    .workspace-search .btn,
    .workspace-primary-action {
        justify-content: center;
        width: 100%;
    }

    .workspace-tabs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
        width: 100%;
    }

    .workspace-tab {
        justify-content: center;
        min-height: 2.7rem;
        text-align: center;
    }

    .workspace-search {
        min-width: 100%;
    }

    .workspace-search-grid {
        grid-template-columns: 1fr;
    }

    .workspace-search .form-control {
        min-width: 0;
        width: 100%;
    }

    .workspace-surface .card-body.p-4 {
        padding: 1rem !important;
    }

    .workspace-filter-field-lg {
        grid-column: span 1;
    }

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

    .profile-plan-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-plan-status {
        align-items: flex-start;
        text-align: left;
    }

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

    .profile-usage-head,
    .admin-usage-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-usage-meta {
        align-items: flex-start;
        text-align: left;
    }

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

    .usage-card {
        border-radius: 0.85rem;
        padding: 0.72rem;
    }

    .usage-card-top {
        flex-direction: column;
        gap: 0.2rem;
    }

    .usage-card-top span,
    .usage-card-top strong {
        font-size: 0.84rem;
    }

    .usage-card-bottom {
        font-size: 0.76rem;
    }

    .admin-stats-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-stats-toolbar .btn {
        width: 100%;
    }

    .profile-avatar-editor {
        height: 9.5rem;
        width: 9.5rem;
    }

    .chat-bubble {
        max-width: 100%;
    }

    .menu-picker-grid {
        grid-template-columns: 1fr;
    }

    .menu-picker-actions {
        flex-direction: row;
    }

    .dashboard-picker-selected {
        grid-template-columns: 1fr;
    }

    .dashboard-picker-order {
        flex-direction: row;
    }

    .chat-screen {
        height: calc(100dvh - 6.5rem);
        min-height: 28rem;
    }

    .chat-index-topline,
    .chat-index-bottomline {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-index-panel-header,
    .chat-index-panel-title-wrap,
    .chat-index-panel-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-index-panel-search {
        min-width: 100%;
        width: 100%;
    }

    .chat-compose-start-grid {
        grid-template-columns: 1fr;
    }

    .chat-compose-start-actions {
        flex-direction: column;
    }

    .chat-index-item {
        grid-template-columns: 1fr;
    }

    .chat-index-avatar {
        height: 2.8rem;
        width: 2.8rem;
    }

    .chat-index-time,
    .chat-index-side {
        min-width: 0;
    }

    .chat-header-row,
    .chat-compose-row {
        align-items: stretch;
        flex-direction: column;
    }

    .chat-search-row {
        grid-template-columns: 1fr;
    }

    .chat-search-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-search-status {
        text-align: left;
    }

    .chat-compose-actions {
        flex-direction: row;
    }

    .chat-panel-full {
        min-height: 70vh;
    }

    .chat-bubble-own::after,
    .chat-bubble-other::after {
        display: none;
    }

    .habit-month-grid {
        grid-template-columns: minmax(14rem, 18rem) repeat(var(--habit-day-count), minmax(2.2rem, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.app-shell {
        background: #f4f7fb;
    }

    .app-navbar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .landing-nav-actions {
        gap: 0.45rem;
        right: 0.7rem;
        top: 0.55rem;
    }

    .landing-login-btn,
    .landing-create-btn {
        font-size: 0.86rem;
        min-height: 2.15rem;
        padding-inline: 0.72rem;
    }

    .landing-login-modal .modal-dialog {
        align-items: center;
        display: flex;
        margin: 0.75rem;
        min-height: calc(100% - 1.5rem);
    }

    .landing-login-card {
        border-radius: 1.1rem;
        padding: 0.95rem;
        width: 100%;
    }

    .landing-login-head {
        gap: 0.62rem;
        margin-bottom: 0.72rem;
        padding-right: 1.6rem;
    }

    .landing-login-head img {
        border-radius: 0.7rem;
        height: 2.15rem;
        width: 2.15rem;
    }

    .landing-login-head p {
        font-size: 0.62rem;
        letter-spacing: 0.04em;
        margin-bottom: 0.1rem !important;
        white-space: nowrap;
    }

    .landing-login-head h2 {
        font-size: 1.05rem;
        line-height: 1.05;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }

    .landing-login-close {
        right: 0.68rem;
        top: 0.62rem;
    }

    .landing-login-form .mb-3,
    .landing-login-form .mb-2 {
        margin-bottom: 0.32rem !important;
    }

    .landing-login-form .form-label {
        font-size: 0.74rem;
        line-height: 1.12;
        margin-bottom: 0.14rem;
    }

    .landing-login-form .form-control,
    .landing-login-form .form-select {
        font-size: 0.86rem;
        min-height: 2.2rem;
        padding: 0.36rem 0.58rem;
    }

    .landing-login-form .btn.btn-lg,
    .landing-register-form .btn.btn-lg {
        font-size: 0.86rem;
        min-height: 2.45rem;
        padding-inline: 0.9rem;
    }

    .landing-register-modal .modal-dialog {
        max-width: none;
    }

    .landing-register-modal .landing-login-card {
        max-height: calc(100dvh - 1.5rem);
        overflow-y: auto;
    }

    .landing-login-modal .landing-login-form,
    .landing-register-modal .landing-register-form {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        max-height: calc(100dvh - 9.2rem);
        min-height: 0;
    }

    .landing-login-modal .landing-login-form > .btn.btn-lg,
    .landing-register-modal .landing-register-form > .btn.btn-lg {
        margin-top: 0.32rem !important;
    }

    .landing-register-grid {
        gap: 0.44rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .profile-settings-dialog {
        margin: 0;
        max-width: 100vw;
        min-height: 100dvh;
    }

    .profile-settings-content {
        border-radius: 0;
        max-height: 100dvh;
        min-height: 100dvh;
    }

    .profile-settings-header {
        padding: 0.85rem 1rem;
    }

    .profile-settings-header p {
        font-size: 0.88rem;
    }

    .profile-settings-body {
        padding: 0.7rem;
    }

    .profile-settings-footer {
        padding: 0.85rem 1rem;
    }

    .profile-settings-footer .btn {
        flex: 1 1 0;
    }

    .profile-avatar-card {
        gap: 0.65rem;
        padding: 0.65rem;
    }

    .profile-avatar-help .fw-semibold {
        font-size: 1rem;
    }

    .profile-avatar-help .small {
        font-size: 0.84rem;
        margin-bottom: 0;
    }

    .profile-avatar-editor {
        height: 7.25rem;
        width: 7.25rem;
    }

    .profile-avatar-editor .profile-avatar-fallback {
        font-size: 1.7rem;
    }

    .profile-avatar-card .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .profile-avatar-card .form-control,
    .profile-avatar-card .form-range,
    .profile-avatar-card .form-check-label,
    .profile-avatar-card .form-text {
        font-size: 0.86rem;
    }

    .profile-avatar-card .form-control {
        padding: 0.38rem 0.55rem;
    }

    .profile-avatar-help .small,
    .profile-avatar-zoom,
    .profile-avatar-remove,
    .profile-avatar-upload .form-text {
        display: none;
    }

    .app-user-link {
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }

    .workspace-kicker {
        font-size: 0.72rem;
        margin-bottom: 0.25rem;
    }

    .workspace-header {
        margin-bottom: 1rem !important;
    }

    .workspace-title {
        font-size: 1.65rem;
    }

    .landing-hero,
    .flowza-hero,
    .landing-plan-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        min-height: auto;
        padding: 1.25rem 1rem 2rem;
    }

    .landing-hero h1 {
        font-size: clamp(2rem, 14vw, 3.25rem);
    }

    .landing-hero p {
        font-size: 1.02rem;
        line-height: 1.5;
    }

    .landing-feature-grid {
        --bs-gutter-x: 0.7rem;
        --bs-gutter-y: 0.7rem;
    }

    .landing-feature-card {
        border-radius: 0.85rem;
        box-shadow: 0 8px 18px rgba(16, 28, 46, 0.05);
        padding: 0.82rem;
    }

    .landing-feature-card .icon-box {
        border-radius: 0.7rem;
        height: 2.25rem;
        margin-bottom: 0.65rem;
        width: 2.25rem;
    }

    .landing-feature-card h3 {
        font-size: 1rem;
        line-height: 1.1;
        margin-bottom: 0.35rem !important;
    }

    .landing-feature-card p {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .landing-section-head,
    .landing-flow {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-flow-steps {
        gap: 0.55rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
        width: 100%;
    }

    .landing-flow-steps div {
        border-radius: 0.8rem;
        padding: 0.72rem 0.55rem;
        text-align: center;
    }

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

    .landing-flow-steps strong {
        height: 1.85rem;
        margin-bottom: 0.45rem;
        width: 1.85rem;
    }

    .flowza-step-orb {
        height: 3.3rem;
        margin-bottom: 0.55rem;
        width: 3.3rem;
    }

    .flowza-step-num {
        font-size: 0.8rem;
        height: 1.7rem;
        left: -0.25rem;
        top: -0.22rem;
        width: 1.7rem;
    }

    .flowza-step-icon {
        height: 1.35rem;
        width: 1.35rem;
    }

    .landing-flow-steps span {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .register-plan-strip {
        grid-template-columns: 1fr;
    }

    .workspace-search-grid,
    .workspace-filter-grid {
        gap: 0.75rem;
    }

    .dashboard-widget-card .card-header {
        align-items: stretch !important;
        flex-direction: column;
        padding: 0.95rem 1rem;
    }

    .dashboard-widget-card .text-end {
        text-align: left !important;
    }

    .dashboard-widget-value {
        font-size: 1.35rem;
    }

    .dashboard-widget-metrics .badge {
        white-space: normal;
    }

    .table-responsive {
        border: 0;
        overflow: visible;
    }

    .table-responsive > .table {
        border-collapse: separate;
        border-spacing: 0 0.85rem;
        display: block;
        margin-bottom: 0;
    }

    .table-responsive > .table > thead {
        display: none;
    }

    .table-responsive > .table > tbody {
        display: block;
    }

    .table-responsive > .table > tbody > tr {
        background: #fff;
        border: 1px solid var(--app-border);
        border-radius: 0.95rem;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        display: block;
        margin-bottom: 0.85rem;
        overflow: hidden;
        padding: 0.25rem 0;
    }

    .table-responsive > .table > tbody > tr > td {
        align-items: flex-start;
        border: 0;
        display: grid;
        gap: 0.75rem;
        grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
        padding: 0.7rem 0.95rem;
        text-align: left !important;
        width: 100%;
    }

    .table-responsive > .table > tbody > tr > td::before {
        color: var(--app-text-soft);
        content: attr(data-label);
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        line-height: 1.35;
        padding-top: 0.18rem;
        text-transform: uppercase;
    }

    .table-responsive > .table > tbody > tr > td[data-label=""] {
        grid-template-columns: 1fr;
    }

    .table-responsive > .table > tbody > tr > td[data-label=""]::before {
        display: none;
    }

    .workspace-primary-cell,
    .workspace-secondary-line,
    .workspace-table-email {
        max-width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .workspace-row-actions,
    .table-action-bar {
        justify-content: flex-start;
    }

    .icon-action-btn {
        height: 2.65rem;
        width: 2.65rem;
    }

    .profile-avatar-card,
    .password-rules-card,
    .dashboard-mini-card,
    .dashboard-habit-card,
    .habit-daily-item,
    .habit-quick-button {
        border-radius: 0.85rem;
    }

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

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

    .chat-screen {
        height: calc(100dvh - 5.7rem);
        min-height: 0;
    }

    .chat-search-bar,
    .chat-search-bar-footer {
        padding: 0.8rem;
    }

    .chat-thread {
        border-radius: 0.85rem;
    }

    .chat-bubble {
        border-radius: 0.9rem;
        padding: 0.72rem 0.85rem;
    }

    .chat-body-text {
        font-size: 1rem;
    }

    .chat-emoji-panel {
        max-width: calc(100vw - 2.5rem);
        width: 14.5rem;
    }

    .flowza-hero {
        min-height: auto;
        max-width: none;
        padding: 1.25rem 1rem 2rem;
    }

    .landing-section {
        max-width: none;
    }

    .flowza-hero-copy h1 {
        max-width: none;
    }

    .landing-page .app-navbar .container-fluid {
        padding-inline: 1rem;
    }

    .landing-page .app-brand span {
        font-size: 2rem;
    }

    .flowza-sales-strip {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .app-content {
        padding-inline: 0.65rem;
    }

    .workspace-title {
        font-size: 1.48rem;
    }

    .table-responsive > .table > tbody > tr > td {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .table-responsive > .table > tbody > tr > td::before {
        padding-top: 0;
    }

    .habit-week-grid {
        grid-template-columns: 1fr;
    }

    .compact-mobile-table .workspace-row-actions {
        display: grid;
        gap: 0.25rem;
        grid-template-columns: repeat(2, 1.92rem);
        justify-content: end;
    }

    .compact-mobile-table .workspace-row-actions .icon-action-btn {
        margin: 0;
    }
}

@media (max-width: 767.98px) {
    .compact-mobile-table {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .compact-mobile-table > .table {
        border-collapse: collapse;
        border-spacing: 0;
        display: block;
        min-width: 0;
        width: 100%;
    }

    .compact-mobile-table > .table > thead {
        display: none;
    }

    .compact-mobile-table > .table > tbody {
        display: block;
    }

    .compact-mobile-table > .table > tbody > tr {
        border: 1px solid var(--app-border);
        border-radius: 0.82rem;
        display: grid;
        gap: 0.2rem;
        grid-template-columns: 1fr auto;
        margin: 0 0 0.72rem;
        padding: 0.62rem 0.66rem;
    }

    .compact-mobile-table > .table > tbody > tr > td {
        border: 0;
        display: block;
        font-size: 0.8rem;
        padding: 0;
        white-space: normal;
    }

    .compact-mobile-table > .table > tbody > tr > td::before {
        color: #5f6f86;
        content: attr(data-label);
        display: inline-block;
        font-size: 0.66rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        margin-right: 0.24rem;
        text-transform: uppercase;
    }

    .compact-mobile-table .workspace-primary-cell {
        grid-column: 1 / 2;
    }

    .compact-mobile-table td.text-end {
        align-self: start;
        grid-column: 2 / 3;
        justify-self: end;
    }

    .compact-mobile-table .workspace-link,
    .compact-mobile-table .workspace-link-btn {
        font-size: 1rem;
        line-height: 1.2;
    }

    .compact-mobile-table .workspace-secondary-line {
        font-size: 0.78rem;
        line-height: 1.2;
        margin-top: 0.1rem;
        max-width: 100%;
    }

    .compact-mobile-table .workspace-row-actions {
        gap: 0.32rem;
    }

    .compact-mobile-table .icon-action-btn {
        height: 1.92rem;
        width: 1.92rem;
    }

    .compact-mobile-table .badge {
        font-size: 0.7rem;
        padding: 0.18rem 0.34rem;
    }

    .compact-mobile-table .workspace-table-email {
        display: none;
    }

    .compact-mobile-table-cuentas td:nth-child(2),
    .compact-mobile-table-cuentas td:nth-child(3),
    .compact-mobile-table-cuentas td:nth-child(4),
    .compact-mobile-table-cuentas td:nth-child(5),
    .compact-mobile-table-servicios td:nth-child(2),
    .compact-mobile-table-servicios td:nth-child(3),
    .compact-mobile-table-servicios td:nth-child(4),
    .compact-mobile-table-servicios td:nth-child(5),
    .compact-mobile-table-servicios td:nth-child(6),
    .compact-mobile-table-vencimientos td:nth-child(2),
    .compact-mobile-table-vencimientos td:nth-child(3),
    .compact-mobile-table-vencimientos td:nth-child(4) {
        grid-column: 1 / -1;
    }

    .compact-mobile-table-vencimientos td:nth-child(5) {
        display: none;
    }

    .note-share-current .table-responsive {
        overflow-x: auto;
    }

    .note-share-current .table-responsive > .table {
        border-collapse: collapse;
        border-spacing: 0;
        display: table;
        min-width: 100%;
    }

    .note-share-current .table-responsive > .table > thead {
        display: table-header-group;
    }

    .note-share-current .table-responsive > .table > tbody {
        display: table-row-group;
    }

    .note-share-current .table-responsive > .table > tbody > tr {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        display: table-row;
        margin-bottom: 0;
        padding: 0;
    }

    .note-share-current .table-responsive > .table > tbody > tr > td {
        border-top: 1px solid var(--app-border);
        display: table-cell;
        font-size: 0.9rem;
        gap: 0;
        grid-template-columns: none;
        padding: 0.42rem 0.5rem;
        vertical-align: middle;
        width: auto;
    }

    .note-share-current .table-responsive > .table > tbody > tr > td::before {
        content: none;
        display: none;
    }

    .note-share-current .table-responsive .btn {
        padding: 0.2rem 0.5rem;
    }

    .personal-mobile-grid > .table > thead {
        display: none;
    }

    .personal-mobile-grid > .table > tbody > tr {
        border: 1px solid var(--app-border);
        border-radius: 0.85rem;
        display: grid;
        gap: 0.6rem;
        grid-template-columns: 1fr;
        margin: 0 0 0.75rem;
        padding: 0.9rem 0.85rem;
    }

    .personal-mobile-grid > .table > tbody > tr > td {
        border: 0;
        padding: 0;
    }

    .personal-mobile-grid > .table > tbody > tr > td::before {
        content: none;
    }

    .personal-mobile-grid td[data-label="Servicio"] {
        grid-column: 1 / -1;
    }

    .personal-mobile-grid .personal-mobile-summary {
        display: block;
        grid-column: 1 / -1;
        margin-top: -0.28rem;
    }

    .personal-mobile-grid > .table > tbody > tr > td[data-label="Identificador"],
    .personal-mobile-grid > .table > tbody > tr > td[data-label="Proveedor"],
    .personal-mobile-grid > .table > tbody > tr > td[data-label="Estado"],
    .personal-mobile-grid > .table > tbody > tr > td[data-label="Venc. Contrato"],
    .personal-mobile-grid > .table > tbody > tr > td[data-label="Venc. factura"],
    .personal-mobile-grid > .table > tbody > tr > td[data-label="Situacion"] {
        display: none !important;
    }

    .personal-mobile-grid .workspace-link {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .personal-mobile-grid td[data-label="Servicio"] .copyable-value,
    .personal-mobile-grid td[data-label="Servicio"] .copy-inline-btn {
        display: none;
    }

    .personal-mobile-grid .workspace-secondary-line {
        display: none;
    }

    .personal-mobile-grid .icon-action-btn {
        height: 2.15rem;
        width: 2.15rem;
    }

    .personal-mobile-grid .personal-service-cell {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .personal-mobile-grid .personal-service-copy > .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.35rem !important;
    }

    .personal-mobile-grid .personal-service-copy {
        display: grid;
        gap: 0.32rem;
        min-width: 0;
    }

    .personal-mobile-grid .personal-row-link {
        display: block;
        font-size: 1.08rem;
        font-weight: 800;
        line-height: 1.12;
    }

    .personal-mobile-grid td[data-label="Servicio"] > .text-muted,
    .personal-mobile-grid td[data-label="Servicio"] > .personal-date-primary,
    .personal-mobile-grid td[data-label="Servicio"] > .small,
    .personal-mobile-grid td[data-label="Servicio"] > .badge,
    .personal-mobile-grid td[data-label="Servicio"] > .copyable-value {
        display: none;
    }

    .personal-mobile-grid .personal-mobile-stats {
        display: grid;
        gap: 0.6rem 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0.12rem;
    }

    .personal-mobile-grid .personal-mobile-stat {
        display: grid;
        gap: 0.18rem;
        min-width: 0;
    }

    .personal-mobile-grid .personal-mobile-stat-label {
        color: #73839b;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .personal-mobile-grid .personal-mobile-stat strong {
        color: #172033;
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .personal-mobile-grid .personal-mobile-stat small {
        color: #6f8097;
        font-size: 0.76rem;
        line-height: 1.25;
    }

    .personal-mobile-grid .personal-mobile-stat .personal-status-badge {
        justify-self: start;
    }

    .personal-mobile-grid .personal-soft-badge {
        align-self: flex-start;
        font-size: 0.68rem;
        padding: 0.22rem 0.42rem;
    }

    .durabilidad-mobile-grid > .table > thead {
        display: none;
    }

    .durabilidad-mobile-grid > .table > tbody > tr {
        border: 1px solid var(--app-border);
        border-radius: 0.85rem;
        display: grid;
        gap: 0.25rem;
        grid-template-columns: 1fr auto;
        margin: 0 0 0.75rem;
        padding: 0.7rem 0.75rem;
    }

    .durabilidad-mobile-grid > .table > tbody > tr > td {
        border: 0;
        padding: 0;
    }

    .durabilidad-mobile-grid > .table > tbody > tr > td::before {
        content: none;
    }

    .durabilidad-mobile-grid td[data-label="Nombre"] {
        grid-column: 1 / 2;
    }

    .durabilidad-mobile-grid td[data-label="Acciones"] {
        align-self: start;
        grid-column: 2 / 3;
        justify-self: end;
    }

    .durabilidad-mobile-grid .durabilidad-mobile-summary {
        display: block;
        grid-column: 1 / -1;
        margin-top: 0.15rem;
    }

    .durabilidad-mobile-grid td[data-label="Compra"],
    .durabilidad-mobile-grid td[data-label="Fecha fin"],
    .durabilidad-mobile-grid td[data-label="Garantia"],
    .durabilidad-mobile-grid td[data-label="Duracion estimada"],
    .durabilidad-mobile-grid td[data-label="Situacion"] {
        display: none;
    }

    .durabilidad-mobile-grid .workspace-link {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .durabilidad-mobile-grid .workspace-secondary-line {
        max-width: 100%;
        white-space: normal;
    }

    .durabilidad-mobile-grid .icon-action-btn {
        height: 2.15rem;
        width: 2.15rem;
    }

    .durabilidad-page .personal-mobile-grid > .table > tbody > tr > td[data-label="Item"] {
        grid-column: 1 / -1;
    }

    .durabilidad-page .personal-mobile-grid > .table > tbody > tr > td[data-label="Compra"],
    .durabilidad-page .personal-mobile-grid > .table > tbody > tr > td[data-label="Fecha fin"],
    .durabilidad-page .personal-mobile-grid > .table > tbody > tr > td[data-label="Garantia"],
    .durabilidad-page .personal-mobile-grid > .table > tbody > tr > td[data-label="Situacion"] {
        display: none !important;
    }

    .durabilidad-page .personal-mobile-grid .personal-mobile-summary {
        display: block;
        grid-column: 1 / -1;
        margin-top: -0.28rem;
    }

    .durabilidad-page .personal-mobile-grid td[data-label="Item"] .workspace-secondary-line {
        display: none;
    }

    .durabilidad-page .personal-mobile-grid td[data-label="Item"] > .text-muted,
    .durabilidad-page .personal-mobile-grid td[data-label="Item"] > .personal-date-primary,
    .durabilidad-page .personal-mobile-grid td[data-label="Item"] > .small,
    .durabilidad-page .personal-mobile-grid td[data-label="Item"] > .badge,
    .durabilidad-page .personal-mobile-grid td[data-label="Item"] > .copyable-value {
        display: none;
    }

    .durabilidad-page .personal-mobile-grid .personal-service-copy > .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.35rem !important;
    }

    .durabilidad-page .personal-mobile-grid .personal-row-link {
        display: block;
        font-size: 1.08rem;
        font-weight: 800;
        line-height: 1.12;
    }
}

.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-fin-wrap,
.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-garantia-wrap,
.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-file-wrap,
.durabilidad-page .personal-quick-sheet.is-view-mode .personal-aviso-field {
    display: grid !important;
}

.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-fin-wrap .form-control,
.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-garantia-wrap .form-control,
.durabilidad-page .personal-quick-sheet.is-view-mode .personal-aviso-field .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #13233f;
    font-size: 1.15rem;
    font-weight: 800;
    min-height: auto;
    padding: 0;
    line-height: 1.25;
}

.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-file-wrap {
    display: none !important;
}

.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-fin-wrap[hidden],
.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-garantia-wrap[hidden],
.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-file-wrap[hidden],
.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-aviso-wrap[hidden] {
    display: none !important;
}

.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-factura-link,
.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-factura-empty {
    color: #5e708a;
    font-size: 0.95rem;
    line-height: 1.35;
}

.durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-comprobante-wrap .form-control {
    pointer-events: auto;
}

.durabilidad-page .personal-share-card.personal-share-compact-card {
    overflow: visible;
}

.durabilidad-page .personal-share-results {
    z-index: 20;
}

.durabilidad-inline-note {
    align-items: center;
    color: #70819a;
    display: flex;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.durabilidad-inline-note-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.durabilidad-inline-note strong {
    color: #445776;
    font-size: 0.84rem;
    font-weight: 700;
}

.durabilidad-page #durabilidad-factura-link {
    color: #1e5cff;
    font-weight: 700;
    text-decoration: none;
}

.durabilidad-page #durabilidad-factura-link:hover {
    text-decoration: underline;
}

.durabilidad-page #durabilidad-factura-name {
    color: #7a8ba2;
    font-size: 0.84rem;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-fin-wrap .form-control,
    .durabilidad-page .personal-quick-sheet.is-view-mode #durabilidad-garantia-wrap .form-control,
    .durabilidad-page .personal-quick-sheet.is-view-mode .personal-aviso-field .form-control {
        font-size: 1rem;
    }
}

/* Final mobile override for landing steps */
@media (max-width: 767.98px) {
    .landing-page .app-navbar {
        overflow: visible;
    }

    .landing-page .app-navbar .container-fluid {
        align-items: center !important;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.55rem;
        position: relative;
    }

    .landing-page .app-brand {
        flex: 1 1 auto;
        gap: 0.42rem;
        min-width: 0;
        white-space: nowrap;
    }

    .landing-page .app-brand-logo {
        height: 1.68rem;
        width: 1.68rem;
    }

    .landing-page .app-brand span {
        font-size: clamp(1.45rem, 7.3vw, 1.85rem) !important;
    }

    .landing-page .app-navbar .navbar-toggler {
        flex: 0 0 auto;
        margin-left: auto;
        padding: 0.38rem 0.52rem;
    }

    .landing-page #mainNav.navbar-collapse {
        background: #f8fbff;
        border-top: 1px solid #dbe5f2;
        box-shadow: 0 12px 22px rgba(15, 34, 64, 0.08);
        left: 0;
        padding: 0.55rem 0.2rem 0.9rem;
        position: absolute;
        right: 0;
        top: calc(100% + 0.2rem);
        z-index: 1035;
    }

    .landing-page #mainNav .flowza-top-menu,
    .landing-page #mainNav .flowza-top-actions {
        margin-top: 0 !important;
        width: 100%;
    }

    .landing-page #mainNav .flowza-top-actions {
        align-items: center;
        justify-content: center;
        gap: 0.7rem !important;
    }

    .landing-page #mainNav .flowza-top-actions .nav-item {
        display: flex;
        justify-content: center;
    }

    .flowza-hero {
        gap: 0.72rem;
        padding: 0.95rem 0.85rem 1.55rem;
    }

    .flowza-chip {
        font-size: 0.72rem;
        margin-bottom: 0.8rem;
        padding: 0.36rem 0.62rem;
    }

    .flowza-icon-chip {
        height: 0.78rem;
        width: 0.78rem;
    }

    .flowza-hero-copy h1 {
        font-size: clamp(1.48rem, 9.6vw, 2.18rem) !important;
        line-height: 1.08;
        margin-bottom: 0.55rem;
    }

    .flowza-hero-copy p {
        font-size: 0.82rem !important;
        line-height: 1.42;
        margin-bottom: 0.4rem;
    }

    .flowza-hero-actions {
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.48rem !important;
        justify-content: center;
        margin-top: 0.7rem;
    }

    .flowza-hero-actions .btn {
        align-items: center;
        display: inline-flex;
        font-size: 0.76rem !important;
        justify-content: center;
        min-height: 2.22rem !important;
        min-width: 0 !important;
        white-space: nowrap;
        text-align: center;
        width: calc(50% - 0.24rem);
        padding-inline: 0.78rem !important;
    }

    .flowza-icon-arrow,
    .flowza-icon-play {
        height: 0.78rem;
        width: 0.78rem;
    }

    .flowza-hero-points {
        align-items: center;
        display: flex;
        flex-direction: column;
        font-size: 0.72rem;
        gap: 0.62rem;
        justify-content: center;
        margin-top: 0.65rem;
        text-align: center;
        width: 100%;
    }

    .flowza-hero-points i {
        height: 0.86rem;
        width: 0.86rem;
    }

    .landing-flow h2 {
        font-size: clamp(1.2rem, 6vw, 1.58rem);
        line-height: 1.14;
        margin-inline: auto;
        max-width: 17rem;
        text-align: center;
    }

    .landing-flow p {
        font-size: 0.78rem;
        line-height: 1.34;
        margin-inline: auto;
        max-width: 16.5rem;
        text-align: center;
    }

    .landing-flow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: 23rem !important;
        width: 100% !important;
    }

    .landing-flow-steps div {
        border: 1px solid #dfe7f3 !important;
        border-radius: 0.85rem !important;
        padding: 0.72rem 0.62rem !important;
    }

    .landing-flow-steps div:nth-child(3) {
        grid-column: 1 / -1;
        margin-inline: auto;
        max-width: 11rem;
        width: 100%;
    }

    .landing-flow-steps div:not(:last-child)::after {
        display: none !important;
    }

    .landing-section-head {
        align-items: center;
        text-align: center;
    }

    .landing-section-head > div {
        width: 100%;
    }

    .landing-section-head h2 {
        font-size: clamp(1.28rem, 6.3vw, 1.72rem);
        line-height: 1.12;
        margin-inline: auto;
        max-width: 18rem;
    }

    .landing-section-head p {
        font-size: 0.78rem;
        line-height: 1.36;
        margin-inline: auto;
        max-width: 18rem;
    }

    .landing-plan-grid {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .landing-plan-card {
        gap: 0.72rem;
        min-height: 0;
        padding: 0.88rem;
    }

    .landing-plan-head {
        gap: 0.5rem;
    }

    .landing-plan-head h3 {
        font-size: 1rem;
    }

    .landing-plan-head span,
    .landing-plan-note {
        font-size: 0.65rem;
        padding: 0.24rem 0.5rem;
    }

    .landing-plan-card p {
        font-size: 0.74rem;
        line-height: 1.34;
    }

    .landing-plan-price {
        font-size: 1.08rem;
        line-height: 1.1;
    }

    .landing-plan-card ul {
        margin-bottom: 0.05rem;
    }

    .landing-plan-card li {
        font-size: 0.72rem;
        margin-bottom: 0.2rem;
        padding-left: 1rem;
    }

    .landing-plan-card li::before {
        font-size: 0.72rem;
        top: 0.06rem;
    }

    .landing-plan-card .btn {
        font-size: 0.76rem;
        min-height: 2.2rem;
        padding: 0.3rem 0.72rem;
    }

    .flowza-hero-actions .btn {
        font-size: 0.76rem !important;
        min-height: 2.22rem !important;
        min-width: 0 !important;
        width: calc(50% - 0.24rem) !important;
        padding-inline: 0.78rem !important;
    }
}

@media (max-width: 420px) {
    .landing-register-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .landing-page .app-brand span::after {
        content: "";
    }
}

.personal-quick-modal[hidden] {
    display: none !important;
}

.personal-quick-modal {
    inset: 0;
    position: fixed;
    z-index: 1200;
}

.personal-quick-backdrop {
    background: rgba(15, 23, 42, 0.45);
    inset: 0;
    position: absolute;
}

.personal-quick-sheet {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    inset: 2rem auto auto 50%;
    max-height: calc(100dvh - 4rem);
    max-width: min(56rem, calc(100vw - 2rem));
    overflow: hidden;
    position: absolute;
    transform: translateX(-50%);
    width: 100%;
}

.personal-quick-sheet form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.personal-quick-sheet.is-view-mode {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.personal-quick-sheet.is-save-success {
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.2), 0 0 0 2px rgba(54, 179, 126, 0.18);
}

.personal-quick-sheet.is-save-success .personal-quick-header {
    background:
        linear-gradient(180deg, rgba(237, 255, 246, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.personal-quick-sheet.is-view-mode .personal-quick-body {
    background:
        radial-gradient(circle at top right, rgba(45, 108, 223, 0.05), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, #f7faff 100%);
}

.personal-quick-sheet.is-view-mode .personal-quick-grid {
    align-items: start;
    gap: 0.9rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-quick-sheet.is-view-mode .personal-name-field {
    display: none;
}

.personal-quick-sheet.is-view-mode .personal-quick-field,
.personal-quick-sheet.is-view-mode .personal-quick-field-full {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 228, 239, 0.96);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    padding: 0.82rem 0.95rem 0.9rem;
}

.personal-quick-header {
    align-items: center;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.1rem 0.95rem;
}

.personal-quick-kicker {
    color: #7a8ba3;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.personal-quick-title {
    color: #182230;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.personal-quick-header-identity {
    align-items: center;
    display: flex;
    gap: 0.9rem;
    min-width: 0;
}

.personal-quick-header-logo {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid rgba(207, 220, 238, 0.95);
    border-radius: 1rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    display: inline-flex;
    flex: 0 0 auto;
    height: 3.35rem;
    justify-content: center;
    overflow: hidden;
    padding: 0.35rem;
    width: 3.35rem;
}

.personal-quick-header-logo-image {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.personal-quick-header-logo-badge {
    align-items: center;
    border-radius: 0.85rem;
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 800;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.personal-quick-close-btn {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(198, 212, 230, 0.95);
    border-radius: 0.9rem;
    color: #375172;
    display: inline-flex;
    font-size: 1.55rem;
    height: 2.65rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 2.65rem;
}

.personal-quick-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.05rem 1.1rem 1rem;
}

.personal-quick-grid {
    display: grid;
    gap: 1rem 0.95rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-quick-field {
    min-width: 0;
}

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

.personal-quick-sheet.is-view-mode .personal-quick-field > .form-label,
.personal-quick-sheet.is-view-mode .personal-quick-field-full > .form-label {
    color: #73839b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.38rem;
    text-transform: uppercase;
}

.personal-quick-sheet.is-view-mode .form-control,
.personal-quick-sheet.is-view-mode .form-select {
    background: transparent;
    border: 0;
    box-shadow: none !important;
    color: #1b2738;
    cursor: default;
    font-size: 1rem;
    font-weight: 600;
    min-height: 0;
    pointer-events: none;
    padding: 0;
}

.personal-quick-sheet.is-view-mode textarea.form-control {
    height: auto;
    line-height: 1.65;
    min-height: 0;
    overflow: hidden;
    resize: none;
}

.personal-quick-sheet.is-view-mode .personal-meta-field .form-control,
.personal-quick-sheet.is-view-mode .personal-meta-field .form-select {
    font-size: 1.02rem;
    font-weight: 700;
}

.personal-quick-sheet.is-view-mode #personal-estado {
    display: none;
}

.personal-quick-sheet.is-view-mode #personal-nombre {
    color: #162338;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.3;
}

.personal-quick-sheet.is-view-mode #personal-identificador,
.personal-quick-sheet.is-view-mode #personal-proveedor {
    font-size: 1.05rem;
    font-weight: 700;
}

.personal-quick-sheet.is-view-mode .personal-notes-field .form-control {
    color: #2a3f58;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    white-space: pre-wrap;
}

.personal-quick-sheet.is-view-mode .personal-notes-field {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 252, 255, 0.98) 100%);
    border-color: rgba(214, 224, 237, 0.98);
    padding-bottom: 0.82rem;
}

.personal-quick-sheet.is-view-mode .personal-notes-field.is-compact-view {
    padding-bottom: 0.7rem;
    padding-top: 0.72rem;
}

.personal-quick-sheet.is-view-mode .personal-notes-field.is-compact-view .form-label {
    margin-bottom: 0.22rem;
}

.personal-quick-sheet.is-view-mode .personal-notes-field.is-compact-view .form-control {
    font-size: 1.02rem;
    line-height: 1.35;
}

.personal-quick-sheet.is-view-mode .form-check {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    border: 1px solid rgba(220, 229, 241, 0.96);
    border-radius: 0.95rem;
    padding: 0.72rem 0.9rem 0.72rem 2.3rem;
}

.personal-quick-sheet.is-view-mode .form-check-input {
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

.personal-quick-sheet.is-view-mode .form-check-label {
    color: #43566f;
    font-weight: 700;
}

.personal-quick-sheet.is-view-mode .personal-toggle-field .form-check {
    background: #f7faff;
    box-shadow: inset 0 0 0 1px rgba(214, 224, 237, 0.58);
}

.personal-quick-sheet.is-view-mode .personal-toggle-field {
    background: transparent;
    border: 0;
    box-shadow: none;
    grid-column: auto;
    padding: 0;
}

.personal-quick-sheet.is-view-mode .personal-contract-toggle-field {
    grid-column: 1;
}

.personal-quick-sheet.is-view-mode #personal-vencimiento-wrap {
    grid-column: 2;
}

.personal-quick-sheet.is-view-mode .personal-monthly-toggle-field {
    grid-column: 1;
}

.personal-quick-sheet.is-view-mode #personal-factura-wrap {
    grid-column: 2;
}

.personal-quick-sheet.is-view-mode .personal-icon-section {
    display: none;
}

.personal-quick-sheet.is-view-mode .personal-view-badge {
    margin-top: 0.2rem;
    width: fit-content;
}

.personal-quick-sheet.is-view-mode .personal-quick-footer {
    background: rgba(255, 255, 255, 0.96);
}

.personal-quick-sheet.is-view-mode #personal-vencimiento-wrap,
.personal-quick-sheet.is-view-mode #personal-factura-wrap {
    background:
        radial-gradient(circle at top right, rgba(45, 108, 223, 0.06), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding-left: 3.4rem;
    position: relative;
}

.personal-quick-sheet.is-view-mode #personal-vencimiento-wrap .form-control,
.personal-quick-sheet.is-view-mode #personal-factura-wrap .form-control {
    color: #12233c;
    font-size: 1.08rem;
    font-weight: 800;
}

.personal-quick-sheet.is-view-mode #personal-vencimiento-wrap .form-label,
.personal-quick-sheet.is-view-mode #personal-factura-wrap .form-label {
    margin-bottom: 0.42rem;
}

.personal-quick-sheet.is-view-mode #personal-vencimiento-wrap::before,
.personal-quick-sheet.is-view-mode #personal-factura-wrap::before {
    align-items: center;
    background:
        linear-gradient(180deg, #eef4ff 0%, #dfeafe 100%);
    border: 1px solid rgba(196, 211, 234, 0.9);
    border-radius: 0.85rem;
    color: #2856b5;
    content: "";
    display: inline-flex;
    height: 2.1rem;
    justify-content: center;
    left: 0.95rem;
    position: absolute;
    top: 0.95rem;
    width: 2.1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232856b5' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='17' rx='3'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
}

.personal-quick-sheet.is-view-mode #personal-vencimiento-wrap::after,
.personal-quick-sheet.is-view-mode #personal-factura-wrap::after {
    color: #7c8da5;
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.25rem;
}

.personal-quick-sheet.is-view-mode #personal-vencimiento-wrap::after {
    content: "Fecha comprometida del contrato o servicio.";
}

.personal-quick-sheet.is-view-mode #personal-factura-wrap::after {
    content: "Proximo vencimiento de factura asociado.";
}

.personal-quick-sheet.is-view-mode .personal-status-field {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.personal-quick-sheet.is-view-mode .personal-aviso-field .form-control {
    color: #16324f;
    font-size: 1.08rem;
    font-weight: 800;
}

.personal-quick-sheet.is-view-mode .personal-aviso-field::after {
    color: #7c8da5;
    content: "Dias antes para recordarte esta gestion.";
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.25rem;
}

.personal-quick-sheet.is-view-mode #personal-vencimiento-wrap[hidden],
.personal-quick-sheet.is-view-mode #personal-factura-wrap[hidden] {
    display: none !important;
}

.personal-quick-sheet.is-edit-mode .personal-quick-header-logo {
    display: none;
}

.personal-view-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.42rem 0.8rem;
}

.personal-view-badge.is-success {
    background: #def7e8;
    color: #18794e;
}

.personal-view-badge.is-warning {
    background: #fff2cc;
    color: #9a6700;
}

.personal-view-badge.is-neutral {
    background: #e9eef5;
    color: #516275;
}

.personal-quick-sheet.is-edit-mode .personal-view-badge {
    display: none !important;
}

.personal-quick-footer {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--app-border);
    display: flex;
    gap: 0.9rem;
    justify-content: flex-end;
    padding: 0.8rem 1.1rem;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.personal-quick-error {
    color: #d94848;
    font-size: 0.9rem;
    min-height: 1.25rem;
    margin-right: auto;
}

.personal-quick-error.is-success {
    color: #18794e;
    font-weight: 700;
}

.personal-quick-actions {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

.personal-modal-header-btn {
    background: linear-gradient(180deg, #fff7d6 0%, #ffe79a 100%);
    border-color: rgba(236, 191, 46, 0.78);
    color: #8d5a00;
}

.personal-modal-header-btn:hover {
    background: linear-gradient(180deg, #ffefb7 0%, #ffd96a 100%);
    color: #6d4300;
}

.personal-icon-section {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(243, 247, 253, 0.92) 100%);
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 1rem;
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
}

.personal-icon-section-copy {
    min-width: 0;
}

.personal-icon-section-grid {
    align-items: start;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.workspace-link-btn {
    background: transparent;
    border: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

.personal-mobile-summary {
    display: none;
}

.durabilidad-mobile-summary {
    display: none;
}

.personal-inline-confirm[hidden] {
    display: none !important;
}

.personal-inline-confirm {
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    min-width: 13rem;
    padding: 0.55rem;
    position: absolute;
    z-index: 1300;
}

.personal-inline-confirm-text {
    color: #2a3d58;
    font-size: 0.84rem;
    margin-bottom: 0.45rem;
}

.personal-inline-confirm-actions {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .personal-quick-sheet {
        border-radius: 1rem;
        inset: 0.55rem 0.45rem;
        max-height: calc(100dvh - 1.1rem);
        max-width: none;
        transform: none;
        width: auto;
    }

    .personal-quick-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .personal-quick-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.95rem 0.95rem 0.8rem;
    }

    .personal-quick-header-main {
        width: 100%;
    }

    .personal-quick-header-identity {
        width: 100%;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .personal-quick-title {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .personal-quick-header-actions {
        display: grid;
        gap: 0.55rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
    }

    .personal-quick-header-actions > * {
        width: 100%;
    }

    .personal-quick-header-logo {
        border-radius: 0.9rem;
        height: 3rem;
        width: 3rem;
    }

    .personal-quick-close-btn,
    .personal-quick-header-actions .icon-action-btn {
        height: 3rem;
        width: 100%;
    }

    .personal-quick-body {
        padding: 0.8rem 0.95rem 0.85rem;
    }

    .personal-quick-field,
    .personal-quick-field-full {
        min-width: 0;
    }

    .personal-quick-sheet.is-edit-mode .personal-quick-grid {
        gap: 0.85rem;
    }

    .personal-quick-sheet.is-edit-mode .personal-quick-field,
    .personal-quick-sheet.is-edit-mode .personal-quick-field-full {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(220, 228, 239, 0.96);
        border-radius: 0.95rem;
        padding: 0.82rem 0.82rem 0.88rem;
    }

    .personal-quick-sheet.is-edit-mode .personal-toggle-field {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .personal-quick-sheet.is-edit-mode .form-label {
        color: #5f7390;
        font-size: 0.73rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        margin-bottom: 0.4rem;
        text-transform: uppercase;
    }

    .personal-quick-sheet.is-edit-mode .form-control,
    .personal-quick-sheet.is-edit-mode .form-select {
        border-radius: 0.85rem;
        font-size: 0.97rem;
        min-height: 2.9rem;
        padding: 0.72rem 0.82rem;
    }

    .personal-quick-sheet.is-edit-mode textarea.form-control {
        min-height: 7.25rem;
    }

    .personal-quick-sheet.is-edit-mode .form-check {
        background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
        border: 1px solid rgba(220, 229, 241, 0.96);
        border-radius: 0.92rem;
        min-height: 0;
        padding: 0.74rem 0.82rem 0.74rem 2.2rem;
    }

    .personal-quick-sheet.is-edit-mode .form-check-label {
        color: #52657f;
        font-size: 0.93rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .personal-quick-sheet.is-edit-mode #personal-vencimiento-wrap,
    .personal-quick-sheet.is-edit-mode #personal-factura-wrap {
        background: linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%);
    }

    .personal-quick-sheet.is-edit-mode .personal-icon-section {
        border-radius: 0.95rem;
        gap: 0.75rem;
        padding: 0.82rem;
    }

    .personal-quick-sheet.is-edit-mode .personal-icon-section-copy .form-text {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .personal-quick-sheet.is-edit-mode .personal-icon-preview {
        min-height: 3rem;
    }

    .personal-quick-sheet.is-view-mode .personal-quick-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .personal-quick-sheet.is-view-mode .personal-quick-field,
    .personal-quick-sheet.is-view-mode .personal-quick-field-full {
        border-radius: 0.95rem;
        padding: 0.75rem 0.82rem 0.78rem;
    }

    .personal-quick-sheet.is-view-mode .personal-quick-field > .form-label,
    .personal-quick-sheet.is-view-mode .personal-quick-field-full > .form-label {
        font-size: 0.67rem;
        margin-bottom: 0.28rem;
    }

    .personal-quick-sheet.is-view-mode #personal-identificador,
    .personal-quick-sheet.is-view-mode #personal-proveedor,
    .personal-quick-sheet.is-view-mode .personal-meta-field .form-control,
    .personal-quick-sheet.is-view-mode .personal-meta-field .form-select {
        font-size: 0.94rem;
        line-height: 1.3;
    }

    .personal-quick-sheet.is-view-mode .personal-notes-field .form-control {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .personal-quick-sheet.is-view-mode .form-check {
        min-height: 0;
        padding: 0.72rem 0.8rem 0.72rem 2.15rem;
    }

    .personal-quick-sheet.is-view-mode .form-check-label {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .personal-quick-sheet.is-view-mode .personal-contract-toggle-field,
    .personal-quick-sheet.is-view-mode .personal-monthly-toggle-field,
    .personal-quick-sheet.is-view-mode #personal-vencimiento-wrap,
    .personal-quick-sheet.is-view-mode #personal-factura-wrap {
        grid-column: auto;
    }

    .personal-quick-sheet.is-view-mode #personal-vencimiento-wrap,
    .personal-quick-sheet.is-view-mode #personal-factura-wrap {
        min-height: 0;
        padding-left: 0.82rem;
        padding-top: 0.75rem;
    }

    .personal-quick-sheet.is-view-mode #personal-vencimiento-wrap::before,
    .personal-quick-sheet.is-view-mode #personal-factura-wrap::before {
        display: none;
    }

    .personal-quick-sheet.is-view-mode #personal-vencimiento-wrap .form-control,
    .personal-quick-sheet.is-view-mode #personal-factura-wrap .form-control,
    .personal-quick-sheet.is-view-mode .personal-aviso-field .form-control {
        font-size: 0.98rem;
    }

    .personal-quick-sheet.is-view-mode #personal-vencimiento-wrap::after,
    .personal-quick-sheet.is-view-mode #personal-factura-wrap::after,
    .personal-quick-sheet.is-view-mode .personal-aviso-field::after {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .personal-quick-sheet.is-view-mode .personal-status-field {
        min-height: 0;
    }

    .personal-view-badge {
        min-height: 2rem;
        padding: 0.34rem 0.72rem;
    }

    .personal-icon-section-grid {
        grid-template-columns: 1fr;
    }

    .personal-quick-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.72rem 0.95rem calc(0.72rem + env(safe-area-inset-bottom, 0px));
    }

    .personal-quick-actions {
        display: grid;
        gap: 0.5rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
    }

    .personal-quick-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .personal-quick-sheet {
        border-radius: 0.95rem;
        inset: 0.35rem 0.25rem;
        max-height: calc(100dvh - 0.7rem);
    }

    .personal-quick-header {
        gap: 0.65rem;
        padding: 0.8rem 0.8rem 0.7rem;
    }

    .personal-quick-kicker {
        font-size: 0.7rem;
    }

    .personal-quick-header-identity {
        gap: 0.65rem;
    }

    .personal-quick-header-logo {
        height: 2.7rem;
        width: 2.7rem;
    }

    .personal-quick-title {
        font-size: 0.98rem;
        line-height: 1.12;
    }

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

    .personal-quick-close-btn,
    .personal-quick-header-actions .icon-action-btn {
        border-radius: 0.85rem;
        height: 2.8rem;
    }

    .personal-quick-body {
        padding: 0.72rem 0.8rem 0.78rem;
    }

    .personal-quick-grid {
        gap: 0.72rem;
    }

    .personal-quick-sheet.is-edit-mode .personal-quick-grid {
        gap: 0.72rem;
    }

    .personal-quick-sheet.is-edit-mode .personal-quick-field,
    .personal-quick-sheet.is-edit-mode .personal-quick-field-full {
        border-radius: 0.9rem;
        padding: 0.74rem 0.74rem 0.78rem;
    }

    .personal-quick-sheet.is-edit-mode .form-label {
        font-size: 0.68rem;
        margin-bottom: 0.34rem;
    }

    .personal-quick-sheet.is-edit-mode .form-control,
    .personal-quick-sheet.is-edit-mode .form-select {
        font-size: 0.93rem;
        min-height: 2.75rem;
        padding: 0.66rem 0.76rem;
    }

    .personal-quick-sheet.is-edit-mode textarea.form-control {
        min-height: 6.5rem;
    }

    .personal-quick-sheet.is-edit-mode .form-check {
        padding: 0.68rem 0.76rem 0.68rem 2.05rem;
    }

    .personal-quick-sheet.is-edit-mode .form-check-label {
        font-size: 0.89rem;
    }

    .personal-quick-sheet.is-edit-mode .personal-icon-section {
        gap: 0.68rem;
        padding: 0.74rem;
    }

    .personal-quick-sheet.is-edit-mode .personal-icon-section-copy .form-text {
        font-size: 0.74rem;
    }

    .personal-quick-sheet.is-view-mode .personal-quick-grid {
        gap: 0.72rem;
    }

    .personal-quick-sheet.is-view-mode .personal-quick-field,
    .personal-quick-sheet.is-view-mode .personal-quick-field-full {
        border-radius: 0.9rem;
        padding: 0.68rem 0.75rem 0.72rem;
    }

    .personal-quick-sheet.is-view-mode .form-check {
        padding: 0.66rem 0.75rem 0.66rem 2rem;
    }

    .personal-quick-sheet.is-view-mode .form-check-label {
        font-size: 0.88rem;
    }

    .personal-quick-sheet.is-view-mode #personal-vencimiento-wrap .form-control,
    .personal-quick-sheet.is-view-mode #personal-factura-wrap .form-control,
    .personal-quick-sheet.is-view-mode .personal-aviso-field .form-control,
    .personal-quick-sheet.is-view-mode #personal-identificador,
    .personal-quick-sheet.is-view-mode #personal-proveedor,
    .personal-quick-sheet.is-view-mode .personal-meta-field .form-control,
    .personal-quick-sheet.is-view-mode .personal-meta-field .form-select {
        font-size: 0.92rem;
    }

    .personal-quick-sheet.is-view-mode .personal-notes-field .form-control {
        font-size: 0.91rem;
        line-height: 1.45;
    }

    .personal-quick-sheet.is-view-mode .personal-notes-field {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
        padding-bottom: 0.64rem;
        padding-top: 0.64rem;
    }

    .personal-quick-sheet.is-view-mode .personal-notes-field .form-label {
        margin-bottom: 0.2rem;
    }

    .personal-quick-sheet.is-view-mode .personal-notes-field .form-control {
        color: #334760;
        max-height: 8.75rem;
        overflow-y: auto;
        padding-right: 0.12rem;
    }

    .personal-quick-sheet.is-view-mode .personal-notes-field.is-compact-view {
        padding-bottom: 0.58rem;
        padding-top: 0.58rem;
    }

    .personal-view-badge {
        font-size: 0.78rem;
        min-height: 1.85rem;
        padding: 0.32rem 0.66rem;
    }

    .personal-quick-footer {
        padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Final mobile safeguard: Habit month tracker readability */
@media (max-width: 767.98px) {
    .habits-page .habit-month-wrapper {
        -webkit-overflow-scrolling: touch !important;
        overflow-x: auto !important;
        padding: 0.3rem !important;
        position: relative !important;
    }

    .habits-page .habit-month-grid {
        grid-template-columns: minmax(9.5rem, 11rem) repeat(var(--habit-day-count), minmax(1.25rem, 1fr)) !important;
        min-width: max-content !important;
        width: auto !important;
    }

    .habits-page .habit-grid-header {
        min-height: 2.7rem !important;
        padding: 0.18rem 0.08rem !important;
    }

    .habits-page .habit-grid-habit,
    .habits-page .habit-grid-cell {
        min-height: 2.95rem !important;
    }

    .habits-page .habit-grid-habit {
        padding: 0.35rem 0.42rem !important;
    }

    .habits-page .habit-grid-habit-name {
        font-size: 0.88rem !important;
    }

    .habits-page .habit-grid-weekday {
        font-size: 0.58rem !important;
    }

    .habits-page .habit-grid-day-number {
        font-size: 0.86rem !important;
    }

    .habits-page .habit-calendar-toggle {
        font-size: 0.72rem !important;
        height: 1.12rem !important;
        width: 1.12rem !important;
    }
}

/* Habit dashboard visual refresh */
.habits-page .habit-top-actions .btn {
    border-radius: 0.68rem;
    font-weight: 600;
    min-height: 2.35rem;
    padding-inline: 1rem;
}

.habits-page .workspace-subtitle {
    color: #61738f;
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

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

.habit-kpi-grid .card {
    border: 1px solid #e2eaf5 !important;
    border-radius: 0.95rem;
}

.habit-kpi-label {
    color: #5f7190;
    font-size: 0.82rem;
    font-weight: 600;
}

.habit-kpi-value {
    color: #152a4a;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.05;
    margin-top: 0.25rem;
}

.habit-kpi-foot {
    color: #61738f;
    font-size: 0.83rem;
    margin-top: 0.22rem;
}

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

@media (max-width: 767.98px) {
    .habits-page .habit-top-actions {
        width: 100%;
    }

    .habits-page .habit-top-actions .btn {
        flex: 1 1 0;
        font-size: 0.78rem;
        min-height: 2.05rem;
        padding-inline: 0.65rem;
    }

    .habits-page .workspace-subtitle {
        font-size: 0.8rem;
        margin-top: 0.22rem;
    }

    .habit-kpi-grid {
        gap: 0.55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .habit-kpi-grid .card .card-body {
        padding: 0.72rem !important;
    }

    .habit-kpi-label {
        font-size: 0.72rem;
    }

    .habit-kpi-value {
        font-size: 1.2rem;
    }

    .habit-kpi-foot {
        font-size: 0.7rem;
    }
}
