/* src/styles/app.css
 * Full verbatim port of the Emberly Control Room stylesheet's component rules
 * (site/index.pretty.css lines 74-end), covering every surface documented in
 * part3-visual-system.md §2-§9: layout geometry, sidebar, topbar, tab bar, KPI
 * cards, banners, the breakdown table, top-reps leaderboard, Trends callouts,
 * Week-over-Week header/date-range picker, Targets tab, team notes, Initiatives
 * tab, Calendar tab (incl. lead-journey modal), Resources tab, skeleton/loading
 * states, buttons/inputs/fields, modals, tooltips, and every @media rule.
 *
 * This is a straight copy from the real stylesheet — class names, selectors,
 * values and property order are unchanged. Rules for surfaces this v1 replica
 * doesn't mount (Sales/Ads/Leaderboard/Closer/Setter/Closer-EOD/Funnel-Lab
 * pages, the auth gate) are included too: they simply match nothing once only
 * the Command Center page is rendered, and keeping them means any future page
 * can be added without a second CSS port.
 *
 * V1 SCOPE NOTE: hiding the Organic/Paid segmented control and the Ad Spend /
 * Profit KPI cards / Revenue column is done in the components (OWNER-A/B), not
 * here — their CSS rules (.toggle, .cc-kpi, .wow-table col rules, etc.) are
 * generic and still apply to the Blended-only / Cash-Collected-only markup.
 */

.layout {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh
}

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

.shell {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 30px 60px
}

.sidebar {
    flex: none;
    width: 246px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 14px;
    border-right: 1px solid var(--hairline);
    background: linear-gradient(180deg, #ffffff05, #fff0)
}

.sb-company {
    position: relative;
    margin-bottom: 10px
}

.sb-company-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 13px;
    padding: 9px 11px;
    cursor: pointer;
    transition: border-color .15s, background .15s
}

.sb-company-btn:hover {
    border-color: var(--hairline-strong);
    background: var(--card-hover)
}

.sb-logo {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    box-shadow: inset 0 1px #ffffff4d
}

.sb-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.sb-logo.sm {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 12px
}

.sb-company-name {
    flex: 1;
    text-align: left;
    font-size: 13.5px;
    font-weight: 650;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sb-company-btn svg {
    color: var(--text-dim);
    flex: none
}

.sb-company-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    padding: 6px;
    border-radius: 13px;
    background: #0e1016fa;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 24px 50px -18px #000000e6;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.sb-menu-head {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
    padding: 6px 9px 4px
}

.sb-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    border-radius: 9px;
    padding: 8px 9px;
    cursor: pointer;
    text-align: left
}

.sb-menu-item:hover {
    background: var(--card-hover);
    color: #fff
}

.sb-menu-item.sel {
    color: #fff;
    background: #6d8bff24
}

.sb-menu-new {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--hairline);
    margin-top: 4px;
    padding: 9px;
    cursor: pointer;
    text-align: left
}

.sb-menu-new:hover {
    color: #93a6ff
}

.sb-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px
}

.sb-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    font: inherit;
    font-size: 13.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    border-radius: 11px;
    padding: 0 12px;
    height: 40px;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: color .15s, background .15s
}

.sb-nav-item svg {
    color: var(--text-faint);
    flex: none;
    transition: color .15s
}

.sb-nav-item span {
    overflow: hidden;
    text-overflow: ellipsis
}

.sb-nav-item:hover {
    color: var(--text);
    background: var(--card)
}

.sb-nav-item:hover svg {
    color: var(--text-dim)
}

.sb-nav-item.active {
    color: #fff;
    background: linear-gradient(180deg, #6d8bff38, #6d8bff1a);
    box-shadow: inset 0 1px #ffffff1a
}

.sb-nav-item.active svg {
    color: var(--accent)
}

.sb-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--hairline)
}

.sb-role {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--text-faint);
    padding: 0 4px
}

.sb-role b {
    color: var(--text-dim);
    text-transform: capitalize
}

.sb-role-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pos);
    box-shadow: 0 0 6px var(--pos)
}

.sb-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font: inherit;
    font-size: 13px;
    font-weight: 550;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left
}

.sb-settings:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #040508cc;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px)
}

.modal {
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 20px;
    background: #0d0f15;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 40px 90px -30px #000000e6
}

.modal-wide {
    max-width: 520px
}

.modal-title {
    font-size: 17px;
    font-weight: 680;
    letter-spacing: -.02em
}

.modal-sub {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 3px;
    margin-bottom: 18px
}

.modal-note {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 8px;
    line-height: 1.5
}

.field-label {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 550;
    margin-bottom: 7px
}

.field-label.sm {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px
}

.set-links {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline)
}

.set-links-sub {
    font-size: 11.5px;
    color: var(--text-faint);
    line-height: 1.5;
    margin-top: 2px
}

.set-links-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px
}

.field-input,
.field-select {
    width: 100%;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    background: #0000004d;
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 10px 12px;
    outline: none;
    transition: border-color .15s
}

.field-input:focus,
.field-select:focus {
    border-color: #6d8bff80
}

.field-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer
}

.field-select option {
    background: #0e1016
}

.logo-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px
}

.logo-preview {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(140deg, var(--accent), var(--accent-2))
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.logo-pick {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 9px 14px
}

.logo-pick:hover {
    border-color: var(--hairline-strong)
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px
}

.btn-ghost {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 9px 16px;
    cursor: pointer
}

.btn-ghost:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.btn-primary {
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    color: #fff;
    background: linear-gradient(180deg, var(--accent), #5a76f0);
    border: 0;
    border-radius: 11px;
    padding: 10px 17px;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px var(--accent-glow)
}

.btn-primary:hover {
    filter: brightness(1.08)
}

.btn-primary:disabled {
    opacity: .4;
    cursor: not-allowed;
    box-shadow: none
}

.role-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.role-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color .15s, background .15s
}

.role-pill:hover {
    border-color: var(--hairline-strong)
}

.role-pill.on {
    border-color: var(--accent);
    background: #6d8bff1f
}

.role-pill-label {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--text)
}

.role-pill-desc {
    font-size: 10.5px;
    color: var(--text-faint)
}

.member-add {
    display: flex;
    gap: 8px;
    margin-bottom: 12px
}

.member-add .field-input {
    flex: 1
}

.member-add .field-select {
    width: auto;
    min-width: 96px
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto
}

.member-empty {
    font-size: 12px;
    color: var(--text-faint);
    padding: 10px 2px
}

.member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--hairline)
}

.member-av {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(140deg, var(--accent), var(--accent-2))
}

.member-name {
    font-size: 13px
}

.member-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit
}

.member-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.member-access {
    font-size: 11px;
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.member-role {
    font-size: 10.5px;
    font-weight: 650;
    text-transform: capitalize;
    padding: 3px 8px;
    border-radius: 999px
}

.member-role.role-admin {
    background: #6d8bff29;
    color: #9fb2ff
}

.member-role.role-closer {
    background: #37e0a626;
    color: var(--pos)
}

.member-role.role-setter {
    background: #ffb45426;
    color: #ffc978
}

.member-role.role-internal {
    background: #8b6dff2e;
    color: #b8a4ff
}

.member-role.role-sales_rep {
    background: #37e0a626;
    color: var(--pos)
}

.member-role.role-operations {
    background: #ffb45426;
    color: #ffc978
}

.member-role.role-marketing {
    background: #ff78b426;
    color: #ff9ec4
}

.member-role.role-client_success {
    background: #78c8ff26;
    color: #8fd0ff
}

.member-company {
    font-size: 11px;
    color: var(--text-dim)
}

.member-pending {
    font-size: 11px;
    color: #ffc978;
    font-weight: 600
}

.member-del {
    font: inherit;
    font-size: 11px;
    color: var(--text-faint);
    background: transparent;
    border: 0;
    cursor: pointer
}

.member-del:hover {
    color: var(--neg)
}

.member-access {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    white-space: normal
}

.member-chip {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: #ffffff0d;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 1px 7px
}

.member-access-cap {
    font-size: 11px;
    color: var(--text-faint)
}

.member-hint {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 8px
}

.member-edit-btn {
    font: inherit;
    font-size: 11px;
    color: var(--accent);
    background: transparent;
    border: 0;
    cursor: pointer
}

.member-edit-btn:hover {
    filter: brightness(1.2);
    text-decoration: underline
}

.member-editing {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    background: #6d8bff0d;
    border-color: #6d8bff66
}

.member-edit-main {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.member-edit-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end
}

.member-edit-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.wow-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: #00000059;
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 8px 13px;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s
}

.wow-toggle svg {
    color: var(--text-faint)
}

.wow-toggle:hover {
    color: var(--text);
    border-color: var(--hairline-strong)
}

.wow-toggle.on {
    color: #fff;
    border-color: #6d8bff80;
    background: #6d8bff24
}

.wow-toggle.on svg {
    color: var(--accent)
}

.dp-report-eyebrow.dp-today {
    color: var(--accent)
}

.ceod-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.ceod-btn {
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1205;
    text-decoration: none;
    background: linear-gradient(180deg, #ffb43e, #ff9a1f);
    border-radius: 11px;
    padding: 11px 22px;
    box-shadow: 0 8px 20px -8px #ff9a1f99;
    transition: transform .12s, box-shadow .12s
}

.ceod-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px #ff9a1fb3
}

.ceod-title {
    font-size: 15px;
    font-weight: 650;
    text-align: center;
    margin-bottom: 14px
}

.ceod-scroll {
    overflow-x: auto
}

.ceod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px
}

.ceod-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-align: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--hairline);
    white-space: nowrap;
    vertical-align: bottom
}

.ceod-table td {
    text-align: center;
    padding: 9px 12px;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

.ceod-table th.l,
.ceod-table td.l {
    text-align: left
}

.ceod-date {
    color: var(--text-dim);
    font-weight: 500
}

.ceod-cash {
    font-weight: 600
}

.ceod-total td {
    font-weight: 700;
    color: #fff;
    border-top: 2px solid var(--hairline-strong);
    border-bottom: 0;
    padding-top: 11px
}

.ceod-empty {
    color: var(--text-faint);
    padding: 20px;
    text-align: center
}

.ceod-sub {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--text-faint)
}

.ceod-edit {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 4px 11px;
    cursor: pointer;
    transition: border-color .12s
}

.ceod-edit:hover {
    border-color: var(--accent)
}

.ceod-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px
}

.ceod-edit-grid .field-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0
}

.ceod-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-dim)
}

.ceod-pager button {
    font: inherit;
    font-size: 15px;
    line-height: 1;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    cursor: pointer
}

.ceod-pager button:hover:not(:disabled) {
    color: #fff;
    border-color: var(--hairline-strong)
}

.ceod-pager button:disabled {
    opacity: .4;
    cursor: default
}

.invite-result {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #37e0a612;
    border: 1px solid rgba(55, 224, 166, .25)
}

.invite-result-title {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--pos)
}

.invite-result-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
    line-height: 1.45
}

.invite-pw-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px
}

.invite-pw {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 9px;
    padding: 8px 14px
}

.lb-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.lb-commission {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-dim)
}

.lb-comm-val {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #ffd35c;
    cursor: pointer;
    background: #ffd35c1a;
    border: 1px solid rgba(255, 211, 92, .25);
    border-radius: 10px;
    padding: 6px 12px
}

.lb-comm-val:hover {
    background: #ffd35c2e
}

.lb-comm-input {
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #ffd35c;
    width: 74px;
    background: #0000004d;
    border: 1px solid rgba(255, 211, 92, .4);
    border-radius: 10px;
    padding: 6px 10px;
    outline: none
}

.lb-table td,
.lb-table th {
    padding: 14px 16px
}

.lb-name {
    text-align: left
}

.lb-rank {
    display: inline-block;
    width: 22px;
    font-weight: 800;
    font-size: 13px
}

.lb-cname {
    font-weight: 650
}

.sb-agency-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 6px 4px;
    margin-bottom: 6px
}

.sb-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

.sb-agency-head .sb-company-name {
    flex: none
}

.sb-brand-sub {
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0;
    line-height: 1.3
}

.sb-logo.agency-grad {
    background: linear-gradient(140deg, #6d8bff, #8b6dff);
    color: #fff
}

.sb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 9px;
    padding: 8px 12px;
    cursor: pointer;
    transition: color .15s, border-color .15s
}

.sb-back:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.set-page {
    max-width: 760px
}

.set-section {
    margin-bottom: 30px
}

.set-h {
    font-size: 15px;
    font-weight: 640;
    letter-spacing: -.02em
}

.set-sub {
    font-size: 12.5px;
    color: var(--text-faint);
    margin: 3px 0 14px
}

.set-list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.set-company {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 14px
}

.set-name {
    flex: 1;
    max-width: 280px
}

.set-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto
}

.logo-pick.sm {
    font-size: 12px;
    padding: 7px 12px
}

.set-clear {
    font: inherit;
    font-size: 12px;
    color: var(--text-faint);
    background: transparent;
    border: 0;
    cursor: pointer
}

.set-clear:hover {
    color: var(--neg)
}

.team-picker {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.team-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 8px 13px;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s
}

.team-tab:hover {
    color: var(--text)
}

.team-tab.on {
    color: #fff;
    background: linear-gradient(180deg, #6d8bff38, #6d8bff1a);
    border-color: #6d8bff66
}

.team-count {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-faint);
    background: #ffffff0f;
    border-radius: 999px;
    padding: 1px 7px
}

.agency-logo.sm {
    border-radius: 7px
}

.logo-mark {
    background: #0c0d11 !important;
    color: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .14)
}

.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px
}

.auth-card {
    width: 100%;
    max-width: 380px;
    padding: 30px 30px 26px;
    background: linear-gradient(180deg, #ffffff08, #ffffff02);
    border: 1px solid var(--hairline-strong);
    border-radius: 20px;
    box-shadow: 0 40px 80px -40px #000000e6, inset 0 1px #ffffff0d
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 20px
}

.auth-brand .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 14px
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25
}

.auth-brand-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em
}

.auth-sub {
    font-size: 13px;
    color: var(--text-dim);
    margin: 4px 0 18px;
    line-height: 1.5
}

.auth-submit {
    width: 100%;
    margin-top: 18px;
    justify-content: center
}

.auth-err {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--neg);
    background: #ff6b7d14;
    border: 1px solid rgba(255, 107, 125, .25);
    border-radius: 9px;
    padding: 8px 11px
}

.auth-link {
    display: block;
    width: 100%;
    margin-top: 14px;
    text-align: center;
    font: inherit;
    font-size: 12.5px;
    color: var(--text-faint);
    background: transparent;
    border: 0;
    cursor: pointer
}

.auth-link:hover {
    color: var(--text)
}

.sb-signout {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-faint);
    background: transparent;
    border: 0;
    border-radius: 9px;
    padding: 9px 11px;
    cursor: pointer;
    transition: color .15s, background .15s
}

.sb-signout:hover {
    color: var(--neg);
    background: #ff6b7d0f
}

.kpi-list {
    font: inherit;
    font-size: 10px;
    font-weight: 650;
    color: var(--accent);
    margin-left: 6px;
    background: #6d8bff24;
    border: 0;
    border-radius: 6px;
    padding: 2px 6px;
    cursor: pointer
}

.kpi-list:hover {
    background: #6d8bff47;
    color: #fff
}

.modal-leads {
    max-width: 96vw;
    width: 1100px
}

.lv-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px
}

.lv-search {
    max-width: 280px
}

.lv-colwrap {
    position: relative
}

.lv-colbtn {
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: #00000059;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 9px 13px;
    cursor: pointer
}

