/*
 * Dashboard de atendimentos: seletor de período, volume diário (linhas criados × resolvidos), cartão de
 * desempenho e barras de distribuição. Só tokens --sn2-*: criados = série 1, resolvidos = série 2; as
 * barras de uma série usam a série 1. Prefixo `sn2-dash-`.
 */

.sn2-dash {
    --sn2-dash-created: var(--sn2-chart-1);
    --sn2-dash-resolved: var(--sn2-chart-2);
    --sn2-dash-bar: var(--sn2-chart-1);
}

/* ---------------------------------------------------------------- Período */
.sn2-dash-period {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--sn2-bg-sunken);
    border: 1px solid var(--sn2-border-soft);
    border-radius: var(--sn2-radius-pill);
}

.sn2-dash-period__opt {
    min-height: 30px;
    padding: 4px 12px;
    font: inherit;
    font-size: var(--sn2-text-sm);
    font-weight: 600;
    color: var(--sn2-fg-3);
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: var(--sn2-radius-pill);
}

.sn2-dash-period__opt:hover { color: var(--sn2-fg-1); }

.sn2-dash-period__opt.is-active {
    color: var(--sn2-accent-fg);
    background: var(--sn2-surface);
    box-shadow: var(--sn2-shadow-xs);
}

/* ---------------------------------------------------------------- Grade (12 colunas)
   Cada célula ocupa a largura escolhida pelo usuário: 3 = 1/4, 4 = 1/3, 6 = 1/2, 8 = 2/3, 9 = 3/4,
   12 = inteira. Em telas médias tudo vira 1/2 ou inteira; no celular, indicadores em dupla. */
.sn2-dash-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 16px;
}

.sn2-dash-span-3 { grid-column: span 3; }

.sn2-dash-span-4 { grid-column: span 4; }

.sn2-dash-span-6 { grid-column: span 6; }

.sn2-dash-span-8 { grid-column: span 8; }

.sn2-dash-span-9 { grid-column: span 9; }

.sn2-dash-span-12 { grid-column: span 12; }

@media (max-width: 1100px) {
    .sn2-dash-span-3,
    .sn2-dash-span-4 { grid-column: span 6; }

    .sn2-dash-span-6,
    .sn2-dash-span-8,
    .sn2-dash-span-9 { grid-column: span 12; }
}

@media (max-width: 720px) {
    .sn2-dash-grid > * { grid-column: 1 / -1; }

    .sn2-dash-grid > .sn2-dash-cell--kpi { grid-column: span 6; }
}

.sn2-dash-cell {
    position: relative;
    display: flex;
    min-width: 0;
}

.sn2-dash-cell > .sn2-dash-kpi,
.sn2-dash-cell > .sn2-dash-chart { flex: 1; min-width: 0; }

.sn2-dash-blank {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--sn2-fg-3);
    text-align: center;
}

.sn2-dash-blank .sn2-icon { color: var(--sn2-accent); }

.sn2-dash-blank p { max-width: 420px; margin: 0; }

.sn2-dash-chart { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.sn2-dash-chart__head .sn2-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sn2-dash-chart__head .sn2-card__title .sn2-icon { color: var(--sn2-fg-3); }

/* Listas de atendimentos dentro do cartão com padding: sem o recuo próprio do cartão antigo. */
.sn2-dash-chart .sn2-dash-list__items { padding: 0; margin: 0 -12px -8px; }

.sn2-dash-chart .sn2-dash-list__empty { padding: 0; }

.sn2-dash-chart__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sn2-dash-chart__head .sn2-card__title { margin: 0; }

.sn2-dash-chart__sub {
    margin: 2px 0 0;
    font-size: var(--sn2-text-xs);
    color: var(--sn2-fg-3);
}

.sn2-dash-chart__empty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--sn2-text-sm);
    color: var(--sn2-fg-3);
}

.sn2-dash-chart__empty .sn2-icon { color: var(--sn2-success); }

/* ---------------------------------------------------------------- Legenda e chaves */
.sn2-dash-flow__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--sn2-text-sm);
    color: var(--sn2-fg-2);
}

.sn2-dash-flow__legend li { display: inline-flex; align-items: center; gap: 6px; }

.sn2-dash-flow__legend b { color: var(--sn2-fg-1); font-variant-numeric: tabular-nums; }

.sn2-dash-key {
    display: inline-block;
    flex: none;
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background: var(--sn2-dash-key);
}

.sn2-dash-key--created { --sn2-dash-key: var(--sn2-dash-created); }

