/* forecast.css - Forecast page. Uses base.css tokens/classes (.btn-crm, .input, .field, .check, .link).
   base.css is not modified. Everything scoped to .fc so it cannot leak. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

/* base.css has this misspelled as "crmjust" */
/* CRM port: scoped to the forecast page and its drawers (crm-app.css loads this on every page) */
.fc textarea, [data-fc-modal] textarea {resize: none;}
.fc {
    --fc-accent: var(--brand-ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: var(--bg);
    min-height: 100%;
    font-size: 14px;
    line-height: 1.4
}

.fc svg {
    display: inline-block
}

.fc-head {
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    padding: var(--sp-5) var(--sp-8);
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
}

.fc-h1 {
    font-size: 22px
}

.fc-head__acts {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap
}

.fc-body {
    padding: var(--sp-6) var(--sp-8) var(--sp-10);
    background: var(--surface);
    border-radius: 0 0 12px 12px;
}

.fc-pos {
    position: relative;
    display: inline-block
}

.fc-caret {
    width: 0;
    height: 0;
    border: 4px solid transparent;
    border-top-color: currentColor;
    border-bottom: 0;
    display: inline-block
}

.fc-typebtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fc-accent);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em
}

.fc-measure {
    margin-top: 6px
}

.fc-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: var(--sp-4) 0 var(--sp-3)
}

.fc-seg {
    display: inline-flex;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface)
}

.fc-seg button {
    padding: 9px 24px;
    font-weight: 500
}

.fc-seg button + button {
    border-left: 1px solid var(--border-strong)
}

.fc-seg button.is-on {
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-weight: 700
}

.fc-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.fc-filter button {
    padding: 4px 0;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.fc-search {
    margin-left: auto;
    position: relative;
    width: 270px;
    max-width: 100%
}

.fc-search .input {
    height: 40px;
    padding: 0 38px 0 14px;
    font-size: 14px
}

.fc-search svg {
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none
}

.fc-sr {
    position: absolute;
    left: -9999px
}

/* menus */
.fc-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 6px 0;
    z-index: 60
}

.fc-menu--r {
    left: auto;
    right: 0
}

.fc-menu--type {
    min-width: 260px;
    border-radius: var(--radius-lg)
}

.fc-menu button, .fc-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 9px 16px;
    white-space: nowrap
}

.fc-menu button:hover, .fc-menu a:hover, .fc-menu .is-on {
    background: var(--surface-hover)
}

.fc-menu .is-on {
    font-weight: 700
}

.fc-menu small {
    display: block;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 11.5px;
    margin-top: 2px
}

.fc-menu hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 6px 0
}

.fc-menu .fc-mb {
    font-weight: 700
}

.fc-ext {
    min-width: 14px;
    width: 14px;
    height: 14px;
    color: var(--text-muted)
}

.fc-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--sp-3)
}

.fc-sub button {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.fc-sub button:hover {
    color: var(--fc-accent)
}

.fc-crumb .is-link {
    text-decoration: underline
}

.fc-cards {
    display: grid;
    grid-template-columns:1.9fr 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-6)
}

.fc-card {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: var(--sp-6) 28px;
    background: var(--surface);
    min-width: 0
}

.fc-card__t {
    margin: 0 0 18px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px
}

.fc-mets {
    display: flex;
    justify-content: space-around;
    gap: var(--sp-6);
    flex-wrap: wrap;
    text-align: center
}

.fc-met {
    min-width: 90px
}

.fc-met__l {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px
}

.fc-met__v {
    font-size: 26px;
    font-weight: 500;
    margin: 10px 0 4px
}

.fc-met__s {
    font-size: 13px;
    color: var(--text-muted);
    min-height: 18px
}

.fc-ico {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex: none;
    vertical-align: middle
}

/* table */
.fc-tblwrap {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    background: var(--surface)
}

.fc-tbl {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0
}

.fc-tbl th, .fc-tbl td {
    padding: 14px var(--sp-4);
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    background: var(--surface)
}

.fc-tbl tr:last-child td {
    border-bottom: 0
}

.fc-tbl th {
    background: var(--surface-2);
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 13px
}

.fc-tbl th button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 170px
}

.fc-tbl th button .t {
    overflow: hidden;
    text-overflow: ellipsis
}

.fc-sort {
    font-size: 11px;
    letter-spacing: -2px;
    color: var(--text-muted)
}

.fc-tbl th:first-child, .fc-tbl td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 240px;
    border-right: 1px solid var(--border);
    box-shadow: 6px 0 8px -6px rgba(16, 24, 40, .2)
}

.fc-tbl th:last-child, .fc-tbl td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 240px;
    border-left: 1px solid var(--border);
    box-shadow: -6px 0 8px -6px rgba(16, 24, 40, .2)
}

.fc-tbl tr.is-total td {
    background: var(--surface-3)
}

.fc-name {
    display: flex;
    align-items: center;
    gap: 12px
}

.fc-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    flex: none
}

.fc-name__t {
    display: block;
    font-weight: 700
}

.fc-name__s {
    display: block;
    color: var(--text-muted);
    font-size: 13px
}

.fc-link {
    color: var(--fc-accent);
    font-weight: 700;
    text-align: left
}