.lv-colbtn:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.lv-colmenu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    width: 200px;
    padding: 5px;
    background: #0e1016fa;
    border: 1px solid var(--hairline-strong);
    border-radius: 12px;
    box-shadow: 0 20px 50px -18px #000000e6;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    max-height: 320px;
    overflow-y: auto
}

.lv-colopt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    font: inherit;
    font-size: 12.5px;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer
}

.lv-colopt:hover {
    background: var(--card-hover);
    color: #fff
}

.lv-colopt.on {
    color: var(--text)
}

.lv-check {
    width: 14px;
    color: var(--accent);
    font-weight: 800
}

.lv-scroll {
    overflow: auto;
    max-height: 60vh;
    border: 1px solid var(--hairline);
    border-radius: 12px
}

.lv-table {
    min-width: 100%;
    font-size: 12.5px
}

.lv-table th {
    position: sticky;
    top: 0;
    background: #0b0d12;
    z-index: 2;
    vertical-align: top
}

.lv-th {
    font-size: 11.5px;
    margin-bottom: 5px
}

.lv-filter {
    width: 100%;
    font: inherit;
    font-size: 11px;
    color: var(--text);
    background: #0006;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 4px 7px;
    outline: none
}

.lv-filter:focus {
    border-color: #6d8bff80
}

.lv-table td {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.lv-more {
    font-size: 11.5px;
    color: var(--text-faint);
    text-align: center;
    margin-top: 10px
}

.lead-link {
    font: inherit;
    font-size: inherit;
    color: var(--accent);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px dotted rgba(109, 139, 255, .4)
}

.lead-link:hover {
    color: #fff
}

.modal-journey {
    max-width: 640px;
    width: 100%
}

.journey-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

.journey-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none
}

.jr-mergebtn {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-2);
    white-space: nowrap;
    background: #7c83ff1f;
    border: 1px solid rgba(124, 131, 255, .28);
    border-radius: 9px;
    padding: 6px 11px;
    cursor: pointer
}

.jr-mergebtn:hover {
    background: #7c83ff38
}

.jr-mergeover {
    z-index: 130
}

.jr-mergemodal {
    max-width: 520px;
    width: 100%
}

.jr-hits {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    max-height: 300px;
    overflow: auto
}

.jr-hint {
    font-size: 12.5px;
    color: var(--text-faint);
    padding: 10px 4px
}

.jr-hit {
    text-align: left;
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 10px 13px;
    color: var(--text)
}

.jr-hit:hover {
    border-color: var(--accent);
    background: #6d8bff14
}

.jr-hit-name {
    font-size: 13.5px;
    font-weight: 600
}

.jr-hit-sub {
    font-size: 11.5px;
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.jr-target {
    display: flex;
    align-items: center;
    gap: 12px
}

.jr-target-card {
    flex: 1;
    background: #37e0a614;
    border: 1px solid rgba(55, 224, 166, .3);
    border-radius: 12px;
    padding: 12px 14px
}

.jr-target-name {
    font-size: 14px;
    font-weight: 650
}

.jr-target-sub {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 3px
}

.jr-target-change {
    font: inherit;
    font-size: 12px;
    color: var(--accent-2);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: underline
}

.jr-merge-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px
}

.journey-close {
    font: inherit;
    font-size: 15px;
    color: var(--text-faint);
    background: transparent;
    border: 0;
    cursor: pointer
}

.journey-close:hover {
    color: #fff
}

.journey-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 62vh;
    overflow-y: auto
}

.journey-msg {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    margin-bottom: 8px
}

.journey-msg.ok {
    background: #37e0a61f;
    color: var(--pos);
    border: 1px solid rgba(55, 224, 166, .3)
}

.journey-msg.err {
    background: #ff6b7d1a;
    color: var(--neg);
    border: 1px solid rgba(255, 107, 125, .3)
}

.jrow {
    display: flex;
    gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline)
}

.jrow:last-child {
    border-bottom: 0
}

.jrow-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 15px
}

.jrow-body {
    flex: 1;
    min-width: 0
}

.jrow-title {
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px
}

.jrow-count {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-faint);
    background: #ffffff0f;
    border-radius: 999px;
    padding: 1px 7px
}

.jrow-line {
    font-size: 12.5px;
    color: var(--text-dim);
    padding: 2px 0
}

.jrow-line.dim {
    color: var(--text-faint)
}

.jform {
    padding: 8px 0;
    border-top: 1px dashed var(--hairline)
}

.jform:first-of-type {
    border-top: 0
}

.jform-view {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.jform-date {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

.jform-meta {
    font-size: 12px;
    color: var(--text-dim)
}

.jform-cash {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--pos);
    margin-left: auto
}

.jform-edit-btn {
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer
}

.jform-edit-btn:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.jform-del-btn {
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--neg);
    background: transparent;
    border: 1px solid rgba(255, 107, 125, .3);
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer
}

.jform-del-btn:hover {
    background: #ff6b7d1a
}

.jform-confirm {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--neg)
}

.jform-del-yes {
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: var(--neg);
    border: 0;
    border-radius: 8px;
    padding: 4px 11px;
    cursor: pointer
}

.jform-unmatched {
    font-size: 11.5px;
    color: #ffc978;
    background: #ffb45414;
    border: 1px solid rgba(255, 180, 84, .25);
    border-radius: 8px;
    padding: 7px 10px;
    margin-bottom: 8px;
    line-height: 1.4
}

.jform-edit {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: end;
    padding: 10px;
    background: #ffffff05;
    border: 1px solid var(--hairline);
    border-radius: 10px
}

.jform-edit .jform-date {
    grid-column: 1 / -1
}

.jform-edit label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-faint)
}

.jform-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px
}

.jform-editcard {
    padding: 12px;
    background: #ffffff05;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.jform-editcard-head {
    display: flex;
    align-items: baseline;
    gap: 10px
}

.jform-submitted {
    font-size: 10.5px;
    color: var(--text-faint)
}

.jform-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: end
}

.jform-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-faint)
}

.jform-ro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
    padding: 10px 12px;
    background: #ffffff04;
    border: 1px solid var(--hairline);
    border-radius: 9px
}

.jform-ro-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

.jform-ro-item span {
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .03em
}

.jform-ro-item b {
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.jform-ro-item a {
    color: var(--accent);
    text-decoration: none
}

@media (max-width: 720px) {

    .jform-grid,
    .jform-ro {
        grid-template-columns: repeat(2, 1fr)
    }
}

.field-input.sm,
.field-select.sm {
    padding: 6px 9px;
    font-size: 12px
}

.dp-inline {
    width: 100%
}

.drp-trigger.dp-field {
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 9px;
    border-radius: 11px;
    background: #0000004d;
    color: var(--text)
}

.drp-trigger.dp-field svg {
    flex: none
}

.jform-editcard-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text)
}

.jform-full {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-faint);
    margin-top: 10px
}

.btn-primary.sm,
.btn-ghost.sm {
    padding: 7px 13px;
    font-size: 12px
}

.agency-head-right {
    display: flex;
    align-items: center;
    gap: 18px
}

.month-picker {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
    background: #00000059;
    border: 1px solid var(--hairline)
}

.month-picker button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    display: grid;
    place-items: center
}

.month-picker button:hover:not(:disabled) {
    color: #fff;
    background: var(--card-hover)
}

.month-picker button:disabled {
    opacity: .3;
    cursor: not-allowed
}

.month-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    min-width: 108px;
    text-align: center
}

.pf {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column
}

.pf-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.pf-menu {
    display: none
}

.pf-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px
}

.pf-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #8b7fff, #6d5cff);
    color: #fff;
    flex: none
}

.pf-brand-name {
    font-size: 20px;
    font-weight: 720;
    color: var(--text);
    letter-spacing: -.01em
}

.pf-brand-div {
    color: var(--hairline-strong);
    font-weight: 300;
    font-size: 20px
}

.pf-brand-sub {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-faint)
}

.pf-top-right {
    display: inline-flex;
    align-items: center;
    gap: 16px
}

.pf-years {
    display: inline-flex;
    gap: 2px;
    background: #ffffff0a;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 3px
}

.pf-years button {
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: none;
    border: 0;
    border-radius: 7px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background .14s, color .14s
}

.pf-years button:hover {
    color: #fff
}

.pf-years button.active {
    background: #6d8bff38;
    color: #fff
}

.pf-date {
    font-size: 13px;
    color: var(--text-faint)
}

.pf-hero {
    margin-top: 34px
}

.pf-hero-label {
    font-size: 14px;
    font-weight: 550;
    color: var(--text-faint);
    letter-spacing: .01em;
    margin-bottom: 6px
}

.pf-hero-num {
    font-size: clamp(48px, 8vw, 92px);
    line-height: 1;
    font-weight: 760;
    letter-spacing: -.03em;
    color: #37e0a6
}

.pf-stats {
    display: flex;
    gap: 44px;
    margin-top: 30px;
    flex-wrap: wrap
}

.pf-stat {
    position: relative;
    padding-right: 44px
}

.pf-stat:not(:last-child):after {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--hairline)
}

.pf-stat:last-child {
    padding-right: 0
}

.pf-stat-label {
    font-size: 13px;
    color: var(--text-faint);
    margin-bottom: 6px
}

.pf-stat-val {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text)
}

.pf-chart {
    height: clamp(240px, 42vh, 440px);
    margin: 34px 0 16px;
    position: relative
}

.pf-chart-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 13px
}

.pf-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: var(--text-faint);
    padding-top: 8px
}

.pf-live {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.pf-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #37e0a6;
    box-shadow: 0 0 8px #37e0a6b3
}

@media (max-width: 860px) {
    .pf-chart {
        height: clamp(200px, 34vh, 320px);
        margin: 26px 0 14px
    }

    .pf-menu {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        flex: none;
        background: var(--card);
        border: 1px solid var(--hairline);
        border-radius: 11px;
        color: var(--text);
        cursor: pointer
    }

    .pf-top {
        flex-wrap: wrap;
        gap: 12px
    }

    .pf-brand-div,
    .pf-brand-sub {
        display: none
    }

    .pf-hero {
        margin-top: 26px
    }

    .pf-hero-num {
        font-size: clamp(38px, 13vw, 62px)
    }

    .pf-stats {
        gap: 0;
        margin-top: 24px;
        justify-content: space-between
    }

    .pf-stat {
        padding-right: 14px
    }

    .pf-stat:not(:last-child):after {
        right: 7px
    }

    .pf-stat-label {
        font-size: 11.5px
    }

    .pf-stat-val {
        font-size: clamp(18px, 5.6vw, 24px)
    }

    .pf-foot {
        padding-top: 28px;
        flex-wrap: wrap;
        gap: 6px
    }
}

@media (max-width: 420px) {
    .pf-stats {
        flex-wrap: wrap;
        gap: 16px 24px
    }

    .pf-stat:not(:last-child):after {
        display: none
    }
}

.ca-summary {
    display: inline-flex;
    gap: 26px
}

.ca-sum {
    display: flex;
    flex-direction: column;
    align-items: flex-end
}

.ca-sum b {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em
}

.ca-sum span {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .04em
}

.ca-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

.ca-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap
}

.ca-sort-l {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-right: 2px
}

.ca-chip {
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: #ffffff0a;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all .13s
}

.ca-chip:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.ca-chip.on {
    background: #6d8bff33;
    border-color: #6d8bff80;
    color: #fff
}

.ca-search {
    max-width: 220px;
    margin-left: auto
}

.ca-offers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

.ca-offer-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 5px 12px;
    cursor: pointer;
    opacity: .5;
    transition: opacity .13s
}

.ca-offer-chip.on {
    opacity: 1;
    color: var(--text)
}

.ca-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none
}

.ca-note {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-dim);
    background: #ffffff08;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 9px 13px;
    margin-bottom: 16px
}

.ca-note.warn {
    color: #ffce9a;
    background: #ffb45414;
    border-color: #ffb45440
}

.ca-note b {
    color: var(--text)
}

.ca-note.warn b {
    color: #ffd9a8
}

.ca-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px
}

.ca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px
}

.ca-card {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, transform .15s
}

.ca-card:hover {
    border-color: var(--hairline-strong);
    transform: translateY(-2px)
}

.ca-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #0a0c12;
    overflow: hidden
}

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

.ca-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700
}

.ca-offer {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10.5px;
    font-weight: 650;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: .01em;
    box-shadow: 0 2px 8px #0000004d
}

.ca-vid {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #0000008c;
    padding: 2px 7px;
    border-radius: 6px
}

.ca-card-body {
    padding: 12px 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1
}

.ca-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em
}

.ca-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px 6px
}

.ca-metric {
    display: flex;
    flex-direction: column;
    gap: 1px
}

.ca-metric-v {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text)
}

.ca-metric.good .ca-metric-v {
    color: #37e0a6
}

.ca-metric.dim .ca-metric-v {
    color: var(--text-faint)
}

.ca-metric-l {
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .03em
}

.ca-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 3px
}

.ca-tag {
    font-size: 10.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: #ffffff0d;
    border-radius: 5px;
    padding: 2px 7px
}

@media (max-width: 620px) {
    .ca-summary {
        gap: 16px
    }

    .ca-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px
    }

    .ca-search {
        margin-left: 0;
        max-width: 100%;
        flex: 1 1 100%
    }
}

.arch {
    margin-top: 30px
}

.arch-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 4px 0;
    color: var(--text-dim);
    font: inherit
}

.arch-chevron {
    display: inline-block;
    transition: transform .18s;
    font-size: 16px;
    color: var(--text-faint)
}

.arch-toggle.open .arch-chevron {
    transform: rotate(90deg)
}

.arch-title {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--text-faint)
}

.arch-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-faint);
    background: #ffffff0f;
    border-radius: 999px;
    padding: 1px 7px
}

.arch-rule {
    flex: 1;
    height: 1px;
    background: var(--hairline)
}

.arch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px
}

.arch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    opacity: .72;
    transition: opacity .15s, border-color .15s
}

.arch-row:hover {
    opacity: 1;
    border-color: var(--hairline-strong)
}

.arch-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.arch-tag {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #ffb454;
    background: #ffb4541f;
    border-radius: 5px;
    padding: 2px 6px
}

.arch-rev {
    font-size: 15px;
    font-weight: 700;
    color: var(--text)
}

.arch-rev-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faint)
}

.agency-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap
}

.agency-total {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.agency-total>span:first-child {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .04em
}

.agency-total b {
    font-size: 24px;
    font-weight: 740;
    letter-spacing: -.03em
}

.agency-total-prev {
    font-size: 12px;
    color: var(--text-faint)
}

.agency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px
}

.agency-card {
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: var(--text);
    position: relative;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    padding: 26px 26px 22px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease
}

.agency-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: var(--hairline-strong);
    box-shadow: 0 24px 50px -30px #000000e6
}

.agency-card:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .5;
    pointer-events: none
}

.agency-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px
}

.agency-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 18px -6px var(--accent-glow), inset 0 1px #ffffff4d
}

.agency-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.agency-name {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.02em;
    flex: 1
}

.agency-arrow {
    color: var(--text-faint);
    font-size: 18px;
    transition: transform .2s, color .2s
}

.agency-card:hover .agency-arrow {
    color: var(--text);
    transform: translate(3px)
}

.agency-cash-label {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .04em
}

.agency-cash {
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -.03em;
    margin: 6px 0 10px;
    color: var(--pos)
}

.agency-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.agency-prev {
    font-size: 12px;
    color: var(--text-faint)
}

