:root {
    --yc-font-ui: Manrope, "Avenir Next", "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif;
    --yc-ink: #202428;
    --yc-muted: #68717d;
    --yc-muted-strong: #4e5762;
    --yc-line: #e6e7e9;
    --yc-line-strong: #d5d8dc;
    --yc-surface-subtle: #fbfbfa;
    --yc-violet: #5f63d8;
    --yc-violet-soft: #eeefff;
    --yc-coral: #d96f3f;
    --yc-coral-soft: #fff0e8;
    --yc-teal: #087f6d;
    --yc-teal-soft: #e4f5f1;
    --yc-amber: #a95f05;
    --yc-amber-soft: #fff4dd;
    --yc-danger: #ba3b45;
    --yc-danger-soft: #fff0f1;
}

html,
body {
    color: var(--yc-ink);
    font-family: var(--yc-font-ui);
}

body {
    font-weight: 450;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
}

/* Chosen ships with a generic sans-serif override in its generated CSS. */
.chosen-container-single .chosen-search input[type="text"],
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    font-family: inherit !important;
}

/* Shared application shell */
#main-menu {
    font-family: var(--yc-font-ui);
    letter-spacing: -0.008em;
}

#main-menu.yc-main-navigation {
    border: 1px solid rgb(213 216 220 / 82%);
    background: linear-gradient(
        180deg,
        rgb(255 255 255 / 72%),
        rgb(238 239 255 / 58%)
    );
    box-shadow: 0 18px 48px rgb(35 39 43 / 7%);
    color: var(--yc-ink);
    backdrop-filter: blur(14px);
}

.yc-main-navigation__brand {
    color: var(--yc-ink);
}

.yc-main-navigation__brand:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgb(95 99 216 / 38%);
    outline-offset: 4px;
}

.yc-main-navigation__brand img {
    display: block;
    width: 201px;
    height: auto;
    max-width: 100%;
}

.yc-main-navigation__toggle {
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--yc-line-strong);
    background: rgb(255 255 255 / 82%);
    color: var(--yc-muted-strong);
    box-shadow: 0 5px 16px rgb(35 39 43 / 7%);
}

.yc-main-navigation__toggle:hover,
.yc-main-navigation__toggle:focus-visible {
    border-color: #c3c6ca;
    background: #fff;
    color: var(--yc-ink);
}

.yc-main-navigation__toggle:focus-visible,
#main-menu.yc-main-navigation .button-menu:focus-visible {
    outline: 3px solid rgb(95 99 216 / 38%);
    outline-offset: 2px;
}

.yc-main-navigation__toggle svg path {
    fill: currentColor;
}

#main-menu .button-menu {
    font-size: 15px;
    font-weight: 550;
    line-height: 1.35;
}

#main-menu.yc-main-navigation .button-menu {
    position: relative;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--yc-muted-strong);
    transition: background-color 130ms ease, border-color 130ms ease,
        box-shadow 130ms ease, color 130ms ease;
}

#main-menu.yc-main-navigation .button-menu:hover,
#main-menu.yc-main-navigation .button-menu:focus-visible {
    border-color: rgb(213 216 220 / 74%);
    background: rgb(255 255 255 / 68%);
    color: var(--yc-ink);
}

#main-menu .button-menu.item-active {
    font-weight: 650;
}

#main-menu.yc-main-navigation .button-menu.item-active {
    border-color: #dfe0f1;
    background: #fff;
    box-shadow: 0 8px 22px rgb(35 39 43 / 8%);
    color: #4e52be;
}

#main-menu.yc-main-navigation .button-menu.item-active::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -4px;
    width: 3px;
    border-radius: 999px;
    background: var(--yc-violet);
    content: "";
}

#main-menu .button-menu + div .button-menu {
    font-size: 13.5px;
}

#main-menu.yc-main-navigation .button-menu + div {
    margin: 2px 0 5px 11px;
    padding-left: 9px;
    border-left: 1px solid rgb(104 113 125 / 18%);
}

