:root {
    --color-brand-pink: #f20922;
    --color-brand-orange: #f75011;
    --color-brand-yellow: #fc9600;
    --color-ink: #12263f;
    --color-text: #506690;
    --color-muted: #95aac9;
    --color-border: #e3ebf6;
    --color-surface: #ffffff;
    --color-bg: #f7f9fc;
    --color-shadow: 0 1.5rem 4rem rgba(18, 38, 63, 0.08);
    --radius-xl: 4px;
    --radius-lg: 4px;
    --bs-border-radius: 4px;
    --bs-border-radius-sm: 4px;
    --bs-border-radius-lg: 4px;
    --bs-border-radius-xl: 4px;
    --bs-border-radius-xxl: 4px;
    --bs-border-radius-pill: 4px;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/Roboto-Light.woff2") format("woff2"), url("../assets/fonts/Roboto-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/Roboto-Light.woff2") format("woff2"), url("../assets/fonts/Roboto-Light.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(242, 9, 34, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(247, 80, 17, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
    color: var(--color-ink);
}

a {
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
}

.app-frame {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
    color: rgba(255, 255, 255, 0.88);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand, .auth-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sidebar-brand {
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-logo-sm {
    width: 2.35rem;
    height: 2.35rem;
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 400;
    background: linear-gradient(135deg, var(--color-brand-pink), var(--color-brand-orange));
    box-shadow: 0 0.75rem 1.75rem rgba(242, 9, 34, 0.28);
}

.brand-mark-logo {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.brand-mark-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-name {
    font-weight: 400;
    font-size: 1.1rem;
    color: #fff;
}

.brand-tag {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.sidebar-nav {
    gap: 0.35rem;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 4px;
    padding: 0.82rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 500;
}

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

.sidebar-home-link {
    margin-bottom: 0.15rem;
}

.sidebar-link-icon {
    width: 1.8rem;
    display: inline-flex;
    justify-content: center;
    opacity: 0.9;
}

.sidebar-card {
    margin-top: auto;
    padding: 1rem;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(242, 9, 34, 0.16), rgba(252, 150, 0, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-card-title {
    font-weight: 400;
    margin-bottom: 0.35rem;
}

.sidebar-card-copy {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.74);
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(227, 235, 246, 0.8);
    background: rgba(247, 249, 252, 0.9);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 60;
    overflow: visible;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-left {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 400;
}

.topbar-subtitle {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 0.5rem 1.4rem rgba(18, 38, 63, 0.05);
    font-size: 0.9rem;
    color: var(--color-ink);
}

.topbar-menu-button {
    width: 2.75rem;
    height: 2.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    color: #17345f;
    box-shadow: 0 0.5rem 1.2rem rgba(15, 38, 79, 0.05);
    flex-shrink: 0;
}

.topbar-menu-button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 1035;
}

.dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    display: inline-block;
}

.dot-brand {
    background: linear-gradient(135deg, var(--color-brand-pink), var(--color-brand-orange));
}

.app-content {
    padding: 2rem;
}

.content-stack {
    display: grid;
    gap: 1.5rem;
}

.hero-card, .panel-card, .stat-card, .widget-box, .auth-card, .card-shell {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(227, 235, 246, 0.95);
    box-shadow: var(--color-shadow);
    border-radius: var(--radius-xl);
}

.hero-card {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.section-kicker {
    color: var(--color-brand-pink);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
    margin-bottom: 0.55rem;
}

.hero-copy h1, .auth-copy h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 0.9rem;
    font-weight: 400;
}

.hero-copy p, .auth-copy p, .panel-subtitle, .widget-note {
    color: var(--color-text);
}

.mini-chart, .line-chart, .widget-mini-chart {
    width: 100%;
    min-height: 220px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(242, 9, 34, 0.05), rgba(252, 150, 0, 0.03));
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.line-chart {
    min-height: 260px;
}

.stats-grid, .panel-grid, .widget-grid, .auth-grid {
    display: grid;
    gap: 1.25rem;
}

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

.panel-grid {
    grid-template-columns: 1.3fr 1fr;
}

.stat-card {
    padding: 1.25rem;
}

.stat-label, .widget-label {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.stat-delta {
    margin-top: 0.65rem;
    font-weight: 400;
}

.text-success { color: #00c9a7; }
.text-primary { color: #377dff; }
.text-warning { color: #f5a623; }
.text-info { color: #42b6ff; }

.panel-card {
    padding: 1.5rem;
}

.panel-head {
    margin-bottom: 1rem;
}

.panel-title, .card-title {
    font-size: 1.2rem;
    font-weight: 400;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    align-items: start;
}

.timeline-time {
    color: var(--color-muted);
    font-weight: 500;
}

.timeline-title {
    font-weight: 600;
}

.timeline-meta {
    color: var(--color-text);
    font-size: 0.92rem;
}

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

.auth-screen {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
}

.auth-backdrop {
    display: none;
}

.auth-backdrop-alt {
    display: none;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(5rem, 18vh, 11rem) 1rem 2rem;
}

.auth-centered {
    width: min(100%, 450px);
}

.auth-brand-login {
    justify-content: center;
    margin-bottom: 1.15rem;
}

.auth-card-basic {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 400;
    color: #1f2d3d;
}

.auth-subtitle {
    margin: 0;
    color: #9aa9c6;
    font-size: 1.05rem;
    margin-top: 0.65rem;
}

.auth-header-copy {
    margin-bottom: 2.4rem;
}

.auth-link {
    color: #9aa9c6;
    font-weight: 500;
    font-size: 0.96rem;
}

.auth-link:hover {
    color: #3a7bff;
}

.auth-label {
    color: #1f2d3d;
    font-size: 1rem;
}

.auth-input {
    height: 52px;
    border-radius: 4px;
    border: 1px solid #d5dff0;
    color: #1f2d3d;
    background: #fff;
    box-shadow: none;
}

.auth-input::placeholder {
    color: #b8c3d9;
}

.auth-input:focus {
    border-color: #b6c9f7;
    box-shadow: none;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-input {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: #9aa9c6;
    padding: 0;
}

.auth-password-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.btn-signin {
    height: 58px;
    border: 0;
    border-radius: 4px;
    background: #3a7bff;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 0.85rem;
}

.btn-signin:hover {
    color: #fff;
    background: #326ee5;
}

.auth-footer {
    margin-top: 1.25rem;
    text-align: center;
    color: #9aa9c6;
    font-size: 0.96rem;
}

.btn-soft {
    background: rgba(18, 38, 63, 0.05);
    border: 1px solid rgba(18, 38, 63, 0.08);
}

.error-state {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 0.8rem;
}

.error-code {
    font-size: 5rem;
    font-weight: 400;
    color: var(--color-brand-pink);
    line-height: 1;
}

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

.widget-box {
    padding: 1.25rem;
}

.widget-box-accent {
    background: linear-gradient(135deg, rgba(242, 9, 34, 0.06), rgba(252, 150, 0, 0.04));
}

.widget-number {
    font-size: 2rem;
    font-weight: 400;
}

.form-control {
    border-radius: 4px;
    border-color: var(--color-border);
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(242, 9, 34, 0.12);
    border-color: rgba(242, 9, 34, 0.35);
}

@media (max-width: 1199.98px) {
    .sidebar {
        position: fixed;
        left: -300px;
        z-index: 1040;
        transition: left 0.22s ease;
    }

    body.sidebar-open .sidebar {
        left: 0;
    }

    .hero-card, .panel-grid, .stats-grid, .widget-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 767.98px) {
    .topbar, .app-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-card, .panel-card, .auth-card-basic {
        padding: 1.1rem;
    }

    .stats-grid, .widget-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .topbar {
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard redesign overrides */
.app-frame {
    background: #f6f8fc;
}

.sidebar {
    width: 286px;
    background: #fff;
    color: #5e77a5;
    padding: 1.45rem 1.15rem 1.25rem;
    border-right: 1px solid #e6edf7;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    gap: 0.9rem;
}

.sidebar-brand {
    justify-content: center;
    margin-bottom: 0;
    padding-bottom: 0.25rem;
    border-bottom: 0;
}

.sidebar-logo {
    width: 2rem;
    height: 2rem;
    color: #2f7ef6;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sidebar-logo svg,
.sidebar-link-icon svg,
.stat-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sidebar-nav {
    display: grid;
    gap: 0.22rem;
    flex: 1;
    min-height: 0;
    padding-bottom: 1rem;
    overflow-y: auto;
    padding-right: 0.2rem;
    scrollbar-gutter: stable;
}

.sidebar-group-title {
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #9cadcf;
    text-transform: uppercase;
    margin: 0 0 0.3rem;
}

.sidebar-group {
    display: grid;
    gap: 0.02rem;
}

.sidebar-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.28rem 0.5rem;
    border: 0;
    background: transparent;
    color: #5e77a5;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}

.sidebar-group-toggle:hover {
    background: #f2f6fd;
    color: #2f4c81;
}

.sidebar-group-toggle.is-open {
    background: #f2f6fd;
    color: #17345f;
}

.sidebar-group-toggle.active .sidebar-group-chevron,
.sidebar-group-toggle:hover .sidebar-group-chevron {
    color: #2f7ef6;
}

.sidebar-group-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    color: #5e77a5;
    font-size: 1rem;
    font-weight: 500;
}

.sidebar-link:hover {
    background: #f2f6fd;
    color: #2f4c81;
}

.sidebar-link.active {
    background: #f2f6fd;
    color: #17345f;
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -1.15rem;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #2f7ef6;
}

.sidebar-link-icon {
    width: 1.35rem;
    height: 1.35rem;
    color: #7f97be;
    flex: 0 0 auto;
}

.sidebar-divider {
    height: 1px;
    margin: 0 0.55rem 0.45rem;
    background: linear-gradient(90deg, rgba(191, 203, 225, 0), rgba(191, 203, 225, 0.95), rgba(191, 203, 225, 0));
}

.sidebar-group-toggle-left .sidebar-link-icon {
    width: 1.45rem;
    height: 1.45rem;
}

.sidebar-link.active .sidebar-link-icon {
    color: #2f7ef6;
}

.sidebar-link-bar {
    margin-left: auto;
    width: 1.5rem;
    height: 0.2rem;
    border-radius: 4px;
    background: #2f7ef6;
}

.sidebar-group-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #8ea1c4;
    transition: transform 0.2s ease, color 0.2s ease;
    flex: 0 0 auto;
}

.sidebar-group-chevron svg {
    width: 100%;
    height: 100%;
}

.sidebar-group-toggle.is-open .sidebar-group-chevron {
    transform: rotate(180deg);
    color: #2f7ef6;
}

.app-main {
    background: #f6f8fc;
}

.topbar {
    height: 82px;
    padding: 0 1.8rem 0 1.7rem;
    border-bottom: 1px solid #e6edf7;
    background: #fff;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: min(32rem, 100%);
    color: #9cadcf;
    position: relative;
}

.topbar-search svg {
    width: 1.1rem;
    height: 1.1rem;
}

.topbar-search input {
    border: 0;
    outline: none;
    background: transparent;
    color: #17345f;
    width: 100%;
    font-size: 1rem;
}

.topbar-search input::placeholder {
    color: #a7b7d5;
}

.topbar-search-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid #dfe7f6;
    border-radius: 4px;
    box-shadow: 0 16px 42px rgba(23, 52, 95, 0.1);
    overflow: hidden;
}

.topbar-notifications {
    position: relative;
}

.topbar-notification-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    width: min(26rem, calc(100vw - 2rem));
    z-index: 40;
    background: #fff;
    border: 1px solid #dfe7f6;
    border-radius: 4px;
    box-shadow: 0 16px 42px rgba(23, 52, 95, 0.1);
    overflow: hidden;
}

.topbar-search-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid #edf2fa;
    color: #8ea0c7;
    font-size: 0.9rem;
}

.topbar-search-head a {
    color: #2f7ef6;
}

.topbar-search-list {
    display: grid;
    gap: 0;
}

.topbar-notification-footer {
    padding: 0.85rem 0.95rem 0.95rem;
    border-top: 1px solid #edf2fa;
    background: #fff;
    display: grid;
    gap: 0.5rem;
}

.topbar-search-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 0.95rem;
    border-bottom: 1px solid #f1f5fb;
    color: inherit;
}

.topbar-search-item.is-read {
    background: #fbfdff;
    opacity: 0.82;
}

.topbar-search-item.is-unread {
    background: #ffffff;
}

.topbar-search-item:hover {
    background: #f8fbff;
}

.topbar-search-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.topbar-search-item-top strong {
    color: #17345f;
    font-size: 0.96rem;
    font-weight: 400;
}

.topbar-search-item-top span {
    color: #8ea0c7;
    font-size: 0.82rem;
}

.topbar-search-item-meta,
.topbar-search-empty {
    color: #8ea0c7;
    font-size: 0.9rem;
}

.topbar-search-empty {
    padding: 0.85rem 0.95rem;
}

.topbar-right {
    gap: 1rem;
}

.topbar-icon-button {
    position: relative;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: transparent;
    color: #17345f;
    padding: 0;
}

.topbar-icon-button svg {
    width: 100%;
    height: 100%;
}

.topbar-badge {
    position: absolute;
    right: -0.35rem;
    top: -0.35rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: #2dd36f;
    border: 2px solid #fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    line-height: 1;
}

.topbar-avatar {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4c3a2, #efdfd1);
    display: grid;
    place-items: center;
    color: #17345f;
    font-weight: 400;
    overflow: hidden;
}

.topbar-avatar img,
.topbar-profile-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topbar-online {
    position: absolute;
    right: 0.08rem;
    bottom: 0.08rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #34d16d 0%, #19b84f 100%);
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1px rgba(18, 38, 63, 0.06);
    pointer-events: none;
}

.topbar-user {
    display: flex;
    align-items: center;
    position: relative;
}

.topbar-profile-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.topbar-profile-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 126, 246, 0.18);
    border-radius: 999px;
}

.topbar-profile-menu {
    min-width: 16rem;
    border-radius: 4px;
    padding: 0.75rem;
    border: 1px solid #dfe7f4;
    box-shadow: 0 18px 40px rgba(23, 52, 95, 0.12);
}

.topbar-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-profile-mini-avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f4c3a2, #efdfd1);
    color: #17345f;
    font-weight: 400;
    flex: 0 0 auto;
    overflow: hidden;
}

.topbar-profile-email {
    color: #8ea0c7;
    font-size: 0.88rem;
    margin-top: 0.1rem;
}

.topbar-profile-menu .dropdown-item {
    border-radius: 4px;
    padding: 0.62rem 0.75rem;
}

.topbar-profile-menu .dropdown-item:active {
    background: #2f7ef6;
    color: #fff;
}

.profile-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    align-items: start;
}

.profile-main-stack {
    display: grid;
    gap: 1.25rem;
}

.profile-form {
    display: grid;
    gap: 1rem;
}

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

.profile-events-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-field {
    display: grid;
    gap: 0.5rem;
}

.profile-field-wide {
    grid-column: 1 / -1;
}

.profile-photo-panel {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.profile-photo-preview-wrap {
    display: grid;
    place-items: center;
}

.profile-photo-preview {
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    border: 1px solid #dfe7f4;
    overflow: hidden;
    background: #f8fbff;
    color: #17345f;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 400;
}

.profile-photo-placeholder {
    background: linear-gradient(135deg, #2f7ef6, #f75011);
    color: #fff;
}

.profile-form {
    display: grid;
    gap: 1rem;
}

.profile-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-note {
    margin-top: 0.25rem;
}

@media (max-width: 991.98px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-fields-grid {
        grid-template-columns: 1fr;
    }

    .profile-field-wide {
        grid-column: auto;
    }
}

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

.details-grid > div {
    padding: 0.9rem 1rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
}

.details-label {
    display: block;
    color: #8ea0c7;
    font-size: 0.86rem;
    margin-bottom: 0.3rem;
}

.details-note {
    padding: 1rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
    color: #17345f;
    line-height: 1.6;
}

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

.dashboard-page {
    display: grid;
    gap: 1.4rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0.2rem 0.8rem;
}

.page-kicker {
    color: #9cadcf;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.page-title-row h1 {
    margin: 0;
    font-size: 2.05rem;
    font-weight: 400;
    color: #17345f;
}

.dashboard-welcome-copy {
    margin-top: 0.5rem;
    color: #7f97be;
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 54rem;
}

.dashboard-welcome-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-business-strip {
    margin-top: -0.1rem;
}

.dashboard-welcome-item {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    padding: 1rem 1.1rem;
    box-shadow: 0 0.75rem 2rem rgba(15, 38, 79, 0.04);
    display: grid;
    gap: 0.35rem;
}

.dashboard-welcome-label {
    color: #9cadcf;
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-welcome-value {
    color: #17345f;
    font-size: 1.5rem;
    line-height: 1.1;
}

.btn-report {
    border: 0;
    background: #2f7ef6;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    height: 3.15rem;
    padding: 0 1.15rem;
    border-radius: 4px;
    box-shadow: 0 0.75rem 1.5rem rgba(47, 126, 246, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-report:hover {
    color: #fff;
    background: #266be0;
}

.stats-grid-dash {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
}

.stat-card-dash {
    min-height: 7rem;
    padding: 1.35rem 1.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    box-shadow: 0 0.9rem 2.3rem rgba(15, 38, 79, 0.05);
}

.stat-card-body {
    display: grid;
    gap: 0.35rem;
}

.stat-label {
    color: #9cadcf;
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.9rem;
    line-height: 1;
    color: #17345f;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    height: 1.6rem;
    padding: 0 0.45rem;
    border-radius: 4px;
    background: #dff8ea;
    color: #2aa769;
    font-size: 0.82rem;
    font-weight: 400;
}

.stat-pill-soft {
    background: #dff8ea;
    color: #2aa769;
}

.stat-pill-warn {
    background: #fff1db;
    color: #d9822b;
}

.stat-icon {
    width: 2.2rem;
    height: 2.2rem;
    color: #9cadcf;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 1.35rem;
}

.panel-card-large,
.panel-card-side {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    box-shadow: 0 0.9rem 2.3rem rgba(15, 38, 79, 0.05);
}

.panel-card-large {
    padding: 1.25rem 1.35rem 1.35rem;
}

.panel-card-side {
    padding: 1.25rem 1.35rem 1.15rem;
}

.panel-head-split,
.panel-head-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 400;
    color: #17345f;
}

.panel-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9cadcf;
    font-size: 0.95rem;
    font-weight: 500;
}

.toggle-switch {
    width: 3.4rem;
    height: 1.95rem;
    border: 0;
    border-radius: 4px;
    background: #e3ebf6;
    position: relative;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 0.23rem;
    left: 0.26rem;
    width: 1.48rem;
    height: 1.48rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.2rem 0.7rem rgba(15, 38, 79, 0.12);
}

.panel-tabs {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    color: #9cadcf;
    font-size: 0.96rem;
}

.panel-tabs .is-active {
    color: #17345f;
    position: relative;
}

.panel-tabs .is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.2rem;
    height: 2px;
    background: #2f7ef6;
}

.bar-chart-wrap,
.donut-chart-wrap {
    position: relative;
}

.bar-chart,
.donut-chart {
    position: relative;
}

.bar-chart {
    width: 100%;
    min-height: 360px;
    background: linear-gradient(180deg, rgba(47, 126, 246, 0.02), rgba(47, 126, 246, 0.01));
}

.bar-chart svg {
    display: block;
}

.donut-chart {
    width: min(100%, 370px);
    margin: 0 auto;
    min-height: 360px;
}

.chart-point {
    cursor: pointer;
}

.chart-toolbar {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: flex;
    gap: 0.4rem;
}

.chart-toolbar-btn {
    border: 1px solid rgba(47, 126, 246, 0.35);
    background: rgba(255, 255, 255, 0.94);
    color: #2f7ef6;
    border-radius: 999px;
    padding: 0.34rem 0.72rem;
    font-size: 0.85rem;
    line-height: 1;
    box-shadow: 0 0.35rem 0.9rem rgba(31, 71, 132, 0.08);
}

.chart-toolbar-btn:hover {
    background: #2f7ef6;
    color: #fff;
}

.chart-tooltip {
    position: absolute;
    z-index: 1065;
    display: none;
    width: min(320px, calc(100vw - 2rem));
    padding: 0.9rem 1rem 1rem;
    border: 1px solid rgba(47, 126, 246, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1rem 2.2rem rgba(12, 28, 49, 0.18);
    transform: translateY(0);
    pointer-events: none;
}

.chart-tooltip.is-open {
    display: block;
}

.chart-tooltip::before {
    content: "";
    position: absolute;
    top: 1.05rem;
    left: -7px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid rgba(47, 126, 246, 0.2);
    border-bottom: 1px solid rgba(47, 126, 246, 0.2);
    transform: rotate(45deg);
}

.chart-tooltip-head {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 0.85rem;
}

.chart-tooltip-kicker {
    color: var(--color-brand-pink);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.chart-tooltip-title {
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--color-text);
}

.chart-tooltip-subtitle {
    color: #7f97be;
    font-size: 0.9rem;
    line-height: 1.45;
}

.chart-tooltip-details {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.chart-tooltip-details div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0.75rem;
}

.chart-tooltip-details dt {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.chart-tooltip-details dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.chart-inspector-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
}

.chart-inspector-modal.is-open {
    display: block;
}

.chart-inspector-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 46, 0.54);
    backdrop-filter: blur(2px);
}

.chart-inspector-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 1.75rem 4rem rgba(12, 28, 49, 0.28);
    overflow: auto;
}

.chart-inspector-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.chart-inspector-kicker {
    color: var(--color-brand-pink);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.2rem;
}

.chart-inspector-header h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 400;
}

.chart-inspector-subtitle {
    margin: 0.35rem 0 0;
    color: #7f97be;
}

.chart-inspector-close {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    color: #7f97be;
    font-size: 1.35rem;
    line-height: 1;
}

.chart-inspector-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    gap: 1rem;
    padding-top: 1rem;
}

.chart-inspector-chart {
    min-height: 540px;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(47, 126, 246, 0.02), rgba(247, 80, 17, 0.02));
    overflow: hidden;
}

.chart-inspector-chart .mini-chart,
.chart-inspector-chart .line-chart,
.chart-inspector-chart .widget-mini-chart,
.chart-inspector-chart .bar-chart,
.chart-inspector-chart .donut-chart {
    width: 100%;
    min-height: 540px;
    border: 0;
    margin: 0;
}

.chart-inspector-info {
    display: grid;
    gap: 1rem;
}

.chart-inspector-info-card {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: #fff;
}

.chart-inspector-info-label {
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    margin-bottom: 0.55rem;
}

.chart-inspector-info-title {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.chart-inspector-info-meta {
    color: #7f97be;
    line-height: 1.6;
}

.chart-inspector-details {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

.chart-inspector-details div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.8rem;
    align-items: start;
}

.chart-inspector-details dt {
    color: var(--color-muted);
    font-weight: 500;
}

.chart-inspector-details dd {
    margin: 0;
    font-weight: 500;
    color: var(--color-text);
}

.chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.8rem;
    color: #7f97be;
    font-size: 0.95rem;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.legend-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    display: inline-block;
}

.legend-direct { background: #2f7ef6; }
.legend-organic { background: #a7c5fa; }
.legend-referral { background: #d6e1f2; }

/* Analytics */
.analytics-page {
    display: grid;
    gap: 1.4rem;
}

.analytics-header {
    align-items: flex-end;
}

.analytics-intro {
    max-width: 46rem;
    color: #7f97be;
    margin: 0.55rem 0 0;
    line-height: 1.6;
}

.analytics-period-form {
    width: min(260px, 100%);
    display: grid;
    gap: 0.45rem;
}

.analytics-period-label {
    color: #9cadcf;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-period-select {
    height: 3.1rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    color: #17345f;
    box-shadow: none;
}

.analytics-period-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(47, 126, 246, 0.08);
    border-color: #9ec2ff;
}

.analytics-window-pill {
    display: grid;
    gap: 0.2rem;
    justify-items: end;
    padding: 0.85rem 1rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0.75rem 2rem rgba(15, 38, 79, 0.04);
    min-width: 12rem;
}

.analytics-window-pill span {
    color: #17345f;
    font-size: 1rem;
}

.analytics-window-pill small {
    color: #9cadcf;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1.2rem;
}

.analytics-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.45rem 1rem;
    border: 1px solid #d9e3f1;
    border-radius: 4px;
    color: #7f97be;
    background: #fff;
    text-decoration: none;
    transition: all 0.18s ease;
}

.analytics-tab:hover {
    color: #2f7ef6;
    border-color: #a9c8ff;
}

.analytics-tab.is-active {
    color: #fff;
    border-color: #2f7ef6;
    background: #2f7ef6;
}

.analytics-filter-card {
    margin-bottom: 1.15rem;
    padding: 1rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0.75rem 2rem rgba(15, 38, 79, 0.04);
}

.analytics-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.analytics-filter-item {
    display: grid;
    gap: 0.35rem;
}

.analytics-filter-item label {
    color: #9cadcf;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.analytics-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.analytics-summary-card {
    padding: 1.05rem 1.1rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0.75rem 2rem rgba(15, 38, 79, 0.04);
    display: grid;
    gap: 0.35rem;
}

.analytics-summary-value {
    color: #17345f;
    font-size: 1.65rem;
    line-height: 1.1;
}

.analytics-summary-note {
    color: #7f97be;
    font-size: 0.9rem;
    line-height: 1.55;
}

.analytics-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.analytics-grid-secondary {
    align-items: start;
}

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

.analytics-chart-card {
    min-height: 100%;
}

.analytics-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 4px;
    background: #edf4fc;
    color: #2f7ef6;
    font-size: 0.82rem;
    font-weight: 400;
}

.analytics-badge-soft {
    background: #f4f7fd;
    color: #7f97be;
}

.analytics-footnote {
    margin-top: 1rem;
    color: #7f97be;
    line-height: 1.65;
}

.analytics-line-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    margin-top: 0.95rem;
    color: #7f97be;
    font-size: 0.9rem;
}

.analytics-line-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.analytics-line-legend i {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    display: inline-block;
}

.analytics-forecast-card {
    display: grid;
    gap: 0.95rem;
}

.analytics-forecast-number {
    font-size: 2.6rem;
    line-height: 1;
    color: #17345f;
}

.analytics-forecast-copy {
    margin: 0;
    color: #7f97be;
    line-height: 1.7;
}

.analytics-forecast-chart {
    min-height: 180px;
}

.analytics-metric-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.analytics-metric-list div {
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fbfdff;
}

.analytics-metric-list dt {
    color: #9cadcf;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.analytics-metric-list dd {
    margin: 0;
    color: #17345f;
    font-size: 1.05rem;
}

.analytics-legend {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.analytics-calculation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.analytics-calc-card {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fbfdff;
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
}

.analytics-calc-card span {
    color: #9cadcf;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-calc-card strong {
    color: #17345f;
    font-size: 1.25rem;
    font-weight: 400;
}

.analytics-calc-card small {
    color: #7f97be;
    line-height: 1.55;
}

.analytics-insight-stack {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.analytics-insight-row {
    padding: 0.9rem 1rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fbfdff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.analytics-insight-row span {
    color: #9cadcf;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-insight-row strong {
    color: #17345f;
    font-weight: 400;
}

.analytics-comparison-card {
    margin-top: 0.2rem;
}

.analytics-table-card {
    margin-top: 1rem;
}

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

.analytics-report-block {
    display: grid;
    gap: 0.8rem;
}

.analytics-report-block h3 {
    margin: 0;
    color: #17345f;
    font-size: 1rem;
    font-weight: 400;
}

.analytics-report-table {
    margin-bottom: 0;
}

.analytics-comparison-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.analytics-comparison-item {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fbfdff;
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.analytics-comparison-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.analytics-comparison-top strong {
    color: #17345f;
    font-size: 1rem;
    font-weight: 400;
}

.analytics-comparison-top span {
    color: #7f97be;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.analytics-comparison-value {
    color: #17345f;
    font-size: 2rem;
    line-height: 1;
}

.analytics-comparison-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.analytics-comparison-meta div {
    padding: 0.7rem 0.75rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #edf2f8;
}

.analytics-comparison-meta span {
    display: block;
    color: #9cadcf;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.analytics-comparison-meta strong {
    color: #17345f;
    font-weight: 400;
}

@media (max-width: 1199.98px) {
    .sidebar {
        width: 260px;
    }

    .stats-grid-dash,
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-welcome-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .analytics-grid,
    .analytics-calculation-grid {
        grid-template-columns: 1fr;
    }

    .analytics-filter-grid,
    .analytics-report-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .analytics-header {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .analytics-filter-grid,
    .analytics-report-grid {
        grid-template-columns: 1fr;
    }

    .analytics-filter-actions {
        justify-content: stretch;
    }

    .analytics-filter-actions .btn {
        width: 100%;
    }

    .analytics-period-form {
        width: 100%;
    }

    .analytics-stats {
        grid-template-columns: 1fr;
    }

    .analytics-tabbar {
        gap: 0.45rem;
    }

    .analytics-tab {
        flex: 1 1 calc(50% - 0.45rem);
    }

    .analytics-comparison-grid,
    .analytics-comparison-meta {
        grid-template-columns: 1fr;
    }
}

/* Settings */
.settings-page {
    display: grid;
    gap: 1.4rem;
}

.settings-header {
    align-items: flex-end;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5edf7;
    color: #7f97be;
    box-shadow: 0 0.6rem 1.2rem rgba(15, 38, 79, 0.04);
}

.settings-tab.active {
    color: #17345f;
    border-color: #bcd3ff;
    background: #f6f9ff;
}

.settings-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.45rem;
    border-radius: 4px;
    background: #edf4fc;
    color: #2f7ef6;
    font-size: 0.8rem;
}

.settings-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
}

.settings-form-card,
.settings-detail-card,
.settings-table-card {
    background: #fff;
}

.settings-form {
    margin-top: 1rem;
}

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

.settings-detail {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.settings-detail div {
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fbfdff;
}

.settings-detail span {
    display: block;
    color: #9cadcf;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.settings-detail strong {
    color: #17345f;
    font-weight: 400;
}

.settings-detail-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.settings-empty {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    border: 1px dashed #d7e2f2;
    color: #7f97be;
    background: #fbfdff;
}

.settings-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: min(100%, 28rem);
}

.settings-search input {
    flex: 1;
}

.settings-table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9cadcf;
    font-weight: 400;
    border-bottom: 1px solid #e5edf7;
    padding: 1rem 1.15rem;
}

.settings-table tbody td {
    padding: 1.05rem 1.15rem;
    border-color: #edf2f8;
    color: #17345f;
}

.settings-table tbody tr[class^="holiday-month-"] > td {
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.settings-table tbody tr[class^="holiday-month-"]:hover > td {
    filter: brightness(0.985);
}

.settings-table tbody tr.holiday-month-1 > td {
    background-color: #f7fbff;
}

.settings-table tbody tr.holiday-month-2 > td {
    background-color: #fff8fb;
}

.settings-table tbody tr.holiday-month-3 > td {
    background-color: #fffaf2;
}

.settings-table tbody tr.holiday-month-4 > td {
    background-color: #f5fbf7;
}

.settings-table tbody tr.holiday-month-5 > td {
    background-color: #f8f6ff;
}

.settings-table tbody tr.holiday-month-6 > td {
    background-color: #fff7f1;
}

.settings-table tbody tr.holiday-month-7 > td {
    background-color: #f4fbff;
}

.settings-table tbody tr.holiday-month-8 > td {
    background-color: #fffdf1;
}

.settings-table tbody tr.holiday-month-9 > td {
    background-color: #f6fafc;
}

.settings-table tbody tr.holiday-month-10 > td {
    background-color: #fbf6ff;
}

.settings-table tbody tr.holiday-month-11 > td {
    background-color: #f6fbf4;
}

.settings-table tbody tr.holiday-month-12 > td {
    background-color: #fff6f6;
}

.settings-table tbody tr.holiday-month-1 > td:first-child,
.settings-table tbody tr.holiday-month-2 > td:first-child,
.settings-table tbody tr.holiday-month-3 > td:first-child,
.settings-table tbody tr.holiday-month-4 > td:first-child,
.settings-table tbody tr.holiday-month-5 > td:first-child,
.settings-table tbody tr.holiday-month-6 > td:first-child,
.settings-table tbody tr.holiday-month-7 > td:first-child,
.settings-table tbody tr.holiday-month-8 > td:first-child,
.settings-table tbody tr.holiday-month-9 > td:first-child,
.settings-table tbody tr.holiday-month-10 > td:first-child,
.settings-table tbody tr.holiday-month-11 > td:first-child,
.settings-table tbody tr.holiday-month-12 > td:first-child {
    box-shadow: inset 0.25rem 0 0 rgba(18, 38, 63, 0.05);
}

@media (max-width: 1199.98px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .settings-search {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: hidden;
    }

    .app-shell,
    .app-frame,
    .app-main,
    .app-content,
    .topbar,
    .topbar-left,
    .topbar-right,
    .topbar-search,
    .dashboard-page,
    .page-header {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .app-shell,
    .app-frame,
    .app-main,
    .app-content,
    .dashboard-page {
        overflow-x: hidden;
    }

    .app-frame {
        flex-direction: row;
    }

    .app-main {
        width: 100%;
        min-width: 0;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        max-width: 320px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        z-index: 1045;
        overflow-y: auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .topbar {
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.85rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .topbar-left {
        width: auto;
        min-width: 0;
        gap: 0.75rem;
        flex: none;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .topbar-menu-button {
        display: inline-flex;
    }

    .topbar-search {
        width: auto;
        min-width: 0;
        margin-top: 0;
        flex: 1 1 auto;
    }

    .topbar-right {
        width: auto;
        justify-content: flex-end;
        flex: none;
        margin-left: auto;
        align-self: center;
    }

    .stats-grid-dash,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .topbar,
    .app-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-title-row h1 {
        font-size: 1.7rem;
    }

    .stat-card-dash {
        padding: 1.1rem 1.15rem;
    }

    .bar-chart,
    .donut-chart {
        min-height: 280px;
    }

    .chart-legend {
        flex-wrap: wrap;
    }

    .dashboard-welcome-copy {
        max-width: none;
    }

    .topbar-right {
        justify-content: flex-end;
        gap: 0.85rem;
        flex-wrap: nowrap;
        width: auto;
        margin-top: 0;
        margin-left: auto;
        align-self: center;
    }

    .topbar-search {
        order: 0;
        width: auto;
    }

    .topbar-search input {
        min-width: 0;
    }

    .topbar-user,
    .topbar-notifications {
        flex: 0 0 auto;
    }

    .topbar-icon-button {
        width: 2.2rem;
        height: 2.2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-avatar {
        width: 2.65rem;
        height: 2.65rem;
    }

    .topbar-profile-toggle {
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-notification-panel {
        position: fixed;
        top: 4.8rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        max-width: none;
    }

    .topbar-profile-menu {
        min-width: 0;
        width: min(18rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
    }
}

/* Components page */
.components-page {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 2.4rem;
}

.components-header {
    max-width: 920px;
    margin-bottom: 2rem;
}

.components-header h1 {
    font-size: 2.3rem;
    font-weight: 400;
    color: #17345f;
    margin: 0 0 0.8rem;
}

.components-header p {
    color: #8ea1c4;
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0;
}

.components-header a {
    color: #2f7ef6;
}

.components-divider {
    border-color: #e5edf7;
    opacity: 1;
    margin: 1.6rem 0 2.1rem;
}

.components-card {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    box-shadow: 0 0.9rem 2.3rem rgba(15, 38, 79, 0.05);
    overflow: hidden;
}

.app-accordion .accordion-item {
    border-color: #e5edf7;
}

.app-accordion .accordion-button {
    background: #fff;
    color: #17345f;
    font-size: 1rem;
    padding: 1.05rem 1.4rem;
    box-shadow: none;
}

.app-accordion .accordion-button:not(.collapsed) {
    background: #fff;
    color: #17345f;
}

.app-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #e5edf7;
}

.app-accordion .accordion-body {
    padding: 1.15rem 1.4rem 1.4rem;
    color: #17345f;
    font-size: 1rem;
    line-height: 1.7;
}

.app-accordion .accordion-body strong {
    font-weight: 400;
}

.components-section {
    padding-top: 4rem;
}

.components-section h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #17345f;
    margin: 0 0 0.7rem;
}

.components-section p {
    color: #8ea1c4;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 940px;
}

.components-alerts {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.components-alert {
    margin: 0;
    border-radius: 4px;
}

.sidebar-subnav {
    display: none;
    padding: 0.15rem 0 0.35rem 2rem;
    gap: 0.05rem;
}

.sidebar-subnav.is-open {
    display: grid;
}

.sidebar-sublink {
    color: #7f97be;
    font-size: 0.96rem;
    padding: 0.18rem 0;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
    color: #2f7ef6;
}

.components-panel {
    padding: 1.25rem 1.35rem;
}

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

.components-mini-card {
    min-height: 140px;
}

.components-chart-card {
    min-height: 320px;
    padding: 0.75rem;
}

.avatar-row,
.badge-row,
.button-row,
.spinner-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.avatar {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #2f7ef6;
    color: #fff;
    font-weight: 400;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.avatar-tone-1 { background: #2f7ef6; }
.avatar-tone-2 { background: #f75011; }
.avatar-tone-3 { background: #f20922; }
.avatar-tone-4 { background: #0f9d58; }
.avatar-tone-5 { background: #7c5cff; }
.avatar-tone-6 { background: #fc9600; }

.avatar-lg { width: 3.5rem; height: 3.5rem; min-width: 3.5rem; min-height: 3.5rem; }
.avatar-sm { width: 2.1rem; height: 2.1rem; min-width: 2.1rem; min-height: 2.1rem; font-size: 0.85rem; }
.avatar-xs { width: 1.7rem; height: 1.7rem; min-width: 1.7rem; min-height: 1.7rem; font-size: 0.75rem; }

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 56px);
    gap: 0.8rem;
}

.icon-tile {
    width: 56px;
    height: 56px;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: #2f7ef6;
    background: #fff;
}

.icon-tile svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.kanban-column {
    background: #f8fbff;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
}

.kanban-title {
    font-weight: 400;
    color: #17345f;
}

.kanban-item {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    padding: 0.7rem 0.8rem;
    color: #17345f;
}

.map-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    color: #9cadcf;
    background: linear-gradient(135deg, rgba(47, 126, 246, 0.05), rgba(47, 126, 246, 0.02));
}

.components-navbar {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.components-tab-content {
    border: 1px solid #e5edf7;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    padding: 1rem;
    background: #fff;
}

.page-header-sample {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.typography-sample h3 {
    margin-bottom: 0.7rem;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.utility-box {
    border-radius: 4px;
    padding: 1rem;
    min-height: 72px;
    background: #fff;
}

.social-post-card {
    padding: 1.25rem 1.35rem;
}

.social-post-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.social-post-meta {
    color: #9cadcf;
    font-size: 0.92rem;
}

.components-toast {
    max-width: 320px;
}

.components-table-shell {
    padding: 0;
    overflow: hidden;
}

.components-table-search {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.05rem 1.35rem;
    border-bottom: 1px solid #e5edf7;
    color: #9cadcf;
}

.components-table-search svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
}

.components-table-search input {
    border: 0;
    outline: none;
    width: 100%;
    color: #17345f;
}

.components-table-search input::placeholder {
    color: #a7b7d5;
}

.components-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9cadcf;
    font-weight: 400;
    border-bottom: 1px solid #e5edf7;
    padding: 1rem 1.35rem;
}

.components-table tbody td {
    padding: 1.25rem 1.35rem;
    vertical-align: middle;
    border-color: #edf2f8;
    color: #17345f;
}

.components-table tbody tr:hover {
    background: #fbfdff;
}

.components-table-check {
    width: 3rem;
}

.components-dots {
    color: #c4d0e5;
    font-weight: 400;
    letter-spacing: 0.15em;
}

.components-files-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.file-upload {
    border: 1px dashed #d7e2f2;
    border-radius: 4px;
    padding: 1rem 1.1rem;
    background: #fbfdff;
    margin-bottom: 1rem;
}

.file-upload-title {
    color: #17345f;
    font-weight: 400;
}

.file-upload-subtitle {
    color: #9cadcf;
    font-size: 0.94rem;
}

.file-list {
    display: grid;
    gap: 0.8rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
}

.file-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: #2f7ef6;
    background: #eff5ff;
    font-weight: 400;
}

.file-name {
    font-weight: 600;
    color: #17345f;
}

.file-meta {
    color: #9cadcf;
    font-size: 0.92rem;
}

.components-list-group .list-group-item {
    border-color: #e5edf7;
    padding: 1rem 1.05rem;
}

.components-list-group .list-group-item.active {
    background: #2f7ef6;
    border-color: #2f7ef6;
}

@media (max-width: 1199.98px) {
    .components-files-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .components-grid,
    .kanban-grid,
    .utility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .components-grid,
    .kanban-grid,
    .utility-grid,
    .icon-grid {
        grid-template-columns: 1fr;
    }

    .page-header-sample {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* People module */
.people-page {
    max-width: 1480px;
    margin: 0 auto;
}

.people-create-page {
    max-width: 1100px;
}

.people-create-header {
    padding-top: 1.5rem;
}

.people-create-header h1 {
    margin: 0.45rem 0 0;
    font-size: 2.2rem;
    font-weight: 400;
    color: #17345f;
}

.people-create-divider {
    border-color: #dfe7f3;
    opacity: 1;
    margin: 1.6rem 0 2rem;
}

.people-form {
    display: block;
}

.people-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.4rem;
    align-items: start;
}

.people-create-main,
.people-create-side {
    display: grid;
    gap: 1.2rem;
}

.people-card {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0.9rem 2.3rem rgba(15, 38, 79, 0.05);
}

.people-create-card,
.people-search-filters {
    overflow: visible;
}

.people-location-picker {
    z-index: 12;
}

.people-location-results {
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid #dfe7f6;
    border-radius: 0.85rem;
    box-shadow: 0 18px 38px rgba(15, 38, 79, 0.14);
    background: #fff;
}

.people-card-header,
.people-card-head {
    padding: 1rem 1.3rem;
    background: transparent;
    color: #17345f;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid #dfe8f4;
}

.people-card-body {
    padding: 1.2rem 1.3rem 1.35rem;
}

.project-search-results {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.project-search-result {
    width: 100%;
    display: block;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
    padding: 0.8rem 0.95rem;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.project-search-result:last-child {
    border-bottom: 0;
}

.project-search-result:hover {
    background: #f8fbff;
}

.project-search-result-title {
    font-weight: 600;
    color: #2d3f61;
    font-size: .96rem;
    line-height: 1.25;
}

.project-search-result-meta {
    margin-top: .2rem;
    color: #93a5cc;
    font-size: .86rem;
    line-height: 1.35;
}

.reminder-related-input-group .btn {
    border-color: #d6e1ef;
    color: #5f6f8f;
    background: #fff;
}

.reminder-related-input-group .btn:hover,
.reminder-related-input-group .btn:focus {
    background: #f8fbff;
    color: #2d3f61;
    border-color: #b8c7dc;
}

.reminder-search-results {
    border-color: #dbe7f5;
    box-shadow: 0 10px 24px rgba(47, 126, 246, 0.08);
}

.project-search-result-reminder {
    padding: .9rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.project-search-result-reminder:hover {
    background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
}

.project-search-result-reminder .project-search-result-title {
    display: block;
}

.project-search-result-reminder .project-search-result-meta {
    display: block;
    margin-top: .32rem;
}

.project-search-empty {
    padding: .85rem 1rem;
    color: #93a5cc;
    font-size: .92rem;
}

.project-selected-card {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #f8fbff;
    padding: .95rem 1rem;
    min-height: 100%;
}

.project-selected-card.is-empty {
    background: #fbfcfe;
}

.project-selected-title {
    font-size: .95rem;
    font-weight: 600;
    color: #2d3f61;
    line-height: 1.25;
}

.project-selected-meta {
    margin-top: .25rem;
    color: #93a5cc;
    font-size: .9rem;
    line-height: 1.35;
}

.project-summary-note {
    border: 1px dashed #d8e2f1;
    border-radius: 4px;
    background: #fbfdff;
    padding: .85rem .95rem;
    color: #5f6f8f;
    font-size: .92rem;
    line-height: 1.45;
}

.project-milestone-row {
    background: #fbfdff;
}

.app-shell-portal {
    background:
        radial-gradient(circle at top left, rgba(242, 9, 34, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

.portal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(227, 235, 246, 0.95);
    box-shadow: var(--color-shadow);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(18px);
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--color-ink);
}

.portal-brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.08);
}

.portal-brand-title {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-ink);
}

.portal-brand-subtitle {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portal-nav a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
}

.portal-nav a:hover {
    color: var(--color-brand-pink);
    background: rgba(242, 9, 34, 0.06);
}

.portal-content {
    flex: 1;
    min-width: 0;
}

.portal-detail-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.portal-detail-list > div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.85rem;
    align-items: start;
}

.portal-detail-list dt {
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.portal-detail-list dd {
    margin: 0;
    color: var(--color-text);
    font-weight: 500;
}

.subscription-portal-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.subscription-portal-summary > div {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fbfdff;
}

.subscription-portal-summary span {
    color: var(--color-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.subscription-portal-summary strong {
    color: var(--color-ink);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.3;
}

.subscription-mini-card {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fbfdff;
    padding: 1rem 1.05rem;
    box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.04);
}

.people-card-head.d-flex,
.people-card-head.d-flex.align-items-center,
.people-card-head.d-flex.justify-content-between {
    display: flex;
}

.people-card-head .people-card-title {
    font-size: 1rem;
    line-height: 1.2;
}

.people-label {
    color: #17345f;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.people-input {
    border-radius: 4px;
    border: 1px solid #dfe7f3;
    box-shadow: none;
}

.people-input-lg {
    height: 3.25rem;
}

.people-input:focus {
    border-color: #9ec2ff;
    box-shadow: 0 0 0 0.2rem rgba(47, 126, 246, 0.08);
}

.people-search-filters {
    padding: 1rem 1.1rem 1.1rem;
}

.people-search-filters .people-label {
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.people-search-filters .people-input {
    min-height: 2.6rem;
    padding: 0.42rem 0.78rem;
    font-size: 0.95rem;
}

.people-search-filters .people-input-lg {
    min-height: 2.85rem;
}

.people-search-filters .settings-actions {
    margin-top: 1rem !important;
}

.people-search-filters .btn-lg {
    padding: 0.6rem 1.15rem;
    font-size: 0.96rem;
}

.people-search-filters .row.g-3 {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.people-search-filters .form-select {
    padding-right: 2.1rem;
}

.people-search-page .people-table-shell {
    font-size: 0.88rem;
}

.people-search-page .people-table-shell .people-name {
    font-size: 0.95rem;
}

.people-search-page .people-table-shell .people-meta,
.people-search-page .people-table-shell .people-status,
.people-search-page .people-table-shell td,
.people-search-page .people-table-shell th {
    font-size: 0.84rem;
}

.people-search-page .people-table-shell th {
    letter-spacing: 0.04em;
}

.people-help {
    margin-top: 0.5rem;
    font-size: 0.94rem;
}

.people-upload-box {
    cursor: pointer;
    border: 2px dashed #d7dfe9;
    min-height: 150px;
    border-radius: 4px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
    padding: 0.75rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.people-upload-box:hover {
    border-color: #9ec2ff;
    box-shadow: 0 0.75rem 1.8rem rgba(47, 126, 246, 0.08);
    transform: translateY(-1px);
}

.people-upload-box-preview {
    position: relative;
    min-height: 132px;
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.people-upload-placeholder {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    text-align: center;
    color: #17345f;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.people-upload-placeholder small {
    display: block;
    color: #7f92b2;
    font-weight: 500;
    letter-spacing: 0;
}

.people-upload-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7f0ff;
    color: #2f7ef6;
    font-size: 1.6rem;
    line-height: 1;
}

.people-upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.people-note {
    margin-top: 0.55rem;
    padding: 0.8rem 0.95rem;
    background: #e8f3fb;
    color: #17345f;
    border-radius: 4px;
    font-size: 0.92rem;
}

.people-repeat-group {
    display: grid;
    gap: 0.9rem;
}

.people-repeat-item {
    padding: 0.9rem 0.95rem 1rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
}

.people-segments {
    display: grid;
    gap: 0.45rem;
    max-height: 320px;
    overflow: auto;
    padding-right: 0.25rem;
}

.people-segments .form-check {
    margin: 0;
}

.people-segments .form-check-label {
    color: #17345f;
}

.people-step {
    margin-top: 0.25rem;
}

.people-btn-secondary {
    background: #7c8794;
    border-color: #7c8794;
    color: #fff;
}

.people-btn-secondary:hover {
    background: #6f7985;
    border-color: #6f7985;
    color: #fff;
}

.people-btn-warning {
    color: #17345f;
}

.people-side-card .people-card-body {
    padding-top: 1.05rem;
}

.people-side-note {
    border: 1px solid #dfe7f3;
    background: #f8fbff;
    border-radius: 4px;
    padding: 1rem 1.05rem;
    color: #9cadcf;
    line-height: 1.65;
}

.people-warning-note strong {
    display: block;
    color: #17345f;
    margin-bottom: 0.35rem;
}

.people-warning-note p {
    margin: 0;
}

.people-photo-modal .modal-content {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    box-shadow: 0 1.25rem 2.5rem rgba(15, 38, 79, 0.18);
}

.people-crop-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #dbe6f4;
    border-radius: 4px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4fc 100%);
    touch-action: none;
    user-select: none;
}

.people-crop-stage img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    max-height: none;
    will-change: transform;
    transform-origin: top left;
    cursor: move;
    user-select: none;
    -webkit-user-drag: none;
}

.people-table-shell {
    padding: 0;
    overflow: hidden;
}

.people-table-search {
    border-bottom: 1px solid #e5edf7;
}

.people-search-btn {
    white-space: nowrap;
}

.people-table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9cadcf;
    font-weight: 400;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e5edf7;
}

.people-table tbody td {
    padding: 1.05rem 1.2rem;
    vertical-align: middle;
    border-color: #edf2f8;
}

.people-name-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.people-name {
    font-weight: 400;
    color: #17345f;
}

.people-meta {
    color: #9cadcf;
    font-size: 0.92rem;
}

.people-status {
    color: #17345f;
    background: #edf4fc !important;
}

.badge.text-bg-success,
.badge.text-bg-primary,
.badge.text-bg-secondary,
.badge.text-bg-warning,
.badge.text-bg-danger,
.badge.text-bg-info,
.badge.text-bg-light {
    color: #000 !important;
}

.people-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    white-space: nowrap;
}

.people-row-actions .btn {
    min-width: 0;
}

.people-row-actions form {
    margin: 0;
    display: inline-flex;
}

.requests-actions-cell {
    white-space: nowrap;
    width: 1%;
}

.requests-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
}

.requests-row-actions .btn {
    white-space: nowrap;
}

.campaign-followup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.campaign-followup-btn {
    white-space: nowrap;
}

.people-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem 1.15rem;
    border-top: 1px solid #e5edf7;
}

.people-table-count {
    color: #9cadcf;
    font-size: 0.95rem;
}

.people-view-page {
    display: grid;
    gap: 1.4rem;
}

.people-view-subtitle {
    color: #9cadcf;
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

.people-view-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.people-view-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.people-view-nav-card {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    padding: 0.95rem 1.05rem;
    box-shadow: 0 0.9rem 2.3rem rgba(15, 38, 79, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.people-view-nav-card-next {
    text-align: right;
    align-items: flex-end;
}

.people-view-nav-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9cadcf;
}

.people-view-nav-card a {
    color: #17345f;
    font-size: 1rem;
}

.people-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.4rem;
    align-items: start;
}

.people-view-main,
.people-view-side {
    display: grid;
    gap: 1.2rem;
}

.people-view-hero-card {
    padding: 1.4rem;
}

.people-view-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.people-view-photo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2f7ef6, #7fb0ff);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 400;
    flex: 0 0 auto;
}

.people-view-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.people-view-summary h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #17345f;
}

.people-view-summary p {
    margin: 0.3rem 0 0.6rem;
    color: #9cadcf;
}

.people-view-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.people-view-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.people-view-details div {
    padding: 0.8rem 0.85rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fdfeff;
}

.people-view-value-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.people-view-value-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.people-view-icon-btn {
    width: 1.5rem;
    height: 1.5rem;
    border: 0;
    border-radius: 4px;
    background: #edf4fc;
    color: #2f7ef6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
}

.people-view-icon-btn svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: currentColor;
}

.people-view-icon-btn:hover {
    background: #dfeaff;
    color: #1f66df;
}

.people-view-icon-btn-link {
    text-decoration: none;
}

.people-view-details span,
.people-view-meta dt,
.people-view-side-block h3 {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9cadcf;
    margin-bottom: 0.4rem;
}

.people-view-details strong,
.people-view-meta dd {
    color: #17345f;
    font-weight: 400;
}

.people-view-span-2 {
    grid-column: span 2;
}

.people-view-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.1rem;
}

.people-view-list {
    margin: 0;
    padding-left: 1.05rem;
    color: #17345f;
}

.people-view-list li + li {
    margin-top: 0.35rem;
}

.people-view-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.people-view-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.people-view-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    background: #edf4fc;
    border: 1px solid #dde8f6;
    border-radius: 4px;
    color: #17345f;
}

.people-view-chips span {
    padding: 0.45rem 0.7rem;
    border-radius: 4px;
    background: #f3f7fd;
    color: #17345f;
    border: 1px solid #e5edf7;
    font-size: 0.92rem;
}

.people-view-meta {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.people-view-meta div {
    padding: 0.7rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #e5edf7;
    background: #fdfeff;
}

.people-view-meta dt {
    margin-bottom: 0.2rem;
}

.people-view-meta dd {
    margin: 0;
}

.people-view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.people-view-tags span {
    padding: 0.4rem 0.65rem;
    background: #edf4fc;
    border: 1px solid #dde8f6;
    border-radius: 4px;
    color: #17345f;
}

.people-view-side-block + .people-view-side-block {
    margin-top: 1rem;
}

.deals-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deals-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.deals-summary-grid-secondary {
    margin-top: -0.15rem;
}

.deals-stat-card {
    background: #fff;
    border: 1px solid rgba(46, 91, 255, 0.12);
    border-radius: 4px;
    padding: 1.35rem 1.4rem;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 28px rgba(33, 58, 117, 0.04);
}

.deals-stat-card-danger strong {
    color: #f20922;
}

.deals-stat-card-success strong {
    color: #0f9d58;
}

.deals-stat-label {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.deals-stat-card strong {
    font-size: 2.1rem;
    line-height: 1;
    color: var(--color-heading);
}

.deals-stat-note {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.deals-tags-preview,
.deals-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.deals-tags-preview span,
.deals-tags-inline span {
    padding: 0.32rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(46, 91, 255, 0.16);
    background: rgba(46, 91, 255, 0.05);
    color: #17345f;
    font-size: 0.82rem;
}

.deals-filter-card,
.deals-pipeline-card {
    padding: 1.25rem;
}

.deals-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deals-filter-actions {
    margin-top: 0;
}

.deals-pipeline-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.deals-pipeline-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.deals-pipeline-header p {
    margin: 0.45rem 0 0;
    color: var(--color-text-muted);
}

.deals-pipeline-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.deals-pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.deals-pipeline-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.deals-pipeline-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.95rem;
}

.deals-pipeline-progress {
    height: 0.55rem;
    background: #edf2ff;
}

.deals-pipeline-progress .progress-bar {
    background: linear-gradient(90deg, var(--color-brand-pink), var(--color-brand-orange));
}

.deals-table-shell .deals-table td,
.deals-table-shell .deals-table th {
    font-size: 0.92rem;
}

.deals-table-shell .deals-table thead th {
    letter-spacing: 0.08em;
}

.deals-name-cell {
    gap: 0.7rem;
}

.deals-person-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.deals-person-cell small {
    color: var(--color-text-muted);
}

.deals-stage-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.deals-stage-display {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
}

.deals-stage-value {
    color: var(--color-text);
    font-weight: 400;
}

.deals-stage-edit-btn {
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.deals-stage-edit-btn:hover {
    color: var(--color-brand-pink);
    background: rgba(242, 9, 34, 0.08);
}

.deals-stage-edit-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: currentColor;
}

.deals-stage-menu {
    min-width: 160px;
    border-radius: 4px;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.12);
    padding: 0.3rem;
}

.deals-stage-menu form {
    margin: 0;
}

.deals-stage-menu .dropdown-item {
    border-radius: 4px;
    padding: 0.45rem 0.7rem;
    font-size: 0.92rem;
}

.deals-stage-menu .dropdown-item.active,
.deals-stage-menu .dropdown-item:active {
    background: rgba(47, 126, 246, 0.12);
    color: #1f2d3d;
}

.deals-stage-form {
    margin: 0;
}

.deals-stage-select {
    min-width: 180px;
    background-color: #fff;
}

.deals-ready-badge {
    align-self: flex-start;
}

.deals-followup-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.deals-followup-cell small {
    color: var(--color-text-muted);
}

.deals-row-actions {
    flex-wrap: nowrap;
}

.deals-table-footer {
    margin-top: 1rem;
}

.deals-form-layout {
    align-items: flex-start;
}

.deals-side-note {
    border: 1px solid rgba(46, 91, 255, 0.12);
    background: rgba(47, 126, 246, 0.06);
    border-radius: 4px;
    padding: 1rem;
}

.deals-side-note strong {
    display: block;
    margin-bottom: 0.35rem;
}

.deals-side-note p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.deals-side-note-soft {
    background: rgba(46, 91, 255, 0.04);
}

.deals-person-search-results {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.deals-person-results-empty {
    padding: 0.85rem 1rem;
    border: 1px dashed #dce6f4;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    font-size: 0.92rem;
}

.deals-person-result {
    width: 100%;
    text-align: left;
    border: 1px solid #dbe6f5;
    background: #fff;
    border-radius: 4px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    color: var(--color-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.deals-person-result strong {
    font-size: 0.95rem;
    font-weight: 400;
}

.deals-person-result span {
    font-size: 0.86rem;
    color: var(--color-muted);
}

.deals-person-result:hover {
    border-color: #8db7ff;
    box-shadow: 0 0.75rem 1.6rem rgba(47, 126, 246, 0.08);
    transform: translateY(-1px);
}

.deals-selected-person {
    min-height: 100px;
}

.deals-person-card {
    display: grid;
    gap: 0.9rem;
}

.deals-person-card-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.people-view-photo-sm {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
}

.deals-person-name {
    display: block;
    color: var(--color-heading);
}

.deals-person-sub {
    color: var(--color-muted);
    font-size: 0.88rem;
    margin-top: 0.15rem;
}

.deals-person-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.deals-person-fields div {
    padding: 0.65rem 0.75rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fdfeff;
}

.deals-person-fields span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9cadcf;
    margin-bottom: 0.25rem;
}

.deals-person-fields strong {
    display: block;
    color: var(--color-heading);
    font-weight: 400;
    overflow-wrap: anywhere;
}

.deals-person-segments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.deals-person-segments span {
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    background: #edf4fc;
    border: 1px solid #dbe6f5;
    color: #17345f;
    font-size: 0.86rem;
}

.deals-view-layout {
    margin-top: 0.5rem;
}

.deal-thread-list {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.deal-thread-item {
    border: 1px solid #dbe6f7;
    border-radius: 1rem;
    padding: 1rem;
    background: #fbfdff;
}

.deal-thread-item.is-active {
    border-color: #8cb4ff;
    background: #f3f8ff;
    box-shadow: 0 0 0 1px rgba(62, 118, 237, 0.08);
}

.deal-thread-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.deal-thread-title {
    color: #17345f;
    font-weight: 700;
    text-decoration: none;
}

.deal-thread-title:hover {
    color: #255ec7;
}

.deal-thread-summary {
    margin-top: 0.45rem;
    color: #667ca5;
    font-size: 0.95rem;
}

.deal-thread-meta {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: #8aa0c7;
    font-size: 0.82rem;
}

.deal-message-list {
    display: grid;
    gap: 1rem;
    padding: 0.15rem 0;
}

.deal-message-row {
    display: flex;
    width: 100%;
}

.deal-message-row.is-us {
    justify-content: flex-end;
}

.deal-message-row.is-client,
.deal-message-row.is-internal {
    justify-content: flex-start;
}

.deal-message-item {
    border: 1px solid #dbe6f7;
    border-radius: 1rem;
    padding: 1rem;
    background: #fbfdff;
    width: min(82%, 720px);
}

.deal-message-item.is-starred {
    border-color: #f2c562;
    background: linear-gradient(180deg, rgba(255, 209, 92, 0.16), rgba(251, 253, 255, 0.98));
    box-shadow: 0 0 0 1px rgba(242, 197, 98, 0.12);
}

.deal-message-row.is-us .deal-message-item {
    background: #dcf8c6;
    border-color: #c7e8ae;
    border-bottom-right-radius: 0.35rem;
}

.deal-message-row.is-client .deal-message-item {
    background: #ffffff;
    border-color: #dbe6f7;
    border-bottom-left-radius: 0.35rem;
}

.deal-message-row.is-internal .deal-message-item {
    background: #f5f7fb;
    border-color: #d9e3f1;
}

.deal-message-list--email .deal-message-item {
    background: #fdfefe;
    border-radius: 0.85rem;
}

.deal-message-list--email .deal-message-row.is-us .deal-message-item {
    background: #eef4ff;
    border-color: #d4e2ff;
}

.deal-message-list--email .deal-message-row.is-client .deal-message-item {
    background: #fffdf8;
    border-color: #f1e3bb;
}

.deal-message-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.7rem;
}

.deal-message-body {
    color: #17345f;
    line-height: 1.7;
    white-space: normal;
    font-size: 0.95rem;
}

.deal-message-body-content {
    overflow: hidden;
    transition: max-height 0.22s ease;
}

.deal-message-body-content.is-collapsed {
    max-height: 8.8rem;
}

.deal-message-toggle {
    margin-top: 0.6rem;
    border: 0;
    background: transparent;
    color: #255ec7;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.deal-message-toggle:hover {
    color: #17345f;
}

.deal-message-toggle-icon {
    font-size: 0.72rem;
    line-height: 1;
}

.deal-message-star-btn {
    width: 1.7rem;
    height: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.deal-message-star-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}

.deal-message-star-btn.is-active {
    color: #000 !important;
}

.deal-message-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #17345f;
}

.deal-message-time {
    font-size: 0.74rem;
    color: #7f95bc;
    line-height: 1.2;
}

.deal-message-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.deal-message-delete-btn {
    padding: 0.18rem 0.45rem;
    font-size: 0.72rem;
}

.deal-message-star-mark {
    display: inline-flex;
    width: 0.85rem;
    height: 0.85rem;
    color: #c88b00;
}

.deal-message-star-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.deal-message-highlight {
    background: #ffe082;
    color: #111827;
    padding: 0 0.15rem;
    border-radius: 0.2rem;
}

.people-view-photo-deal {
    background: linear-gradient(135deg, var(--color-brand-pink), var(--color-brand-orange));
    color: #fff;
}

.deals-view-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deals-view-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deals-view-meta div {
    background: rgba(46, 91, 255, 0.04);
    border-radius: 4px;
    padding: 0.75rem;
}

.deals-notes-text {
    margin: 0;
    line-height: 1.75;
    color: var(--color-heading);
}

/* Funnels module */
.funnels-page {
    max-width: 1480px;
    margin: 0 auto;
}

.funnel-stat-card .people-card-body {
    padding: 1rem 1.1rem 1.05rem;
}

.funnel-trend-chart {
    min-height: 320px;
}

.campaign-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    border: 1px solid #dfe7f3;
    border-radius: 4px;
    background: #fff;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    height: 100%;
}

.campaign-check:hover {
    border-color: #9ec2ff;
    box-shadow: 0 0.7rem 1.5rem rgba(47, 126, 246, 0.08);
    transform: translateY(-1px);
}

.campaign-check input {
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.campaign-check span {
    display: block;
    min-width: 0;
}

.campaign-funnel-picker {
    display: grid;
    gap: 0.85rem;
}

.campaign-funnel-picker-results {
    display: grid;
    gap: 0.55rem;
}

.campaign-funnel-result {
    width: 100%;
    text-align: left;
    border: 1px solid #dfe7f3;
    border-radius: 4px;
    background: #fff;
    padding: 0.72rem 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.campaign-funnel-result:hover:not(:disabled) {
    border-color: #9ec2ff;
    box-shadow: 0 0.7rem 1.5rem rgba(47, 126, 246, 0.08);
    transform: translateY(-1px);
}

.campaign-funnel-result.is-selected,
.campaign-funnel-result:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.campaign-funnel-result-title {
    color: #17345f;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.3;
}

.campaign-funnel-result-meta {
    color: #9cadcf;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    line-height: 1.35;
}

.campaign-funnel-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #edf3ff;
    color: #2f7ef6;
    font-size: 0.72rem;
}

.campaign-funnel-selected-list {
    display: grid;
    gap: 0.6rem;
}

.campaign-funnel-selected-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    border: 1px solid #dfe7f3;
    border-radius: 4px;
    background: #fff;
    padding: 0.78rem 0.85rem;
}

.campaign-funnel-selected-content {
    min-width: 0;
}

.campaign-funnel-selected-title {
    color: #17345f;
    font-size: 0.92rem;
    line-height: 1.35;
}

.campaign-funnel-selected-meta {
    color: #9cadcf;
    font-size: 0.8rem;
    margin-top: 0.15rem;
    line-height: 1.35;
}

.campaign-funnel-selected-remove {
    flex: 0 0 auto;
    border: 1px solid #ff6d6d;
    background: #fff;
    color: #ff5050;
    border-radius: 4px;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.1;
}

.campaign-funnel-selected-empty {
    color: #9cadcf;
    font-size: 0.88rem;
}

.campaign-tip-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-heading);
    line-height: 1.8;
}

.campaign-tip-list li + li {
    margin-top: 0.25rem;
}

.funnel-lookup-results {
    display: grid;
    gap: 0.6rem;
}

.funnel-bulk-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.funnel-selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #dfe7f3;
    border-radius: 4px;
    background: #f8fbff;
    color: #17345f;
    font-size: 0.82rem;
}

.funnel-selected-remove {
    width: 1.15rem;
    height: 1.15rem;
    border: 0;
    background: transparent;
    color: #9cadcf;
    padding: 0;
    line-height: 1;
}

.funnel-bulk-result {
    display: grid;
    grid-template-columns: auto 32px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 1px solid #dfe7f3;
    border-radius: 4px;
    background: #fff;
    padding: 0.7rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.funnel-bulk-result:hover {
    border-color: #9ec2ff;
    box-shadow: 0 0.7rem 1.5rem rgba(47, 126, 246, 0.08);
    transform: translateY(-1px);
}

.funnel-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.funnel-result-avatar.fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #cfe0ff;
    color: #2f7ef6;
    font-size: 0.84rem;
    font-weight: 400;
}

.funnel-bulk-result-body {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.funnel-bulk-result-name {
    color: #17345f;
    font-weight: 400;
    font-size: 0.9rem;
}

.funnel-bulk-result-meta {
    color: #9cadcf;
    font-size: 0.78rem;
}

.people-table tr.is-frozen {
    background: #f8fbff;
}

.people-table tr.is-frozen td {
    color: #7f90b6;
}

.people-table tr.is-frozen .form-check-input:disabled {
    opacity: 1;
}

.funnel-person-result {
    width: 100%;
    text-align: left;
    border: 1px solid #dfe7f3;
    border-radius: 4px;
    background: #fff;
    padding: 0.8rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.funnel-person-result:hover {
    border-color: #9ec2ff;
    box-shadow: 0 0.7rem 1.5rem rgba(47, 126, 246, 0.08);
    transform: translateY(-1px);
}

.funnel-person-result-title {
    color: #17345f;
    font-weight: 400;
    font-size: 0.95rem;
}

.funnel-person-result-meta {
    color: #9cadcf;
    font-size: 0.84rem;
    margin-top: 0.2rem;
}

.funnel-followup-card {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    padding: 0.9rem 0.95rem;
    background: #fff;
}

.funnel-followup-card + .funnel-followup-card {
    margin-top: 0.85rem;
}

.funnel-followup-card.is-selected {
    border-color: #9ec2ff;
    box-shadow: 0 0.7rem 1.5rem rgba(47, 126, 246, 0.07);
}

.funnel-followup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.funnel-action-grid {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: flex-end;
}

.funnel-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.32rem 0.62rem;
}

.funnel-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.8rem;
    height: 0.8rem;
    flex: 0 0 auto;
}

.funnel-btn-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.funnel-action-reply-row {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.funnel-social-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.funnel-members-matrix-table {
    min-width: 1100px;
}

.funnel-members-matrix-table th,
.funnel-members-matrix-table td {
    vertical-align: top;
}

.funnel-person-sticky {
    min-width: 220px;
    width: 220px;
}

.funnel-step-group-head,
.funnel-step-group-subhead,
.funnel-step-group-cell {
    border-color: var(--funnel-step-border, #e5edf7) !important;
}

.funnel-step-group-head,
.funnel-step-group-subhead {
    background: var(--funnel-step-head, #f8fbff) !important;
}

.funnel-step-group-cell {
    background: var(--funnel-step-body, #fff) !important;
}

.funnel-step-head {
    display: grid;
    gap: 0.1rem;
    min-width: 170px;
}

.funnel-step-kicker {
    color: #9cadcf;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.funnel-step-title {
    color: #17345f;
    font-size: 0.88rem;
    font-weight: 400;
}

.funnel-step-group-subhead {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9cadcf;
    font-weight: 400;
}

.funnel-step-group-cell {
    min-width: 180px;
}

.funnel-step-group-cell.text-end {
    min-width: 300px;
}

.funnel-step-actions {
    gap: 0.3rem;
}

.funnel-step-actions .funnel-icon-btn {
    font-size: 0.72rem;
    padding: 0.26rem 0.52rem;
}

.funnel-step-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.funnel-step-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.funnel-step-tab.is-active {
    background: #2f7ef6;
    border-color: #2f7ef6;
    color: #fff;
}

.funnel-followup-toggle {
    font-size: 0.68rem;
    padding: 0.2rem 0.45rem;
    line-height: 1;
    min-width: 3.2rem;
}

.funnel-followup-toggle.is-collapsed {
    background: #fff;
}

.is-hidden-step {
    display: none !important;
}

.funnel-members-table td,
.funnel-members-table th {
    vertical-align: middle;
}

.funnel-members-table th:last-child,
.funnel-members-table td:last-child {
    min-width: 320px;
    width: 320px;
}

.funnel-activity-list {
    display: grid;
    gap: 0.75rem;
}

.funnel-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
}

.funnel-footer-box {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #f8fbff;
    padding: 1rem;
    color: #17345f;
}

.tasks-page {
    display: grid;
    gap: 1.25rem;
}

.tasks-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tasks-stat-card {
    display: grid;
    gap: 0.35rem;
    padding: 1.25rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
}

.tasks-stat-card strong {
    font-size: 1.55rem;
    font-weight: 400;
    color: #17345f;
}

.tasks-stat-label {
    color: #9cadcf;
    font-size: 0.95rem;
}

.tasks-stat-note {
    color: #9cadcf;
    font-size: 0.95rem;
}

.tasks-stat-card-danger strong {
    color: #ff4d57;
}

.tasks-stat-card-success strong {
    color: #16a085;
}

.tasks-focus-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
}

.tasks-focus-title {
    font-size: 1.1rem;
    color: #17345f;
    margin-bottom: 0.35rem;
}

.tasks-focus-text,
.tasks-focus-note {
    color: #8ea0c7;
    font-size: 0.96rem;
}

.tasks-focus-week {
    color: #17345f;
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}

.tasks-scope-card {
    display: grid;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.tasks-scope-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tasks-related-card {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #f8fbff;
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
}

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

.tasks-related-help {
    color: #9cadcf;
    font-size: 0.92rem;
}

.tasks-recurring-card {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: linear-gradient(180deg, #fbfdff, #f4f8fe);
    padding: 1rem;
    display: grid;
    gap: 0.9rem;
}

.tasks-weekday-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
}

.tasks-weekday-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d9e4f4;
    border-radius: 4px;
    background: #fff;
    color: #4b5f88;
    font-size: 0.92rem;
    cursor: pointer;
    user-select: none;
}

.tasks-weekday-option input {
    margin-top: 0;
}

.tasks-recurring-preview {
    padding: 0.8rem 0.9rem;
    border: 1px dashed #d5def0;
    border-radius: 4px;
    background: #fff;
    color: #768cb8;
    font-size: 0.94rem;
}

.tasks-occurrence-work {
    display: grid;
    justify-items: end;
    gap: 0.5rem;
}

.tasks-occurrence-work > summary {
    list-style: none;
    cursor: pointer;
}

.tasks-occurrence-work > summary::-webkit-details-marker {
    display: none;
}

.tasks-occurrence-work form {
    min-width: 260px;
    max-width: 340px;
    background: #fbfdff;
    border: 1px solid #d9e4f4;
    border-radius: 4px;
    padding: 0.75rem;
}

.tasks-related-results {
    display: grid;
    gap: 0.6rem;
}

.tasks-related-empty {
    padding: 0.8rem 0.9rem;
    border: 1px dashed #cfdaf1;
    border-radius: 4px;
    background: #fff;
    color: #8ea0c7;
    font-size: 0.95rem;
}

.tasks-related-result {
    width: 100%;
    text-align: left;
    border: 1px solid #d9e4f4;
    border-radius: 4px;
    background: #fff;
    padding: 0.85rem 0.9rem;
    display: grid;
    gap: 0.35rem;
    color: inherit;
}

.tasks-related-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tasks-related-result-label {
    font-size: 0.98rem;
    color: #17345f;
}

.tasks-related-result-meta,
.tasks-related-summary-meta {
    color: #8ea0c7;
    font-size: 0.92rem;
}

.notifications-results {
    display: grid;
    gap: 0.85rem;
}

.notifications-item {
    border: 1px solid #d9e4f4;
    border-radius: 4px;
    background: #fff;
    padding: 0.95rem 1rem;
    display: grid;
    gap: 0.75rem;
}

.notifications-item.is-read {
    background: #fbfdff;
    opacity: 0.88;
}

.notifications-item.is-unread {
    box-shadow: inset 3px 0 0 #2f7ef6;
}

.notifications-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.notifications-item-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.notifications-item-title {
    color: #17345f;
    font-size: 1rem;
}

.notifications-item-meta {
    color: #8ea0c7;
    font-size: 0.92rem;
}

.notifications-item-actions,
.notifications-item-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.notifications-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.notifications-item-time {
    color: #9cadcf;
    font-size: 0.86rem;
}

.tasks-related-summary {
    border: 1px solid #d9e4f4;
    border-radius: 4px;
    background: #fff;
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.25rem;
}

.tasks-related-summary.is-empty {
    background: #f8fbff;
}

.tasks-related-summary-title {
    color: #9cadcf;
    font-size: 0.9rem;
}

.tasks-related-summary-name {
    color: #17345f;
    font-size: 1rem;
}

.tasks-tip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 4px;
    background: #eef4ff;
    color: #17345f;
    border: 1px solid #d9e4f4;
}

.tasks-note-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #4b5f88;
    display: grid;
    gap: 0.45rem;
}

.tasks-table-shell {
    display: grid;
    gap: 0;
}

.tasks-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 0.75rem;
}

.tasks-table-shell .table-responsive {
    padding: 0 1.25rem;
}

.tasks-table-shell .people-table-footer {
    padding: 0.9rem 1.25rem 1rem;
}

.tasks-week-grid-wrap {
    overflow-x: hidden;
}

.tasks-week-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tasks-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tasks-day-card {
    border: 1px solid #dfe7f6;
    border-radius: 4px;
    background: #fff;
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}

.tasks-day-card.is-today {
    border-color: rgba(47, 126, 246, 0.35);
    box-shadow: 0 0 0 1px rgba(47, 126, 246, 0.08) inset;
}

.tasks-day-card.is-special-day {
    background: linear-gradient(180deg, rgba(242, 9, 34, 0.12), rgba(242, 9, 34, 0.05));
    border-color: rgba(242, 9, 34, 0.22);
    box-shadow: 0 0 0 1px rgba(242, 9, 34, 0.08) inset;
}

.tasks-day-card.is-special-day .tasks-day-label,
.tasks-day-card.is-special-day .tasks-day-count,
.tasks-day-card.is-special-day .tasks-day-special-name {
    color: #b11b2a;
}

.tasks-day-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.tasks-day-label {
    color: #17345f;
    font-size: 0.98rem;
}

.tasks-day-count {
    color: #9cadcf;
    font-size: 0.9rem;
}

.tasks-day-badge {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2f7ef6;
    font-size: 0.78rem;
}

.tasks-day-badge-special,
.tasks-special-badge {
    background: rgba(242, 9, 34, 0.12);
    color: #b11b2a;
}

.tasks-day-items {
    display: grid;
    gap: 0.6rem;
}

.tasks-day-special-name {
    font-size: 0.8rem;
    color: #b11b2a;
    margin-top: 0.2rem;
    line-height: 1.2;
}

.tasks-day-item,
.tasks-calendar-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #f8fbff;
    color: inherit;
}

.tasks-day-item:hover,
.tasks-calendar-item:hover {
    border-color: #c8d9f6;
    box-shadow: 0 6px 20px rgba(23, 52, 95, 0.05);
}

.tasks-day-item-title,
.tasks-calendar-item-title a {
    color: #17345f;
    font-size: 0.96rem;
}

.tasks-day-item-meta,
.tasks-calendar-item-meta {
    color: #8ea0c7;
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tasks-calendar-item-meta-muted {
    color: #4b5f88;
}

.tasks-table tr.is-special-day > td {
    background: rgba(242, 9, 34, 0.04);
}

.tasks-table tr.is-special-day:hover > td {
    background: rgba(242, 9, 34, 0.08);
}

.tasks-table tr.is-special-day.is-holiday > td {
    background: transparent !important;
}

.tasks-table tr.is-special-day.is-holiday:hover > td {
    background: transparent !important;
}

.tasks-day-empty {
    color: #8ea0c7;
    font-size: 0.92rem;
}

.tasks-day-more {
    color: #2f7ef6;
    font-size: 0.9rem;
}

.tasks-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.tasks-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tasks-dashboard-page {
    gap: 1.35rem;
}

.tasks-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.6fr);
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.25rem;
}

.tasks-freeze-card {
    padding: 1rem 1.05rem;
    border: 1px solid #d9e4f4;
    border-radius: 4px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    display: grid;
    gap: 0.35rem;
}

.tasks-freeze-card.is-earned {
    border-color: rgba(22, 160, 133, 0.22);
    background: linear-gradient(180deg, rgba(22, 160, 133, 0.12) 0%, rgba(22, 160, 133, 0.04) 100%);
}

.tasks-freeze-label {
    color: #9cadcf;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
}

.tasks-freeze-card strong {
    color: #17345f;
    font-size: 1.45rem;
    font-weight: 400;
}

.tasks-freeze-note {
    color: #8ea0c7;
    font-size: 0.92rem;
    line-height: 1.45;
}

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

.tasks-streak-card {
    padding: 1.1rem 1.15rem 1.25rem;
    display: grid;
    gap: 1rem;
}

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

.tasks-streak-chart-wrap {
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.tasks-streak-chart {
    width: 100%;
    min-width: 680px;
    height: auto;
    display: block;
}

.tasks-streak-grid-line {
    stroke: #e5edf7;
    stroke-width: 1;
    stroke-dasharray: 6 6;
}

.tasks-streak-line {
    fill: none;
    stroke: url(#daily-streak-line);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tasks-streak-line-weekly {
    stroke: url(#weekly-streak-line);
}

.tasks-streak-point {
    stroke: #fff;
    stroke-width: 2;
}

.tasks-streak-axis-label {
    fill: #9cadcf;
    font-size: 0.8rem;
}

.tasks-streak-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3.5rem, 1fr));
    gap: 0.4rem;
}

.tasks-streak-pill {
    padding: 0.42rem 0.55rem;
    border-radius: 4px;
    background: #f7f9fc;
    border: 1px solid #e5edf7;
    color: #17345f;
    font-size: 0.78rem;
    text-align: center;
}

.tasks-streak-pill-win {
    background: rgba(22, 160, 133, 0.12);
    border-color: rgba(22, 160, 133, 0.18);
}

.tasks-streak-pill-loss {
    background: rgba(255, 77, 87, 0.1);
    border-color: rgba(255, 77, 87, 0.18);
}

.tasks-streak-pill-pending {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.18);
}

.tasks-streak-pill-neutral {
    background: #f7f9fc;
}

.tasks-analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tasks-analysis-card {
    padding: 1.1rem 1.15rem;
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
    display: grid;
    gap: 0.35rem;
}

.tasks-analysis-card strong {
    font-size: 1.55rem;
    font-weight: 400;
    color: #17345f;
}

.tasks-time-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.tasks-time-stat {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #f8fbff;
    padding: 0.95rem;
    display: grid;
    gap: 0.25rem;
}

.tasks-time-stat strong {
    color: #17345f;
    font-size: 1.15rem;
    font-weight: 400;
}

.tasks-time-stat-note {
    color: #9cadcf;
    font-size: 0.85rem;
}

.tasks-time-actions {
    gap: 0.5rem;
    align-items: stretch;
}

.tasks-time-actions form {
    margin: 0;
}

.tasks-time-actions .btn {
    padding: 0.42rem 0.72rem;
    font-size: 0.84rem;
    line-height: 1.2;
}

.tasks-time-log-list {
    display: grid;
    gap: 0.75rem;
}

.tasks-time-log-item {
    border: 1px solid #e5edf7;
    border-radius: 4px;
    background: #fff;
    padding: 0.9rem 1rem;
}

.tasks-time-log-top,
.tasks-time-log-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tasks-time-log-meta {
    color: #9cadcf;
    font-size: 0.86rem;
    margin-top: 0.35rem;
}

.tasks-time-bars {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: end;
    min-height: 220px;
}

.tasks-time-bar-item {
    display: grid;
    gap: 0.45rem;
    align-items: end;
}

.tasks-time-bar-wrap {
    min-height: 150px;
    display: flex;
    align-items: flex-end;
}

.tasks-time-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #2f7ef6, #16a085);
    min-height: 10px;
}

.tasks-time-bar-label,
.tasks-time-bar-value {
    font-size: 0.78rem;
    color: #9cadcf;
    text-align: center;
}

.tasks-time-bar-value {
    color: #17345f;
}

.tasks-compare-list {
    display: grid;
    gap: 0.9rem;
}

.tasks-compare-row {
    display: grid;
    gap: 0.45rem;
}

.tasks-compare-label {
    color: #17345f;
    font-size: 0.9rem;
}

.tasks-compare-bars {
    display: grid;
    gap: 0.35rem;
}

.tasks-compare-bar {
    min-height: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    color: #17345f;
    font-size: 0.84rem;
    white-space: nowrap;
}

.tasks-compare-bar-estimated {
    background: rgba(47, 126, 246, 0.16);
}

.tasks-compare-bar-actual {
    background: rgba(22, 160, 133, 0.18);
}

.tasks-type-bars {
    display: grid;
    gap: 0.9rem;
}

.tasks-type-bar-row {
    display: grid;
    gap: 0.4rem;
}

.tasks-type-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #17345f;
    font-size: 0.9rem;
}

.tasks-type-bar-track {
    height: 0.9rem;
    border-radius: 999px;
    background: #edf3fc;
    overflow: hidden;
}

.tasks-type-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f75011, #f20922);
}