.fc-link:hover {
    text-decoration: underline
}

.fc-att {
    min-width: 200px
}

.fc-att__top {
    display: flex;
    align-items: center;
    gap: 8px
}

.fc-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--surface-3);
    overflow: hidden
}

.fc-fill {
    display: block;
    height: 100%;
    background: var(--brand);
    border-radius: 4px
}

.fc-att__bot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    font-size: 13px
}

.fc-att__bot span:last-child {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.fc-amt {
    display: block;
    font-weight: 700
}

.fc-deals {
    display: block;
    font-weight: 700;
    color: var(--fc-accent)
}

.is-total .fc-deals {
    color: var(--text)
}

.fc-dash {
    display: block;
    text-align: center
}

.fc-subcell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    min-width: 200px
}

.fc-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-muted)
}

/* modal + drawer */
.fc-ov {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    z-index: 1000
}

.fc-ov--r {
    justify-content: flex-end;
    padding: 0;
    align-items: stretch
}

.fc-modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 480px;
    max-width: 100%;
    max-height: 92vh;
    overflow: auto;
    box-shadow: var(--shadow-lg)
}

.fc-modal__h, .fc-drawer__h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px var(--sp-6);
    border-bottom: 1px solid var(--border);
    font-size: 17px;
    font-weight: 700
}

.fc-modal__h {
    background: var(--surface-2)
}

.fc-x {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    width: 34px;
    height: 34px;
    font-size: 24px;
    font-weight: 100;
    line-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text, #101828);
    cursor: pointer;
}
.fc-x:hover {background: var(--surface-hover, #f2f4f7);}

.fc-modal__b {
    padding: var(--sp-5) var(--sp-6);
    display: grid;
    gap: var(--sp-4)
}

.fc-modal__f, .fc-drawer__f {
    display: flex;
    gap: var(--sp-3);
    padding: 14px var(--sp-6);
    border-top: 1px solid var(--border)
}

.fc-drawer {
    background: var(--surface);
    width: 620px;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg)
}

.fc-drawer__b {
    flex: 1;
    overflow: auto;
    padding: var(--sp-5) var(--sp-8) var(--sp-8);
    display: grid;
    gap: var(--sp-5);
    align-content: start
}

.fc-drawer__f {
    justify-content: flex-end
}

.fc-steps {
    display: flex;
    align-items: center;
    margin: 4px 0 0
}

.fc-steps i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--text);
    background: var(--surface);
    flex: none
}

.fc-steps i.is-on {
    border-color: var(--brand)
}

.fc-steps i.is-done {
    background: var(--brand);
    border-color: var(--brand);
    position: relative
}

.fc-steps i.is-done::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg)
}

.fc-steps b {
    flex: 1;
    height: 2px;
    background: var(--text)
}

.fc-steplbl {
    text-align: center;
    font-size: 13px;
    margin-top: 6px
}

.fc-intro {
    text-align: center;
    color: var(--text-muted);
    padding: 0 var(--sp-2)
}

.fc-field .field__label small {
    display: block;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px
}

.fc-req {
    color: var(--danger)
}

.fc-cb {
    position: relative
}

.fc-cb__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-align: left
}

.fc-cb__btn.is-ph {
    color: var(--text-muted)
}

.fc-cb__panel {
    margin-top: 6px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: var(--sp-3);
    z-index: 5;
    position: relative
}

.fc-cb__panel .input {
    height: 40px;
    border-color: var(--brand);
    font-size: 14px
}

.fc-cb__list {
    max-height: 230px;
    overflow: auto;
    margin: var(--sp-2) calc(var(--sp-3) * -1) 0
}

.fc-cb__grp {
    padding: 8px 20px;
    font-weight: 700;
    font-size: 13px
}

.fc-cb__opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 20px 9px 34px
}

.fc-cb__opt:hover, .fc-cb__opt.is-on {
    background: var(--surface-hover)
}

.fc-cb__opt small {
    display: block;
    color: var(--text-muted);
    font-size: 11.5px;
    margin-top: 4px;
    white-space: normal
}

.fc-cb__more {
    display: block;
    padding: 10px 20px;
    font-weight: 700;
    color: var(--fc-accent)
}

.fc-opt {
    display: grid;
    gap: 8px
}

.fc-opt h3 {
    font-size: 14px;
    letter-spacing: 0
}

.fc-opt .link {
    justify-content: flex-start
}

.fc-opt p {
    color: var(--text-muted);
    font-size: 13px
}

.fc-cols {
    display: grid;
    gap: 10px;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm)
}

.fc-sum {
    display: grid;
    gap: 10px;
    padding: var(--sp-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2)
}

.fc-sum div {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4)
}

.fc-sum span {
    color: var(--text-muted)
}

.fc-err {
    color: var(--danger);
    font-size: 13px
}

.fc-list {
    margin: 8px 0 0;
    padding-left: 20px;
    list-style: disc
}

.fc-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: var(--panel);
    color: var(--panel-text);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    z-index: 1100;
    max-width: 90vw
}

.fc-tipi {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    cursor: help;
    border-radius: 50%
}

.fc-tipi:focus-visible {
    box-shadow: var(--focus-ring)
}