.sn2-dash-key--resolved { --sn2-dash-key: var(--sn2-dash-resolved); }

.sn2-dash-delta {
    font-size: var(--sn2-text-xs);
    color: var(--sn2-fg-3);
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- Volume diário */
.sn2-dash-flow { position: relative; }

.sn2-dash-flow__plot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    height: 220px;
    padding-top: 6px;
}

.sn2-dash-flow__yaxis {
    position: relative;
    min-width: 2ch;
    font-size: var(--sn2-text-xs);
    color: var(--sn2-fg-3);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.sn2-dash-flow__yaxis span {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
    line-height: 1;
}

.sn2-dash-flow__area { position: relative; min-width: 0; }

.sn2-dash-flow__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.sn2-dash-flow__grid {
    stroke: var(--sn2-border-soft);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.sn2-dash-flow__line {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.sn2-dash-flow__line--created { stroke: var(--sn2-dash-created); }

.sn2-dash-flow__line--resolved { stroke: var(--sn2-dash-resolved); }

/* Faixas de passagem do mouse: uma por dia, centrada no ponto do dia. */
.sn2-dash-flow__cols { position: absolute; inset: 0; }

.sn2-dash-flow__col {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--x);
    width: max(8px, calc(100% / var(--sn2-cols)));
    transform: translateX(-50%);
}

.sn2-dash-flow__col::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--sn2-border-1);
    opacity: 0;
}

.sn2-dash-flow__dot {
    position: absolute;
    left: 50%;
    width: 9px;
    height: 9px;
    border: 2px solid var(--sn2-surface);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.sn2-dash-flow__dot--created { background: var(--sn2-dash-created); }

.sn2-dash-flow__dot--resolved { background: var(--sn2-dash-resolved); }

.sn2-dash-flow__tip {
    position: absolute;
    top: 0;
    left: calc(50% + 10px);
    z-index: 2;
    display: none;
    flex-direction: column;
    gap: 3px;
    min-width: 150px;
    padding: 8px 10px;
    font-size: var(--sn2-text-xs);
    color: var(--sn2-fg-2);
    white-space: nowrap;
    pointer-events: none;
    background: var(--sn2-shell-surface, var(--sn2-surface));
    border: 1px solid var(--sn2-border-soft);
    border-radius: var(--sn2-radius-sm);
    box-shadow: var(--sn2-shadow-md, var(--sn2-shadow-xs));
}

.sn2-dash-flow__tip > span { display: flex; align-items: center; gap: 6px; }

.sn2-dash-flow__tip > span b { margin-left: auto; color: var(--sn2-fg-1); font-variant-numeric: tabular-nums; }

.sn2-dash-flow__tip > b { color: var(--sn2-fg-1); }

.sn2-dash-flow__col.is-end .sn2-dash-flow__tip { right: calc(50% + 10px); left: auto; }

.sn2-dash-flow__col:hover::before,
.sn2-dash-flow__col:hover .sn2-dash-flow__dot { opacity: 1; }

.sn2-dash-flow__col:hover .sn2-dash-flow__tip { display: flex; }

.sn2-dash-flow__xaxis {
    position: relative;
    height: 18px;
    margin-top: 8px;
    margin-left: calc(2ch + 10px);
    font-size: var(--sn2-text-xs);
    color: var(--sn2-fg-3);
    font-variant-numeric: tabular-nums;
}

.sn2-dash-flow__xaxis span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.sn2-dash-flow__xaxis span:first-child { transform: none; }

.sn2-dash-flow__xaxis span:last-child { transform: translateX(-100%); }

/* ---------------------------------------------------------------- Desempenho */
.sn2-dash-perf { display: flex; flex-direction: column; }

.sn2-dash-perf .sn2-card__title { margin: 0; }

.sn2-dash-perf__list {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
}

.sn2-dash-perf__list > div {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--sn2-border-soft);
}

.sn2-dash-perf__list > div:first-child { border-top: 0; padding-top: 4px; }

.sn2-dash-perf__list dt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--sn2-text-sm);
    color: var(--sn2-fg-2);
}

.sn2-dash-perf__list dt .sn2-icon { color: var(--sn2-fg-3); }

.sn2-dash-perf__list dd {
    margin: 0;
    font-size: var(--sn2-text-xl);
    font-weight: 700;
    color: var(--sn2-fg-1);
    font-variant-numeric: tabular-nums;
}