.agency-pace {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.agency-pace-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.agency-pace-label {
    font-size: 12px;
    color: var(--text-dim)
}

.agency-pace-row b {
    font-size: 15px;
    letter-spacing: -.02em
}

.agency-pace-sub {
    font-size: 11px;
    color: var(--text-faint)
}

.agency-pace-foot {
    font-size: 10.5px;
    color: var(--text-faint);
    padding-top: 5px;
    border-top: 1px solid var(--hairline)
}

.agency-delta {
    font-size: 12px;
    font-weight: 650
}

.agency-delta.pos {
    color: var(--pos)
}

.agency-delta.neg {
    color: var(--neg)
}

.agency-delta.flat {
    color: var(--text-faint)
}

.agency-goal {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--hairline);
    --gc: var(--text-faint)
}

.agency-goal.g-pos {
    --gc: var(--pos)
}

.agency-goal.g-warn {
    --gc: #ffb454
}

.agency-goal.g-neg {
    --gc: var(--neg)
}

.agency-goal-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px
}

.agency-goal-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-faint)
}

.agency-goal-pct {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.02em;
    color: var(--gc)
}

.agency-goal-track {
    height: 7px;
    border-radius: 999px;
    background: #ffffff12;
    overflow: hidden
}

.agency-goal-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--gc);
    transition: width .4s ease
}

.agency-goal-sub {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 7px
}

.agency-goal-none {
    font-size: 11.5px;
    color: var(--text-faint);
    font-style: italic
}

.dp-report-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px
}

.dp-report-eyebrow {
    font-size: 18px;
    font-weight: 680;
    letter-spacing: -.02em;
    color: var(--text)
}

.dp-report-date {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500
}

.dp-head {
    margin-bottom: 18px
}

.dp-notes {
    margin: 26px 0 22px
}

.dp-note-up {
    border-color: #37e0a647;
    background: #37e0a60d
}

.dp-note-up .dp-note-ico {
    background: #37e0a629;
    color: var(--pos)
}

.dp-up {
    color: var(--pos)
}

.dp-notes-title {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px
}

.dp-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-dim);
    margin-bottom: 10px;
    border: 1px solid var(--hairline);
    background: var(--card)
}

.dp-note b {
    color: var(--text);
    font-weight: 650
}

.dp-note-ico {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px
}

.dp-note-warn {
    border-color: #ff6b7d47;
    background: #ff6b7d0f
}

.dp-note-warn .dp-note-ico {
    background: #ff6b7d2e;
    color: var(--neg)
}

.dp-note-warn .dp-drop {
    color: var(--neg)
}

.dp-note-ok {
    border-color: #37e0a640;
    background: #37e0a60d
}

.dp-note-ok .dp-note-ico {
    background: #37e0a629;
    color: var(--pos)
}

.dp-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px
}

.dp-adbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px
}

.dp-adbar-title {
    font-size: 15px;
    font-weight: 650;
    color: var(--text)
}

.dp-adbar-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-dim)
}

.ad-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none
}

.ad-dot.on {
    background: var(--pos);
    box-shadow: 0 0 6px #37e0a6b3
}

.ad-dot.off {
    background: var(--text-faint)
}

.dp-tile-click {
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%
}

.dp-tile {
    position: relative;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 18px 20px;
    overflow: hidden;
    font: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease
}

.dp-tile:hover {
    transform: translateY(-2px);
    border-color: var(--hairline-strong);
    background: var(--card-hover)
}

.dp-tile:before {
    content: "↗";
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 12px;
    color: var(--text-faint);
    opacity: 0;
    transition: opacity .15s
}

.dp-tile:hover:before {
    opacity: 1
}

.drill-search {
    margin: 4px 0 10px
}

.drill-scroll {
    max-height: 60vh;
    overflow: auto;
    border: 1px solid var(--hairline);
    border-radius: 12px
}

.drill-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px
}

.drill-table th {
    text-align: left;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-faint);
    font-weight: 600;
    padding: 9px 12px;
    border-bottom: 1px solid var(--hairline);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: #0f1117;
    z-index: 1
}

.drill-table th.r,
.drill-table td.r {
    text-align: right
}

.drill-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    color: var(--text-dim);
    white-space: nowrap
}

.drill-table tr:last-child td {
    border-bottom: 0
}

.drill-table td.strong {
    color: var(--text);
    font-weight: 550
}

.drill-table td.money {
    color: var(--pos);
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

.dp-tile:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .5;
    pointer-events: none
}

.dp-tile-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500
}

.dp-tile-sub {
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 500;
    margin-left: 6px
}

.dp-tile-val {
    font-size: 30px;
    font-weight: 740;
    letter-spacing: -.03em;
    margin: 11px 0 9px;
    line-height: 1
}

.dp-tile-delta {
    font-size: 11.5px;
    font-weight: 600
}

.dp-tile-delta span {
    color: var(--text-faint);
    font-weight: 400
}

.dp-tile-delta.pos {
    color: var(--pos)
}

.dp-tile-delta.neg {
    color: var(--neg)
}

.dp-tile-delta.flat {
    color: var(--text-faint)
}

.src-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 9px;
    vertical-align: middle
}

@media (max-width: 1000px) {
    .dp-tiles {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width: 620px) {
    .dp-tiles {
        grid-template-columns: repeat(2, 1fr)
    }
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}

.mobile-hamburger,
.nav-overlay {
    display: none
}

@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        width: 268px;
        z-index: 120;
        background: #0a0c12;
        border-right: 1px solid var(--hairline-strong);
        transform: translate(-100%);
        transition: transform .25s ease;
        box-shadow: 0 0 70px #000000a6
    }

    .sidebar.open {
        transform: translate(0)
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 110;
        background: #04050899;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px)
    }

    .mobile-hamburger {
        display: inline-grid;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: none;
        background: var(--card);
        border: 1px solid var(--hairline);
        border-radius: 11px;
        color: var(--text);
        cursor: pointer
    }

    .main {
        width: 100%
    }

    .shell {
        padding: 16px 15px 48px
    }

    .topbar {
        margin-bottom: 18px;
        gap: 12px
    }

    .brand-title {
        font-size: 18px
    }

    .kpi-row,
    .conv-cards,
    .dp-tiles {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px
    }

    .dp-tile {
        padding: 14px 15px
    }

    .dp-tile-val {
        font-size: 24px
    }

    .kpi-val {
        font-size: 20px
    }

    .conv-val {
        font-size: 22px
    }

    .controlbar {
        gap: 8px
    }

    .controlbar .toggle,
    .wow-toggle,
    .kind-toggle {
        flex: 1 1 auto
    }

    .modal,
    .modal-journey,
    .modal-wide {
        max-width: 100%
    }

    .ceod-scroll,
    .wow-scroll,
    .lv-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch
    }

    .agency-cards {
        grid-template-columns: 1fr !important
    }
}

@media (max-width: 440px) {

    .kpi-row,
    .conv-cards,
    .dp-tiles {
        grid-template-columns: 1fr !important
    }

    .shell {
        padding: 14px 12px 44px
    }
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 6px 22px -6px var(--accent-glow), inset 0 1px #ffffff4d
}

.brand-title {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.02em
}

.brand-sub {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 1px
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px
}

.pagenav {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: #00000059;
    border: 1px solid var(--hairline);
    border-radius: 11px
}

.pagenav button {
    font: inherit;
    font-size: 13px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: color .18s, background .18s
}

.pagenav button:hover {
    color: var(--text)
}

.pagenav button.active {
    color: #fff;
    background: linear-gradient(180deg, #ffffff1c, #ffffff0d);
    box-shadow: inset 0 1px #ffffff24
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-dim);
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--hairline);
    /* "Live · Supabase" is a label, not a paragraph: let it stay on one line and
       shrink the page title instead of breaking after the middot. */
    white-space: nowrap;
    flex: none
}

/* Phone: the topbar is title + pill on one row, so both have to give a little
   or the date range breaks in the middle of a date ("2026-09-01 → 2026-"). */
@media (max-width: 560px) {
    .topbar {
        gap: 10px
    }

    /* The title block is a plain div inside .topbar-left; without min-width:0 it
       refuses to shrink and the date range slides under the pill. */
    .topbar-left > div {
        min-width: 0
    }

    .live-pill {
        font-size: 11px;
        gap: 5px;
        padding: 6px 9px
    }

    .brand-sub {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }
}

.controlbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.daterange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: #00000059;
    border: 1px solid var(--hairline);
    border-radius: 11px
}

.daterange input[type=date] {
    font: inherit;
    font-size: 12.5px;
    color: var(--text);
    background: transparent;
    border: 0;
    padding: 4px 2px;
    color-scheme: dark;
    cursor: pointer;
    outline: none
}

.daterange .arrow {
    color: var(--text-faint);
    font-size: 12px
}

.custom-tag {
    font-size: 10.5px;
    font-weight: 650;
    color: var(--accent);
    background: #6d8bff24;
    padding: 3px 8px;
    border-radius: 6px
}

.kind-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pos);
    box-shadow: 0 0 #37e0a699;
    animation: pulse 2.4s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 #37e0a680
    }

    70% {
        box-shadow: 0 0 0 7px #37e0a600
    }

    to {
        box-shadow: 0 0 #37e0a600
    }
}

.panel {
    position: relative;
    background: linear-gradient(180deg, #ffffff07, #ffffff02);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 26px 28px 20px;
    box-shadow: 0 30px 60px -40px #000000e6, inset 0 1px #ffffff0d;
    overflow: hidden
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px
}

.panel-title {
    font-size: 19px;
    font-weight: 640;
    letter-spacing: -.025em
}

.panel-title-sub {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 3px
}

.toggle {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    background: #00000059;
    border: 1px solid var(--hairline);
    border-radius: 11px
}

.toggle button {
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    padding: 7px 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: color .18s, background .18s
}

.toggle button:hover {
    color: var(--text)
}

.toggle button.active {
    color: #fff;
    background: linear-gradient(180deg, #6d8bff47, #6d8bff24);
    box-shadow: inset 0 1px #ffffff24, 0 4px 14px -6px var(--accent-glow)
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 26px
}

.kpi {
    padding: 2px 10px 2px 0;
    position: relative
}

.kpi:hover {
    z-index: 60
}

.kpi+.kpi {
    border-left: 1px solid var(--hairline);
    padding-left: 14px
}

.kpi-open {
    position: absolute;
    top: -2px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s, color .15s, border-color .15s;
    z-index: 2
}

.kpi:hover .kpi-open {
    opacity: 1
}

.kpi-open:hover {
    color: #fff;
    border-color: #6d8bff80;
    background: #6d8bff29
}

.kpi-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max(220px, 100%);
    z-index: 60;
    background: #0e1016fc;
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.45;
    box-shadow: 0 16px 44px -14px #000000eb;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .14s, transform .14s
}

.kpi:nth-last-child(-n+2) .kpi-tip {
    left: auto;
    right: 0
}

.kpi-tip b {
    color: var(--text)
}

.kpi-tip-prev {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-weight: 600
}

.kpi-tip-open {
    display: block;
    margin-top: 5px;
    color: var(--accent);
    font-weight: 600
}

.kpi:hover .kpi-tip {
    opacity: 1;
    transform: translateY(0)
}

.modal-xwide {
    max-width: 780px;
    width: 100%
}

.modal-huge {
    max-width: min(1120px, 94vw);
    width: 100%
}

.modal-full {
    max-width: min(1460px, 97vw);
    width: 100%
}

.popup-body {
    max-height: 74vh;
    overflow: auto;
    margin: 0 -4px;
    padding: 0 4px
}

.popup-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px
}

.popup-filter {
    height: 38px;
    min-width: 168px;
    padding: 0 12px;
    border-radius: 10px;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--hairline);
    color: var(--text);
    font: inherit;
    font-size: 13px
}

.popup-filter:hover {
    border-color: var(--hairline-strong)
}

.popup-note {
    font-size: 11.5px;
    color: var(--text-faint)
}

.kpi-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 9px
}

.kpi-info {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex: none;
    border: 1px solid var(--hairline-strong);
    color: var(--text-faint);
    font-size: 9px;
    display: grid;
    place-items: center;
    cursor: help
}

.kpi-val {
    font-size: 22px;
    font-weight: 680;
    letter-spacing: -.03em;
    line-height: 1
}

.kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 9px
}

.kpi-delta.pos {
    color: var(--pos)
}

.kpi-delta.neg {
    color: var(--neg)
}

.kpi-delta .chip {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border-radius: 5px
}

.kpi-delta.pos .chip {
    background: #37e0a621
}

.kpi-delta.neg .chip {
    background: #ff6b7d21
}

.chart-wrap {
    height: 300px;
    margin: 0 -8px
}

.chart-tt {
    background: #0c0e13eb;
    border: 1px solid var(--hairline-strong);
    border-radius: 12px;
    padding: 11px 13px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px -18px #000000e6;
    min-width: 150px
}

.chart-tt .d {
    font-size: 11px;
    color: var(--text-faint);
    margin-bottom: 7px
}

.chart-tt .v {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em
}

.chart-tt .r {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    font-size: 12px;
    margin-top: 5px;
    color: var(--text-dim)
}

.chart-tt .r b {
    color: var(--text);
    font-weight: 600
}

.cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 18px
}

.card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 16px 16px 12px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, background .2s ease
}

.card:hover {
    transform: translateY(-3px);
    background: var(--card-hover);
    border-color: var(--hairline-strong)
}

.card:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .5;
    pointer-events: none
}

.card-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500
}

.card-val {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin-top: 7px
}

.card-spark {
    height: 34px;
    margin: 8px -4px -2px
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px
}

.card-delta {
    font-size: 11px;
    font-weight: 600
}

.card-delta.pos {
    color: var(--pos)
}

.card-delta.neg {
    color: var(--neg)
}

.card-delta.flat,
.skel {
    color: var(--text-faint)
}

.shimmer {
    background: linear-gradient(90deg, #ffffff08, #ffffff17, #ffffff08);
    background-size: 200% 100%;
    animation: sh 1.3s infinite;
    border-radius: 6px
}

@keyframes sh {
    0% {
        background-position: 200% 0
    }

    to {
        background-position: -200% 0
    }
}

.error-box {
    border: 1px solid rgba(255, 107, 125, .3);
    background: #ff6b7d0f;
    color: #ffb4bd;
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 13px;
    line-height: 1.6
}

.error-box code {
    background: #0006;
    padding: 2px 6px;
    border-radius: 5px;
    color: #fff;
    font-size: 12px
}

.conv-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 2px 14px;
    flex-wrap: wrap
}

.conv-head-title {
    font-size: 16px;
    font-weight: 640;
    letter-spacing: -.02em
}

.conv-head-sub {
    font-size: 12px;
    color: var(--text-faint)
}

.conv-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px
}

.conv-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 15px 16px 13px;
    overflow: visible;
    transition: transform .2s ease, border-color .2s ease, background .2s ease
}

.tz-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-dim);
    background: #ffffff0f;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 1px 6px;
    margin-left: 2px
}

.conv-tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    z-index: 70;
    background: #0e1016fc;
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 16px 44px -14px #000000eb;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .14s, transform .14s
}

.conv-card:hover .conv-tip {
    opacity: 1;
    transform: translateY(0)
}

.conv-tip-formula {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4
}

.conv-tip-now {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 5px
}

.conv-card:hover {
    transform: translateY(-3px);
    background: var(--card-hover);
    border-color: var(--hairline-strong)
}

.conv-card:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .5;
    pointer-events: none
}

.conv-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px
}

.conv-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500
}

.conv-info {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex: none;
    border: 1px solid var(--hairline-strong);
    color: var(--text-faint);
    font-size: 9px;
    display: grid;
    place-items: center;
    cursor: help
}

.conv-val {
    font-size: 27px;
    font-weight: 720;
    letter-spacing: -.03em;
    margin: 12px 0 10px;
    line-height: 1
}