.tasks-detail-label {
    color: #9cadcf;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.tasks-detail-value {
    color: #17345f;
    font-size: 1rem;
}

.tasks-detail-value-wrap {
    white-space: pre-line;
}

@media (max-width: 767.98px) {
    .people-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .people-row-actions {
        justify-content: flex-start;
    }

    .people-view-details,
    .people-view-section-grid {
        grid-template-columns: 1fr;
    }

    .people-view-span-2 {
        grid-column: span 1;
    }

    .people-view-profile {
        align-items: flex-start;
    }

    .people-view-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1199.98px) {
    .people-create-layout {
        grid-template-columns: 1fr;
    }

    .people-create-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .people-view-layout {
        grid-template-columns: 1fr;
    }

    .people-view-nav {
        grid-template-columns: 1fr;
    }

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

    .deals-view-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .people-create-header h1 {
        font-size: 1.8rem;
    }

    .people-create-side {
        grid-template-columns: 1fr;
    }

    .people-card-header,
    .people-card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .deals-summary-grid {
        grid-template-columns: 1fr;
    }

    .deals-pipeline-header {
        flex-direction: column;
    }

    .deals-view-details,
    .deals-view-meta {
        grid-template-columns: 1fr;
    }

    .funnel-activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .tasks-summary-grid {
        grid-template-columns: 1fr;
    }

    .tasks-focus-card {
        grid-template-columns: 1fr;
    }

    .tasks-table-head,
    .tasks-calendar-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 1199.98px) {
    .tasks-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tasks-week-grid,
    .tasks-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .tasks-dashboard-grid,
    .tasks-analysis-grid {
        grid-template-columns: 1fr;
    }

    .tasks-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .tasks-time-summary-grid {
        grid-template-columns: 1fr;
    }

    .tasks-time-bars {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

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

.planner-goal-summary-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.planner-row {
    align-items: flex-start;
}

.planner-side-stack {
    display: grid;
    gap: 1rem;
}

.planner-summary-fact {
    min-width: 0;
}

.planner-summary-value {
    margin-top: 0.15rem;
    color: #17345f;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}

.planner-summary-progress-note {
    line-height: 1.5;
}

.planner-month-streak-panel {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1rem;
    background: rgba(247, 249, 252, 0.88);
}

.planner-month-streak-weekdays {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.planner-month-streak-weekdays span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.planner-month-streak-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.4rem;
}

.planner-month-streak-day {
    min-height: 42px;
    border-radius: 4px;
    border: 1px solid rgba(227, 235, 246, 0.95);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.25rem;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.planner-month-streak-day.is-success {
    background: linear-gradient(180deg, rgba(70, 194, 138, 0.96), rgba(22, 160, 133, 0.96));
}

.planner-month-streak-day.is-failure {
    background: linear-gradient(180deg, rgba(232, 93, 117, 0.96), rgba(242, 9, 34, 0.96));
}

.planner-month-streak-day.is-pending {
    background: linear-gradient(180deg, rgba(244, 183, 64, 0.96), rgba(252, 150, 0, 0.96));
}

.planner-month-streak-day.is-neutral {
    background: linear-gradient(180deg, rgba(149, 170, 201, 0.9), rgba(118, 136, 164, 0.9));
}

.planner-progress {
    display: grid;
    gap: 0.5rem;
}

.planner-weekday-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.planner-weekday-option {
    position: relative;
    margin: 0;
}

.planner-weekday-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.planner-weekday-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.45rem 0.7rem;
    border: 1px solid #cdd9eb;
    border-radius: 4px;
    background: #fff;
    color: #5e7297;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.planner-weekday-option input:checked + span {
    background: #2f7ef6;
    border-color: #2f7ef6;
    color: #fff;
    box-shadow: 0 10px 22px rgba(47, 126, 246, 0.18);
}

.planner-weekday-option input:focus-visible + span {
    outline: 2px solid rgba(47, 126, 246, 0.28);
    outline-offset: 2px;
}

.planner-progress-bar {
    width: 100%;
    height: 0.75rem;
    border-radius: 999px;
    background: rgba(149, 170, 201, 0.18);
    overflow: hidden;
}

.planner-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f7ef6, #46c28a);
}

.planner-action-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.planner-day-list {
    display: grid;
    gap: 0.75rem;
}

.planner-day-line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.82);
}