.sn2-dash-perf__meter {
    height: 6px;
    overflow: hidden;
    background: var(--sn2-gray-20, var(--sn2-bg-sunken));
    border-radius: var(--sn2-radius-pill);
}

.sn2-dash-perf__meter > span {
    display: block;
    height: 100%;
    background: var(--sn2-success);
    border-radius: inherit;
}

.sn2-dash-perf__hint { margin: 0; font-size: var(--sn2-text-xs); color: var(--sn2-fg-3); }

/* ---------------------------------------------------------------- Barras de distribuição */
.sn2-dash-bars {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sn2-dash-bars__row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) 4ch;
    align-items: center;
    gap: 10px;
    font-size: var(--sn2-text-sm);
}

.sn2-dash-bars__label {
    overflow: hidden;
    color: var(--sn2-fg-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn2-dash-bars__swatch {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    vertical-align: 1px;
    background: var(--sn2-swatch, var(--sn2-border-2));
    border-radius: 50%;
}

.sn2-dash-bars__track {
    height: 10px;
    background: var(--sn2-bg-sunken);
    border-radius: 0 4px 4px 0;
}

.sn2-dash-bars__fill {
    display: block;
    height: 100%;
    background: var(--sn2-dash-bar);
    border-radius: 0 4px 4px 0;
    transition: width var(--sn2-dur-fast) var(--sn2-ease-standard);
}

.sn2-dash-bars__row:hover .sn2-dash-bars__label { color: var(--sn2-fg-1); }

.sn2-dash-bars__value {
    font-weight: 600;
    color: var(--sn2-fg-1);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* ---------------------------------------------------------------- Ranking dos técnicos */
.sn2-dash-rank {
    display: grid;
    gap: 2px;
    margin: 0 -8px;
    padding: 0;
    list-style: none;
}

.sn2-dash-rank li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto 4ch;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    font-size: var(--sn2-text-sm);
    border-radius: var(--sn2-radius-sm);
}

.sn2-dash-rank li:hover { background: var(--sn2-bg-sunken); }

.sn2-dash-rank__pos {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: var(--sn2-text-xs);
    font-weight: 700;
    color: var(--sn2-fg-2);
    background: var(--sn2-bg-sunken);
    border-radius: 50%;
}

.sn2-dash-rank li.is-top .sn2-dash-rank__pos { color: var(--sn2-warning-fg); background: var(--sn2-warning-bg); }

.sn2-dash-rank__name {
    overflow: hidden;
    color: var(--sn2-fg-1);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sn2-dash-rank__time { font-size: var(--sn2-text-xs); color: var(--sn2-fg-3); white-space: nowrap; }

.sn2-dash-rank__value { color: var(--sn2-fg-1); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------------------------------------------------------------- Colunas (horário, dia da semana) */
.sn2-dash-cols {
    display: grid;
    grid-template-columns: repeat(var(--sn2-cols), minmax(0, 1fr));
    gap: 3px;
    height: 180px;
}

.sn2-dash-cols__col {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
    min-width: 0;
}

.sn2-dash-cols__bar-area {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid var(--sn2-border-soft);
}

.sn2-dash-cols__bar {
    width: min(100%, 24px);
    background: var(--sn2-dash-bar);
    border-radius: 4px 4px 0 0;
    transition: height var(--sn2-dur-fast) var(--sn2-ease-standard);
}

.sn2-dash-cols__col:hover .sn2-dash-cols__bar { filter: brightness(1.12); }

.sn2-dash-cols__peak {
    position: absolute;
    top: 0;
    left: 50%;
    font-size: var(--sn2-text-xs);
    font-weight: 600;
    color: var(--sn2-fg-1);
    white-space: nowrap;
    transform: translateX(-50%);
}

.sn2-dash-cols__label {
    font-size: var(--sn2-text-xs);
    color: var(--sn2-fg-3);
    text-align: center;
    white-space: nowrap;
}

.sn2-dash-cols__label.is-hidden { visibility: hidden; }

/* ---------------------------------------------------------------- Edição do dashboard */
.sn2-dash-editbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    align-self: center;
    max-width: 100%;
    padding: 6px 10px;
    background: var(--sn2-surface);
    border: 1px solid var(--sn2-border-soft);
    border-radius: var(--sn2-radius-pill);
    box-shadow: var(--sn2-shadow-sm, var(--sn2-shadow-xs));
}

.sn2-dash-editbar .sn2-btn { display: inline-flex; align-items: center; gap: 6px; }

.sn2-dash-editbar__sep { width: 1px; height: 20px; background: var(--sn2-border-soft); }

.sn2-dash-editbar__presets { position: relative; }

.sn2-dash-editbar__hint { font-size: var(--sn2-text-xs); color: var(--sn2-fg-3); }

/* Células em edição: contorno tracejado; o link do indicador não navega. */
.sn2-dash.is-editing .sn2-dash-cell > .sn2-dash-kpi,
.sn2-dash.is-editing .sn2-dash-cell > .sn2-dash-chart {
    outline: 1px dashed var(--sn2-border-2);
    outline-offset: 3px;
}

.sn2-dash.is-editing .sn2-dash-cell > .sn2-dash-kpi { pointer-events: none; }

.sn2-dash-cell__remove,
.sn2-dash-cell__gear {
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--sn2-fg-2);
    cursor: pointer;
    background: var(--sn2-surface);
    border: 1px solid var(--sn2-border-1);
    box-shadow: var(--sn2-shadow-xs);
}

.sn2-dash-cell__remove {
    position: absolute;
    top: -9px;
    left: -9px;
    z-index: 3;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.sn2-dash-cell__remove:hover { color: var(--sn2-danger); border-color: var(--sn2-danger); }

/* Alça de arrastar: no meio da borda de cima do card. */
.sn2-dash-cell__grip {
    position: absolute;
    top: -9px;
    left: 50%;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 20px;
    color: var(--sn2-fg-3);
    cursor: grab;
    background: var(--sn2-surface);
    border: 1px solid var(--sn2-border-1);
    border-radius: var(--sn2-radius-pill);
    box-shadow: var(--sn2-shadow-xs);
    transform: translateX(-50%);
    touch-action: none;
}

.sn2-dash-cell__grip:hover { color: var(--sn2-accent-fg); border-color: var(--sn2-accent); }

.sn2-dash-cell__grip:active { cursor: grabbing; }

.sn2-dash-grid .sn2-dash-cell.is-sort-ghost > * { opacity: 0.35; }

.sn2-dash-grid .sn2-dash-cell.is-sort-ghost {
    outline: 2px dashed var(--sn2-accent);
    outline-offset: 2px;
    border-radius: var(--sn2-radius-lg);
}

.sn2-dash-cell.is-sort-dragging { opacity: 0.9; box-shadow: var(--sn2-shadow-lg, var(--sn2-shadow-md)); }

.sn2-dash-cell__edit {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
}

.sn2-dash-cell__gear {
    width: 30px;
    height: 30px;
    border-radius: var(--sn2-radius-sm);
}

.sn2-dash-cell__gear:hover,
.sn2-dash-cell__gear[aria-expanded="true"] { color: var(--sn2-accent-fg); background: var(--sn2-accent-soft); border-color: var(--sn2-accent); }

.sn2-dash-cell:has(.sn2-dash-cell__gear[aria-expanded="true"]) { z-index: 5; }

/* Painel "Editar card" e os outros menus da edição. */
.sn2-dash-pop {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 6px;
    width: 300px;
    max-height: min(70vh, 560px);
    padding: 10px;
    overflow-y: auto;
    background: var(--sn2-shell-surface, var(--sn2-surface));
    border: 1px solid var(--sn2-border-soft);
    border-radius: var(--sn2-radius-md);
    box-shadow: var(--sn2-shadow-lg, var(--sn2-shadow-md));
}

.sn2-dash-pop--presets { right: auto; left: 0; width: 340px; }

/* O "+" fica no fim da página: o catálogo abre para cima, sem sair da tela. */
.sn2-dash-pop--add {
    top: auto;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    width: min(560px, 92vw);
    max-height: min(60vh, 520px);
    margin: 0 auto;
}

/* Entrada e saída dos painéis da edição: fade com um deslize curto (sem mexer na posição). */
.sn2-dash-pop-enter,
.sn2-dash-pop-leave { transition: opacity 120ms var(--sn2-ease-standard), translate 120ms var(--sn2-ease-standard); }

.sn2-dash-pop-from { opacity: 0; translate: 0 4px; }

.sn2-dash-pop-to { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
    .sn2-dash-pop-enter,
    .sn2-dash-pop-leave { transition: none; }
}

/* Em edição, o cabeçalho do cartão deixa espaço para a engrenagem (o "Ver todos" não fica por baixo). */
.sn2-dash.is-editing .sn2-dash-chart__head { padding-right: 40px; }

.sn2-dash-pop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 4px 8px;
    font-size: var(--sn2-text-sm);
    font-weight: 600;
    color: var(--sn2-fg-1);
    border-bottom: 1px solid var(--sn2-border-soft);
}

.sn2-dash-pop__head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

.sn2-dash-pop__kind { font-size: var(--sn2-text-xs); font-weight: 500; color: var(--sn2-fg-3); }

.sn2-dash-pop__label {
    margin: 6px 4px 0;
    font-size: var(--sn2-text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--sn2-fg-3);
    text-transform: uppercase;
}

.sn2-dash-widths {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
}

.sn2-dash-widths__opt {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 7px 2px 5px;
    font: inherit;
    font-size: var(--sn2-text-xs);
    font-weight: 600;
    color: var(--sn2-fg-2);
    cursor: pointer;
    background: var(--sn2-surface);
    border: 1px solid var(--sn2-border-soft);
    border-radius: var(--sn2-radius-sm);
}

.sn2-dash-widths__opt:hover { border-color: var(--sn2-border-2); }

.sn2-dash-widths__opt.is-active { color: var(--sn2-accent-fg); background: var(--sn2-accent-soft); border-color: var(--sn2-accent); }

.sn2-dash-widths__bar {
    display: block;
    width: 80%;
    height: 6px;
    background: var(--sn2-bg-sunken);
    border-radius: 2px;
}

.sn2-dash-widths__bar > span { display: block; height: 100%; background: var(--sn2-border-2); border-radius: inherit; }

.sn2-dash-widths__opt.is-active .sn2-dash-widths__bar > span { background: var(--sn2-accent); }

.sn2-dash-pop__move { display: flex; gap: 6px; }

.sn2-dash-pop__move .sn2-btn { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 4px; }

.sn2-dash-pop__options {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sn2-dash-pop__options--grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 8px; }

.sn2-dash-pop__option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px;
    font: inherit;
    font-size: var(--sn2-text-sm);
    color: var(--sn2-fg-1);
    text-align: left;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: var(--sn2-radius-sm);
}

.sn2-dash-pop__option:hover:not(:disabled) { background: var(--sn2-bg-sunken); }

.sn2-dash-pop__option:disabled { cursor: default; }

.sn2-dash-pop__option.is-current { color: var(--sn2-accent-fg); font-weight: 600; }

.sn2-dash-pop__option:disabled:not(.is-current) { opacity: 0.55; }

.sn2-dash-pop__option-label { flex: 1; min-width: 0; }

.sn2-dash-pop__taken { font-size: var(--sn2-text-xs); color: var(--sn2-fg-3); }

.sn2-dash-pop__danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 6px 2px;
    font: inherit;
    font-size: var(--sn2-text-sm);
    color: var(--sn2-danger);
    cursor: pointer;
    background: none;
    border: 0;
    border-top: 1px solid var(--sn2-border-soft);
}