.conv-foot {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.conv-delta {
    font-size: 12px;
    font-weight: 650
}

.conv-delta.pos {
    color: var(--pos)
}

.conv-delta.neg {
    color: var(--neg)
}

.conv-delta.flat {
    color: var(--text-faint)
}

.conv-sub {
    font-size: 10.5px;
    color: var(--text-faint)
}

.pacing {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff05, #ffffff01)
}

.pacing-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px
}

.pacing-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px
}

.pacing-month {
    font-size: 10.5px;
    font-weight: 650;
    color: var(--text-faint);
    border: 1px solid var(--hairline);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: .02em
}

.pacing-verdict {
    font-size: 12px;
    font-weight: 600
}

.pacing-verdict.pos {
    color: var(--pos)
}

.pacing-verdict.neg {
    color: var(--neg)
}

.pacing-verdict.flat {
    color: var(--text-faint)
}

.pacing-track {
    position: relative;
    height: 10px;
    border-radius: 6px;
    background: #ffffff0d;
    overflow: visible
}

.pacing-proj {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 6px, transparent 6px 12px);
    order: -1
}

.pacing-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 6px;
    z-index: 1;
    box-shadow: 0 0 12px -2px var(--mc);
    transition: width .6s cubic-bezier(.22, 1, .36, 1)
}

.pacing-marker {
    position: absolute;
    top: -3px;
    height: 16px;
    width: 2px;
    z-index: 2;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 0 2px #0006
}

.pacing-marker:after {
    content: "last mo";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translate(-50%);
    font-size: 8.5px;
    color: var(--text-faint);
    white-space: nowrap
}

.pacing-stats {
    display: flex;
    gap: 26px;
    margin-top: 16px;
    flex-wrap: wrap
}

.pacing-stats>div {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.pacing-stats .pl {
    font-size: 10.5px;
    color: var(--text-faint)
}

.pacing-stats b {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em
}

.drp {
    position: relative
}

.drp-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text);
    padding: 8px 13px;
    border-radius: 11px;
    cursor: pointer;
    background: #00000059;
    border: 1px solid var(--hairline);
    transition: border-color .15s, background .15s
}

.drp-trigger:hover {
    border-color: var(--hairline-strong);
    background: #ffffff08
}

.drp-trigger.custom {
    border-color: #6d8bff66
}

.drp-trigger svg {
    color: var(--text-dim)
}

.drp-arrow {
    color: var(--text-faint)
}

.drp-pop {
    z-index: 200;
    width: 264px;
    padding: 14px;
    border-radius: 14px;
    background: #0e1016fa;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 24px 60px -20px #000000e6;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.drp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.drp-nav span {
    font-size: 13px;
    font-weight: 600
}

.drp-nav button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline)
}

.drp-nav button:hover {
    color: #fff;
    background: var(--card-hover)
}

.drp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px
}

.drp-wd {
    margin-bottom: 4px
}

.drp-wdc {
    text-align: center;
    font-size: 10px;
    color: var(--text-faint);
    padding: 4px 0
}

.drp-day {
    aspect-ratio: 1;
    border: 0;
    background: transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    color: var(--text-dim);
    cursor: pointer;
    transition: background .12s, color .12s
}

.drp-day:hover:not(.disabled) {
    background: var(--card-hover);
    color: #fff
}

.drp-day.in {
    background: #6d8bff29;
    color: var(--text);
    border-radius: 0
}

.drp-day.edge {
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 650
}

.drp-day.pending {
    background: var(--accent);
    color: #fff;
    border-radius: 8px
}

.drp-day.disabled {
    color: var(--text-faint);
    opacity: .35;
    cursor: not-allowed
}

.drp-hint {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-faint);
    text-align: center
}

.wow-panel {
    position: relative;
    background: linear-gradient(180deg, #ffffff07, #ffffff02);
    border: 1px solid var(--hairline);
    border-radius: 22px;
    padding: 24px 24px 12px;
    box-shadow: 0 30px 60px -40px #000000e6, inset 0 1px #ffffff0d
}

.wow-scroll {
    overflow-x: auto;
    margin: 0 -6px
}

.wow-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 860px
}

.wow-table th {
    text-align: right;
    font-weight: 550;
    font-size: 11.5px;
    color: var(--text-dim);
    padding: 10px 14px;
    border-bottom: 1px solid var(--hairline-strong);
    white-space: nowrap
}

.wow-th {
    position: relative
}

.wow-th .th-label {
    cursor: help;
    border-bottom: 1px dotted var(--hairline-strong);
    padding-bottom: 1px
}

.wow-th .th-tip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 210px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 450;
    line-height: 1.45;
    color: var(--text-dim);
    text-align: left;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    background: #0e1016fa;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 18px 44px -16px #000000e6;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    pointer-events: none
}

.wow-th:hover .th-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.wow-table th.sticky-col,
.wow-table td.sticky-col {
    text-align: left;
    position: sticky;
    left: 0;
    background: #090b10;
    z-index: 1
}

.wow-table td {
    text-align: right;
    padding: 13px 14px;
    color: var(--text);
    border-bottom: 1px solid var(--hairline);
    white-space: nowrap
}

.wow-table tbody tr {
    transition: background .15s
}

.wow-table tbody tr:hover td {
    background: #ffffff06
}

.wow-table tbody tr:hover td.sticky-col {
    background: #0d0f15
}

.wow-table td.wk {
    font-weight: 600;
    color: var(--text)
}

.wow-table td.strong {
    font-weight: 700
}

.wow-table tbody tr:last-child td {
    border-bottom: 0
}

.log-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.dd {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.dd-label {
    font-size: 11px;
    color: var(--text-faint);
    font-weight: 500;
    padding-left: 2px
}

.dd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text);
    background: #00000059;
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 9px 12px 9px 13px;
    cursor: pointer;
    min-width: 140px;
    outline: none;
    transition: border-color .15s, background .15s
}

.dd-btn:hover {
    border-color: var(--hairline-strong);
    background: #ffffff08
}

.dd-btn.active {
    border-color: #6d8bff66
}

.dd-btn svg {
    color: var(--text-dim);
    flex: none
}

.dd-pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    min-width: 100%;
    max-height: 260px;
    overflow-y: auto;
    padding: 5px;
    border-radius: 12px;
    background: #0e1016fa;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 20px 50px -18px #000000e6;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.dd-opt {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 8px 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s, color .12s
}

.dd-opt:hover {
    background: var(--card-hover);
    color: #fff
}

.dd-opt.sel {
    color: #fff;
    background: linear-gradient(180deg, #6d8bff3d, #6d8bff1f)
}

.dd-opt-multi {
    display: flex;
    align-items: center;
    gap: 9px
}

.dd-check {
    flex: none;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    border: 1.5px solid var(--hairline-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #06070a;
    line-height: 1
}

.dd-check.on {
    background: #6d8bff;
    border-color: #6d8bff
}

.dd-btn-val,
.dd-opt-val {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.dd-btn-val img,
.dd-opt-val img {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
    flex: none
}

.dd-mark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    overflow: hidden
}

.dd-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.dd-btn:disabled {
    opacity: .55;
    cursor: default
}

.ads-tablefoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap
}

.ads-rowsize {
    display: flex;
    align-items: center;
    gap: 9px
}

.ads-rowsize-label {
    font-size: 11.5px;
    color: var(--text-faint);
    font-weight: 500
}

.ads-rowsize-seg button {
    min-width: 40px
}

.pager {
    display: flex;
    align-items: center;
    gap: 14px
}

.pager-info {
    font-size: 11.5px;
    color: var(--text-faint)
}

.pager-btns {
    display: flex;
    align-items: center;
    gap: 6px
}

.pager-btns button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    display: grid;
    place-items: center;
    transition: color .15s, border-color .15s
}

.pager-btns button:hover:not(:disabled) {
    color: #fff;
    border-color: var(--hairline-strong)
}

.pager-btns button:disabled {
    opacity: .3;
    cursor: not-allowed
}

.pager-cur {
    font-size: 12px;
    color: var(--text-dim);
    min-width: 42px;
    text-align: center
}

.rec-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: #6d8bff1f;
    transition: background .15s
}

.rec-link:hover {
    background: #6d8bff38
}

.log-clear {
    align-self: flex-end;
    font: inherit;
    font-size: 12px;
    font-weight: 550;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer
}

.log-clear:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.log-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px
}

.log-kpi {
    position: relative;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 16px 18px;
    overflow: hidden
}

.log-kpi:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .5;
    pointer-events: none
}

.log-kpi-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500
}

.log-kpi-val {
    font-size: 30px;
    font-weight: 720;
    letter-spacing: -.03em;
    margin-top: 8px;
    line-height: 1
}

.log-table th.lc,
.log-table td.lc {
    text-align: left
}

.log-table td {
    font-size: 12.5px
}

.funnel-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-faint)
}

.oc {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600
}

.oc-closed {
    background: #37e0a626;
    color: var(--pos)
}

.oc-plan {
    background: #8b6dff29;
    color: #b9a6ff
}

.oc-follow {
    background: #6d8bff24;
    color: #9fb2ff
}

.oc-lost {
    background: #ffb45424;
    color: #ffc978
}

.oc-noshow {
    background: #ff6b7d24;
    color: var(--neg)
}

.wow-table tr.grand td {
    border-top: 1px solid var(--hairline-strong);
    font-weight: 700
}

.eod-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    color: #1a1204;
    text-decoration: none;
    background: linear-gradient(180deg, #ffb43e, #f7920c);
    border: 0;
    border-radius: 12px;
    padding: 11px 18px;
    cursor: pointer;
    box-shadow: 0 8px 22px -8px #f7920cb3, inset 0 1px #fff6;
    transition: transform .15s, box-shadow .15s
}

.eod-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px #f7920ccc
}

.eod-btn-off {
    background: var(--surface-2, #1a1d26);
    color: var(--text-faint);
    border: 1px solid var(--hairline);
    box-shadow: none;
    cursor: default
}

.eod-btn-off:hover {
    transform: none;
    box-shadow: none
}

.eod-quick {
    display: flex;
    gap: 16px;
    margin-left: auto;
    align-self: center;
    font-size: 12.5px;
    color: var(--text-dim)
}

.eod-quick span {
    position: relative;
    padding-left: 16px
}

.eod-quick span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--accent)
}

.eod-quick span:nth-child(2):before {
    background: var(--pos)
}

.eod-quick span:nth-child(3):before {
    background: #ffb454
}

.funnel-panel {
    position: relative;
    margin-bottom: 16px;
    padding: 18px 22px 20px;
    background: linear-gradient(180deg, #ffffff07, #ffffff02);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    box-shadow: 0 24px 50px -40px #000000e6, inset 0 1px #ffffff0d
}

.funnel-panel-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px
}

.funnel-panel-head .panel-title-sub {
    margin-top: 0
}

.funnel3 {
    display: grid;
    grid-template-columns: minmax(0, 460px) 1fr;
    gap: 28px;
    align-items: center
}

.funnel3-viz {
    display: flex;
    justify-content: center
}

.funnel3-num {
    fill: #fff;
    font-weight: 750;
    font-size: 26px;
    letter-spacing: -.02em;
    paint-order: stroke;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5)
}

.funnel3-list {
    display: flex;
    flex-direction: column
}

.fstage {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 13px
}

.fstage-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: none
}

.fstage-text {
    flex: 1;
    min-width: 0
}

.fstage-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text)
}

.fstage-sub {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 2px
}

.fstage-val {
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -.03em
}

.fstage-conn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    font-size: 11.5px;
    color: var(--text-faint)
}

.fconn-ico {
    color: var(--text-faint)
}

.fstage-conn b {
    font-size: 12.5px;
    font-weight: 700
}

.fstage-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 13px;
    border: 1px solid var(--hairline-strong);
    background: linear-gradient(180deg, #6d8bff1f, #6d8bff0a);
    font-size: 13px;
    color: var(--text-dim)
}

.fstage-summary b {
    font-size: 18px;
    color: #fff;
    letter-spacing: -.02em
}

@media (max-width: 820px) {
    .funnel3 {
        grid-template-columns: 1fr
    }
}

.setter-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px
}

@media (max-width: 900px) {
    .log-kpis {
        grid-template-columns: repeat(2, 1fr)
    }

    .setter-grid {
        grid-template-columns: 1fr
    }

    .eod-quick {
        display: none
    }

    .fcol-val {
        font-size: 18px
    }

    .fconn {
        width: 64px;
        padding: 0 8px
    }
}

@media (max-width: 1000px) {
    .kpi-row {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 22px
    }

    .kpi:nth-child(3n+1) {
        border-left: 0;
        padding-left: 0
    }

    .cards,
    .conv-cards {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width: 620px) {
    .kpi-row {
        grid-template-columns: repeat(2, 1fr)
    }

    .kpi:nth-child(odd) {
        border-left: 0;
        padding-left: 0
    }

    .cards,
    .conv-cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .shell {
        padding: 22px 16px 50px
    }
}

.docs-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 40px;
    align-items: start
}

.docs-toc {
    position: sticky;
    top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px
}

.docs-toc-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 4px 10px 8px
}

.docs-toc-item {
    text-align: left;
    background: none;
    border: 0;
    border-left: 2px solid var(--hairline);
    color: var(--text-dim);
    font: inherit;
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
    transition: color .15s, border-color .15s
}

.docs-toc-item:hover {
    color: var(--text)
}

.docs-toc-item.on {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600
}

.docs-toc-item.sub {
    padding-left: 22px;
    font-size: 12px
}

.docs-toc-note {
    margin-top: 14px;
    padding: 10px;
    font-size: 11px;
    color: var(--text-faint);
    border-top: 1px solid var(--hairline);
    line-height: 1.5
}

.docs-content {
    max-width: 760px
}

.docs-hero {
    padding-bottom: 8px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--hairline)
}

.docs-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent)
}

.docs-title {
    font-size: 30px;
    font-weight: 720;
    letter-spacing: -.03em;
    margin: 8px 0 10px
}

.docs-lede {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0;
    max-width: 640px
}

.docs-section {
    scroll-margin-top: 16px;
    padding: 26px 0;
    border-bottom: 1px solid var(--hairline)
}

.docs-section:last-of-type {
    border-bottom: 0
}

.docs-h2 {
    font-size: 20px;
    font-weight: 680;
    letter-spacing: -.02em;
    margin: 0 0 14px
}

.docs-p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-dim);
    margin: 0 0 16px
}

.docs-p b,
.docs-list b {
    color: var(--text);
    font-weight: 620
}

.docs-list {
    margin: 0 0 4px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 9px
}

.docs-list li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim)
}

.docs-list.tight li {
    font-size: 13.5px;
    line-height: 1.55
}

.docs-card {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 13px;
    padding: 16px 18px;
    margin-bottom: 12px;
    scroll-margin-top: 16px
}

.docs-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px
}

.docs-card-name {
    font-size: 15.5px;
    font-weight: 660;
    letter-spacing: -.01em;
    color: var(--text)
}

.docs-badge {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent-2);
    background: #8b6dff24;
    border: 1px solid rgba(139, 109, 255, .3);
    padding: 2px 8px;
    border-radius: 999px
}

.docs-card-purpose {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0 0 10px
}

.docs-card-purpose:last-child {
    margin-bottom: 0
}

.docs-metric {
    padding: 16px 0;
    border-top: 1px solid var(--hairline);
    scroll-margin-top: 16px
}

.docs-metric:first-of-type {
    border-top: 0
}

.docs-metric-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

.docs-metric-name {
    font-size: 16px;
    font-weight: 680;
    letter-spacing: -.015em;
    color: var(--text)
}

.docs-metric-where {
    font-size: 11px;
    color: var(--text-faint);
    white-space: nowrap
}

.docs-metric-short {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    margin: 6px 0 10px
}