.planner-streak-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: end;
}

.planner-streak-day {
    width: 22px;
    flex: 0 0 22px;
    min-height: 58px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.35rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
}

.planner-streak-day.is-success {
    background: linear-gradient(180deg, rgba(70, 194, 138, 0.96), rgba(22, 160, 133, 0.96));
}

.planner-streak-day.is-failure {
    background: linear-gradient(180deg, rgba(232, 93, 117, 0.96), rgba(242, 9, 34, 0.96));
}

.planner-streak-day.is-pending {
    background: linear-gradient(180deg, rgba(244, 183, 64, 0.96), rgba(252, 150, 0, 0.96));
}

.planner-streak-day.is-neutral {
    background: linear-gradient(180deg, rgba(149, 170, 201, 0.9), rgba(118, 136, 164, 0.9));
}

.planner-review-list {
    display: grid;
    gap: 0.9rem;
}

.planner-review-card {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.82);
}

.planner-table-shell {
    overflow: hidden;
}

.planner-table th,
.planner-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.planner-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.planner-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.9rem;
}

.planner-calendar-day {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.9rem;
    display: grid;
    gap: 0.7rem;
    min-height: 170px;
}

.planner-calendar-day.is-success {
    background: linear-gradient(180deg, rgba(70, 194, 138, 0.12), rgba(255, 255, 255, 0.96));
}

