/* Reusable components. */

.icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 2.25rem;
    padding: 0 var(--sp-4);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    background: var(--accent);
    color: var(--text-inverse);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}

.btn:hover { background: var(--accent-hover); color: var(--text-inverse); }

.btn--secondary {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn--secondary:hover { background: var(--surface-sunken); color: var(--text); }

.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-sunken); color: var(--text); }

.btn--danger { background: var(--danger); color: var(--surface); }
.btn--danger:hover { background: var(--danger-hover); color: var(--surface); }

.btn--sm { min-height: 1.875rem; padding: 0 var(--sp-3); font-size: var(--fs-sm); }
.btn--icon { padding: 0; width: 2.25rem; }
.btn--block { width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn[data-loading]::before {
    content: "";
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .btn[data-loading]::before { animation-duration: 2s; }
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--border);
}

.card__body { padding: var(--sp-5); }

.card__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--border);
}

/* Forms */
.field { display: grid; gap: var(--sp-1); align-content: start; }

.field__label { font-weight: 500; }

.field__required { color: var(--danger); margin-left: 2px; }

.field__help { font-size: var(--fs-sm); color: var(--text-muted); }

.field__error { font-size: var(--fs-sm); color: var(--danger); }

.input,
.select,
.textarea {
    width: 100%;
    min-height: 2.25rem;
    padding: var(--sp-2) var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.textarea { min-height: 6rem; resize: vertical; }

.input::placeholder,
.textarea::placeholder { color: var(--text-muted); opacity: 0.8; }

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
    border-radius: var(--r-md);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--danger); }

.input:disabled,
.select:disabled,
.textarea:disabled { background: var(--surface-sunken); color: var(--text-muted); }

.check {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

.check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--sp-2);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 0.125rem var(--sp-2);
    border-radius: var(--r-full);
    background: var(--surface-sunken);
    color: var(--text);
    font-size: var(--fs-xs);
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.badge--accent { background: var(--accent-soft); color: var(--accent-text); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }

/* Alerts */
.alert {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--border);
    border-left-width: 4px;
    border-radius: var(--r-md);
    background: var(--surface);
}

.alert--success { border-left-color: var(--success); background: var(--success-soft); }
.alert--warning { border-left-color: var(--warning); background: var(--warning-soft); }
.alert--danger { border-left-color: var(--danger); background: var(--danger-soft); }
.alert--info { border-left-color: var(--info); background: var(--info-soft); }

/* Tables */
.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.table th,
.table td {
    padding: var(--sp-3) var(--sp-4);
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.table th {
    position: sticky;
    top: 0;
    background: var(--surface-sunken);
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-sunken); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
}

.pagination__list {
    display: flex;
    gap: var(--sp-1);
    padding: 0;
    list-style: none;
}

.pagination__item {
    display: grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 var(--sp-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

a.pagination__item:hover { background: var(--surface-sunken); color: var(--text); }

.pagination__item[aria-current="page"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-inverse);
}

.pagination__item[aria-disabled="true"] { opacity: 0.5; }

/* Empty state */
.empty {
    display: grid;
    justify-items: center;
    gap: var(--sp-3);
    padding: var(--sp-8) var(--sp-4);
    text-align: center;
    color: var(--text-muted);
}

.empty__title { color: var(--text); font-size: var(--fs-lg); }

/* Dialog */
.dialog {
    width: min(32rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface-raised);
    color: var(--text);
    box-shadow: var(--shadow-2);
}

.dialog::backdrop { background: rgb(0 0 0 / 0.5); }

.dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--border);
}

.dialog__body { padding: var(--sp-5); overflow-y: auto; }

.dialog__footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--border);
}

/* Toasts */
.toasts {
    position: fixed;
    right: var(--sp-4);
    bottom: var(--sp-4);
    z-index: 60;
    display: grid;
    gap: var(--sp-2);
    width: min(24rem, calc(100vw - 2rem));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    border-left: 4px solid var(--info);
    background: var(--surface-raised);
    box-shadow: var(--shadow-2);
}

.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast__message { flex: 1; }

.toast__close {
    border: 0;
    background: none;
    padding: 0;
    color: var(--text-muted);
}

/* Definition list used on detail pages */
.dl {
    display: grid;
    grid-template-columns: minmax(8rem, max-content) 1fr;
    gap: var(--sp-2) var(--sp-5);
}

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

@media (max-width: 600px) {
    .dl { grid-template-columns: 1fr; gap: 0; }
    .dl dd { margin-bottom: var(--sp-3); }
    .card__body, .card__header, .card__footer { padding-inline: var(--sp-4); }
}

/* Filter bar above list pages */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    align-items: end;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.filter-bar__actions { display: flex; gap: var(--sp-2); }

.sort-link {
    display: inline-flex;
    gap: var(--sp-1);
    color: inherit;
    text-decoration: none;
}