.docs-formula {
    position: relative;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    color: #b9c4ff;
    background: #6d8bff12;
    border: 1px solid rgba(109, 139, 255, .18);
    border-radius: 9px;
    padding: 11px 13px 11px 14px;
    line-height: 1.5;
    overflow-x: auto
}

.docs-formula-tag {
    display: inline-block;
    font-family: var(--font, inherit);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-right: 10px;
    vertical-align: 1px
}

.docs-metric-note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 10px 0 0
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px
}

.docs-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 0 14px 8px 0;
    border-bottom: 1px solid var(--hairline-strong)
}

.docs-table td {
    padding: 11px 14px 11px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--text-dim);
    vertical-align: top;
    line-height: 1.5
}

.docs-table .docs-td-name {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap
}

.docs-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #b9c4ff;
    background: #6d8bff14;
    border: 1px solid rgba(109, 139, 255, .16);
    border-radius: 6px;
    padding: 1px 6px;
    white-space: nowrap
}

.docs-foot {
    margin-top: 22px;
    padding: 16px 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 12px
}

@media (max-width: 860px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .docs-toc {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px
    }

    .docs-toc-head,
    .docs-toc-note {
        display: none
    }

    .docs-toc-item {
        border: 1px solid var(--hairline);
        border-radius: 999px;
        padding: 5px 12px
    }

    .docs-toc-item.on {
        border-color: var(--accent)
    }

    .docs-toc-item.sub {
        padding-left: 12px
    }
}

.fl-page {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.fl-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.fl-empty {
    text-align: center;
    padding: 26px;
    color: var(--text-faint);
    font-size: 13.5px;
    border: 1px dashed var(--hairline);
    border-radius: 12px
}

.fl-empty.sm {
    padding: 14px;
    font-size: 12.5px
}

.fl-tag {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent-2);
    background: #8b6dff24;
    border: 1px solid rgba(139, 109, 255, .3);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: 2px
}

.fl-status-filter {
    display: flex;
    gap: 4px;
    flex-wrap: wrap
}

.fl-chip {
    font: inherit;
    font-size: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline)
}

.fl-chip:hover {
    color: var(--text);
    border-color: var(--hairline-strong)
}

.fl-chip.on {
    color: var(--text);
    border-color: var(--hairline-strong);
    background: var(--card-hover)
}

.fl-init-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-bottom: 14px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 12px
}

.fl-init-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.fl-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0
}

.fl-field-label {
    font-size: 11.5px;
    color: var(--text-dim);
    font-weight: 550;
    display: flex;
    align-items: center;
    gap: 6px
}

.fl-init-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.fl-init {
    display: flex;
    gap: 14px;
    padding: 13px 15px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 11px
}

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

.fl-init-top {
    display: flex;
    align-items: center;
    gap: 10px
}

.fl-init-desc {
    font-size: 15px;
    font-weight: 450;
    color: var(--text);
    line-height: 1.4
}

.fl-init-meta {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 3px
}

.fl-init-sub {
    font-size: 12.5px;
    color: var(--text-dim);
    margin-top: 5px;
    line-height: 1.45
}

.fl-init-sub b {
    color: var(--text);
    font-weight: 600
}

.fl-init {
    position: relative
}

.fl-init:focus-within {
    z-index: 30
}

.fl-init-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 3px
}

.fl-init-signoff {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 6px;
    font-style: italic
}

.fl-init-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none
}

.fl-init-menubtn {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    background: #ffffff0d;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 5px 11px;
    cursor: pointer;
    white-space: nowrap
}

.fl-init-menubtn:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.fl-init-modal {
    max-width: 640px;
    width: 100%
}

.fl-init-modal .fl-init-form {
    padding: 8px 4px 4px;
    gap: 16px
}

.fl-init-textarea {
    min-height: 76px;
    resize: vertical;
    line-height: 1.5;
    padding: 10px 12px
}

.fl-statuspick {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap
}

.fl-spill {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    background: #ffffff0a;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 5px 12px;
    cursor: pointer;
    transition: all .12s;
    white-space: nowrap
}

.fl-spill:hover {
    color: var(--c);
    border-color: var(--c)
}

.fl-spill.on {
    color: var(--c);
    border-color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent)
}

.cal-bk-closed {
    font-size: 11px;
    font-weight: 700;
    color: var(--pos);
    background: #37e0a624;
    border-radius: 6px;
    padding: 2px 8px;
    flex: none;
    white-space: nowrap
}

.fl-init-success {
    background: #37e0a60f;
    border-color: #37e0a652
}

.fl-init-unclear {
    background: #ffb4540f;
    border-color: #ffb45452
}

.fl-init-failure {
    background: #ff6b7d0f;
    border-color: #ff6b7d4d
}

.fl-init-in-progress {
    background: var(--card)
}

.fl-init-badge {
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 8px;
    letter-spacing: .02em;
    text-transform: uppercase;
    flex: none
}

.fl-badge-success {
    color: #37e0a6;
    background: #37e0a629
}

.fl-badge-unclear {
    color: #ffb454;
    background: #ffb45429
}

.fl-badge-failure {
    color: #ff6b7d;
    background: #ff6b7d29
}

.fl-init-edit {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--hairline);
    background: #ffffff08;
    color: var(--text-faint);
    cursor: pointer
}

.fl-init-edit:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.fl-init-menu,
.fl-init-confirm {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.fl-init-confirm {
    font-size: 12px;
    color: var(--text-dim)
}

.fl-init-delbtn {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #ff8090;
    background: #ff6b7d1f;
    border: 1px solid rgba(255, 107, 125, .4);
    border-radius: 8px;
    padding: 5px 11px;
    cursor: pointer
}

.fl-init-delbtn:hover {
    color: #fff;
    background: #ff6b7d38
}

.fl-init-menux {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--hairline);
    background: none;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 12px
}

.fl-init-menux:hover {
    color: #fff
}

.fl-init-yes {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--neg);
    border: 0;
    border-radius: 7px;
    padding: 4px 11px;
    cursor: pointer
}

.fl-init-no {
    font: inherit;
    font-size: 12px;
    color: var(--text-dim);
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 4px 11px;
    cursor: pointer
}

.fl-init-no:hover {
    color: #fff
}

.fl-status-select {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--hairline)
}

.fl-type-toggle button {
    font-size: 12.5px
}

.fl-prefill-note {
    font-size: 12px;
    color: var(--accent);
    background: #6d8bff14;
    border: 1px solid rgba(109, 139, 255, .2);
    border-radius: 9px;
    padding: 8px 12px;
    margin-bottom: 4px
}

.fl-sim-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 24px
}

.fl-groups {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.fl-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 9px
}

.fl-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px
}

.fl-input {
    display: flex;
    align-items: center;
    height: 36px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 9px;
    padding: 0 10px;
    transition: border-color .15s
}

.fl-input:focus-within {
    border-color: var(--accent)
}

.fl-input input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    color: var(--text);
    font: inherit;
    font-size: 13.5px
}

.fl-input i {
    color: var(--text-faint);
    font-style: normal;
    font-size: 13px
}

.fl-input.pre i {
    margin-right: 5px
}

.fl-input.post i {
    margin-left: 5px
}

.fl-delta {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 5px
}

.fl-delta.up {
    color: var(--pos);
    background: #37e0a61f
}

.fl-delta.down {
    color: var(--neg);
    background: #ff6b7d1f
}

.fl-sim-out {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.fl-out {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.fl-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.fl-hero-cell {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 13px 14px
}

.fl-hero-label {
    font-size: 11px;
    color: var(--text-faint)
}

.fl-hero-val {
    font-size: 21px;
    font-weight: 720;
    letter-spacing: -.02em;
    margin-top: 4px;
    color: var(--text)
}

.fl-hero-val.pos {
    color: var(--pos)
}

.fl-hero-val.neg {
    color: var(--neg)
}

.fl-hero-delta {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px
}

.fl-hero-delta.up {
    color: var(--pos)
}

.fl-hero-delta.down {
    color: var(--neg)
}

.fl-out-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
    border-radius: 11px;
    overflow: hidden
}

.fl-out-cell {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 9px 13px;
    background: var(--bg-elev)
}

.fl-out-label {
    font-size: 12px;
    color: var(--text-dim)
}

.fl-out-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums
}

.fl-save,
.fl-savescen {
    display: flex;
    gap: 8px
}

.fl-save .field-input,
.fl-savescen .field-input {
    flex: 1
}

.fl-snap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px
}

.fl-snap-card {
    position: relative;
    text-align: left;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 13px;
    padding: 15px;
    transition: border-color .15s, background .15s
}

.fl-snap-card:hover {
    border-color: var(--hairline-strong);
    background: var(--card-hover)
}

.fl-snap-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .12s, background .12s, color .12s
}

.fl-snap-card:hover .fl-snap-x {
    opacity: 1
}

.fl-snap-x:hover {
    background: #ff6b7d29;
    color: var(--neg)
}

.fl-field-hint {
    font-size: 10.5px;
    color: var(--text-faint)
}

.fl-init-due {
    color: #ffb454;
    font-weight: 650
}

.dp-inits {
    border: 1px solid rgba(255, 180, 84, .35);
    background: #ffb4540f;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px
}

.dp-inc {
    border: 1px solid rgba(124, 108, 255, .4);
    background: #7c6cff12;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px
}

.dp-inc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--text-dim);
    font: inherit;
    font-size: 13.5px;
    padding: 2px 0;
    text-align: left
}

.dp-inc-icon {
    font-size: 14px
}

.dp-inc-head b {
    color: var(--text);
    font-weight: 700
}

.dp-inc-sub {
    color: var(--text-faint)
}

.dp-inc-toggle {
    margin-left: auto;
    color: #a99bff;
    font-weight: 600;
    white-space: nowrap
}

.dp-inc-body {
    margin-top: 12px;
    border-top: 1px solid var(--hairline);
    padding-top: 10px
}

.dp-inc-note {
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 10px
}

.dp-inc-refresh {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #a99bff;
    background: #7c6cff24;
    border: 1px solid rgba(124, 108, 255, .4);
    border-radius: 7px;
    padding: 2px 9px;
    cursor: pointer
}

.dp-inc-refresh:hover {
    color: #fff
}

.dp-inc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-top: 1px solid var(--hairline)
}

.dp-inc-row:first-of-type {
    border-top: 0
}

.dp-inc-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0
}

.dp-inc-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text)
}

.dp-inc-meta {
    font-size: 11.5px;
    color: var(--text-faint)
}

.dp-inc-actions {
    display: flex;
    gap: 7px;
    flex: none
}

.dp-inc-btn {
    font: inherit;
    font-size: 12px;
    font-weight: 550;
    color: var(--text-dim);
    background: #ffffff0d;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 5px 11px;
    cursor: pointer;
    transition: all .13s
}

.dp-inc-btn:hover:not(:disabled) {
    color: #fff;
    border-color: var(--hairline-strong)
}

.dp-inc-btn:disabled {
    opacity: .5;
    cursor: default
}

.dp-inc-discard {
    color: #ff8090;
    border-color: #ff6b7d59
}

.dp-inc-discard:hover:not(:disabled) {
    color: #fff;
    background: #ff6b7d29;
    border-color: #ff6b7d99
}

.dp-inc-merge {
    display: flex;
    gap: 7px;
    align-items: center;
    flex: none
}

.dp-inc-merge .field-input {
    font-size: 12px;
    padding: 5px 9px;
    min-width: 240px
}

.lb-drill {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-bottom: 1px dotted var(--hairline-strong)
}

.lb-drill:hover {
    color: #fff;
    border-bottom-color: currentColor
}

.lb-sortable {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none
}

.lb-sortable:hover {
    color: #fff
}

.lb-sortable.wow-th .th-label {
    cursor: pointer
}

.lb-sorted {
    color: #fff
}

.lb-arrow {
    display: inline-block;
    width: 0;
    margin-left: 4px;
    font-size: 9px;
    color: var(--accent);
    vertical-align: middle
}

.lb-sorted .lb-arrow {
    width: auto
}

.lb-drill.strong {
    font-weight: 700
}

.dp-inits-head {
    font-size: 13px;
    font-weight: 700;
    color: #ffb454;
    margin-bottom: 10px
}

.dp-init {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    flex-wrap: wrap
}

.dp-init:first-of-type {
    border-top: none
}

.dp-init-info {
    min-width: 0;
    flex: 1
}

.dp-init-desc {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text)
}

.dp-init-meta {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 2px
}

.dp-init-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px
}

.dp-init-prompt {
    font-size: 11.5px;
    color: var(--text-dim)
}

.dp-init-btn {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
    border-radius: 999px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background .12s
}

.dp-init-btn:hover {
    background: color-mix(in srgb, var(--c) 22%, transparent)
}

.fl-snap-name {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.fl-snap-net {
    font-size: 25px;
    font-weight: 720;
    letter-spacing: -.02em;
    margin: 14px 0 8px;
    color: var(--text)
}

.fl-snap-net-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faint);
    margin-left: 8px
}

.fl-snap-figs {
    margin-bottom: 12px
}

.fl-snap-profit {
    font-size: 13px;
    font-weight: 600
}

.fl-snap-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-faint);
    flex-wrap: wrap
}

.fl-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px
}

.fl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px
}

.fl-savescen {
    margin-top: 14px
}

.fl-scen-wrap {
    margin-top: 16px
}

.fl-scen-head {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px
}

.fl-scen-count {
    background: var(--card-hover);
    color: var(--text-dim);
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    letter-spacing: 0
}

.fl-scen-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 9px
}

.fl-scen-card {
    position: relative;
    padding: 11px 12px;
    border: 1px solid var(--hairline);
    border-radius: 11px;
    background: var(--card);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s
}

.fl-scen-card:hover {
    border-color: var(--hairline-strong);
    background: var(--card-hover);
    transform: translateY(-2px)
}

.fl-scen-card.active {
    border-color: var(--accent);
    background: #6d8bff14;
    box-shadow: inset 0 0 0 1px #6d8bff59
}

.fl-scen-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    padding-right: 18px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.fl-scen-metrics {
    display: flex;
    gap: 14px;
    margin-top: 9px
}

.fl-scen-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

.fl-scen-mlabel {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-faint)
}

.fl-scen-mval {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums
}

.fl-scen-mval.pos {
    color: var(--pos)
}

.fl-scen-mval.neg {
    color: var(--neg)
}

.fl-scen-delta {
    font-size: 10px;
    font-weight: 600;
    margin-top: 1px
}

.fl-scen-delta.pos {
    color: var(--pos)
}

.fl-scen-delta.neg {
    color: var(--neg)
}

.fl-scen-foot {
    font-size: 10px;
    color: var(--text-faint);
    margin-top: 9px
}

.fl-scen-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .13s, color .13s, background .13s
}

.fl-scen-card:hover .fl-scen-x {
    opacity: 1
}

.fl-scen-x:hover {
    background: #ff6b7d29;
    color: var(--neg)
}

.fl-note-add {
    display: flex;
    gap: 8px
}

.fl-note-add .field-input {
    flex: 1
}

.fl-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px
}

.fl-note {
    padding: 9px 12px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 10px
}

.fl-note-meta {
    font-size: 10.5px;
    color: var(--text-faint)
}

.fl-note-text {
    font-size: 13px;
    color: var(--text);
    margin-top: 3px;
    line-height: 1.45
}

@media (max-width: 900px) {

    .fl-sim-grid,
    .fl-modal-grid,
    .fl-init-row,
    .fl-hero {
        grid-template-columns: 1fr
    }

    .fl-group-grid,
    .fl-out-grid {
        grid-template-columns: 1fr 1fr
    }
}

.fl-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: 0
}

.fl-status-dd {
    width: 138px
}

.fl-status-dd .dd-btn {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    font-size: 12.5px
}

.fl-help {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: none;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline)
}