.fc-tip {
    position: fixed;
    z-index: 1200;
    max-width: 240px;
    background: var(--panel);
    color: var(--panel-text);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    text-transform: none;
    letter-spacing: 0
}

.fc-tip::before {
    content: "";
    position: absolute;
    top: -6px;
    left: var(--fc-ax, 50%);
    margin-left: -6px;
    border: 6px solid transparent;
    border-top: 0;
    border-bottom-color: var(--panel)
}

.fc-tip__l {
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline
}

/* base.css kills input focus outlines globally; keep a visible cue */
.fc .input:focus, .fc .fc-cb__btn:focus-visible {
    border-color: var(--brand)
}

.fc button:focus-visible, .fc a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring)
}

@media (max-width: 900px) {
    .fc-head, .fc-body {
        padding-left: var(--sp-4);
        padding-right: var(--sp-4)
    }

    .fc-cards {
        grid-template-columns:1fr
    }

    .fc-search {
        margin-left: 0;
        width: 100%
    }

    .fc-drawer__b {
        padding: var(--sp-4)
    }
}

.fc select.input {
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5z' fill='%23667085'/%3E%3C/svg%3E") no-repeat right 10px center/20px;
    padding-right: 36px
}

/* close date menu */
.fc-menu--range {
    min-width: 230px
}

.fc-menu__scroll {
    max-height: 240px;
    overflow: auto
}

.fc-menu--range button span {
    display: block
}

/* deals and goals drawer */
.fc-drawer--dg {
    width: 480px
}

.fc-drawer__b--dg {
    padding: 0;
    gap: 0;
    align-content: start
}

.fc-dg__top {
    padding: var(--sp-5) var(--sp-6);
    display: grid;
    gap: var(--sp-3);
    border-bottom: 1px solid var(--border)
}

.fc-dg__t {
    font-size: 20px
}

.fc-dl {
    display: grid;
    grid-template-columns:1fr auto;
    gap: 6px var(--sp-4);
    font-size: 13px
}

.fc-dl dt {
    color: var(--text-muted)
}

.fc-dl dd {
    margin: 0;
    text-align: right
}

.fc-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 var(--sp-4)
}

.fc-tabs button {
    padding: 12px var(--sp-4);
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px
}

.fc-tabs button.is-on {
    color: var(--text);
    font-weight: 700;
    border-bottom-color: var(--brand)
}

.fc-stwrap {
    position: relative;
    padding: var(--sp-3) var(--sp-6);
    display: flex;
    align-items: center;
    gap: 6px
}

.fc-stbtn {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.fc-menu--st {
    left: var(--sp-6);
    top: 100%;
    margin-top: 0;
    padding: var(--sp-2) 0;
    min-width: 240px;
    display: grid;
    max-height: 280px;
    overflow: auto
}

.fc-menu--st .check {
    display: flex;
    padding: 8px var(--sp-4);
    color: var(--text)
}

.fc-menu--st .check:hover {
    background: var(--surface-hover)
}

.fc .check input:indeterminate + .check__box {
    background: var(--brand);
    border-color: var(--brand)
}

.fc .check input:indeterminate + .check__box::after {
    width: 10px;
    height: 0;
    border: 0;
    border-top: 2px solid var(--brand-contrast);
    transform: none
}

.fc-deals-list {
    background: var(--surface-2);
    padding: var(--sp-4) var(--sp-4) var(--sp-2);
    display: grid;
    gap: var(--sp-3);
    min-height: 160px
}

.fc-deal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-3) var(--sp-4);
    display: grid;
    gap: 6px
}

.fc-deal__m {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap
}

.fc-deal__m span + span {
    padding-left: var(--sp-3);
    border-left: 1px solid var(--border-strong)
}

.fc-deal__m .fc-chip + span {
    border-left: 0;
    padding-left: 0
}

.fc-chip {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.fc-deal__m .fc-chip {
    padding-left: 0;
    border-left: 0
}

.fc-deal__n {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    font-size: 13px
}

.fc-down {
    color: var(--danger);
    font-size: 11px;
    border: 0 !important;
    padding: 0 !important
}

.fc-gl {
    padding: var(--sp-5) var(--sp-6);
    display: grid;
    gap: 8px
}

.fc-drawer__f--c {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2)
}

.fc-wt {
    border-bottom: 1px solid var(--text);
    padding-bottom: 4px
}

.fc-drawer__f--c .link {
    justify-content: center
}

.fc button.fc-deals {
    text-align: left
}

.fc button.fc-deals:hover {
    text-decoration: underline
}

.fc-pop {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: 330px;
    max-width: 80vw;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--sp-4) var(--sp-5);
    z-index: 70;
    color: var(--text);
    font-size: 13.5px;
    display: grid;
    gap: var(--sp-2)
}

.fc-pop ul {
    list-style: disc;
    padding-left: 20px;
    display: grid;
    gap: 4px
}

.fc-pop .link {
    display: inline
}

.fc-pop .fc-ext {
    margin-left: 4px
}

.fc-intro--l {
    text-align: left;
    padding: 0
}

.fc-note {
    padding: 14px var(--sp-4);
    border: 1px solid #f5c26b;
    background: #fdf6e3;
    border-radius: var(--radius-sm);
    font-size: 14px
}