.sort-link:hover,
.sort-link[aria-current="true"] { color: var(--text); }

.cluster--between { justify-content: space-between; }

.page-alert { margin-bottom: var(--sp-4); }

.content > .alert { margin-bottom: var(--sp-4); }

/* User menu in the top bar (native <details>, works without JavaScript) */
.menu { position: relative; }

.menu > summary {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-1) var(--sp-2);
    border-radius: var(--r-md);
    cursor: pointer;
    list-style: none;
}

.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--surface-sunken); }

.avatar {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + var(--sp-1));
    z-index: 30;
    min-width: 13rem;
    padding: var(--sp-2);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
}

.menu__meta {
    padding: var(--sp-2) var(--sp-3);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--sp-2);
}

.menu__item {
    display: block;
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    color: var(--text);
    text-align: left;
    text-decoration: none;
}

.menu__item:hover { background: var(--surface-sunken); color: var(--text); }

@media (max-width: 600px) {
    .menu__name { display: none; }
}

/* Tags: a fixed palette of classes (inline colours are blocked by the CSP) */
.tag--slate { background: var(--surface-sunken); color: var(--text); }
.tag--red { background: var(--danger-soft); color: var(--danger); }
.tag--amber { background: var(--warning-soft); color: var(--warning); }
.tag--green { background: var(--success-soft); color: var(--success); }
.tag--blue { background: var(--info-soft); color: var(--info); }
.tag--indigo { background: var(--accent-soft); color: var(--accent-text); }
.tag--teal { background: var(--teal-soft); color: var(--teal); }
.tag--pink { background: var(--pink-soft); color: var(--pink); }

.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: var(--sp-2); }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

/* Remote search picker */
.combo { position: relative; }

.combo__list {
    position: absolute;
    inset: calc(100% + var(--sp-1)) 0 auto 0;
    z-index: 25;
    max-height: 16rem;
    margin: 0;
    padding: var(--sp-1);
    overflow-y: auto;
    list-style: none;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
}

.combo__option {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    cursor: pointer;
}

.combo__option[aria-selected="true"],
.combo__option:hover { background: var(--accent-soft); color: var(--accent-text); }

.combo__hint { color: var(--text-muted); font-size: var(--fs-sm); }
.combo__empty { padding: var(--sp-2) var(--sp-3); color: var(--text-muted); }

.toast--warning { border-left-color: var(--warning); }

.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.cluster--end { justify-content: flex-end; flex-wrap: nowrap; }

/* A small form laid out as one row inside a card */
.card--inline {
    display: flex;
    align-items: flex-end;
    gap: var(--sp-3);
    padding: var(--sp-4);
}
.card--inline .field { flex: 1; }

.table__check { width: 2.5rem; }
.table__check input { width: 1rem; height: 1rem; accent-color: var(--accent); }

/* Bulk actions panel above a list */
.bulk {
    margin-bottom: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.bulk > summary {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    font-weight: 500;
    cursor: pointer;
}

.bulk__body {
    display: grid;
    gap: var(--sp-4);
    padding: var(--sp-4);
    border-top: 1px solid var(--border);
}

.bulk__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--sp-3);
}

.bulk__row .field { flex: 1 1 14rem; max-width: 24rem; }
.bulk__row .fieldset { flex: 1 1 100%; }

.dialog__section { margin-top: var(--sp-4); }

/* Tabs (links, so they work without JavaScript) */
.tabs {
    display: flex;
    gap: var(--sp-1);
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.tabs__tab:hover { color: var(--text); }

.tabs__tab[aria-current="page"] {
    border-bottom-color: var(--accent);
    color: var(--text);
    font-weight: 500;
}

/* Summary figures */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.stat {
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.stat__label { color: var(--text-muted); font-size: var(--fs-sm); }
.stat__value { font-size: var(--fs-xl); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Pipeline editor */
.stage-row { padding: var(--sp-4); display: grid; gap: var(--sp-3); }

.stage-row__form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
    align-items: end;
    gap: var(--sp-3);
}

.stage-row__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}

/* Stage progress on the deal page */
.stagebar {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.stagebar__step {
    flex: 1 0 auto;
    padding: var(--sp-2) var(--sp-4);
    background: var(--surface-sunken);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
    white-space: nowrap;
}

.stagebar__step:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.stagebar__step:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
.stagebar__step--done { background: var(--accent-soft); color: var(--accent-text); }
.stagebar__step--current { background: var(--accent); color: var(--text-inverse); font-weight: 600; }

.move-form { display: grid; gap: var(--sp-2); }

.move-form--wide {
    grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
    align-items: end;
    gap: var(--sp-3);
}

/* Kanban board */
.board-hint { margin-bottom: var(--sp-2); }

.board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(16rem, 1fr);
    gap: var(--sp-3);
    align-items: start;
    overflow-x: auto;
    padding-bottom: var(--sp-3);
    scroll-snap-type: x proximity;
}

.kcol {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 12rem);
    min-height: 12rem;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    scroll-snap-align: start;
}