.fl-help:hover {
    color: var(--text);
    border-color: var(--hairline-strong)
}

.fl-showmore {
    display: block;
    margin: 12px auto 0;
    font: inherit;
    font-size: 12.5px;
    color: var(--accent);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px 12px
}

.fl-showmore:hover {
    text-decoration: underline
}

.fl-out-cell.cost .fl-out-label {
    color: var(--text-faint)
}

.fl-save {
    flex-direction: column;
    align-items: stretch;
    gap: 10px
}

.fl-save-name {
    display: flex;
    gap: 8px
}

.fl-save-name .field-input {
    flex: 1;
    min-width: 140px
}

@keyframes fl-cell-glow {
    0% {
        box-shadow: 0 0 0 3px #6d8bff73;
        border-color: var(--accent);
        background: #6d8bff1a
    }

    to {
        box-shadow: 0 0 0 3px #6d8bff00;
        border-color: var(--hairline);
        background: var(--card)
    }
}

.fl-input.glow {
    animation: fl-cell-glow 2.4s ease-out
}

@keyframes fl-btn-glow {

    0%,
    to {
        box-shadow: 0 0 #6d8bff00;
        border-color: var(--hairline)
    }

    50% {
        box-shadow: 0 0 16px 1px #6d8bff8c;
        border-color: #6d8bffa6
    }
}

.fl-live.glow {
    animation: fl-btn-glow 1.4s ease-in-out 3
}

@keyframes ads-bd-glow {

    0%,
    to {
        box-shadow: 0 0 #6d8bff00;
        border-color: var(--hairline-strong)
    }

    50% {
        box-shadow: 0 0 14px 1px #6d8bff80;
        border-color: #6d8bff99
    }
}

.ads-breakdown-glow {
    animation: ads-bd-glow 2.6s ease-in-out infinite
}

.ads-breakdown-glow:hover {
    animation: none;
    border-color: #6d8bffb3
}

.af-toggle {
    flex: none
}

.af-tablewrap {
    position: relative;
    min-height: 200px
}

.fl-onboard {
    max-width: 460px
}

.fl-onboard-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    background: #6d8bff1f;
    border: 1px solid rgba(109, 139, 255, .28);
    padding: 3px 10px;
    border-radius: 999px
}

.fl-onboard-title {
    font-size: 21px;
    font-weight: 720;
    letter-spacing: -.02em;
    margin: 14px 0 8px
}

.fl-onboard-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0
}

.fl-onboard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px
}

.fl-dots {
    display: flex;
    gap: 7px
}

.fl-dot-nav {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hairline-strong);
    cursor: pointer;
    transition: background .15s, transform .15s
}

.fl-dot-nav.on {
    background: var(--accent);
    transform: scale(1.25)
}

.fl-onboard-btns {
    display: flex;
    gap: 8px
}

.tour {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 300;
    pointer-events: none
}

.tour-spot {
    position: fixed;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: 0 0 0 9999px #04060a9e, 0 0 0 2px var(--accent), 0 0 22px 2px #6d8bff66;
    transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease
}

.tour-callout {
    position: fixed;
    pointer-events: auto;
    padding: 16px 18px;
    border-radius: 14px;
    background: #0e1016fc;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 24px 60px -18px #000000eb
}

.tour-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #0e1016fc;
    border: 1px solid var(--hairline-strong);
    transform: rotate(45deg)
}

.tour-callout.arrow-up .tour-arrow {
    top: -7px;
    border-right: 0;
    border-bottom: 0
}

.tour-callout.arrow-down .tour-arrow {
    bottom: -7px;
    border-left: 0;
    border-top: 0
}

.docs-scroll {
    overflow-x: auto;
    margin: 0 -2px
}

.docs-scroll .docs-table {
    min-width: 640px
}

.ads-kpis {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 9px;
    margin-bottom: 16px
}

@media (max-width: 1180px) {
    .ads-kpis {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media (max-width: 620px) {
    .ads-kpis {
        grid-template-columns: repeat(2, 1fr)
    }
}

.ads-kpi {
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--card)
}

.ads-kpi.hero {
    background: #6d8bff0f;
    border-color: #6d8bff38
}

.ads-kpi-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-faint);
    white-space: nowrap
}

.ads-kpi-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-top: 5px
}

.ads-kpi-click {
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
    transition: transform .14s, border-color .14s, background .14s
}

.ads-kpi-click:hover {
    transform: translateY(-2px);
    border-color: var(--hairline-strong)
}

.ads-kpi-spark {
    color: var(--text-faint);
    margin-left: 5px;
    opacity: 0;
    transition: opacity .14s
}

.ads-kpi-click:hover .ads-kpi-spark {
    opacity: 1
}

.ads-chart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px
}

.ads-chart-scope {
    font-size: 12px;
    color: var(--text-dim)
}

.synclog {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.synclog-run {
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 11px 13px;
    background: var(--card)
}

.synclog-run.bad {
    border-color: #ff6b7d59;
    background: #ff6b7d0d
}

.synclog-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-dim);
    flex-wrap: wrap
}

.synclog-head b {
    color: var(--text)
}

.synclog-trig {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-faint);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 1px 7px
}

.synclog-range {
    color: var(--text-faint)
}

.synclog-status {
    margin-left: auto;
    font-weight: 600
}

.synclog-run.ok .synclog-status {
    color: var(--pos)
}

.synclog-run.bad .synclog-status {
    color: var(--neg)
}

.synclog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none
}

.synclog-dot.ok {
    background: var(--pos)
}

.synclog-dot.bad {
    background: var(--neg)
}

.synclog-accts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 5px 14px;
    margin-top: 9px
}

.synclog-acct {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-dim)
}

.synclog-acct.bad {
    color: var(--neg)
}

.synclog-co {
    color: var(--text);
    text-transform: capitalize
}

.synclog-rows {
    color: var(--text-faint)
}

.synclog-err {
    color: var(--neg);
    font-size: 11px
}

.ads-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-dim);
    margin-bottom: 16px;
    border: 1px solid var(--hairline)
}

.ads-banner b {
    color: var(--text);
    font-weight: 600
}

.ads-banner.warn {
    background: #ffb45412;
    border-color: #ffb45447
}

.ads-banner.info {
    background: #37e0a60d;
    border-color: #37e0a638
}

.ads-banner-icon {
    flex: none;
    font-size: 14px;
    line-height: 1.4
}

.ads-banner.warn .ads-banner-icon {
    color: #ffb454
}

.ads-banner.info .ads-banner-icon {
    color: var(--pos)
}

.flag-banner {
    margin-top: 10px
}

.flag-body {
    flex: 1
}

.flag-head {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--text-dim);
    font: inherit;
    line-height: 1.5;
    padding: 0
}

.flag-toggle {
    color: #ffb454;
    font-weight: 600;
    white-space: nowrap
}

.flag-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-top: 1px solid var(--hairline);
    padding-top: 8px
}

.flag-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 0
}

.flag-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text)
}

.flag-meta {
    font-size: 12px;
    color: var(--text-faint)
}

.flag-meta b {
    color: #ffb454
}

.ads-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap
}

.ads-search {
    max-width: 240px
}

.ads-seg {
    flex: none
}

.ads-seg button {
    font-size: 12.5px;
    padding: 6px 13px
}

.active-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: #ffffff0a;
    border: 1px solid var(--hairline);
    border-radius: 9px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all .13s;
    flex: none
}

.active-toggle:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.active-toggle.on {
    background: #37e0a624;
    border-color: #37e0a673;
    color: var(--text)
}

.active-toggle .ad-dot {
    position: static
}

.ads-refreshwrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto
}

.ads-synced {
    font-size: 11.5px;
    color: var(--text-faint)
}

.ads-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 9px;
    padding: 6px 12px;
    cursor: pointer;
    transition: color .15s, border-color .15s
}

.ads-refresh:hover:not(:disabled) {
    color: #fff;
    border-color: var(--hairline-strong)
}

.ads-refresh:disabled {
    opacity: .7;
    cursor: default
}

.ads-refresh-icon {
    display: inline-block;
    font-size: 14px;
    line-height: 1
}

.ads-refresh-icon.spin {
    animation: ads-spin .8s linear infinite
}

.ads-count {
    font-size: 12px;
    color: var(--text-faint);
    margin-left: auto
}

.ads-toolbar .ads-refreshwrap+.ads-count {
    margin-left: 0
}

.cols-views {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline)
}

.cols-view-wrap {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    overflow: hidden
}

.cols-view-wrap.active {
    border-color: #6d8bff;
    background: #6d8bff1f
}

.cols-view {
    font: inherit;
    font-size: 12px;
    font-weight: 550;
    color: var(--text-dim);
    background: #ffffff08;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 5px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.cols-view:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.cols-view-wrap .cols-view {
    border: 0;
    border-radius: 0;
    background: none
}

.cols-view-wrap.active .cols-view {
    color: #fff
}

.cols-view-tick {
    color: #6d8bff
}

.cols-view-del {
    font: inherit;
    font-size: 11px;
    color: var(--text-faint);
    background: none;
    border: 0;
    border-left: 1px solid var(--hairline);
    padding: 0 8px;
    cursor: pointer
}

.cols-view-del:hover {
    color: #ff6b7d;
    background: #ff6b7d1f
}

.cols-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 46vh;
    overflow-y: auto;
    padding-top: 2px
}

.cols-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 9px;
    border: 1px solid transparent;
    transition: background .12s, box-shadow .12s, transform .12s, opacity .12s
}

.cols-row:hover {
    background: #ffffff08
}

.cols-row.dragging {
    opacity: .92;
    background: #6d8bff1a;
    border-color: var(--hairline-strong);
    box-shadow: 0 10px 26px -10px #000000b3;
    transform: scale(1.015);
    cursor: grabbing
}

.cols-row.dragging .cols-grip {
    cursor: grabbing;
    color: #6d8bff
}

.cols-row.drop-target:before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: -2px;
    height: 2px;
    border-radius: 2px;
    background: #6d8bff;
    box-shadow: 0 0 8px #6d8bffb3
}

.cols-row.off .cols-label {
    color: var(--text-faint)
}

.cols-grip {
    color: var(--text-faint);
    cursor: grab;
    font-size: 13px;
    padding: 4px;
    -webkit-user-select: none;
    user-select: none;
    letter-spacing: -2px
}

.cols-grip:hover {
    color: var(--text)
}

.cols-grip:active {
    cursor: grabbing
}

.cols-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    padding: 4px 2px
}

.cols-sw {
    flex: none;
    width: 30px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff1f;
    position: relative;
    transition: background .16s
}

.cols-sw.on {
    background: #37e0a6
}

.cols-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform .16s
}

.cols-sw.on .cols-knob {
    transform: translate(12px)
}

.cols-label {
    font-size: 13px;
    font-weight: 550;
    color: var(--text)
}

.cols-save {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline)
}

.cols-save .field-input {
    flex: 1
}

.ads-panel {
    padding: 0;
    overflow: hidden
}

.ads-scroll {
    overflow-x: auto
}

.ads-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    white-space: nowrap
}

.ads-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-elev);
    color: var(--text-faint);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 11px 14px;
    border-bottom: 1px solid var(--hairline-strong);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none
}

.ads-table th:hover {
    color: var(--text-dim)
}

.ads-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--hairline);
    color: var(--text-dim)
}

.ads-table tbody tr:hover td {
    background: var(--card-hover)
}

.ads-table th.ads-rt,
.ads-table td.ads-rt {
    text-align: right
}

.ads-table th.ads-lt,
.ads-table td.ads-lt {
    text-align: left
}

.ads-th {
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.ads-arrow {
    font-size: 8px;
    color: var(--accent)
}

.ads-name {
    color: var(--text);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px
}

.ads-sticky {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-elev)
}

.ads-table td.ads-sticky {
    background: var(--bg-elev);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis
}

.ads-table tbody tr:hover td.ads-sticky {
    background: #12151c
}

.ads-table th.ads-sticky {
    z-index: 3
}

.ads-pos {
    color: var(--pos)
}

.ads-neg {
    color: var(--neg)
}

.ads-panel-rel,
.ads-drill-wrap {
    position: relative
}

.ads-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: inherit;
    background: #0a0c1073;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px)
}

.ads-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .14);
    border-top-color: var(--accent);
    animation: ads-spin .7s linear infinite
}

.ads-loading-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-dim)
}

@keyframes ads-spin {
    to {
        transform: rotate(360deg)
    }
}

.ads-drill {
    font: inherit;
    color: var(--text);
    font-weight: 500;
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    max-width: 100%
}

.ads-drill-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ads-drill:hover .ads-drill-name {
    color: var(--accent);
    text-decoration: underline
}

.ads-drill-chev {
    color: var(--text-faint);
    font-size: 15px;
    font-weight: 700;
    flex: none;
    transition: transform .12s, color .12s
}

.ads-drill:hover .ads-drill-chev {
    color: var(--accent);
    transform: translate(2px)
}

.ads-numlink {
    font: inherit;
    font-size: inherit;
    color: var(--text);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-bottom: 1px dotted var(--hairline-strong);
    line-height: 1.2
}

.ads-numlink:hover {
    color: var(--accent);
    border-bottom-color: var(--accent)
}

.ads-drill-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px
}

.ads-drill-chip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 14px;
    border-radius: 11px;
    background: var(--surface-2, #14171f);
    border: 1px solid var(--hairline);
    min-width: 84px
}

.ads-drill-chip-l {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-faint)
}

.ads-drill-chip-v {
    font-size: 16px;
    font-weight: 700;
    color: var(--text)
}

.ads-drill-chip-v.accent {
    color: var(--pos)
}

.ads-spark {
    color: var(--text-faint);
    flex: none;
    opacity: .7;
    transition: opacity .12s, color .12s
}

.ads-drill:hover .ads-spark {
    opacity: 1;
    color: var(--accent)
}

.ads-drill-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px
}

.ads-drill-bar-hint {
    font-size: 11.5px;
    color: var(--text-faint)
}

.adtrend-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface-2, #161922);
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    padding: 7px 13px;
    cursor: pointer;
    transition: border-color .12s, color .12s
}

.adtrend-btn:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.adtrend-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px
}

.adtrend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 5px 11px;
    cursor: pointer;
    transition: border-color .12s, color .12s, background .12s
}

.adtrend-chip:hover {
    border-color: var(--hairline-strong);
    color: var(--text)
}

.adtrend-chip.on {
    background: #ffffff08;
    font-weight: 650
}

.adtrend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none
}

.adtrend-wrap {
    position: relative
}

.adtrend-tt-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px
}

.adtrend-tt-l {
    flex: 1;
    color: var(--text-dim)
}

.adtrend-hint {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 12px;
    text-align: center
}

.ads-total td {
    border-top: 2px solid var(--hairline-strong);
    border-bottom: none;
    font-weight: 700;
    color: var(--text);
    background: #6d8bff0d;
    position: sticky;
    bottom: 0
}

.ads-total td.ads-sticky {
    background: #0f1219
}

.ads-empty {
    text-align: center;
    color: var(--text-faint);
    padding: 28px !important
}

.res-wrap {
    max-width: 1200px
}

.res-head {
    margin-bottom: 18px
}

.res-head-title {
    font-size: 18px;
    font-weight: 650;
    color: var(--text)
}

.res-head-sub {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 3px
}

.res-err {
    background: #ff6b7d14;
    border: 1px solid rgba(255, 107, 125, .3);
    color: #ffb4bd;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 12.5px;
    margin-bottom: 14px
}

.res-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px
}

.res-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 210px;
    border: 1.5px dashed var(--hairline-strong);
    border-radius: 14px;
    background: var(--card);
    color: var(--text-faint);
    cursor: pointer;
    transition: all .16s;
    font: inherit
}

