:root {
    color-scheme: light;
    --cf-ink: #263149;
    --cf-muted: #707b8d;
    --cf-surface: #ffffff;
    --cf-background: #f5f3f8;
    --cf-border: #ebe8f1;
    --cf-deep: #28183a;
    --cf-deep-strong: #20122f;
    --cf-primary: #7866d4;
    --cf-primary-dark: #6754c6;
    --cf-primary-soft: #f0edff;
    --cf-mint: #66c39b;
    --cf-blue: #64b8e8;
    --cf-orange: #f0b75b;
    --cf-red: #dd6970;
    --cf-shadow: 0 10px 30px rgba(41, 27, 68, .055);
    --cf-radius: 13px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--cf-ink); font-size: 15px; letter-spacing: .012em; line-height: 1.6; }
a { color: var(--cf-primary-dark); text-decoration: none; }
a:hover { color: var(--cf-primary); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: #8674df; }

/* Shared application frame */
.cf-shell { min-height: 100vh; background: var(--cf-background); }
.cf-topbar {
    position: relative;
    z-index: 10;
    min-height: 78px;
    color: #fff;
    background: linear-gradient(110deg, #29193d 0%, #28183a 66%, #21132f 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}
.cf-topbar-inner, .cf-container { width: min(1500px, calc(100% - 80px)); margin: 0 auto; }
.cf-topbar-inner {
    min-height: 121px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand account" "navigation navigation";
    align-items: center;
    column-gap: 28px;
    row-gap: 0;
    padding-top: 7px;
}
.cf-brand { grid-area: brand; display: inline-flex; min-height: 58px; align-items: center; justify-self: start; color: #fff; }
.cf-brand:hover { color: #fff; }
.cf-logo-img { display: block; width: 166px; height: auto; }
.cf-nav { grid-area: navigation; width: 100%; min-width: 0; align-self: stretch; border-top: 1px solid rgba(255, 255, 255, .085); }
.cf-nav-inner { display: flex; align-items: center; flex-wrap: wrap; column-gap: 4px; row-gap: 0; overflow: visible; }
.cf-nav-inner::-webkit-scrollbar { display: none; }
.cf-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 13px;
    color: rgba(255, 255, 255, .59);
    font-size: 14px;
    font-weight: 540;
    white-space: nowrap;
    transition: color .18s ease;
}
.cf-nav-link svg { width: 17px; height: 17px; opacity: .9; }
.cf-nav-link:hover, .cf-nav-link.is-active { color: #fff; }
.cf-nav-link.is-active::after {
    position: absolute;
    right: 13px;
    bottom: 6px;
    left: 13px;
    height: 3px;
    border-radius: 99px;
    background: #a28df4;
    content: "";
}
.cf-nav-link.is-admin { color: #c6b9ff; }
.cf-account { grid-area: account; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cf-account form, .cf-inline-form { margin: 0; }
.cf-mobile-account, .cf-mobile-logout, .cf-mobile-menu-toggle, .cf-mobile-drawer, .cf-mobile-bottom-nav { display: none; }
.cf-mobile-menu-toggle {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    color: #f4f0ff;
    background: rgba(255, 255, 255, .045);
    cursor: pointer;
}
.cf-mobile-menu-toggle:hover, .cf-topbar.is-menu-open .cf-mobile-menu-toggle { border-color: rgba(162, 141, 244, .55); background: rgba(138, 116, 224, .2); }
.cf-mobile-menu-toggle svg { display: block; width: 20px; height: 20px; }
.cf-mobile-menu-close-icon { display: none; }
.cf-topbar.is-menu-open .cf-mobile-menu-open-icon { display: none; }
.cf-topbar.is-menu-open .cf-mobile-menu-close-icon { display: block; }
.cf-account-search, .cf-account-avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    color: #f3efff;
}
.cf-account-search:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cf-account-avatar { border-color: rgba(167, 148, 255, .38); background: rgba(135, 112, 211, .18); font-size: 14px; font-weight: 700; }
.cf-account-search svg, .cf-logout-button svg { width: 18px; height: 18px; }
.cf-account-person { display: flex; align-items: center; gap: 10px; }
.cf-account-details { min-width: 0; max-width: 170px; }
.cf-account-details strong, .cf-account-details span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-account-details strong { color: #fff; font-size: 14px; font-weight: 650; }
.cf-account-details span { color: rgba(255, 255, 255, .69); font-size: 13px; }
.cf-language-select {
    min-height: 37px;
    max-width: 102px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    color: #f2eff9;
    background: rgba(255, 255, 255, .055);
    font-size: 13px;
    cursor: pointer;
}
.cf-language-select option { color: var(--cf-ink); background: #fff; }
.cf-logout-button {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    color: rgba(255, 255, 255, .74);
    background: transparent;
    font-size: 13px;
    cursor: pointer;
}
.cf-logout-button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cf-container { padding-top: 36px; padding-bottom: 56px; }
.cf-page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 17px; margin-bottom: 25px; }
.cf-page-heading h1 { margin: 0; color: var(--cf-ink); font-size: clamp(23px, 2.7vw, 30px); font-weight: 700; letter-spacing: -.15px; line-height: 1.25; }
.cf-page-heading p { margin: 7px 0 0; color: var(--cf-muted); font-size: 15px; }
.cf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Buttons, cards, forms, and tables shared by every module */
.cf-button, .button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--cf-primary);
    border-radius: 9px;
    color: #fff;
    background: var(--cf-primary);
    font-size: 14px;
    font-weight: 620;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    cursor: pointer;
}
.cf-button:hover, .button:hover { border-color: var(--cf-primary-dark); color: #fff; background: var(--cf-primary-dark); box-shadow: 0 7px 16px rgba(111, 91, 203, .2); }
.cf-button-secondary { border-color: #e6e2ec; color: #596379; background: #fff; }
.cf-button-secondary:hover { border-color: #d8d0ef; color: var(--cf-primary-dark); background: #fbfaff; box-shadow: none; }
.cf-button-danger { border-color: #f1d6d7; color: #bd4e53; background: #fff; }
.cf-button-danger:hover { border-color: #d65e64; color: #fff; background: #d65e64; }
.cf-button-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.cf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 23px; }
.cf-stat, .cf-card { border: 1px solid var(--cf-border); border-radius: var(--cf-radius); background: var(--cf-surface); box-shadow: var(--cf-shadow); }
.cf-stat { min-width: 0; padding: 19px 20px; }
.cf-stat-label { color: #606b7d; font-size: 14px; font-weight: 620; }
.cf-stat-value { display: block; overflow: hidden; margin-top: 9px; color: var(--cf-ink); font-size: 30px; font-weight: 750; letter-spacing: -.2px; line-height: 1.2; text-overflow: ellipsis; }
.cf-stat-note { display: block; margin-top: 7px; color: #748093; font-size: 13px; }
.cf-card { min-width: 0; overflow: hidden; }
.cf-card-header { display: flex; min-height: 69px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 17px 22px; border-bottom: 1px solid #f0edf3; }
.cf-card-header h2 { margin: 0; color: #525a70; font-size: 17px; font-weight: 650; letter-spacing: 0; }
.cf-card-body { padding: 22px; }
.cf-table-wrap { overflow-x: auto; }
.cf-table { width: 100%; border-collapse: collapse; }
.cf-table th, .cf-table td { padding: 16px 19px; border-bottom: 1px solid #f0eef3; text-align: left; vertical-align: middle; }
.cf-table th { color: #566175; background: #fbfafc; font-size: 13px; font-weight: 680; letter-spacing: .2px; white-space: nowrap; }
.cf-table td { color: #4d586d; font-size: 14px; line-height: 1.6; }
.cf-table tbody tr { transition: background .16s ease; }
.cf-table tbody tr:hover { background: #fcfbff; }
.cf-table tr:last-child td { border-bottom: 0; }
.cf-table strong { display: block; color: #3f4960; font-weight: 650; }
.cf-table td a { color: #53669c; }
.cf-table td a:hover { color: var(--cf-primary-dark); }
.cf-muted { color: var(--cf-muted); }
.cf-small { font-size: 13px; }
.cf-stack { display: grid; gap: 5px; }
.cf-table td.cf-stack, .cf-table td.cf-actions { display: table-cell; }
.cf-table td.cf-stack > * { display: block; }
.cf-table td.cf-stack > * + * { margin-top: 6px; }
.cf-table td.cf-stack > .cf-badge { display: inline-flex; }
.cf-table td.cf-actions { white-space: nowrap; }
.cf-table td.cf-actions .cf-inline-form { display: inline-flex; margin: 3px 8px 3px 0; vertical-align: middle; }
.cf-table td.cf-actions .cf-inline-form:last-child { margin-right: 0; }
.cf-badge { display: inline-flex; width: fit-content; align-items: center; padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 620; white-space: nowrap; }
.cf-badge-green { color: #24794f; background: #e9f7ef; }
.cf-badge-purple { color: #6757c4; background: #f0edff; }
.cf-badge-orange { color: #9e6b1d; background: #fff4df; }
.cf-badge-red { color: #b74b50; background: #fdecee; }
.cf-badge-gray { color: #687286; background: #f0f1f4; }
.cf-alert { margin-bottom: 18px; padding: 13px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; }
.cf-alert-success { border-color: #d4ecdf; color: #25724b; background: #edf8f1; }
.cf-alert-error { border-color: #f2d8da; color: #ae474e; background: #fdf0f1; }
.cf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cf-field { display: grid; min-width: 0; gap: 7px; }
.cf-field-wide { grid-column: 1 / -1; }
.cf-field label { color: #505b70; font-size: 14px; font-weight: 620; }
.cf-input, .cf-textarea, .cf-select {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #e3e0e9;
    border-radius: 9px;
    color: var(--cf-ink);
    background: #fff;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.cf-input::placeholder, .cf-textarea::placeholder { color: #a6acb8; }
.cf-textarea { min-height: 105px; resize: vertical; }
.cf-input:focus, .cf-textarea:focus, .cf-select:focus { border-color: #9c8bee; outline: 0; box-shadow: 0 0 0 4px rgba(124, 102, 212, .11); }
.cf-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.cf-filters .cf-input { min-width: 235px; }
.cf-filters .cf-select { width: auto; }
.cf-empty { padding: 61px 24px; text-align: center; }
.cf-empty h3 { margin: 0 0 7px; color: #525b70; font-size: 18px; }
.cf-empty p { margin: 0 0 19px; color: var(--cf-muted); font-size: 14px; }
.cf-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-top: 1px solid #f0eef3; }
.cf-payment-form { display: grid; min-width: 205px; gap: 8px; margin-top: 10px; }
.cf-payment-form .cf-input, .cf-payment-form .cf-select { min-height: 38px; padding: 7px 9px; font-size: 14px; }
.cf-details summary { color: #685ac0; font-size: 14px; font-weight: 620; cursor: pointer; }

/* Dashboard: purple overview strip, genuine activity chart and category donut */
.cf-dashboard-hero {
    position: relative;
    padding: 27px 0 47px;
    overflow: hidden;
    background: radial-gradient(ellipse at 82% 15%, rgba(122, 92, 184, .19), transparent 38%), linear-gradient(116deg, #29193d 0%, #28183a 72%, #21132f 100%);
}
.cf-dashboard-hero::after { position: absolute; top: -80px; right: -95px; width: 350px; height: 350px; border: 1px solid rgba(255, 255, 255, .045); border-radius: 50%; content: ""; }
.cf-hero-container { position: relative; z-index: 1; padding-top: 0; padding-bottom: 0; }
.cf-hero-heading { margin-bottom: 22px; }
.cf-hero-heading h1 { color: #fff; font-size: 25px; font-weight: 640; }
.cf-hero-heading p { color: rgba(255, 255, 255, .58); }
.cf-hero-heading p strong { color: rgba(255, 255, 255, .86); }
.cf-hero-heading .cf-badge-purple { color: #e0d8ff; background: rgba(152, 126, 232, .19); }
.cf-hero-heading .cf-button { border-color: #8d77e5; background: #8d77e5; }
.cf-hero-heading .cf-button:hover { border-color: #9b89ea; background: #9b89ea; }
.cf-stats-hero { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); border-radius: 11px; background: rgba(255, 255, 255, .065); }
.cf-stats-hero .cf-stat { min-height: 112px; padding: 18px 20px; border: 0; border-right: 1px solid rgba(255, 255, 255, .07); border-radius: 0; background: transparent; box-shadow: none; }
.cf-stats-hero .cf-stat:last-child { border-right: 0; }
.cf-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-stats-hero .cf-stat-label { color: rgba(255, 255, 255, .75); }
.cf-stats-hero .cf-stat-value { color: #fff; font-size: 29px; }
.cf-stats-hero .cf-stat-note { color: rgba(255, 255, 255, .66); }
.cf-stat-symbol { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: #d8ceff; background: rgba(255, 255, 255, .085); }
.cf-stat-symbol svg { width: 16px; height: 16px; }
.cf-dashboard-content { position: relative; padding-top: 29px; }
.cf-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, .92fr); gap: 21px; margin-bottom: 21px; }
.cf-card-subtitle { margin: 4px 0 0; color: var(--cf-muted); font-size: 13px; }
.cf-card-kicker { padding: 5px 8px; border-radius: 6px; color: #687286; background: #f5f3f8; font-size: 13px; font-weight: 620; }
.cf-chart-card .cf-card-body { padding: 20px 22px 17px; }
.cf-chart-summary { display: flex; flex-wrap: wrap; gap: 27px; margin-bottom: 14px; }
.cf-chart-number { display: flex; align-items: baseline; gap: 7px; }
.cf-chart-number strong { color: var(--cf-ink); font-size: 23px; letter-spacing: 0; }
.cf-chart-number span { color: var(--cf-muted); font-size: 13px; }
.cf-chart-plot { position: relative; height: 223px; padding-top: 12px; }
.cf-chart-gridlines { position: absolute; top: 12px; right: 0; bottom: 32px; left: 0; display: grid; grid-template-rows: repeat(4, 1fr); pointer-events: none; }
.cf-chart-gridlines span { border-top: 1px dashed #eceaf0; }
.cf-chart-bars { position: relative; z-index: 1; display: grid; height: 100%; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cf-chart-month { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-end; }
.cf-chart-columns { display: flex; width: 100%; height: 177px; align-items: flex-end; justify-content: center; gap: 5px; }
.cf-chart-bar { width: min(23px, 33%); min-height: 3px; border-radius: 5px 5px 0 0; background: #7b69d5; transition: height .25s ease; }
.cf-chart-bar.is-secondary { background: #d8d1f4; }
.cf-chart-month-label { padding-top: 9px; color: #727d8d; font-size: 13px; }
.cf-chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 17px; padding-top: 9px; }
.cf-legend-item { display: inline-flex; align-items: center; gap: 7px; color: #667182; font-size: 13px; }
.cf-legend-swatch { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 3px; background: var(--cf-primary); }
.cf-legend-swatch.is-soft { background: #d8d1f4; }
.cf-legend-swatch.is-mint { background: var(--cf-mint); }
.cf-legend-swatch.is-orange { background: var(--cf-orange); }
.cf-legend-swatch.is-blue { background: var(--cf-blue); }
.cf-donut-card .cf-card-body { padding: 18px 19px; }
.cf-donut { position: relative; display: grid; width: 180px; height: 180px; margin: 2px auto 19px; place-items: center; border-radius: 50%; background: var(--cf-donut, #efedf2); }
.cf-donut::before { position: absolute; inset: 21px; border-radius: 50%; background: #fff; content: ""; }
.cf-donut-center { position: relative; z-index: 1; text-align: center; }
.cf-donut-center strong, .cf-donut-center span { display: block; }
.cf-donut-center strong { color: var(--cf-ink); font-size: 25px; font-weight: 750; }
.cf-donut-center span { color: var(--cf-muted); font-size: 13px; }
.cf-breakdown-list { display: grid; gap: 0; }
.cf-breakdown-row { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f0eef3; }
.cf-breakdown-row .cf-legend-item { min-width: 0; }
.cf-breakdown-row strong { color: #535d71; font-size: 14px; font-weight: 650; }
.cf-company-cell { display: inline-flex; align-items: center; gap: 10px; }
.cf-company-avatar { display: inline-grid; width: 33px; height: 33px; flex: 0 0 33px; place-items: center; border-radius: 9px; color: #705ece; background: #f0edff; font-size: 13px; font-weight: 700; }
.cf-company-avatar.is-mint { color: #348961; background: #eaf8f0; }
.cf-company-avatar.is-blue { color: #34789d; background: #e9f5fb; }
.cf-company-avatar.is-orange { color: #a66a1e; background: #fff3df; }

/* Sales pipeline: accessible drag-and-drop board and compact opportunity cards */
.cf-kanban-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 19px; }
.cf-kanban-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 11px; }
.cf-kanban-filters .cf-field { min-width: 210px; }
.cf-kanban-search { min-width: 275px; }
.cf-kanban-hint { margin: 0 0 10px; color: #687489; font-size: 14px; }
.cf-kanban-scroll { overflow-x: auto; padding: 3px 2px 16px; }
.cf-kanban-board { display: flex; min-width: max-content; align-items: flex-start; gap: 17px; }
.cf-kanban-column { width: 305px; min-width: 305px; min-height: 380px; padding: 14px; border: 1px solid #e9e6ef; border-radius: 13px; background: #f8f7fb; transition: border-color .16s ease, background .16s ease; }
.cf-kanban-column.is-drop-target { border-color: var(--cf-primary); background: #f2efff; }
.cf-kanban-column-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--cf-stage-color, #7867d2); }
.cf-kanban-stage-name { display: block; color: #424d63; font-size: 15px; font-weight: 680; }
.cf-kanban-stage-total { display: block; margin-top: 5px; color: #657187; font-size: 14px; font-weight: 550; }
.cf-kanban-count { display: inline-grid; min-width: 29px; height: 29px; padding: 0 7px; place-items: center; border-radius: 8px; color: #6658bc; background: #eeebfb; font-size: 14px; font-weight: 680; }
.cf-kanban-cards { display: grid; min-height: 240px; align-content: start; gap: 12px; padding-top: 13px; }
.cf-kanban-card { padding: 14px; border: 1px solid #e7e4ed; border-radius: 11px; background: #fff; box-shadow: 0 3px 9px rgba(43, 34, 68, .035); }
.cf-kanban-card[draggable="true"] { cursor: grab; }
.cf-kanban-card.is-dragging { opacity: .5; }
.cf-kanban-card.is-saving { opacity: .68; pointer-events: none; }
.cf-kanban-card-top { display: flex; align-items: center; gap: 10px; }
.cf-kanban-card-company { min-width: 0; overflow: hidden; color: #617087; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cf-kanban-card-title { display: block; margin-top: 13px; color: #3c4660; font-size: 15px; font-weight: 670; line-height: 1.45; }
.cf-kanban-card-title:hover { color: var(--cf-primary-dark); }
.cf-kanban-card-value { display: block; margin-top: 10px; color: #6655c3; font-size: 16px; font-weight: 710; }
.cf-kanban-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 13px; color: #69758a; font-size: 13px; }
.cf-kanban-assignee { display: inline-flex; min-width: 0; align-items: center; gap: 8px; }
.cf-kanban-assignee-avatar { display: inline-grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 50%; color: #546686; background: #eef1f6; font-size: 13px; font-weight: 670; }
.cf-kanban-stage-form { margin-top: 13px; }
.cf-kanban-stage-select { min-height: 38px; padding: 7px 9px; font-size: 13px; }
.cf-kanban-empty { margin: 13px 0 0; padding: 17px 10px; border: 1px dashed #ded9e9; border-radius: 9px; color: #778196; font-size: 14px; text-align: center; }

/* Sales proposals: editable line items, clear totals, and printable documents */
.cf-offer-items { margin-top: 24px; }
.cf-offer-items-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.cf-offer-items-title h3 { margin: 0; color: #424d63; font-size: 17px; }
.cf-offer-items-scroll { overflow-x: auto; }
.cf-offer-item-grid { display: grid; min-width: 720px; grid-template-columns: minmax(260px, 2.2fr) minmax(95px, .8fr) minmax(120px, 1fr) minmax(120px, 1fr) 42px; align-items: center; gap: 10px; }
.cf-offer-item-heading { padding: 0 0 10px; color: #59657a; font-size: 13px; font-weight: 670; }
.cf-offer-item-row { margin-bottom: 10px; }
.cf-offer-line-amount { overflow: hidden; color: #4b556c; font-size: 14px; font-weight: 660; text-overflow: ellipsis; white-space: nowrap; }
.cf-offer-remove { display: inline-grid; width: 39px; height: 39px; place-items: center; border: 1px solid #f0dadd; border-radius: 9px; color: #bd555d; background: #fff; font-size: 20px; cursor: pointer; }
.cf-offer-remove:hover { color: #fff; background: #d76b71; }
.cf-offer-totals { display: grid; width: min(100%, 355px); gap: 11px; margin: 20px 0 0 auto; padding: 17px 18px; border: 1px solid #ece8f1; border-radius: 11px; background: #fbfafc; }
.cf-offer-total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #5c687c; font-size: 14px; }
.cf-offer-total-row.is-grand-total { padding-top: 11px; border-top: 1px solid #e7e3ed; color: #453a82; font-size: 16px; font-weight: 710; }
.cf-offer-document { max-width: 1030px; margin: 0 auto; }
.cf-offer-document-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid #ece8f0; }
.cf-offer-document-title { margin: 0; color: #3d4760; font-size: 27px; }
.cf-offer-document-number { display: block; margin-top: 5px; color: #6b768a; font-size: 15px; }
.cf-offer-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 26px 0; }
.cf-offer-party-label { display: block; margin-bottom: 7px; color: #737d8d; font-size: 13px; }
.cf-offer-party-name { display: block; color: #414b62; font-size: 17px; font-weight: 680; }
.cf-offer-party-detail { display: block; margin-top: 4px; color: #637087; font-size: 14px; }
.cf-offer-document-meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 21px 0; color: #5e6a7c; font-size: 14px; }
.cf-offer-document-notes { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ece8f0; color: #586477; line-height: 1.7; }
.cf-offer-status-form .cf-select { min-width: 125px; min-height: 36px; padding: 6px 9px; font-size: 13px; }

/* Projects: compact delivery cards, task progress, and project details. */
.cf-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; padding: 20px; }
.cf-project-card { display: grid; gap: 13px; min-width: 0; padding: 19px; border: 1px solid #e9e6ef; border-radius: 12px; background: #fff; }
.cf-project-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cf-project-number { color: #748094; font-size: 13px; }
.cf-project-card-title { display: block; color: #3d4860; font-size: 17px; font-weight: 670; line-height: 1.45; }
.cf-project-card-title:hover { color: var(--cf-primary-dark); }
.cf-project-company { color: #667287; font-size: 14px; }
.cf-project-budget { color: #6353bd; font-size: 17px; font-weight: 700; }
.cf-project-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #637086; font-size: 13px; }
.cf-project-progress-track { overflow: hidden; width: 100%; height: 9px; border-radius: 8px; background: #efedf3; }
.cf-project-progress-fill { display: block; height: 100%; border-radius: inherit; background: #7866d4; }
.cf-project-progress-fill.is-complete { background: #66c39b; }
.cf-project-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid #f0edf3; color: #69758a; font-size: 13px; }
.cf-project-owner { display: inline-flex; align-items: center; gap: 8px; }
.cf-project-deadline.is-overdue { color: #bf4f59; font-weight: 620; }
.cf-project-detail-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(285px, .9fr); align-items: start; gap: 19px; }
.cf-project-main, .cf-project-sidebar { display: grid; min-width: 0; gap: 19px; }
.cf-project-info { display: grid; gap: 15px; }
.cf-project-info-row { display: grid; gap: 4px; padding-bottom: 13px; border-bottom: 1px solid #eeebf2; }
.cf-project-info-row:last-child { padding-bottom: 0; border-bottom: 0; }
.cf-project-info-label { color: #717c8d; font-size: 13px; }
.cf-project-info-value { color: #435068; font-size: 15px; font-weight: 610; }
.cf-project-task-form { padding: 19px 21px; border-top: 1px solid #f0edf3; background: #fbfafc; }
.cf-project-task-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.cf-project-task-fields .is-full { grid-column: 1 / -1; }
.cf-project-task-actions { display: flex; justify-content: flex-end; margin-top: 15px; }
.cf-project-status-select { min-height: 36px; padding: 6px 10px; font-size: 13px; }

/* Reporting dashboard: responsive funnels, activity charts, and team analytics */
.cf-report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 17px 20px; margin-bottom: 21px; }
.cf-report-filters .cf-field { min-width: 165px; }
.cf-report-filters .cf-field.is-wide { min-width: 220px; }
.cf-report-filters [hidden] { display: none; }
.cf-report-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr); align-items: start; gap: 19px; margin-bottom: 19px; }
.cf-report-grid.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cf-report-full { grid-column: 1 / -1; }
.cf-report-card-body { padding: 20px 21px; }
.cf-report-funnel { display: grid; gap: 15px; }
.cf-report-stage { display: grid; gap: 7px; }
.cf-report-stage-label { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.cf-report-stage-label strong { overflow: hidden; color: #4b556a; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cf-report-stage-count { flex: 0 0 auto; color: #637086; font-size: 13px; }
.cf-report-stage-track { overflow: hidden; width: 100%; height: 12px; border-radius: 8px; background: #f0edf5; }
.cf-report-stage-fill { display: block; height: 100%; min-width: 0; border-radius: inherit; background: var(--cf-stage-color, #7968d1); }
.cf-report-stage-value { color: #6d788a; font-size: 13px; }
.cf-report-results { display: grid; justify-items: center; gap: 17px; }
.cf-report-results .cf-donut { margin: 5px auto 0; }
.cf-report-result-list { width: 100%; }
.cf-report-result-row { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f0edf3; }
.cf-report-result-label { display: inline-flex; align-items: center; gap: 9px; color: #59657a; font-size: 14px; }
.cf-report-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #7866d4; }
.cf-report-dot.is-won { background: #66c39b; }
.cf-report-dot.is-lost { background: #dd6970; }
.cf-report-dot.is-offer { background: #64b8e8; }
.cf-report-trend { overflow-x: auto; padding: 5px 0 0; }
.cf-report-trend-inner { display: flex; min-width: 580px; min-height: 235px; align-items: flex-end; justify-content: space-around; gap: 9px; padding: 0 3px; border-bottom: 1px solid #eae7ef; }
.cf-report-bucket { display: flex; min-width: 35px; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: flex-end; }
.cf-report-bucket-bars { display: flex; height: 175px; align-items: flex-end; justify-content: center; gap: 4px; }
.cf-report-bar { display: block; width: 12px; min-height: 0; border-radius: 4px 4px 0 0; background: #7866d4; }
.cf-report-bar.is-activity { background: #66c39b; }
.cf-report-bar.is-offer { background: #64b8e8; }
.cf-report-bucket-label { display: block; padding: 9px 0 7px; color: #697589; font-size: 12px; white-space: nowrap; }
.cf-report-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; padding-top: 15px; }
.cf-report-activity-list { display: grid; gap: 15px; }
.cf-report-activity-row { display: grid; gap: 7px; }
.cf-report-activity-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #4f5a70; font-size: 14px; }
.cf-report-progress { overflow: hidden; width: 100%; height: 9px; border-radius: 8px; background: #eeebf3; }
.cf-report-progress span { display: block; height: 100%; border-radius: inherit; background: #7866d4; }
.cf-report-activity-note { color: #718093; font-size: 13px; }
.cf-report-offer-rate { margin: 0 0 17px; padding: 17px; border-radius: 10px; background: #f6f4fb; }
.cf-report-offer-rate strong { display: block; color: #594ba4; font-size: 30px; line-height: 1.15; }
.cf-report-offer-rate span { display: block; margin-top: 5px; color: #657085; font-size: 14px; }
.cf-report-team-name { display: inline-flex; align-items: center; gap: 10px; }
.cf-report-empty { padding: 34px 14px; color: #738094; font-size: 14px; text-align: center; }

/* Activity calendar: monthly grid, selected-day agenda, and unscheduled work */
.cf-calendar-layout { display: grid; grid-template-columns: minmax(0, 2.65fr) minmax(275px, .95fr); align-items: start; gap: 20px; }
.cf-calendar-main, .cf-calendar-aside { min-width: 0; }
.cf-calendar-aside { display: grid; gap: 18px; }
.cf-calendar-header { min-height: 80px; }
.cf-calendar-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cf-calendar-title h2 { min-width: 158px; color: var(--cf-ink); font-size: 18px; }
.cf-calendar-controls { display: flex; align-items: center; gap: 7px; }
.cf-calendar-arrow { display: inline-grid; width: 35px; height: 35px; place-items: center; border: 1px solid #e8e5ed; border-radius: 9px; color: #697287; background: #fff; font-size: 18px; line-height: 1; }
.cf-calendar-arrow:hover { border-color: #d8d0ef; color: var(--cf-primary-dark); background: #fbfaff; }
.cf-calendar-filters { padding: 15px 20px; border-bottom: 1px solid #f0edf3; }
.cf-calendar-filters .cf-select { min-height: 40px; padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.cf-calendar-scroll { overflow-x: auto; }
.cf-calendar-grid { display: grid; min-width: 690px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cf-calendar-weekday { min-height: 45px; padding: 12px 9px; border-right: 1px solid #f0edf3; border-bottom: 1px solid #f0edf3; color: #657084; background: #fcfbfd; font-size: 13px; font-weight: 650; text-align: center; }
.cf-calendar-weekday:nth-child(7) { border-right: 0; }
.cf-calendar-day { min-height: 128px; padding: 8px; border-right: 1px solid #f0edf3; border-bottom: 1px solid #f0edf3; background: #fff; }
.cf-calendar-day:nth-child(7n) { border-right: 0; }
.cf-calendar-day.is-outside { background: #fcfbfd; }
.cf-calendar-day.is-weekend:not(.is-outside) { background: #fefeff; }
.cf-calendar-day.is-selected { background: #f8f6ff !important; box-shadow: inset 0 0 0 1px #d6cff6; }
.cf-calendar-day-top { display: flex; min-height: 30px; align-items: center; justify-content: space-between; gap: 5px; }
.cf-calendar-day-number { display: inline-grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #535d70; font-size: 14px; font-weight: 650; }
.cf-calendar-day-number:hover { color: var(--cf-primary-dark); background: #f0edff; }
.cf-calendar-day.is-outside .cf-calendar-day-number { color: #adb1bd; }
.cf-calendar-day.is-today .cf-calendar-day-number { color: #fff; background: var(--cf-primary); }
.cf-calendar-day-add { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: #a19cad; font-size: 17px; }
.cf-calendar-day-add:hover { color: var(--cf-primary-dark); background: #f0edff; }
.cf-calendar-events { display: grid; gap: 5px; padding-top: 5px; }
.cf-calendar-event { display: block; overflow: hidden; padding: 6px 7px; border-left: 3px solid #7b69d5; border-radius: 5px; color: #6151ae; background: #f0edff; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.cf-calendar-event:hover { color: #4f409e; background: #e8e3ff; }
.cf-calendar-event.is-call { border-left-color: #66c39b; color: #327b59; background: #eaf7ef; }
.cf-calendar-event.is-meeting { border-left-color: #f0b75b; color: #956420; background: #fff4df; }
.cf-calendar-event.is-follow-up { border-left-color: #dd6970; color: #9f4a50; background: #fdf0f1; }
.cf-calendar-event.is-note, .cf-calendar-event.is-other { border-left-color: #8d96a7; color: #5e697b; background: #f0f1f4; }
.cf-calendar-event.is-completed { opacity: .68; }
.cf-calendar-event.is-canceled { opacity: .5; text-decoration: line-through; }
.cf-calendar-event-time { margin-right: 4px; font-weight: 730; }
.cf-calendar-more { padding-left: 6px; color: #7668c1; font-size: 12px; font-weight: 620; }
.cf-calendar-agenda { display: grid; gap: 11px; padding: 16px; }
.cf-calendar-agenda-empty { margin: 0; padding: 8px 1px; color: var(--cf-muted); font-size: 14px; }
.cf-calendar-agenda-item { display: grid; gap: 8px; padding: 12px; border: 1px solid #ece9f1; border-radius: 10px; background: #fff; }
.cf-calendar-agenda-top, .cf-calendar-agenda-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cf-calendar-agenda-time { color: #4c566b; font-size: 14px; font-weight: 680; }
.cf-calendar-agenda-subject { overflow: hidden; color: #364159; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cf-calendar-agenda-company, .cf-calendar-agenda-person { overflow: hidden; color: #687386; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cf-calendar-agenda-actions { padding: 0 16px 16px; }
.cf-calendar-agenda-actions .cf-button { width: 100%; }
.cf-calendar-unscheduled-copy { margin: -4px 0 3px; color: var(--cf-muted); font-size: 13px; }

/* Registration and login */
.auth-body { min-height: 100vh; background: #f7f5fa; }
.auth-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(430px, .94fr) minmax(480px, 1.06fr); }
.auth-brand { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 74% 24%, rgba(148, 122, 235, .24), transparent 35%), radial-gradient(ellipse at 22% 81%, rgba(104, 201, 165, .1), transparent 32%), linear-gradient(135deg, #302044 0%, #28183a 54%, #1d112b 100%); }
.auth-brand::before, .auth-brand::after { position: absolute; width: 370px; height: 370px; border: 1px solid rgba(255, 255, 255, .065); border-radius: 50%; content: ""; }
.auth-brand::before { top: -205px; right: -125px; }
.auth-brand::after { right: -210px; bottom: -100px; width: 470px; height: 470px; }
.auth-brand-content { position: relative; z-index: 1; width: min(480px, calc(100% - 96px)); padding: 44px 0; }
.brand-logo { display: inline-flex; margin-bottom: 66px; }
.brand-logo img { display: block; width: 190px; height: auto; }
.brand-badge { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid rgba(175, 157, 250, .25); border-radius: 7px; color: #d8ccff; background: rgba(138, 116, 224, .14); font-size: 13px; font-weight: 620; }
.auth-brand h1 { max-width: 470px; margin: 24px 0 14px; color: #fff; font-size: clamp(34px, 4vw, 52px); font-weight: 710; letter-spacing: -.45px; line-height: 1.18; }
.auth-brand-content > p { max-width: 425px; margin: 0; color: rgba(255, 255, 255, .66); font-size: 15px; line-height: 1.75; }
.brand-features { display: grid; gap: 20px; margin-top: 47px; }
.brand-feature { display: flex; align-items: center; gap: 13px; }
.brand-feature > span { display: inline-grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px; color: #d7caff; font-size: 13px; font-weight: 650; }
.brand-feature strong, .brand-feature small { display: block; }
.brand-feature strong { color: #fff; font-size: 14px; font-weight: 640; }
.brand-feature small { margin-top: 2px; color: rgba(255, 255, 255, .7); font-size: 13px; }
.auth-panel { display: grid; min-height: 100vh; align-items: center; justify-items: center; padding: 42px 30px; background: #faf9fc; }
.auth-card { width: min(475px, 100%); padding: 33px 36px 35px; border: 1px solid #ebe7f0; border-radius: 15px; background: #fff; box-shadow: 0 16px 55px rgba(43, 28, 73, .065); }
.auth-card-login { width: min(450px, 100%); }
.auth-language-switch { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-bottom: 25px; }
.auth-language-switch label { color: #636e80; font-size: 13px; font-weight: 620; }
.auth-language-switch select { min-height: 38px; padding: 0 10px; border: 1px solid #e5e1eb; border-radius: 8px; color: #555e71; background: #fff; font-size: 14px; cursor: pointer; }
.auth-heading { margin-bottom: 25px; }
.eyebrow { color: #7563cd; font-size: 13px; font-weight: 680; letter-spacing: .55px; text-transform: uppercase; }
.auth-heading h2 { margin: 8px 0 6px; color: #29334b; font-size: 27px; font-weight: 700; letter-spacing: -.1px; }
.auth-heading p { margin: 0; color: #707b8d; font-size: 14px; }
.auth-form { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-field { display: grid; min-width: 0; gap: 6px; }
.form-field label { color: #535d70; font-size: 14px; font-weight: 620; }
.form-field label span { color: #969baa; font-weight: 500; }
.form-field input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #e4e0e9; border-radius: 8px; color: #303a50; background: #fff; font-size: 15px; }
.form-field input::placeholder { color: #a0a5b0; }
.form-field input:focus { border-color: #9b89ec; outline: 0; box-shadow: 0 0 0 4px rgba(120, 102, 212, .1); }
.button-primary { width: 100%; margin-top: 3px; }
.auth-switch { margin: 20px 0 0; color: #687386; font-size: 14px; text-align: center; }
.auth-switch a { color: #6d5cc8; font-weight: 660; }
.alert { margin-bottom: 17px; padding: 11px 13px; border-radius: 8px; font-size: 14px; }
.alert-error { color: #ac4850; background: #fdf0f1; }
.alert-success { color: #2b7550; background: #eef8f1; }

@media (max-width: 1220px) {
    .cf-topbar-inner, .cf-container { width: calc(100% - 56px); }
    .cf-topbar-inner { column-gap: 19px; }
    .cf-logo-img { width: 147px; }
    .cf-nav-link { gap: 7px; padding: 0 10px; font-size: 13px; }
    .cf-account-details { max-width: 110px; }
    .cf-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-project-detail-layout { grid-template-columns: minmax(0, 1.35fr) minmax(255px, .85fr); }
    .cf-dashboard-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); }
    .cf-report-grid { grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); }
    .cf-calendar-layout { grid-template-columns: 1fr; }
    .cf-calendar-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .cf-topbar-inner { column-gap: 13px; }
    .cf-account-details, .cf-logout-label { display: none; }
    .cf-account { gap: 8px; }
    .cf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-stats-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-stats-hero .cf-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .cf-stats-hero .cf-stat:nth-child(2n) { border-right: 0; }
    .cf-dashboard-grid { grid-template-columns: 1fr; }
    .cf-project-detail-layout { grid-template-columns: 1fr; }
    .cf-report-grid, .cf-report-grid.is-even { grid-template-columns: 1fr; }
    .auth-layout { grid-template-columns: minmax(340px, .85fr) minmax(400px, 1.15fr); }
    .auth-brand-content { width: calc(100% - 66px); }
    .auth-brand h1 { font-size: 40px; }
}

@media (max-width: 760px) {
    .cf-shell { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .cf-topbar { position: sticky; top: 0; z-index: 30; }
    .cf-topbar-inner, .cf-container { width: calc(100% - 34px); }
    .cf-topbar-inner { min-height: 114px; grid-template-rows: 64px 50px; align-content: center; align-items: center; row-gap: 0; padding-top: 0; }
    .cf-brand { min-height: 64px; }
    .cf-logo-img { width: 148px; }
    .cf-account { gap: 0; margin-left: auto; }
    .cf-account-search, .cf-account-person, .cf-desktop-logout, .cf-desktop-language { display: none; }
    .cf-mobile-menu-toggle { display: inline-flex; }
    .cf-account-avatar { width: 34px; height: 34px; flex-basis: 34px; }
    .cf-nav { display: block; width: calc(100% + 34px); margin-left: -17px; padding: 0 10px; }
    .cf-nav-inner { display: flex; min-width: 0; flex-wrap: nowrap; gap: 2px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .cf-nav-link { min-height: 50px; flex: 0 0 auto; padding: 0 13px; font-size: 14px; font-weight: 700; letter-spacing: .045em; line-height: 1.25; text-transform: uppercase; white-space: nowrap; scroll-snap-align: start; }
    .cf-nav-link svg { display: none; }
    .cf-nav-link.is-active::after { top: auto; right: 13px; bottom: 1px; left: 13px; width: auto; height: 3px; }
    .cf-mobile-drawer { position: absolute; z-index: 40; top: 69px; right: 12px; left: 12px; overflow: hidden; padding: 16px; border: 1px solid #ebe7f3; border-radius: 15px; color: var(--cf-ink); background: #fff; box-shadow: 0 20px 55px rgba(34, 22, 51, .28); }
    .cf-topbar.is-menu-open .cf-mobile-drawer { display: block; }
    .cf-mobile-account { display: flex; align-items: center; gap: 12px; padding: 0 0 15px; border-bottom: 1px solid #eeeaf3; }
    .cf-mobile-account .cf-account-avatar { display: inline-grid; width: 41px; height: 41px; flex-basis: 41px; border-color: #e1daf6; color: #6654c4; background: #f0edff; }
    .cf-mobile-account-details { display: grid; min-width: 0; gap: 2px; }
    .cf-mobile-account-details strong, .cf-mobile-account-details span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cf-mobile-account-details strong { color: #30394f; font-size: 15px; font-weight: 690; }
    .cf-mobile-account-details span { color: #768095; font-size: 13px; }
    .cf-mobile-drawer-section { padding: 15px 0 17px; border-bottom: 1px solid #eeeaf3; }
    .cf-mobile-drawer-heading { display: block; margin-bottom: 12px; color: #858c9b; font-size: 11px; font-weight: 730; letter-spacing: .08em; text-transform: uppercase; }
    .cf-mobile-setting-label { display: flex; align-items: center; gap: 9px; color: #475168; font-size: 14px; font-weight: 610; }
    .cf-mobile-setting-label svg, .cf-mobile-drawer-action svg { width: 19px; height: 19px; flex: 0 0 19px; color: #7866d4; }
    .cf-mobile-language { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
    .cf-mobile-language-choice { min-height: 40px; border: 1px solid #e6e2ed; border-radius: 9px; color: #5a6377; background: #fff; font-size: 13px; font-weight: 620; cursor: pointer; }
    .cf-mobile-language-choice.is-active { border-color: #d8d0f4; color: #6351c4; background: #f0edff; }
    .cf-mobile-drawer-action { display: flex; min-height: 56px; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eeeaf3; color: #455067; }
    .cf-mobile-drawer-action > span { display: grid; gap: 1px; }
    .cf-mobile-drawer-action strong { font-size: 14px; font-weight: 640; }
    .cf-mobile-drawer-action small { color: #7b8597; font-size: 12px; }
    .cf-mobile-logout { display: block; margin-top: 7px; }
    .cf-mobile-logout .cf-logout-button { width: 100%; min-height: 44px; justify-content: flex-start; gap: 11px; padding: 0; color: #b6505b; font-size: 14px; font-weight: 610; }
    .cf-mobile-logout .cf-logout-button:hover { color: #a6424d; background: transparent; }
    .cf-mobile-logout .cf-logout-label { display: inline; }
    .cf-mobile-bottom-nav { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; display: grid; min-height: calc(70px + env(safe-area-inset-bottom, 0px)); grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 3px; padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e9e5ee; background: rgba(255, 255, 255, .97); box-shadow: 0 -7px 24px rgba(38, 28, 58, .08); }
    .cf-mobile-bottom-link { display: grid; min-width: 0; min-height: 54px; align-content: center; justify-items: center; gap: 2px; padding: 5px 2px; border-radius: 11px; color: #727b8c; }
    .cf-mobile-bottom-link svg { width: 19px; height: 19px; }
    .cf-mobile-bottom-link span { max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 630; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
    .cf-mobile-bottom-link.is-active { color: #6957c8; background: #f0edff; }
    .cf-container { padding-top: 25px; padding-bottom: 39px; }
    .cf-hero-container { padding-top: 0; padding-bottom: 0; }
    .cf-dashboard-hero { padding: 24px 0 32px; }
    .cf-dashboard-content { padding-top: 22px; }
    .cf-page-heading h1 { font-size: 23px; }
    .cf-hero-heading h1 { font-size: 22px; }
    .cf-card-header { padding: 15px 17px; }
    .cf-card-body { padding: 18px; }
    .cf-table th, .cf-table td { padding: 13px 14px; }
    .cf-calendar-aside { grid-template-columns: 1fr; }
    .cf-calendar-header { align-items: flex-start; }
    .cf-calendar-title { width: 100%; justify-content: space-between; }
    .cf-calendar-filters { padding: 13px 15px; }
    .cf-kanban-column { width: 280px; min-width: 280px; }
    .cf-kanban-filters, .cf-kanban-filters .cf-field, .cf-kanban-search { width: 100%; min-width: 0; }
    .cf-offer-parties { grid-template-columns: 1fr; }
    .cf-project-grid { grid-template-columns: 1fr; padding: 15px; }
    .cf-project-task-fields { grid-template-columns: 1fr; }
    .cf-report-filters, .cf-report-filters .cf-field, .cf-report-filters .cf-field.is-wide { width: 100%; min-width: 0; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-brand { min-height: auto; }
    .auth-brand-content { width: min(590px, calc(100% - 46px)); padding: 34px 0 39px; }
    .brand-logo { margin-bottom: 29px; }
    .auth-brand h1 { font-size: 35px; }
    .brand-features { gap: 13px; margin-top: 24px; }
    .auth-panel { min-height: auto; padding: 29px 17px 37px; }
    .auth-card { padding: 25px 23px 28px; }
}

@media (max-width: 480px) {
    .cf-topbar-inner, .cf-container { width: calc(100% - 24px); }
    .cf-logo-img { width: 134px; }
    .cf-mobile-menu-toggle { width: 38px; height: 38px; flex-basis: 38px; }
    .cf-nav { width: calc(100% + 24px); margin-left: -12px; padding-right: 6px; padding-left: 6px; }
    .cf-nav-link { padding: 0 11px; font-size: 13.5px; }
    .cf-nav-link.is-active::after { right: 11px; left: 11px; }
    .cf-mobile-bottom-nav { gap: 1px; padding-right: 4px; padding-left: 4px; }
    .cf-mobile-bottom-link span { font-size: 10.5px; }
    .cf-stats:not(.cf-stats-hero), .cf-form-grid { grid-template-columns: 1fr; }
    .cf-stats-hero .cf-stat { min-height: 101px; padding: 14px 12px; }
    .cf-stats-hero .cf-stat-label { font-size: 12px; }
    .cf-stats-hero .cf-stat-value { font-size: 25px; }
    .cf-stats-hero .cf-stat-note { font-size: 12px; }
    .cf-stat-symbol { width: 25px; height: 25px; }
    .cf-filters { width: 100%; }
    .cf-filters .cf-input { min-width: 0; }
    .cf-filters .cf-input, .cf-filters .cf-select { width: 100%; }
    .cf-chart-card .cf-card-body { padding-right: 13px; padding-left: 13px; }
    .cf-chart-bars { gap: 5px; }
    .cf-chart-summary { gap: 16px; }
    .cf-calendar-title h2 { min-width: 0; font-size: 16px; }
    .cf-calendar-header > .cf-button { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .cf-topbar, .cf-print-hidden, .cf-alert { display: none !important; }
    .cf-shell { background: #fff; }
    .cf-container { width: 100%; padding: 0; }
    .cf-offer-document { max-width: none; }
    .cf-offer-document.cf-card { overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
    .cf-offer-document .cf-card-body { padding: 8mm; }
    .cf-offer-totals, .cf-table { break-inside: avoid; }
}

/* Team management and secure invitation acceptance. */
.cf-team-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 23px; }
.cf-team-stat { min-height: 135px; padding: 20px 21px; }
.cf-team-stat > span, .cf-team-stat > strong, .cf-team-stat > small { display: block; }
.cf-team-stat > span { color: #59647a; font-size: 14px; font-weight: 650; }
.cf-team-stat > strong { margin-top: 9px; color: #30364e; font-size: 29px; font-weight: 720; line-height: 1.2; }
.cf-team-stat > small { margin-top: 7px; color: #758094; font-size: 13px; }
.cf-team-share-card, .cf-team-invite-card, .cf-team-members-card { margin-bottom: 22px; }
.cf-team-share-card { display: grid; gap: 14px; padding: 20px 22px; border-color: #ddd6fa; background: #fbfaff; }
.cf-team-share-card h2 { margin: 0; color: #48445d; font-size: 17px; }
.cf-team-share-card p, .cf-team-card-note { margin: 5px 0 0; color: #727b8d; font-size: 13.5px; }
.cf-team-share-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cf-team-share-controls .cf-input { flex: 1 1 420px; }
.cf-team-invite-card .cf-form { padding: 22px; }
.cf-team-help { margin: 17px 0 0; color: #707b8d; font-size: 14px; }
.cf-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cf-team-person { display: flex; min-width: 230px; align-items: center; gap: 12px; }
.cf-team-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; color: #6757c4; background: #eeeaff; font-size: 14px; font-weight: 700; }
.cf-team-avatar.is-invitation { color: #54688a; background: #edf2fa; }
.cf-team-person > span:last-child { min-width: 0; }
.cf-team-person strong { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cf-team-person small { display: block; margin-top: 2px; color: #727d8f; font-size: 13px; }
.cf-team-self { padding: 2px 6px; border-radius: 6px; color: #6455c0; background: #f0edff; font-size: 11px; font-weight: 650; }
.cf-team-role-select { min-width: 143px; min-height: 38px; font-size: 13px; }
.cf-team-protected { color: #777e8d; font-size: 13px; }
.cf-team-invitation-actions { display: flex; align-items: center; gap: 7px; }
.cf-team-invitations-card { margin-bottom: 14px; }
.cf-team-invitation-summary { display: grid; gap: 5px; margin: 0 0 22px; padding: 15px 17px; border: 1px solid #e9e4fa; border-radius: 12px; background: #fbfaff; }
.cf-team-invitation-summary > strong { color: #3c445b; font-size: 15px; }
.cf-team-invitation-summary > span:not(.cf-badge) { color: #707b8d; font-size: 13.5px; }
.cf-team-invitation-summary .cf-badge { margin-top: 5px; }
.cf-team-invalid-back { display: inline-flex; }

@media (max-width: 1050px) {
    .cf-team-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .cf-team-stats { gap: 11px; }
    .cf-team-stat { min-height: 126px; padding: 15px 13px; }
    .cf-team-stat > span { font-size: 12.5px; }
    .cf-team-stat > strong { font-size: 24px; }
    .cf-team-stat > small { font-size: 12px; }
    .cf-team-share-card, .cf-team-invite-card .cf-form { padding: 16px; }
    .cf-team-share-controls .cf-input { flex-basis: 100%; }
    .cf-team-share-controls .cf-button { flex: 1 1 calc(50% - 5px); justify-content: center; }
    .cf-team-card-note { max-width: 275px; }
}

/* Personal notification center, header bell, and reminder inbox. */
.cf-notification-center { position: relative; flex: 0 0 auto; }
.cf-notification-toggle { position: relative; display: inline-grid; width: 39px; height: 39px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .15); border-radius: 11px; color: #f3efff; background: rgba(255, 255, 255, .045); cursor: pointer; }
.cf-notification-toggle:hover, .cf-notification-center.is-open .cf-notification-toggle, .cf-notification-center.is-current .cf-notification-toggle { border-color: rgba(162, 141, 244, .57); color: #fff; background: rgba(138, 116, 224, .2); }
.cf-notification-toggle > svg { width: 20px; height: 20px; }
.cf-notification-count { position: absolute; top: -8px; right: -8px; display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border: 2px solid #28183a; border-radius: 20px; color: #fff; background: #dd6970; font-size: 10px; font-weight: 730; line-height: 1; }
.cf-notification-popover { position: absolute; z-index: 55; top: calc(100% + 13px); right: 0; display: none; width: min(400px, calc(100vw - 35px)); overflow: hidden; border: 1px solid #e9e5f0; border-radius: 15px; color: #39445a; background: #fff; box-shadow: 0 18px 58px rgba(32, 22, 49, .22); }
.cf-notification-center.is-open .cf-notification-popover { display: block; }
.cf-notification-popover-heading { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border-bottom: 1px solid #efedf3; }
.cf-notification-popover-heading > strong { font-size: 15px; font-weight: 700; }
.cf-notification-popover-heading > span { padding: 4px 8px; border-radius: 8px; color: #6655c5; background: #f0edff; font-size: 12px; font-weight: 650; }
.cf-notification-sound-toggle { display: flex; width: 100%; min-height: 39px; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-bottom: 1px solid #efedf3; color: #636d80; background: #fbfaff; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.cf-notification-sound-toggle:hover { color: #5748ad; background: #f4f1ff; }
.cf-notification-sound-indicator { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #57b481; box-shadow: 0 0 0 3px rgba(87, 180, 129, .12); }
.cf-notification-sound-toggle.is-muted .cf-notification-sound-indicator { background: #a5a9b3; box-shadow: 0 0 0 3px rgba(165, 169, 179, .13); }
.cf-notification-center.has-new-notification .cf-notification-toggle > svg { animation: cf-notification-bell-ring .65s ease-in-out 2; transform-origin: 50% 18%; }
@keyframes cf-notification-bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(15deg); } 42% { transform: rotate(-13deg); } 65% { transform: rotate(9deg); } 82% { transform: rotate(-5deg); } }
.cf-notification-popover-list { max-height: min(415px, calc(100vh - 180px)); overflow-y: auto; }
.cf-notification-popover-form { margin: 0; border-bottom: 1px solid #f1eff4; }
.cf-notification-popover-form.is-unread { background: #fbfaff; }
.cf-notification-popover-item { position: relative; display: flex; width: 100%; align-items: flex-start; gap: 11px; padding: 13px 15px; border: 0; text-align: left; background: transparent; cursor: pointer; }
.cf-notification-popover-item:hover { background: #f8f6ff; }
.cf-notification-popover-icon, .cf-notification-source { display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #6a59c8; background: #f0edff; }
.cf-notification-popover-icon { width: 34px; height: 34px; }
.cf-notification-popover-icon svg { width: 17px; height: 17px; }
.cf-notification-popover-icon.is-success, .cf-notification-source.is-success { color: #27805a; background: #e9f7ef; }
.cf-notification-popover-icon.is-warning, .cf-notification-source.is-warning { color: #a46d1e; background: #fff2dd; }
.cf-notification-popover-icon.is-urgent, .cf-notification-source.is-urgent { color: #bc4f58; background: #fdecef; }
.cf-notification-popover-copy { display: grid; min-width: 0; gap: 3px; padding-right: 8px; }
.cf-notification-popover-copy > strong { color: #414b60; font-size: 13px; font-weight: 675; }
.cf-notification-popover-copy > span { display: -webkit-box; overflow: hidden; color: #667184; font-size: 12.5px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cf-notification-popover-copy > small { color: #828a99; font-size: 11.5px; }
.cf-notification-popover-dot { position: absolute; top: 18px; right: 13px; width: 8px; height: 8px; border-radius: 50%; background: #7866d4; }
.cf-notification-popover-empty { margin: 0; padding: 27px 18px; color: #6f7889; font-size: 13.5px; text-align: center; }
.cf-notification-popover-footer { display: block; padding: 12px 15px; color: #6655c5; font-size: 13px; font-weight: 680; text-align: center; }
.cf-notification-popover-footer:hover { color: #5645b4; background: #fbfaff; }
.cf-notification-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 23px; }
.cf-notification-stat { min-height: 132px; padding: 20px 21px; }
.cf-notification-stat > span, .cf-notification-stat > strong, .cf-notification-stat > small { display: block; }
.cf-notification-stat > span { color: #59647a; font-size: 14px; font-weight: 650; }
.cf-notification-stat > strong { margin-top: 8px; color: #30364e; font-size: 30px; font-weight: 740; line-height: 1.15; }
.cf-notification-stat > small { margin-top: 7px; color: #758094; font-size: 12.5px; }
.cf-notification-list-card { margin-bottom: 14px; }
.cf-notification-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.cf-notification-tab { display: inline-flex; min-height: 37px; align-items: center; gap: 7px; padding: 0 10px; border-radius: 8px; color: #646f81; font-size: 13px; font-weight: 600; }
.cf-notification-tab.is-active { color: #6555c1; background: #f0edff; }
.cf-notification-tab > span { color: #7d7798; font-size: 11.5px; }
.cf-notification-list { display: grid; }
.cf-notification-row { position: relative; display: flex; min-height: 110px; align-items: flex-start; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #efedf3; }
.cf-notification-row:last-child { border-bottom: 0; }
.cf-notification-row.is-unread { background: #fdfcff; }
.cf-notification-row.is-unread.is-urgent { background: #fffafa; }
.cf-notification-source { width: 42px; height: 42px; }
.cf-notification-source svg { width: 20px; height: 20px; }
.cf-notification-content { min-width: 0; flex: 1 1 auto; }
.cf-notification-open-form, .cf-notification-row-actions form { margin: 0; }
.cf-notification-open { display: grid; gap: 4px; padding: 0; border: 0; color: inherit; text-align: left; background: none; cursor: pointer; }
.cf-notification-open > strong { color: #3e485c; font-size: 14px; font-weight: 680; }
.cf-notification-open > span { color: #626d80; font-size: 13.5px; line-height: 1.55; }
.cf-notification-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; color: #7a8393; font-size: 12px; }
.cf-notification-priority.is-warning { color: #a36e22; }
.cf-notification-priority.is-urgent { color: #bb4e55; font-weight: 650; }
.cf-notification-row-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; }
.cf-notification-unread-dot { position: absolute; top: 13px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #7866d4; }
.cf-notification-empty-icon { display: grid; width: 50px; height: 50px; place-items: center; margin: 0 auto 14px; border-radius: 14px; color: #6958c8; background: #f0edff; }
.cf-notification-empty-icon svg { width: 24px; height: 24px; }
.cf-notification-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-top: 1px solid #efedf3; color: #707a8b; font-size: 13px; }
.cf-notification-pagination > div { display: flex; gap: 8px; }
.cf-notification-toast { position: fixed; z-index: 95; top: 94px; right: 24px; display: flex; width: min(410px, calc(100vw - 32px)); min-height: 86px; align-items: flex-start; overflow: hidden; border: 1px solid #e8e3f2; border-radius: 15px; background: #fff; box-shadow: 0 16px 45px rgba(34, 23, 53, .2); animation: cf-notification-toast-enter .22s ease-out both; }
.cf-notification-toast-link { display: flex; min-width: 0; flex: 1 1 auto; gap: 12px; padding: 15px 10px 15px 15px; color: inherit; text-decoration: none; }
.cf-notification-toast-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #6655c5; background: #f0edff; }
.cf-notification-toast-icon svg { width: 20px; height: 20px; }
.cf-notification-toast-copy { display: grid; min-width: 0; gap: 4px; padding-top: 1px; }
.cf-notification-toast-copy > strong { color: #394358; font-size: 13.5px; font-weight: 700; }
.cf-notification-toast-copy > span { display: -webkit-box; overflow: hidden; color: #657084; font-size: 12.5px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cf-notification-toast-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; margin: 7px 6px 0 0; padding: 0; border: 0; border-radius: 9px; color: #737d8d; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.cf-notification-toast-close:hover { color: #453d66; background: #f3f0fb; }
@keyframes cf-notification-toast-enter { from { opacity: 0; transform: translate3d(0, -8px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

@media (max-width: 1050px) {
    .cf-notification-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .cf-account { gap: 8px; }
    .cf-notification-toggle { width: 39px; height: 39px; }
    .cf-notification-popover { position: fixed; top: 70px; right: 12px; left: 12px; width: auto; }
    .cf-notification-toast { top: 71px; right: 12px; left: 12px; width: auto; }
    .cf-notification-row { flex-wrap: wrap; gap: 12px; padding: 17px 16px; }
    .cf-notification-row-actions { width: calc(100% - 54px); margin-left: 54px; }
    .cf-notification-list-card .cf-card-header > .cf-filters { width: 100%; }
    .cf-notification-list-card .cf-card-header > .cf-filters .cf-select { width: 100%; }
}

@media (max-width: 480px) {
    .cf-notification-toggle { width: 37px; height: 37px; }
    .cf-account { gap: 7px; }
    .cf-notification-stats { gap: 10px; }
    .cf-notification-stat { min-height: 119px; padding: 14px 12px; }
    .cf-notification-stat > span { font-size: 12px; }
    .cf-notification-stat > strong { font-size: 25px; }
    .cf-notification-stat > small { font-size: 11.5px; }
    .cf-notification-tabs { gap: 2px; }
    .cf-notification-tab { min-height: 35px; padding: 0 7px; font-size: 12px; }
    .cf-notification-row-actions { flex-wrap: wrap; }
    .cf-notification-toast-link { gap: 10px; padding: 13px 7px 13px 12px; }
    .cf-notification-toast-copy > strong { font-size: 12.5px; }
    .cf-notification-toast-copy > span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .cf-notification-center.has-new-notification .cf-notification-toggle > svg,
    .cf-notification-toast { animation: none; }
}