@media (min-width: 768px) {
    #main-menu.yc-main-navigation.wide {
        width: 300px;
        min-width: 300px;
    }

    #main-menu.yc-main-navigation.narrow {
        width: 72px;
        min-width: 72px;
    }
}

@media (max-width: 767px) {
    #main-menu.yc-main-navigation {
        position: relative;
        top: auto;
        width: 100%;
        min-width: 0;
        height: auto;
        padding: 12px 14px;
        border-radius: 18px;
    }

    .yc-main-navigation__header {
        min-height: 52px;
        margin: 0;
        padding: 4px 2px;
    }

    .yc-main-navigation__brand {
        display: block;
    }

    .yc-main-navigation__brand img {
        width: min(190px, calc(100vw - 128px));
    }

    .yc-main-navigation__toggle {
        width: 40px;
        height: 40px;
        transform: rotate(-90deg);
    }

    #main-menu.mobile-open .yc-main-navigation__toggle {
        transform: rotate(90deg);
    }

    #main-menu .yc-main-navigation__links {
        display: none;
        flex: none;
        max-height: calc(100svh - 150px);
        margin-top: 8px;
        padding-top: 12px;
        overflow-y: auto;
        border-top: 1px solid var(--yc-line);
    }

    #main-menu.mobile-open .yc-main-navigation__links {
        display: flex;
    }

    #main-menu.yc-main-navigation .button-menu {
        min-height: 48px;
        padding: 10px 12px;
    }
}

.yc-table-navigation {
    color: var(--yc-muted-strong);
    font-family: var(--yc-font-ui);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 520;
    letter-spacing: -0.008em;
}

.yc-table-navigation label {
    color: var(--yc-muted);
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.015em;
}

.yc-table-navigation select {
    color: var(--yc-ink);
    font-size: 13px;
    font-weight: 600;
}

.yc-app-footer {
    color: var(--yc-muted);
    font-family: var(--yc-font-ui);
    font-size: 12.5px;
    font-weight: 520;
    letter-spacing: -0.006em;
}

.yc-app-footer a {
    color: var(--yc-muted-strong);
    font-weight: 600;
}

.yc-app-footer p {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.yc-version-chip {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid var(--yc-line);
    border-radius: 999px;
    background: rgb(255 255 255 / 55%);
    color: var(--yc-muted-strong);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .yc-main-navigation__toggle,
    #main-menu.yc-main-navigation .button-menu {
        transition-duration: 0.01ms !important;
    }
}

.card-title,
h1,
h2,
h3 {
    letter-spacing: -0.018em;
}

.card.card-border {
    border-color: var(--yc-line);
    box-shadow: 0 1px 2px rgb(25 31 36 / 4%),
        0 8px 24px rgb(25 31 36 / 3.5%);
}

/* Analytics accents */
.yc-analytics-highlight {
    color: var(--yc-violet);
    font-variant-numeric: tabular-nums;
}

.yc-analytics-tabs {
    gap: 24px;
    border-bottom: 1px solid var(--yc-line);
}

.yc-analytics-tabs .tablinks {
    margin-bottom: -1px;
    padding: 11px 1px 12px;
    border-bottom: 2px solid transparent;
    color: var(--yc-muted-strong);
    transition: border-color 120ms ease, color 120ms ease;
}

.yc-analytics-tabs .tablinks:hover {
    color: var(--yc-ink);
}

.yc-analytics-tabs .tablinks.is-active {
    border-bottom-color: var(--yc-violet);
    color: var(--yc-ink);
    font-weight: 650;
}

/* Shared data tables */
.yc-table {
    border-collapse: collapse;
    color: #343a40;
    font-variant-numeric: tabular-nums;
}

.yc-table th,
.yc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--yc-line);
    text-align: left;
    vertical-align: middle;
}

.yc-table th {
    background: var(--yc-surface-subtle);
    color: var(--yc-muted);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.065em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
}