.fc-schon {
    display: grid;
    gap: 4px
}

.fc-schon p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 0 30px
}

.fc-row2 {
    display: grid;
    grid-template-columns:1fr 160px;
    gap: var(--sp-4)
}

.fc .input:disabled {
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: not-allowed
}

/* pipeline multi-select */
.fc-menu--pipe {
    left: 0;
    top: 100%;
    margin-top: 6px;
    min-width: 260px;
    padding: var(--sp-2) 0;
    display: grid
}

.fc-menu--pipe .check {
    display: flex;
    padding: 10px var(--sp-4);
    color: var(--text)
}

.fc-menu--pipe .check:hover {
    background: var(--surface-hover)
}
/* submission drawer */
.fc-drawer__f--sb {
    justify-content: space-between;
    align-items: center
}

.fc-sbh {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--sp-4) var(--sp-6)
}

.fc-sbb {
    padding: var(--sp-5) var(--sp-6);
    display: grid;
    gap: var(--sp-4)
}

.fc-sbtype {
    display: grid;
    gap: 2px;
    font-size: 14px
}

.fc-sbtot {
    display: grid;
    gap: 2px
}

.fc-sbtot span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600
}

.fc-sbhist {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sp-4)
}

.fc-sbper {
    display: grid;
    gap: 6px
}

.fc-stwrap--sb {
    padding: 0
}

.fc-menu--sb {
    left: 0;
    top: 100%;
    margin-top: 6px;
    min-width: 240px;
    padding: var(--sp-2) 0;
    display: grid
}

.fc-menu--sb button {
    text-align: left;
    padding: 10px var(--sp-4)
}

.fc-menu--sb button:hover, .fc-menu--sb button.is-on {
    background: var(--surface-hover)
}

.fc-nav {
    display: flex;
    gap: 12px
}

.fc-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 20px;
    line-height: 1
}

.fc-nav button:disabled {
    opacity: .4;
    cursor: not-allowed
}

.fc-acc {
    border-top: 1px solid var(--border);
    padding: var(--sp-4) var(--sp-6)
}

.fc-acc__h {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left
}

.fc-acc__c {
    width: 8px;
    height: 8px;
    border: solid var(--text);
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
    margin: 0 4px;
    transition: transform .15s
}

.fc-acc__c.is-open {
    transform: rotate(45deg)
}

.fc-acc__b {
    display: grid;
    gap: var(--sp-3);
    padding: var(--sp-3) 0 0 26px;
    font-size: 14px
}

.fc-badge {
    margin-left: auto;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    background: var(--surface-2)
}

.fc-sbl {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 6px
}

.fc textarea.input {
    height: auto;
    padding: 10px 14px;
}

/* member page */
.fc-name__t--n {
    font-weight: 500
}

.fc-dfilt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: var(--sp-5) 0 var(--sp-3);
    font-size: 14px
}

.fc-menu--dfilt {
    max-height: 280px;
    overflow: auto
}

.fc-dcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden
}

.fc-dcard__t {
    display: flex;
    justify-content: flex-end;
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--border)
}

.fc-dscroll {
    overflow-x: auto
}

.fc-dtbl {
    border-collapse: collapse;
    min-width: 1500px;
    width: 100%;
    font-size: 14px
}

.fc-dtbl th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    border-bottom: 1px solid var(--border)
}

.fc-dtbl th button {
    font-weight: 500;
    display: inline-flex;
    gap: 8px;
    align-items: center
}

.fc-dtbl td {
    padding: 10px 16px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
    height: 44px
}

.fc-dtbl tbody tr:last-child td {
    border-bottom: 0
}

.fc-dtbl tbody tr:hover td {
    background: var(--surface-hover)
}

.fc-dadd {
    width: 110px;
    white-space: normal !important
}

.fc-dtbl th.fc-dadd {
    line-height: 1.2
}

.fc-num {
    display: block;
    text-align: right
}

.fc-dtbl th:nth-child(3), .fc-dtbl th:nth-child(4), .fc-dtbl th:nth-child(7) {
    text-align: right
}

.fc-link--u {
    text-decoration: none
}

.fc-link--u:hover {
    text-decoration: underline
}

.fc-dn {
    display: flex;
    align-items: center;
    gap: 12px
}

.fc-eye {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    display: none;
    align-items: center;
    justify-content: center
}

.fc-dtbl tr:hover .fc-eye, .fc-eye:focus-visible {
    display: inline-flex
}

.fc-dt {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.fc-cal {
    width: 16px;
    height: 16px
}

.fc-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid;
    font-weight: 700
}

.fc-score.is-none {
    border-color: var(--text-muted);
    color: var(--text-muted)
}

.fc-score.is-low {
    border-color: #f2545b
}

.fc-score.is-mid {
    border-color: #f5a623
}

.fc-score.is-hi {
    border-color: #00a38d
}

.fc-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    background: #fde8ef;
    color: #33475b;
    font-size: 12px
}

/* pagination */
.fc-pg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: var(--sp-4) 0;
    font-size: 14px
}

.fc-pg__a {
    color: var(--text-muted);
    font-weight: 700
}

.fc-pg__a:disabled {
    opacity: .5;
    cursor: not-allowed
}