.res-add:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #6d8bff0d
}

.res-add-plus {
    font-size: 30px;
    font-weight: 300;
    line-height: 1
}

.res-add-label {
    font-size: 13px;
    font-weight: 500
}

.res-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    text-decoration: none;
    color: inherit;
    transition: transform .16s, border-color .16s, box-shadow .16s;
    min-height: 210px
}

.res-card:hover {
    transform: translateY(-3px);
    border-color: var(--hairline-strong);
    box-shadow: 0 12px 30px #00000059
}

.res-skel {
    min-height: 210px
}

.res-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: #0a0c11;
    flex: none
}

.res-thumb-sm {
    aspect-ratio: auto;
    width: 120px;
    height: 90px;
    border-radius: 10px
}

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

.res-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6d8bff29, #8b6dff1f)
}

.res-fav-lg {
    width: 40px;
    height: 40px;
    border-radius: 8px
}

.res-fav-letter {
    font-size: 34px;
    font-weight: 700;
    color: var(--accent)
}

.res-body {
    padding: 12px 13px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.res-title-row {
    display: flex;
    align-items: center;
    gap: 7px
}

.res-fav {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    flex: none
}

.res-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.res-desc {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.res-domain {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: auto;
    padding-top: 4px
}

.res-del {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: none;
    background: #06070ab8;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .14s, background .14s, color .14s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px)
}

.res-card:hover .res-del {
    opacity: 1
}

.res-del:hover {
    background: #ff6b7d33;
    color: #ff6b7d
}

.res-empty {
    margin-top: 16px;
    color: var(--text-faint);
    font-size: 13px
}

.res-modal {
    max-width: 460px
}

.res-field-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-faint);
    margin: 14px 0 6px
}

.res-preview {
    margin-top: 16px
}

.res-preview-note {
    font-size: 12px;
    color: var(--text-faint);
    padding: 14px;
    border: 1px dashed var(--hairline);
    border-radius: 10px;
    text-align: center
}

.res-preview-card {
    display: flex;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--card)
}

.res-preview-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0
}

.res-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px
}

.res-btn-ghost {
    font: inherit;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 9px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--hairline-strong);
    color: var(--text-dim)
}

.res-btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-faint)
}

.res-btn-primary {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 9px;
    cursor: pointer;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff
}

.res-btn-primary:hover {
    filter: brightness(1.08)
}

.res-btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed
}

.tg-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.tg-month-select {
    width: auto;
    min-width: 160px;
    cursor: pointer
}

.tg-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap
}

.tg-sum-chip {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: #6d8bff1f;
    border: 1px solid rgba(109, 139, 255, .4);
    border-radius: 999px;
    padding: 4px 12px
}

.tg-sum-note {
    font-size: 12px;
    color: var(--text-faint)
}

.tg-table td,
.tg-table th {
    padding: 13px 16px
}

.tg-metric {
    text-align: left;
    font-weight: 600;
    color: var(--text)
}

.tg-dim {
    color: var(--text-faint)
}

.tg-chip {
    display: inline-block;
    min-width: 46px;
    text-align: center;
    font-weight: 700;
    font-size: 12.5px;
    border-radius: 7px;
    padding: 3px 8px
}

.tg-pos {
    color: #0b3;
    background: #34e07b29;
    color: var(--pos)
}

.tg-warn {
    color: #ffb454;
    background: #ffb45429
}

.tg-neg {
    color: var(--neg);
    background: #ff6b7d29
}

.tg-foot {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 12px;
    line-height: 1.5
}

.tg-empty {
    padding: 40px 28px;
    text-align: center
}

.tg-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px
}

.tg-empty p {
    font-size: 13.5px;
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6
}

.fl-tg-set {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.fl-tg-label {
    font-size: 12.5px;
    color: var(--text-faint)
}

.fl-tg-month {
    width: auto;
    min-width: 130px
}

.fl-tg-done {
    font-size: 13px;
    font-weight: 600;
    color: var(--pos)
}

.tg-notes {
    margin-top: 18px
}

.tg-note-add {
    display: flex;
    gap: 8px;
    margin-bottom: 14px
}

.tg-note-add .field-input {
    flex: 1
}

.tg-note-empty {
    font-size: 13px;
    color: var(--text-faint)
}

.tg-note-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.tg-note {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: #ffffff05
}

.tg-note-text {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.5;
    white-space: pre-wrap
}

.tg-note-meta {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 4px
}

.tg-note-del {
    flex: none;
    background: none;
    border: 0;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 6px
}

.tg-note-del:hover {
    color: var(--neg);
    background: #ff6b7d1f
}

.tg-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.tg-mode {
    margin-left: auto
}

.tg-title {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.tg-legend-wrap {
    position: relative;
    display: inline-flex
}

.tg-legend-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background: #ffffff0d;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0
}

.tg-legend-btn:hover {
    color: #fff;
    border-color: var(--text-faint)
}

.tg-legend-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40
}

.tg-legend-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 41;
    width: 280px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0e1016fa;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 18px 44px -16px #000000e6;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px)
}

.tg-legend-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 9px;
    text-transform: none;
    letter-spacing: 0
}

.tg-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-dim);
    font-weight: 500;
    padding: 3px 0
}

.tg-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex: none
}

.tg-dot.tg-pos {
    background: var(--pos)
}

.tg-dot.tg-warn {
    background: #ffb454
}

.tg-dot.tg-neg {
    background: var(--neg)
}

.tg-legend-note {
    font-size: 11px;
    color: var(--text-faint);
    line-height: 1.5;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--hairline)
}

.tg-note-input {
    width: 100%;
    resize: vertical;
    min-height: 74px;
    line-height: 1.5;
    font: inherit
}

.tg-note-add {
    display: block;
    margin-bottom: 14px
}

.tg-note-add-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px
}

.tg-note-hint {
    font-size: 11.5px;
    color: var(--text-faint)
}

.tg-note-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-dim);
    flex: none
}

.tg-note-yes {
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: var(--neg);
    border: 0;
    border-radius: 7px;
    padding: 3px 10px;
    cursor: pointer
}

.tg-note-no {
    font: inherit;
    font-size: 12.5px;
    color: var(--text-dim);
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 3px 10px;
    cursor: pointer
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap
}

.cal-nav {
    display: flex;
    align-items: center;
    gap: 8px
}

.cal-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    min-width: 150px
}

.cal-arrow {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--hairline);
    background: #ffffff08;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    line-height: 1
}

.cal-arrow:hover {
    color: #fff;
    border-color: var(--hairline-strong)
}

.cal-today {
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: #ffffff0a;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    margin-left: 4px
}

.cal-today:hover {
    color: #fff
}

.cal-panel {
    padding: 14px 16px
}

.cal-weekhead {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    font-size: 11px;
    color: var(--text-faint);
    margin-bottom: 6px;
    padding: 0 2px
}

.cal-grid {
    display: grid;
    /* minmax(0, 1fr), not 1fr: seven tracks at their default min-width:auto are
       floored by the widest cell label ($123.6K), which pushes the month grid
       past a phone viewport and scrolls the whole page sideways. */
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px
}

/* Phone: seven columns across 375px leaves ~45px per cell, which is narrower
   than the cash label ("$123.6K") — squeezing the type small enough to fit
   makes the month unreadable, and letting it overflow made every day collide
   with its neighbour. So the month scrolls sideways INSIDE its own panel: the
   day-name header and the grid share one min-width and one scroll container,
   so they stay in lockstep, and the page itself never scrolls. */
@media (max-width: 560px) {
    .cal-panel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch
    }

    .cal-weekhead,
    .cal-grid {
        min-width: 452px
    }

    .cal-grid {
        gap: 5px
    }

    .cal-cell {
        min-height: 66px;
        padding: 5px 6px
    }

    .cal-cash {
        font-size: 11px;
        letter-spacing: -.02em
    }

    .cal-count {
        bottom: 5px;
        right: 6px
    }
}

.cal-cell {
    position: relative;
    min-height: 74px;
    border-radius: 10px;
    border: 1px solid var(--hairline);
    background: #ffffff05;
    padding: 6px 8px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: border-color .12s, background .12s
}

.cal-cell:hover {
    border-color: var(--hairline-strong)
}

.cal-blank {
    border: 0;
    background: none;
    cursor: default
}

.cal-past {
    background: #ffffff03;
    opacity: .8
}

.cal-today-cell {
    border: 1.5px solid var(--accent)
}

.cal-sel {
    border-color: var(--accent);
    background: #6d8bff14
}

.cal-daynum {
    font-size: 12px;
    color: var(--text-faint)
}

.cal-cash {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pos);
    margin-top: 3px
}

.cal-todaytag {
    display: block;
    font-size: 10.5px;
    color: var(--accent);
    margin-top: 3px
}

.cal-count {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint)
}

.cal-count.up {
    color: var(--accent)
}

.cal-detail {
    margin-top: 14px;
    padding: 14px 16px
}

.cal-detail-head {
    margin-bottom: 12px
}

.cal-bklist {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.cal-bk {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    font: inherit;
    background: #ffffff05;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer
}

.cal-bk:hover {
    border-color: var(--hairline-strong);
    background: #ffffff0a
}

.cal-bk-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    flex: 1 1 120px;
    min-width: 0
}

.cal-bk-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 140px;
    min-width: 0
}

.cal-bk-chip {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: #ffffff0d;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 1px 8px;
    white-space: nowrap
}

.cal-bk-dim {
    font-size: 11.5px;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.cal-bk-ad {
    font-size: 11.5px;
    color: var(--accent);
    flex: 1 1 150px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.cal-bk-status {
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 6px;
    padding: 2px 8px;
    flex: none
}

.cal-st-blue {
    color: #8fb4ff;
    background: #6d8bff24
}

.cal-st-amber {
    color: #ffb454;
    background: #ffb45424
}

.cal-st-red {
    color: #ff8090;
    background: #ff6b7d24
}

.cal-st-green {
    color: var(--pos);
    background: #37e0a624
}

.cal-st-muted {
    color: var(--text-dim);
    background: #94a3b824
}

.cal-st-unresolved {
    color: var(--text-faint);
    background: #94a3b81a;
    border: 1px dashed var(--hairline-strong)
}

.cal-empty {
    font-size: 13px;
    color: var(--text-faint);
    padding: 14px 2px
}

.cal-empty.sm {
    padding: 4px 0
}

.cal-foot {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 12px;
    line-height: 1.5
}

.cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px
}

.cal-weekcol {
    border: 1px solid var(--hairline);
    border-radius: 10px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column
}

.cal-weekcol-head {
    padding: 7px 8px;
    border-bottom: 1px solid var(--hairline);
    font-size: 11.5px;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 2px
}

.cal-weekcol-body {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.cal-wk-bk {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
    font: inherit;
    background: #ffffff08;
    border: 1px solid var(--hairline);
    border-radius: 7px;
    padding: 5px 7px;
    cursor: pointer
}

.cal-wk-bk:hover {
    border-color: var(--hairline-strong)
}

.cal-wk-bk .cal-bk-name {
    font-size: 12px;
    flex: none
}

.cal-wk-bk .cal-bk-ad {
    font-size: 10.5px;
    flex: none
}

.cal-viewtoggle button {
    text-transform: none
}

.cal-bk-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    min-width: 62px;
    flex: none
}

.cal-wk-time {
    color: var(--accent);
    font-weight: 600
}

.cc-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 4px;
    border: 1px solid var(--hairline);
    border-radius: 13px;
    background: #0000004d;
    width: fit-content;
    max-width: 100%
}

.cc-tab {
    font: inherit;
    font-size: 13px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    padding: 8px 16px;
    border-radius: 9px;
    cursor: pointer;
    transition: color .18s, background .18s
}

.cc-tab:hover {
    color: var(--text)
}

.cc-tab.active {
    color: #fff;
    background: linear-gradient(180deg, #8b6dff6b, #6d8bff3d);
    box-shadow: inset 0 1px #ffffff29, 0 6px 18px -8px var(--accent-glow)
}

.cc-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 12px;
    margin-bottom: 4px
}

.cc-kpi {
    background: linear-gradient(180deg, #ffffff08, #ffffff02);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: inset 0 1px #ffffff0a
}

.cc-kpi-label {
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-faint)
}

.cc-kpi-val {
    font-size: 27px;
    font-weight: 700;
    margin-top: 8px;
    letter-spacing: -.02em
}

.cc-kpi-delta {
    font-size: 11.5px;
    font-weight: 550;
    margin-top: 6px;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 4px
}

.cc-kpi-delta span {
    color: var(--text-faint);
    font-weight: 500
}

.cc-kpi-delta.pos {
    color: var(--pos)
}

.cc-kpi-delta.neg {
    color: var(--neg)
}

.cc-kpi-delta.flat {
    color: var(--text-faint)
}

.cc-target-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #8b6dff24, #8b6dff0d);
    border: 1px solid rgba(139, 109, 255, .34)
}

.cc-target-ico {
    font-size: 19px
}

.cc-target-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.45
}

.cc-target-text b {
    color: var(--text)
}

.cc-target-text span {
    color: var(--text-dim)
}

.cc-target-btn {
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    border: 0;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px var(--accent-glow)
}

.cc-target-btn:hover {
    filter: brightness(1.08)
}

.cc-lb {
    margin-top: 22px;
    padding: 20px 22px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff07, #ffffff02);
    border: 1px solid var(--hairline)
}

.cc-lb-head {
    margin-bottom: 12px
}

.cc-lb-title {
    font-size: 15px;
    font-weight: 650
}

.cc-lb-sub {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 2px
}

.cc-lb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 4px;
    border-top: 1px solid var(--hairline)
}

.cc-lb-rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-faint);
    width: 22px
}

.cc-lb-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600
}

.cc-lb-deals {
    font-size: 12px;
    color: var(--text-dim)
}

.cc-lb-cash {
    font-size: 15px;
    font-weight: 700;
    color: var(--pos);
    min-width: 92px;
    text-align: right
}

.fb-panel {
    margin: 0
}

.fb-hint {
    font-size: 11.5px;
    color: var(--text-faint);
    padding: 12px 2px 4px;
    line-height: 1.5
}

.fb-delta {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap
}

.fb-delta.pos {
    color: var(--pos)
}

.fb-delta.neg {
    color: var(--neg)
}

.fb-delta.flat {
    color: var(--text-faint)
}

.wow-table tr.grand td {
    border-top: 1.5px solid var(--hairline-strong);
    font-weight: 700
}

.cc-trend-flag {
    color: var(--neg);
    font-weight: 600
}

.notes-wrap {
    max-width: 760px
}

.notes-compose {
    background: linear-gradient(180deg, #ffffff08, #ffffff02);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px
}

.notes-input {
    width: 100%;
    min-height: 78px;
    resize: vertical;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: #00000047;
    border: 1px solid var(--hairline);
    border-radius: 11px;
    padding: 11px 13px
}

.notes-input:focus {
    outline: none;
    border-color: var(--accent)
}

.notes-input::placeholder {
    color: var(--text-faint)
}

.notes-compose-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 12px
}

.notes-hint {
    font-size: 11px;
    color: var(--text-faint)
}

.notes-post {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    border: 0;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px var(--accent-glow)
}

.notes-post.sm {
    padding: 6px 13px;
    font-size: 12px
}

.notes-post:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none
}

.notes-err {
    color: var(--neg);
    font-size: 12.5px;
    margin-bottom: 12px
}

.notes-empty {
    color: var(--text-faint);
    font-size: 13.5px;
    padding: 26px 4px;
    text-align: center
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.note-card {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 14px 16px
}

.note-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px
}

.note-avatar {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent))
}

.note-author {
    font-size: 13px;
    font-weight: 650
}