.yc-table .yc-table__sortable {
    border-radius: 0;
    transition: background-color 120ms ease, color 120ms ease;
}

.yc-table .yc-table__sortable:hover {
    background: #f0f1f2;
    color: var(--yc-ink);
}

.yc-table .yc-table__row {
    transition: background-color 120ms ease;
}

.yc-table .yc-table__row:hover {
    background: #fafafa;
}

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

.yc-table .yc-table__center,
.yc-table .yc-table__center > div {
    text-align: center;
}

.yc-table .yc-table__center > div {
    justify-content: center;
}

.yc-table .yc-table__empty {
    padding: 3.5rem 2.5rem;
}

.yc-table td[data-column$="Guid"],
.yc-table td[data-column="Guid"] {
    overflow: hidden;
    color: var(--yc-muted-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yc-table .entity-select-checkbox {
    width: 15px;
    height: 15px;
    accent-color: var(--yc-violet);
}

.yc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.yc-status-badge::before {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.yc-status-badge--new {
    background: var(--yc-coral-soft);
    color: #b65a32;
}

.yc-status-badge--progress {
    background: var(--yc-violet-soft);
    color: #5358c4;
}

.yc-status-badge--complete {
    background: var(--yc-teal-soft);
    color: var(--yc-teal);
}

.yc-status-badge--declined {
    background: var(--yc-danger-soft);
    color: var(--yc-danger);
}

/* Shared and contextual notifications */
.yc-toast {
    --yc-toast-tone: var(--yc-violet);
    --yc-toast-tone-soft: var(--yc-violet-soft);
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: grid;
    grid-template-columns: 4px 34px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: start;
    width: min(370px, calc(100% - 32px));
    padding: 12px 12px 12px 0;
    border: 1px solid var(--yc-line);
    border-radius: 14px;
    background: rgb(255 255 255 / 98%);
    box-shadow: 0 16px 44px rgb(25 31 36 / 16%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 170ms ease, transform 170ms ease,
        visibility 0s linear 170ms;
}

.yc-toast.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.yc-toast--info {
    --yc-toast-tone: var(--yc-violet);
    --yc-toast-tone-soft: var(--yc-violet-soft);
}

.yc-toast--success {
    --yc-toast-tone: var(--yc-teal);
    --yc-toast-tone-soft: var(--yc-teal-soft);
}

.yc-toast--warning {
    --yc-toast-tone: var(--yc-amber);
    --yc-toast-tone-soft: var(--yc-amber-soft);
}

.yc-toast--error {
    --yc-toast-tone: var(--yc-danger);
    --yc-toast-tone-soft: var(--yc-danger-soft);
}

.yc-toast__accent {
    width: 4px;
    height: 100%;
    min-height: 46px;
    border-radius: 0 4px 4px 0;
    background: var(--yc-toast-tone);
}

.yc-toast__icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--yc-toast-tone-soft);
    color: var(--yc-toast-tone);
}

.yc-toast__icon svg {
    width: 17px;
    height: 17px;
}

.yc-toast__title {
    margin-top: 1px;
    color: var(--yc-ink);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.35;
}

.yc-toast__message {
    margin-top: 2px;
    color: var(--yc-muted-strong);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.45;
}

.yc-toast__close {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8a929b;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

.yc-toast__close:hover {
    background: #f2f3f4;
    color: var(--yc-ink);
}

.yc-toast__close:focus-visible {
    outline: 2px solid var(--yc-violet);
    outline-offset: 2px;
}

.yc-toast__close svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 640px) {
    .yc-table th,
    .yc-table td {
        padding-right: 12px;
        padding-left: 12px;
    }

    .yc-toast {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yc-table .yc-table__sortable,
    .yc-table .yc-table__row,
    .yc-analytics-tabs .tablinks,
    .yc-toast,
    .yc-toast__close {
        transition-duration: 0.01ms;
    }
}