.fc-pg__n {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-weight: 700
}

.fc-pg__n.is-on {
    border-color: var(--text);
    color: var(--text)
}

.fc-pg__e {
    color: var(--text-muted)
}

.fc-pg__sel {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px
}

.fc-menu--up {
    top: auto;
    bottom: 100%;
    margin: 0 0 8px;
    left: auto;
    right: 0;
    min-width: 180px;
    border-radius: var(--radius-lg)
}

/* inline edit */
.fc-ec {
    cursor: pointer
}

.fc-ec:hover {
    box-shadow: inset 0 -1px 0 var(--border-strong)
}

.fc-ed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 140px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    border-radius: 2px;
    box-shadow: var(--shadow)
}

.fc-ed--dt {
    justify-content: flex-start;
    gap: 6px;
    border-width: 0 0 1px
}

.fc-ed--in {
    width: 100%;
    min-width: 120px;
    font: inherit
}

.fc-sl {
    width: 240px;
    max-width: 90vw;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2) 0
}

.fc-sl__s {
    position: relative;
    padding: 8px 12px
}

.fc-sl__s svg {
    position: absolute;
    right: 24px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px
}

.fc-sl__s .input {
    border-radius: 999px;
    padding-right: 36px
}

.fc-sl__l {
    max-height: 200px;
    overflow: auto;
    display: grid
}

.fc-sl__l button {
    text-align: left;
    padding: 9px 16px
}

.fc-sl__l button:hover, .fc-sl__l button.is-on {
    background: var(--surface-hover)
}

.fc-sl__n {
    padding: 12px 16px;
    color: var(--text-muted)
}

.fc-calp {
    width: 310px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-4)
}

.fc-calp__h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--sp-3)
}

.fc-calp__h button {
    font-size: 22px;
    padding: 0 10px
}

.fc-calp__w, .fc-calp__g {
    display: grid;
    grid-template-columns:repeat(7, 1fr);
    text-align: center
}

.fc-calp__w span {
    font-weight: 700;
    padding: 6px 0
}

.fc-cd {
    height: 32px;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto;
    width: 32px
}

.fc-cd.is-out {
    color: var(--text-muted);
    font-weight: 500
}

.fc-cd:hover {
    background: var(--surface-hover)
}

.fc-cd.is-today {
    color: #d94f3d;
    position: relative
}

.fc-cd.is-today::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 3px;
    height: 3px;
    margin-left: -1.5px;
    border-radius: 50%;
    background: #d94f3d
}

.fc-cd.is-sel {
    background: var(--text);
    color: var(--surface)
}

.fc-calp__f {
    display: flex;
    gap: 8px;
    margin-top: var(--sp-3)
}

.fc-calp__f .btn-crm {
    flex: 1;
    border-radius: 999px
}

/* choose columns modal */
.fc-modal--cols {
    width: 1000px;
    max-width: 96vw;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.fc-cm {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: var(--sp-6);
    padding: var(--sp-5) var(--sp-8);
    height: 430px
}

.fc-cm__l, .fc-cm__r {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    min-height: 0
}

.fc-cm__r {
    border-left: 1px solid var(--border);
    padding-left: var(--sp-6)
}

.fc .fc-search--cm {
    margin: 0;
    width: 100%
}

.fc-cm__list, .fc-cm__sel {
    flex: 1;
    overflow: auto;
    display: grid;
    align-content: start;
    gap: 2px
}

.fc-cm__g {
    font-weight: 700;
    padding: var(--sp-2) 0
}

.fc-cm__list .check {
    display: flex;
    padding: 7px 8px
}

.fc-cm__c {
    font-size: 13px;
    margin: 0
}

.fc-cm__it {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin-bottom: 8px
}

.fc-cm__it[draggable=true] {
    cursor: grab
}

.fc-cm__it.is-fixed {
    padding-left: 28px
}

.fc-grip {
    color: var(--text-muted);
    letter-spacing: -3px;
    font-size: 14px
}

.fc-cm__x {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1
}

.fc-modal__f--cm {
    align-items: center;
    flex-wrap: wrap
}

.fc-cm__lk {
    display: grid;
    gap: 2px
}

.fc-cm__lk .link {
    justify-content: flex-start;
    font-weight: 700
}

/* Eye button with Preview tooltip */
.fc-eye[data-tooltip] {
    position: relative;
}

.fc-eye[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.fc-eye[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111827;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 100;
}

.fc-eye[data-tooltip]:hover::after,
.fc-eye[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ============================================================================
 *  SIDE DRAWER: Deal Preview Details (Specific to Deal object, reuses lp-side)
 * ========================================================================== */
.fc-deal-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    background: var(--surface-2, #f3f4f6);
    border: 1px solid var(--border-strong, #cbd5e1);
    color: var(--text-muted);
}

.fc-deal-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.fc-deal-meta-item strong {
    color: var(--text);
    font-weight: 700;
}

.fc-deal-meta-item span {
    color: var(--text);
}

.fc-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fc-meta-date svg {
    width: 13px;
    height: 13px;
    color: var(--text-muted);
}

/* Attribution Model Dropdown inside drawer */
.fc-attr-model-menu {
    width: 432px;
    max-width: calc(100vw - 48px);
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    z-index: 10050;
}

/* ===== Create goal wizard (full screen, 3 steps) ===== */
.fc-gw {
    --fc-orange: var(--brand);
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    color: var(--text)
}

.fc-gw :where(h2,h3,h4,p) {
    margin: 0
}

.fc-gw__top {
    display: grid;
    grid-template-columns:140px minmax(0, 1fr) 140px;
    align-items: start;
    gap: 0;
    padding: 14px 40px 10px 40px;
    flex: none
}

.fc-gw__ttl {
    font-weight: 700;
    font-size: 14px;
    padding-top: 6px
}

.fc-gw__cnt {
    justify-self: end;
    font-size: 14px;
    padding-top: 6px;
    white-space: nowrap
}

.fc-gw__steps {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none
}

.fc-gw__s {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 14px
}

.fc-gw__s:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 11px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--text)
}

.fc-gw__s.is-on:not(:first-child)::before, .fc-gw__s.is-done:not(:first-child)::before {
    background: var(--fc-orange)
}

.fc-gw__dot {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff
}

.fc-gw__dot svg {
    width: 16px;
    height: 16px
}

.fc-gw__s.is-on .fc-gw__dot {
    border-color: var(--fc-orange)
}

.fc-gw__s.is-done .fc-gw__dot {
    border-color: var(--fc-orange);
    background: var(--fc-orange)
}

.fc-gw__b {
    flex: 1;
    overflow: auto;
    border-bottom: 1px solid var(--border-strong);
    padding: 0 24px
}

.fc-gw__c {
    max-width: 600px;
    margin: 0 auto;
    padding: 36px 0 24px 0;
}

.fc-gw__c--w {
    max-width: none;
    padding: 36px 16px 80px
}

.fc-gw__c--n {
    max-width: 650px
}

.fc-gw__h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 38px
}

.fc-gw__h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 8px
}