.planner-calendar-day.is-failure {
    background: linear-gradient(180deg, rgba(232, 93, 117, 0.12), rgba(255, 255, 255, 0.96));
}

.planner-calendar-day.is-pending {
    background: linear-gradient(180deg, rgba(244, 183, 64, 0.12), rgba(255, 255, 255, 0.96));
}

.planner-calendar-day.is-holiday {
    background: linear-gradient(180deg, rgba(232, 93, 117, 0.18), rgba(255, 255, 255, 0.94));
}

.planner-calendar-day-holiday {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(232, 93, 117, 0.12);
    color: #b02a37;
    font-size: 0.82rem;
    font-weight: 600;
}

.planner-calendar-day-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.planner-calendar-day-label {
    font-size: 1.15rem;
    font-weight: 500;
}

.planner-calendar-day-weekday {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.planner-calendar-day-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.planner-calendar-day-items {
    display: grid;
    gap: 0.6rem;
}

.planner-calendar-item {
    border: 1px solid rgba(227, 235, 246, 0.95);
    border-radius: 4px;
    padding: 0.65rem 0.75rem;
    background: rgba(247, 249, 252, 0.8);
}

.planner-calendar-item-title {
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.planner-calendar-item-meta,
.planner-calendar-item-more,
.planner-calendar-empty {
    color: var(--color-muted);
    font-size: 0.82rem;
}

@media (max-width: 1399.98px) {
    .planner-calendar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .planner-summary-grid,
    .planner-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .planner-side-stack {
        gap: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .planner-summary-grid,
    .planner-calendar-grid {
        grid-template-columns: 1fr;
    }

    .planner-month-streak-weekdays,
    .planner-month-streak-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .planner-action-stack {
        justify-content: flex-start;
    }
}

.media-library-table th,
.media-library-table td {
    vertical-align: middle;
}

.media-thumb-shell {
    width: 68px;
    height: 68px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 249, 252, 0.92);
}

.media-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb-file {
    padding: 0.45rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text);
    word-break: break-word;
}

.media-row-meta {
    word-break: break-all;
}

.media-relationship-list {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.25rem;
}

.media-relationship-item a,
.media-relationship-item span {
    font-size: 0.82rem;
}

.media-row-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.media-preview-modal .modal-content {
    border-radius: 8px;
}

.media-preview-modal .modal-body {
    padding: 1rem;
}

.media-preview-frame {
    width: 100%;
    min-height: 72vh;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
}

.media-preview-help {
    margin-top: 0.75rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.profile-photo-picker-actions {
    margin-top: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
    max-height: 60vh;
    overflow: auto;
}

.media-picker-card {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
    padding: 0.55rem;
    display: grid;
    gap: 0.5rem;
    text-align: left;
}

.media-picker-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.media-picker-card span {
    font-size: 0.82rem;
    color: var(--color-text);
    word-break: break-word;
}

.task-timer-widget {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 280px;
    max-width: calc(100vw - 2rem);
    background: linear-gradient(135deg, rgba(226, 255, 236, 0.98), rgba(198, 245, 214, 0.98));
    border: 1px solid rgba(67, 160, 71, 0.22);
    border-radius: 4px;
    box-shadow: 0 16px 36px rgba(21, 36, 85, 0.16);
    z-index: 1080;
    overflow: hidden;
}

.task-timer-widget.is-collapsed {
    width: 182px;
}

.task-timer-widget-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem 0.55rem;
    border-bottom: 1px solid rgba(67, 160, 71, 0.14);
    background: linear-gradient(180deg, rgba(246, 255, 248, 0.88), rgba(225, 247, 231, 0.88));
}

.task-timer-widget-toggle {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(67, 160, 71, 0.28);
    border-radius: 7px;
    background: #fff;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}

.task-timer-widget-toggle-icon {
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.task-timer-widget-headline {
    min-width: 0;
    flex: 1 1 auto;
}

.task-timer-widget-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(24, 84, 34, 0.72);
    margin-bottom: 0.15rem;
}

.task-timer-widget-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #14351f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-timer-widget-open {
    flex: 0 0 auto;
    font-size: 0.78rem;
    text-decoration: none;
    color: #2e7d32;
    border: 1px solid rgba(67, 160, 71, 0.28);
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    background: #fff;
}

.task-timer-widget-body {
    padding: 0.72rem 0.8rem 0.85rem;
    display: grid;
    gap: 0.65rem;
}

.task-timer-widget-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: rgba(24, 84, 34, 0.8);
}

.task-timer-widget-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.14);
}

.task-timer-widget-time {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #12301c;
}

.task-timer-widget-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.task-timer-widget-actions .btn {
    padding: 0.28rem 0.6rem;
    font-size: 0.8rem;
    line-height: 1.15;
}

.task-timer-widget.is-collapsed .task-timer-widget-body {
    display: none;
}

.task-timer-widget.is-collapsed .task-timer-widget-title,
.task-timer-widget.is-collapsed .task-timer-widget-open {
    display: none;
}

.task-timer-widget.is-collapsed .task-timer-widget-header {
    border-bottom: 0;
}

@media (max-width: 575.98px) {
    .task-timer-widget {
        right: 0.65rem;
        left: 0.65rem;
        width: auto;
        bottom: 0.65rem;
    }

    .task-timer-widget.is-collapsed {
        width: auto;
    }
}