.kcol__head {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--border);
    border-top: 3px solid var(--border-strong);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.kcol__head h2 { font-size: var(--fs-md); }
.kcol__totals { color: var(--text-muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

.kcol__head--red { border-top-color: var(--danger); }
.kcol__head--amber { border-top-color: var(--warning); }
.kcol__head--green { border-top-color: var(--success); }
.kcol__head--blue { border-top-color: var(--info); }
.kcol__head--indigo { border-top-color: var(--accent); }
.kcol__head--teal { border-top-color: var(--teal); }
.kcol__head--pink { border-top-color: var(--pink); }

.kcol__cards {
    display: grid;
    align-content: start;
    gap: var(--sp-2);
    flex: 1;
    min-height: 4rem;
    padding: var(--sp-2);
    overflow-y: auto;
}

.kcol[data-drop-target] { outline: 2px dashed var(--accent); outline-offset: -2px; }
.kcol__more { margin: 0 var(--sp-2) var(--sp-2); }

.kcard {
    display: grid;
    gap: var(--sp-1);
    padding: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    cursor: grab;
}

.kcard[data-dragging] { opacity: 0.4; }
.kcard[data-saving] { opacity: 0.7; pointer-events: none; }
.kcard__title { font-weight: 500; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.kcard__title:hover { color: var(--accent-text); text-decoration: underline; }
.kcard__amount { font-variant-numeric: tabular-nums; }
.kcard__meta { color: var(--text-muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }

.kcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    margin-top: var(--sp-1);
}

.kcard__date { color: var(--text-muted); font-size: var(--fs-sm); }
.kcard__date--overdue { color: var(--danger); font-weight: 600; }

.kcard__move > summary {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    cursor: pointer;
    width: fit-content;
}

.kcard__move[open] > summary { margin-bottom: var(--sp-2); }
.kcard__drop-line { height: 3px; border-radius: 2px; background: var(--accent); }

/* Notification bell */
.bell { position: relative; }

.bell__count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 1.1rem;
    padding: 0 0.25rem;
    border-radius: var(--r-full);
    background: var(--danger);
    color: var(--surface);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.1rem;
    text-align: center;
}

/* Filter chips (links) */
.chip {
    padding: 0.125rem var(--sp-3);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-decoration: none;
}

.chip:hover { color: var(--text); }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--text-inverse); }

.linkbutton {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Collapsible "log an activity" form */
.logform { margin-bottom: var(--sp-4); }
.logform > summary { padding: var(--sp-3) var(--sp-4); font-weight: 500; cursor: pointer; }
.logform__body { padding: var(--sp-4); border-top: 1px solid var(--border); }

/* Timeline */
.timeline {
    display: grid;
    gap: var(--sp-3);
    margin: 0;
    padding: 0 0 0 var(--sp-4);
    list-style: none;
    border-left: 2px solid var(--border);
}

.timeline__item {
    position: relative;
    display: grid;
    gap: var(--sp-1);
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--sp-4) - 6px);
    top: 1.1rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.timeline__item--system { background: transparent; border-style: dashed; }
.timeline__item--system::before { background: var(--border-strong); }
.timeline__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.timeline__title { overflow-wrap: anywhere; }

/* Task rows */
.tasklist { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }

.tasklist__item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.tasklist__main { flex: 1; min-width: 0; }
.tasklist__title { font-weight: 500; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.tasklist__title:hover { text-decoration: underline; }
.tasklist__item--done .tasklist__title { color: var(--text-muted); text-decoration: line-through; }
.tasklist__due--overdue { color: var(--danger); font-weight: 600; }

.progress { width: 100%; height: 0.75rem; accent-color: var(--accent); }
.bullets { margin: 0; padding-left: var(--sp-5); }
.form-actions--start { justify-content: flex-start; margin-top: var(--sp-4); }

/* Top-bar search */
.topsearch { width: min(16rem, 30vw); }
.topsearch .input { min-height: 2rem; }

@media (max-width: 600px) {
    .topsearch { display: none; }
}

a.card--link { display: block; color: inherit; text-decoration: none; }
a.card--link:hover { border-color: var(--accent); }

/* Server-rendered bar chart */
.chart { margin: 0; }
.chart__title { margin-bottom: var(--sp-3); font-weight: 600; }
.chart__rows { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }

.chart__row {
    display: grid;
    grid-template-columns: minmax(5rem, 9rem) 1fr minmax(3rem, auto);
    align-items: center;
    gap: var(--sp-3);
}

.chart__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.chart__bar { width: 100%; height: 0.75rem; }
.chart__track { fill: var(--surface-sunken); }
.chart__fill { fill: var(--accent); }
.chart__value { text-align: right; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