.fc-gw__f {
    margin-bottom: 28px
}

.fc-gw__lbl {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px
}

.fc-gw__hint {
    font-size: 14px;
    color: var(--text);
    margin-top: 6px
}

.fc-gw__hint--b {
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 8px
}

.fc-gw__hint .link {
    font-weight: 700
}

.fc-gw .input {
    height: 40px;
    width: 100%
}

.fc-gw .input:disabled {
    background: var(--surface-3);
    color: var(--text-muted)
}

.fc-gw__def {
    margin-top: 14px
}

.fc-gw__f > .fc-gw__def {
    border-radius: 999px
}

.fc-gw__rd {
    margin-bottom: 10px
}

.fc-gw__radio {
    font-size: 16px;
    gap: 10px
}

.fc-gw__rb {
    border-radius: 50%
}

.fc-gw__ind {
    margin: 10px 0 0 32px
}

.fc-gw__x {
    margin: 14px 0 10px;
    font-size: 16px
}

.fc-gw__ms {
    position: relative
}

.fc-gw__msb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 4px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    text-align: left;
    cursor: pointer
}

.fc-gw__msb:focus-visible, .fc-gw__msb[aria-expanded="true"] {
    border-color: var(--brand);
    outline: 0
}

.fc-gw__msb.is-dis {
    background: var(--surface-3);
    color: var(--text-muted);
    cursor: not-allowed
}

.fc-gw__msv {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0
}

.fc-gw__ph {
    font-weight: 500
}

.fc-gw__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 6px 2px 4px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface-3);
    font-size: 13px
}

.fc-gw__chip button {
    font-size: 16px;
    line-height: 1;
    color: var(--text-muted);
    padding: 0 2px
}

.fc-gw__av {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--text);
    font-size: 11px;
    font-weight: 600
}
.fc-gw__opt:hover .fc-gw__av,
.fc-gw__chip .fc-gw__av {background: var(--surface) !important;}
.fc-gw__av--t svg {
    width: 14px;
    height: 14px
}

.fc-gw__pn {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 300px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden
}

.fc-gw__pn--up {
    top: auto;
    bottom: calc(100% + 4px);
    padding: 6px 0
}

.fc-search--gw {
    position: relative;
    display: block;
    padding: 10px;
    width: 100%;
}

.fc-search--gw .input {
    height: 40px;
    border-radius: 999px;
    border-color: var(--brand);
    padding-right: 38px
}

.fc-search--gw svg {
    position: absolute;
    right: 24px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 16px;
    height: 16px;
    color: var(--text-muted)
}

.fc-gw__list {
    overflow: auto;
    padding: 0 0 6px
}

.fc-gw__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer
}

.fc-gw__opt:hover {
    background: var(--surface-3)
}

.fc-gw__none {
    padding: 12px 16px;
    color: var(--text-muted)
}

.fc-gw__pi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px
}

.fc-gw__pi small {
    color: var(--text-muted);
    font-size: 12px
}

.fc-gw__pi:hover, .fc-gw__pi:focus-visible, .fc-gw__pi.is-on {
    background: var(--surface-3);
    outline: 0
}

.fc-gw__ft {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px
}

.fc-gw__fl {
    display: flex;
    align-items: center;
    gap: 18px
}

.fc-gw__cn {
    font-weight: 700
}