.sn2-dash-catalog__icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--sn2-kpi-fg, var(--sn2-accent-fg));
    background: var(--sn2-kpi-bg, var(--sn2-accent-soft));
    border-radius: var(--sn2-radius-sm);
}

/* Modelos prontos. */
.sn2-dash-preset {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 8px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: var(--sn2-radius-sm);
}

.sn2-dash-preset:hover { background: var(--sn2-bg-sunken); }

.sn2-dash-preset__icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--sn2-accent-fg);
    background: var(--sn2-accent-soft);
    border-radius: var(--sn2-radius-sm);
}

.sn2-dash-preset__text { display: grid; gap: 2px; font-size: var(--sn2-text-sm); color: var(--sn2-fg-1); }

.sn2-dash-preset__text span { font-size: var(--sn2-text-xs); color: var(--sn2-fg-3); }

/* "+" para adicionar. */
.sn2-dash-add { justify-content: center; }

.sn2-dash-add__btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 96px;
    font: inherit;
    font-size: var(--sn2-text-sm);
    font-weight: 600;
    color: var(--sn2-fg-3);
    cursor: pointer;
    background: transparent;
    border: 1.5px dashed var(--sn2-border-2);
    border-radius: var(--sn2-radius-lg);
}

.sn2-dash-add__btn:hover { color: var(--sn2-accent-fg); border-color: var(--sn2-accent); }

.sn2-dash-add__plus {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--sn2-accent);
    background: var(--sn2-surface);
    border-radius: 50%;
    box-shadow: var(--sn2-shadow-sm, var(--sn2-shadow-xs));
}