.note-time {
    font-size: 11.5px;
    color: var(--text-faint)
}

.note-actions {
    margin-left: auto;
    display: flex;
    gap: 4px
}

.note-act {
    font: inherit;
    font-size: 11.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--hairline);
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer
}

.note-act:hover {
    color: var(--text);
    border-color: var(--hairline-strong)
}

.note-act.del:hover {
    color: var(--neg);
    border-color: var(--neg)
}

.note-body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word
}

.note-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(109, 139, 255, .4)
}

.note-link:hover {
    border-bottom-color: var(--accent)
}

.note-edit {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.note-edit-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px
}

.cc-ov-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
    margin-top: 20px
}

@media (max-width: 1180px) {
    .cc-ov-grid {
        /* minmax(0, 1fr), not 1fr: a bare 1fr track keeps the grid item's
           default min-width:auto, so the 860px min-width of .wow-table inside
           "Last 10 days" widens the column past the viewport and the whole page
           scrolls sideways instead of the table scrolling inside .wow-scroll. */
        grid-template-columns: minmax(0, 1fr)
    }
}

.fb-table td .fb-v {
    display: block
}

.fb-d {
    display: block;
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: -.01em
}

.fb-d.pos {
    color: var(--pos)
}

.fb-d.neg {
    color: var(--neg)
}

.fb-d.flat {
    color: var(--text-faint)
}

.fb-table td.strong .fb-v {
    font-weight: 700
}

.cc-lb {
    margin-top: 0;
    padding: 18px 18px 8px;
    border-radius: 20px;
    background: linear-gradient(180deg, #8b6dff0f, #ffffff02);
    border: 1px solid var(--hairline)
}

.cc-lb-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-2)
}

.cc-lb-title {
    font-size: 15px;
    font-weight: 700;
    margin-top: 3px
}

.cc-lb-sub {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 2px;
    margin-bottom: 6px
}

.cc-lb-list {
    display: flex;
    flex-direction: column
}

.cc-lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-top: 1px solid var(--hairline)
}

.cc-lb-row:first-child {
    border-top: 0
}

.cc-lb-rank {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-faint);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums
}

.cc-lb-row.rank-1 .cc-lb-rank {
    color: #ffcf5c
}

.cc-lb-row.rank-2 .cc-lb-rank {
    color: #cfd6e6
}

.cc-lb-row.rank-3 .cc-lb-rank {
    color: #e0955c
}

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

.cc-lb-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px
}

.cc-lb-name {
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.cc-lb-cash {
    font-size: 14.5px;
    font-weight: 750;
    color: var(--pos);
    flex-shrink: 0
}

.cc-lb-bar {
    height: 5px;
    border-radius: 4px;
    background: #ffffff0f;
    margin: 7px 0 5px;
    overflow: hidden
}

.cc-lb-bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2))
}

.cc-lb-row.rank-1 .cc-lb-bar span {
    background: linear-gradient(90deg, #f7b955, #ffd77a)
}

.cc-lb-row.rank-2 .cc-lb-bar span {
    background: linear-gradient(90deg, #8b93a7, #cfd6e6)
}

.cc-lb-row.rank-3 .cc-lb-bar span {
    background: linear-gradient(90deg, #cf7c43, #e0a06a)
}

.cc-lb-deals {
    font-size: 11.5px;
    color: var(--text-dim)
}

.fb-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.tgb-panel {
    padding: 18px 22px
}

.tgb-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px 26px
}

.tgb-row {
    min-width: 0
}

.tgb-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px
}

.tgb-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text)
}

.tgb-att {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums
}

.tgb-att.tg-pos {
    color: var(--pos);
    background: none
}

.tgb-att.tg-warn {
    color: #ffb454;
    background: none
}

.tgb-att.tg-neg {
    color: var(--neg);
    background: none
}

.tgb-att.tg-neutral {
    color: var(--text-dim);
    background: none
}

.tgb-over {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em
}

.tgb-track {
    height: 9px;
    border-radius: 6px;
    background: #ffffff0f;
    overflow: hidden;
    position: relative
}

.tgb-track.over {
    box-shadow: inset 0 0 0 1px #34e07b66
}

.tgb-fill {
    display: block;
    height: 100%;
    border-radius: 6px;
    transition: width .5s cubic-bezier(.2, .7, .3, 1)
}

.tgb-fill.tg-pos {
    background: linear-gradient(90deg, #2bb98a, #37e0a6)
}

.tgb-fill.tg-warn {
    background: linear-gradient(90deg, #e09a3c, #ffb454)
}

.tgb-fill.tg-neg {
    background: linear-gradient(90deg, #e0556a, #ff6b7d)
}

.tgb-fill.tg-neutral {
    background: linear-gradient(90deg, #6c7488, #9aa3b2)
}

.tgb-sub {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px
}

.tgb-actual {
    font-size: 14px;
    font-weight: 700;
    color: var(--text)
}

.tgb-tgt {
    font-size: 11.5px;
    color: var(--text-faint)
}

.tgo-panel {
    padding: 8px 10px;
    overflow-x: auto
}

.tgo-headrow,
.tgo-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.5fr) 118px minmax(170px, 1.7fr) 92px 190px;
    align-items: center;
    gap: 16px;
    min-width: 780px
}

.tgo-headrow {
    padding: 6px 14px 10px;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 1px solid var(--hairline)
}

.tgo-row {
    padding: 13px 14px;
    border-bottom: 1px solid var(--hairline)
}

.tgo-row:last-child {
    border-bottom: 0
}

.tgo-row:hover {
    background: #ffffff04
}

.tgo-name {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0
}

.tgo-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    background: #ffffff0d
}

.tgo-icon.tg-pos {
    color: var(--pos);
    background: #34e07b1f
}

.tgo-icon.tg-warn {
    color: #ffb454;
    background: #ffb4541f
}

.tgo-icon.tg-neg {
    color: var(--neg);
    background: #ff6b7d1f
}

.tgo-icon.tg-neutral {
    color: var(--text-dim)
}

.tgo-name-txt {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.tgo-title {
    font-size: 14px;
    font-weight: 650;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tgo-sub {
    font-size: 11px;
    color: var(--text-faint)
}

.tgo-val {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -.02em;
    color: var(--text)
}

.tgo-perf {
    min-width: 0
}

.tgo-bar {
    height: 7px;
    border-radius: 5px;
    background: #ffffff12;
    overflow: hidden
}

.tgo-bar.over {
    box-shadow: inset 0 0 0 1px #34e07b66
}

.tgo-fill {
    display: block;
    height: 100%;
    border-radius: 5px;
    transition: width .5s cubic-bezier(.2, .7, .3, 1)
}

.tgo-fill.tg-pos {
    background: linear-gradient(90deg, #2bb98a, #37e0a6)
}

.tgo-fill.tg-warn {
    background: linear-gradient(90deg, #e09a3c, #ffb454)
}

.tgo-fill.tg-neg {
    background: linear-gradient(90deg, #e0556a, #ff6b7d)
}

.tgo-fill.tg-neutral {
    background: linear-gradient(90deg, #6c7488, #9aa3b2)
}

.tgo-perf-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px
}

.tgo-pct {
    font-size: 12.5px;
    font-weight: 750;
    font-variant-numeric: tabular-nums
}

.tgo-pct.tg-pos {
    color: var(--pos)
}

.tgo-pct.tg-warn {
    color: #ffb454
}

.tgo-pct.tg-neg {
    color: var(--neg)
}

.tgo-pct.tg-neutral {
    color: var(--text-dim)
}

.tgo-permo {
    font-size: 11px;
    color: var(--text-faint);
    white-space: nowrap
}

.tgo-tgt {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim)
}

.tgo-owner-cell,
.tgo-owner {
    position: relative
}

.tgo-owner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font: inherit;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 6px 9px;
    cursor: pointer;
    color: var(--text);
    text-align: left
}

.tgo-owner-btn:hover {
    border-color: var(--hairline-strong);
    background: var(--card)
}

.tgo-owner-btn svg {
    margin-left: auto;
    color: var(--text-faint);
    flex-shrink: 0
}

.tgo-avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent))
}

.tgo-avatar-empty {
    background: #ffffff12;
    color: var(--text-faint);
    font-size: 15px
}

.tgo-owner-name {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tgo-unassigned {
    color: var(--text-faint);
    font-weight: 500
}

.tgo-owner-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 30;
    min-width: 230px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-elev);
    border: 1px solid var(--hairline-strong);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 20px 44px -18px #000000d9
}

.tgo-owner-opt {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer;
    color: var(--text)
}

.tgo-owner-opt:hover {
    background: var(--card-hover)
}

.tgo-owner-opt.sel {
    background: #6d8bff24
}

.tgo-owner-opt-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    font-weight: 600
}

.tgo-owner-opt-email {
    font-size: 10.5px;
    font-weight: 400;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tgo-clear {
    color: var(--text-dim);
    font-size: 12px;
    justify-content: center
}

.tgo-owner-none {
    padding: 10px;
    font-size: 12px;
    color: var(--text-faint);
    text-align: center
}

.tgo-owner-menu.up {
    top: auto;
    bottom: calc(100% + 5px)
}

.tgo-avatar-img {
    object-fit: cover
}

img.tgo-avatar {
    padding: 0
}

.sb-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    font: inherit;
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background .15s
}

.sb-profile:hover {
    background: var(--card-hover)
}

.sb-profile-av {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex-shrink: 0;
    object-fit: cover
}

.sb-profile-initials {
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent))
}

.sb-profile-text {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.sb-profile-name {
    font-size: 13px;
    font-weight: 650;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sb-profile-role {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-faint);
    text-transform: capitalize
}

.pm-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: #040508a8;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px)
}

.pm-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-elev);
    border: 1px solid var(--hairline-strong);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 40px 80px -30px #000000e6
}

.pm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px
}

.pm-title {
    font-size: 17px;
    font-weight: 700
}

.pm-close {
    font: inherit;
    background: transparent;
    border: 0;
    color: var(--text-faint);
    font-size: 15px;
    cursor: pointer;
    padding: 4px
}

.pm-close:hover {
    color: var(--text)
}

.pm-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px
}

.pm-avatar {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0
}

.pm-avatar-initials {
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent))
}

.pm-avatar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.pm-remove {
    font: inherit;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 0;
    cursor: pointer
}

.pm-remove:hover {
    color: var(--neg)
}

.pm-email {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 7px
}

.pm-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px
}

.pm-cancel {
    font: inherit;
    font-size: 13px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 9px 16px;
    cursor: pointer
}

.pm-cancel:hover {
    color: var(--text);
    border-color: var(--hairline-strong)
}

.tg-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.tg-setbtn {
    white-space: nowrap
}

.tg-empty-btn {
    margin-top: 16px
}

.tb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px
}

.tb-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline)
}

.fl-tag-target {
    background: #34e07b29 !important;
    color: var(--pos) !important
}

.fl-target-card {
    position: relative;
    border-color: #34e07b47 !important;
    background: linear-gradient(180deg, #34e07b0f, #ffffff02) !important
}

.fl-target-card:hover {
    border-color: #34e07b80 !important
}

.fl-target-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--pos);
    background: #34e07b24;
    padding: 3px 8px;
    border-radius: 7px
}

.fl-target-card .fl-snap-net-label {
    font-weight: 500
}

.tgo-owner-menu-fixed {
    position: fixed;
    z-index: 400
}

.fl-init-cd {
    color: var(--accent-2);
    font-weight: 600
}

.fl-init-lock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px
}

.fl-init-cdchip {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--accent-2);
    background: #8b6dff24;
    border: 1px solid rgba(139, 109, 255, .3);
    padding: 5px 11px;
    border-radius: 9px;
    white-space: nowrap
}

.fl-init-locknote {
    font-size: 10.5px;
    color: var(--text-faint)
}

.fl-im-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    vertical-align: 2px
}

.fl-badge-killed {
    color: #8b93a7 !important;
    background: #8b93a729 !important
}

.fl-init-killed {
    opacity: .9
}

.fl-init-killreason {
    color: var(--text-dim)
}

.fl-im-body {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.fl-im-block {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.fl-im-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-faint)
}

.fl-im-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap
}

.fl-im-killblock .fl-im-label {
    color: var(--neg)
}

.fl-im-signoff {
    font-size: 12px;
    color: var(--text-faint)
}

.fl-im-lockmsg {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
    background: #8b6dff14;
    border: 1px solid rgba(139, 109, 255, .22);
    border-radius: 11px;
    padding: 12px 14px
}

.fl-im-lockmsg b {
    color: var(--accent-2)
}

.fl-im-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline)
}

.fl-im-killbtn {
    margin-left: auto;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #ffb454;
    background: #ffb4541f;
    border: 1px solid rgba(255, 180, 84, .34);
    border-radius: 10px;
    padding: 9px 15px;
    cursor: pointer
}

.fl-im-killbtn:hover {
    background: #ffb45433
}

.fl-im-delbtn {
    font: inherit;
    font-size: 13px;
    font-weight: 550;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 9px 15px;
    cursor: pointer
}

.fl-im-delbtn:hover {
    color: var(--neg);
    border-color: var(--neg)
}

.fl-im-killform {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    gap: 8px
}

.fl-im-delrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline)
}

.fl-im-delq {
    font-size: 13px;
    color: var(--text);
    margin-right: auto
}

.fl-im-delyes {
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--neg);
    border: 0;
    border-radius: 10px;
    padding: 9px 16px;
    cursor: pointer
}

.fl-im-delyes:hover {
    filter: brightness(1.08)
}

.cc-targets-notes {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--hairline)
}

.cc-notes-head {
    font-size: 15px;
    font-weight: 650
}

.cc-notes-sub {
    font-size: 12px;
    color: var(--text-faint);
    margin: 2px 0 14px
}

.tgo-permo.tgo-pace {
    color: var(--accent-2);
    font-weight: 600
}

.tg-lockbadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 650;
    color: var(--text-dim);
    letter-spacing: .02em;
    background: var(--card);
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    padding: 8px 13px
}

.tg-report {
    padding: 18px 20px;
    margin-bottom: 16px;
    border-left: 3px solid var(--accent-2);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 7%, var(--card)), var(--card))
}

.tg-report-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px
}

.tg-report-badge {
    font-size: 10.5px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent-2);
    background: color-mix(in srgb, var(--accent-2) 16%, transparent);
    border-radius: 999px;
    padding: 3px 9px
}

.tg-report-title {
    font-size: 14px;
    font-weight: 650;
    color: var(--text)
}

.tg-report-body {
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--text);
    margin: 0
}

.tg-report-foot {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 10px
}

.tgo-owner-static {
    cursor: default;
    padding: 6px 8px
}

.tgo-owner-static .tgo-owner-name {
    color: var(--text-dim)
}

.tg-meetingbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font: inherit;
    font-size: 13px;
    font-weight: 550;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 8px 13px;
    cursor: pointer
}

.tg-meetingbtn:hover {
    color: var(--text);
    border-color: var(--hairline-strong);
    background: var(--card-hover)
}

.tg-meetingbtn svg {
    color: var(--accent-2)
}

.mn-body {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.mn-compose {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.mn-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5
}

.mn-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 10px;
    background: #000;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden
}

.mn-embed iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.mn-reclink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    background: #6d8bff1f;
    border: 1px solid rgba(109, 139, 255, .3);
    padding: 8px 13px;
    border-radius: 10px
}

.mn-reclink:hover {
    background: #6d8bff33
}

.mn-compose-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px
}

.mn-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--hairline);
    padding-top: 16px
}

.mn-note {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: 14px 16px
}

.mn-note .mn-embed,
.mn-note .mn-reclink {
    margin-top: 0;
    margin-bottom: 10px
}

.mn-note-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word
}

.mn-note-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px
}