.fc-gw .btn-crm:disabled {
    background: var(--surface-3);
    border-color: var(--surface-3);
    color: var(--text-muted);
    cursor: not-allowed
}

.fc-gw__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.fc-gw__tip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted)
}

.fc-gw__tip svg {
    width: 18px;
    height: 18px;
    flex: none
}

.fc-gw__ta {
    display: flex;
    gap: 10px
}

.fc-gw__bulk {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm)
}

.fc-gw__ap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700
}

.fc-gw__ap svg {
    width: 16px;
    height: 16px
}

.fc-gw__bx {
    margin-left: auto
}

.fc-gw__tw {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 4px
}

.fc-gw__t {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
    table-layout: fixed;
    width: max-content
}

.fc-gw__t th, .fc-gw__t td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    font-weight: 400
}

.fc-gw__t thead th {
    color: var(--text-muted);
    border-bottom: 1px solid var(--text)
}

.fc-gw__t tfoot th, .fc-gw__t tfoot td {
    border-bottom: 0;
    font-weight: 700
}

.fc-gw__t tfoot tr th, .fc-gw__t tfoot tr td {
    border-top: 1px solid var(--text)
}

.fc-gw__t col, .fc-gw__t th, .fc-gw__t td {
    min-width: 150px
}

.fc-gw__t .fc-gw__k1 {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 80px;
    min-width: 80px
}

.fc-gw__t .fc-gw__k2 {
    position: sticky;
    left: 80px;
    z-index: 3;
    width: 240px;
    min-width: 240px;
    border-right: 3px solid var(--border-strong)
}

.fc-gw__t tbody th.fc-gw__k2 {
    font-weight: 500
}

.fc-gw__t td:nth-child(3) {
    min-width: 290px
}

.fc-gw__t td:last-child, .fc-gw__t th:last-child {
    min-width: 190px
}

.fc-gw__rn {
    display: inline-flex;
    align-items: center;
    gap: 12px
}

.fc-gw__pbox {
    display: block;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-3)
}

.fc-gw__pc {
    display: inline-block;
    max-width: 100%;
    padding: 2px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px
}

.fc-gw__n {
    width: 152px;
    min-width: 152px;
    text-align: left
}

.fc-gw__ym {
    color: var(--text-muted)
}

.fc-gw__nt {
    margin: 10px 0 24px
}

.fc-gw__hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0 0 24px
}

.fc-gw__nl {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.fc-gw__ni .check {
    font-size: 16px;
    gap: 10px
}

.fc-gw__ni p {
    margin: 2px 0 0 32px;
    color: var(--text-muted);
    font-size: 14px
}

.fc-gw__bd {
    display: inline-block;
    padding: 1px 10px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500
}

.fc-gw__bd.is-blue {
    background: #e5f1fb;
    border-color: #2f80d1;
    color: #1b3a57
}

.fc-gw__bd.is-green {
    background: #e0f2e6;
    border-color: #4a9a62;
    color: #1d3d29
}

.fc-gw__bd.is-red {
    background: #fde6e6;
    border-color: #d9534f;
    color: #5a1d1c
}

/* dialogs on top of the wizard */
.fc-gw__ov {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    background: rgba(16, 24, 40, .45);
    overflow: auto
}

.fc-gw__dlg {
    width: min(100%, 600px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow)
}

.fc-gw__dlg--l {
    width: min(100%, 600px)
}

.fc-gw__dh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border)
}

.fc-gw__dh h2 {
    font-size: 20px;
    font-weight: 600
}

.fc-gw__dh--big {
    padding: 34px 32px 24px
}

.fc-gw__dh--big h2 {
    font-size: 28px;
    font-weight: 400
}

.fc-gw__db {
    padding: 20px 32px 28px
}

.fc-gw__db .fc-gw__h3:first-child {
    margin-top: 4px
}

.fc-gw__df {
    display: flex;
    gap: 12px;
    margin-top: 24px
}

.fc-gw__def {
    display: flex;
    gap: 16px;
    justify-content: space-between
}

.fc-gw__def dl {
    margin: 14px 0 0
}

.fc-gw__def dl div {
    display: flex;
    gap: 10px;
    margin-bottom: 16px
}

.fc-gw__def dt {
    font-weight: 700
}

.fc-gw__def dd {
    margin: 0
}

.fc-gw__art {
    width: 140px;
    height: 130px;
    flex: none
}

.fc-gw__q {
    font-size: 14px;
    font-weight: 700;
    margin: 12px 0 4px
}

.fc-gw__fo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-weight: 700
}

.fc-gw__grp {
    margin: 14px 22px 0;
    padding: 14px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 14px
}

.fc-gw__grp b:first-child {
    display: block;
    font-size: 16px;
    margin-bottom: 10px
}

.fc-gw__grp p {
    padding: 8px 8px;
    border-radius: 10px;
    background: var(--surface-3)
}

.fc-gw__amt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px
}

.fc-gw__amt span {
    font-weight: 500;
    white-space: nowrap
}

.fc-gw__warn {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 12px
}

.fc-gw__warn svg {
    width: 16px;
    height: 16px;
    flex: none;
    margin-top: 3px
}

.fc-gw__ul {
    margin: 6px 0 0;
    padding-left: 22px
}

.fc-gw__tpl {
    display: inline-block;
    margin: 16px 0 0;
    font-weight: 700
}

.fc-gw__dz {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 100px;
    padding: 22px 16px;
    border: 1px dashed var(--border-strong);
    border-radius: 4px;
    background: var(--surface-3);
    text-align: center
}

.fc-gw__dz.is-over {
    border-color: var(--brand);
    background: var(--brand-soft)
}

.fc-gw__dz p {
    display: flex;
    align-items: center;
    gap: 6px
}

.fc-gw__dz p svg {
    width: 20px;
    height: 20px
}

.fc-gw__dz small {
    color: var(--text-muted)
}

.fc-gw__dz .link {
    font-weight: 700
}
.fc-sbhist .fc-nav button {
    font-size: 26px;
    line-height: 30px;
    font-weight: 100;
    display: flex;
    justify-content: center;
    align-items: normal;
}
@media (max-width: 991px) {
    .fc-gw__sl {font-size: 12px}
}
@media (max-width: 767px) {
    .fc-row2 {grid-template-columns:1fr !important;}
}
@media (max-width: 720px) {
    .fc-gw__top {
        grid-template-columns:1fr auto;
        padding: 12px 16px
    }

    .fc-gw__steps {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 8px
    }
    .fc-gw__sl {font-size: 10px}
    .fc-gw__b {
        padding: 0 16px
    }

    .fc-gw__ft {
        padding: 12px 16px
    }

    .fc-gw__dh, .fc-gw__db {
        padding-left: 18px;
        padding-right: 18px
    }

    .fc-gw__def {
        flex-direction: column
    }
}

/* fixes: scroll lock, chip close, dropdown width, radio look */
html.fc-lock, body.fc-lock {
    overflow: hidden
}

.fc-gw__msb {
    min-width: 0;
    box-sizing: border-box
}

.fc-gw__msb.is-dis {
    pointer-events: none
}

.fc-gw__msv {
    flex: 1
}

.fc-gw__msb > .fc-caret {
    flex: none
}

.fc-gw__chip {
    max-width: 100%;
    min-width: 0
}

.fc-gw__chip > span:not(.fc-gw__av) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.fc-gw__chip button {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    line-height: 1
}

.fc-gw__chip button:hover {
    background: var(--border-strong);
    color: var(--text)
}

.fc-gw__chip button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px
}

.fc-gw__pn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0
}

.fc-gw__pi {
    box-sizing: border-box
}

.fc-gw__pf {
    flex: none;
    padding: 14px 20px;
    border-top: 1px solid var(--border)
}

.fc-gw__pn .fc-gw__pi, .fc-gw__pn .fc-gw__pf {
    overflow-wrap: anywhere
}

.fc-gw__rb {
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 50%
}

.fc-gw__rb::before, .fc-gw__rb::after {
    content: none !important;
    display: none !important
}

.fc-gw__radio input:checked + .fc-gw__rb {
    background: var(--brand);
    background-image: none;
    border-color: var(--brand);
    box-shadow: inset 0 0 0 4px var(--surface)
}

.fc-gw__radio input:focus-visible + .fc-gw__rb {
    outline: 2px solid var(--brand);
    outline-offset: 2px
}
.fc-gw__dlg[aria-label="Add user"] {
    overflow: visible;
}
.fc-drawer__b .fc-opt .link {text-align: left;}
.fc-crumb span, .fc-crumb .is-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted, #475467);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.fc-crumb .is-link {cursor: pointer;color: var(--brand);}
.fc-crumb .is-link:hover {text-decoration: underline;}
.fc-sub .fc-crumb {padding: 6px 0;}
.fc-gw__b .btn-crm.btn-crm--outline.btn-crm--sm.fc-gw__def {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* phone: no sticky table cells */
@media (max-width: 720px) {
    .fc-tbl th, .fc-tbl td, .fc-gw__t th, .fc-gw__t td {
        position: static !important;
        left: auto !important;
        right: auto !important;
        box-shadow: none
    }

    .fc-gw__t .fc-gw__k1, .fc-gw__t .fc-gw__k2 {
        width: auto;
        min-width: 0
    }

    .fc-gw__t .fc-gw__k2 {
        min-width: 160px;
        border-right: 1px solid var(--border)
    }

    .fc-tbl th:first-child, .fc-tbl td:first-child, .fc-tbl th:last-child, .fc-tbl td:last-child {
        min-width: 160px
    }
    .fc-cm {grid-template-columns: 1fr;}
    .fc-modal.fc-modal--cols[aria-label="Choose columns"] .fc-modal__h,
    .fc-modal.fc-modal--cols[aria-label="Choose columns"] .fc-modal__f,
    .fc-modal.fc-modal--cols[aria-label="Choose columns"] .fc-cm {padding: 10px var(--sp-3);}
    .fc-modal.fc-modal--cols[aria-label="Choose columns"] .fc-modal__h span {font-size: 14px;}
    .fc-modal.fc-modal--cols[aria-label="Choose columns"] .fc-cm__lk .link {font-size: 10px;}
    .fc-modal.fc-modal--cols[aria-label="Choose columns"] .fc-cm {height: 420px;}
}
