/* ==========================================================================
   Marktech UI kit (classes mk-*), montado sobre os tokens --mk-* (kit/marktech-tokens.css).
   Não depende de framework. Os valores são os das telas novas do app Marktech
   (classes mkr-* e mkg-* de static/css/modern_design.css), medidos no navegador.
   Ordem: base, estrutura, cabeçalho, cartões, ações, campos, filtro, abas, estado,
   indicadores, progresso, Grade, tabela, gráficos, barras, vazio e carga, diálogos, slides.
   ========================================================================== */

/* ---------- base ---------- */
.mk-ui {
    font-family: var(--mk-font, var(--font-app));
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--mk-ink);
    -webkit-font-smoothing: antialiased;
}
/* página inteira com o kit: sem a margem do navegador, fundo de página (sem especificidade: o projeto sobrepõe fácil) */
:where(body.mk-ui) {
    margin: 0;
    background: var(--mk-paper);
}
.mk-ui *,
.mk-ui *::before,
.mk-ui *::after {
    box-sizing: border-box;
}
.mk-ui :where(button, input, select, textarea) {
    font-family: inherit;
}
/* foco de teclado: contorno de 3px em mk-focus a 2px de distância; o campo de texto tem o próprio realce */
.mk-ui :where(a, button, [role="button"], [tabindex]:not([tabindex="-1"]), summary, input[type="checkbox"], input[type="radio"]):focus-visible {
    outline: 3px solid var(--mk-focus);
    outline-offset: 2px;
}
/* sobre navy (menu lateral e barra do topo) o contorno é amarelo, para dentro */
.mk-ui :where(.mk-side, .mk-appbar) :where(a, button):focus-visible {
    outline-color: var(--mk-yellow);
    outline-offset: -3px;
}
/* item ativo e item sob o mouse já são amarelos: ali o contorno é navy (amarelo sobre amarelo não aparece) */
.mk-ui :where(.mk-side__item, .mk-side__subitem, .mk-appbar__item):where(.is-active, :hover):focus-visible {
    outline-color: var(--mk-navy);
}
/* botão branco sobre o navy (o "Sair" da gaveta): o amarelo vai por fora */
.mk-ui :where(.mk-side, .mk-appbar) .mk-btn:focus-visible {
    outline-offset: 2px;
}

/* ---------- estrutura da tela ---------- */
.mk-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--mk-paper);
}
.mk-side {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 0 var(--mk-radius-lg) 0 0;
    background: var(--mk-navy);
    box-shadow: var(--mk-shadow-lg);
}
/* logo no centro da faixa e inteiro em branco, como o app (o filtro apaga também o M amarelo): no navy do menu, só
   o item ativo é amarelo */
.mk-side__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 18px 20px 14px;
    background: rgba(255, 255, 255, 0.03);
}
.mk-side__logo img {
    display: block;
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
}
/* coassinatura (Marktech + cliente, como nas redes): Marktech de 132 x 23 em cima e o logo do cliente embaixo, em
   branco, no meio de uma linha de 46px; a faixa tem a mesma altura para qualquer logo, então o primeiro item do menu
   não muda de lugar. A medida do logo do cliente vem da tag (--mk-cobrand-w e --mk-cobrand-h), calculada para todos
   terem a mesma área visual, até 132 x 46. */
.mk-side__logo--cobrand {
    height: auto;
    padding: 24px 20px 20px;
}
.mk-side__cobrand {
    display: grid;
    grid-template-rows: 23px 46px;
    row-gap: 12px;
    justify-items: center;
    align-items: center;
    line-height: 0;
}
.mk-side__logo .mk-side__cobrand-mkt {
    width: 132px;
    height: 23px;
}
.mk-side__logo .mk-side__cobrand-client {
    width: var(--mk-cobrand-w, auto);
    height: var(--mk-cobrand-h, auto);
    max-width: 132px;
    max-height: 46px;
    object-fit: contain;
}
.mk-side__nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 30px;
}
.mk-side__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 4px 12px 0;
    padding: 9px 16px;
    border-radius: var(--mk-radius-sm);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--mk-fast) var(--mk-ease), color var(--mk-fast) var(--mk-ease);
}
.mk-side__item svg {
    flex: none;
    width: 18px;
    height: 18px;
}
.mk-side__item:hover,
.mk-side__item.is-active {
    background: var(--mk-yellow);
    color: var(--mk-navy);
    box-shadow: var(--mk-shadow-accent);
}
.mk-side__item .mk-side__chevron {
    margin-left: auto;
    width: 12px;
    height: 12px;
    opacity: 0.8;
    transition: transform var(--mk-fast) var(--mk-ease);
}
/* grupo aberto: a seta vira para cima */
.mk-side__item[aria-expanded="true"] .mk-side__chevron {
    transform: rotate(180deg);
}
.mk-side__sub {
    display: flex;
    flex-direction: column;
    margin: 2px 12px 4px 31px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.mk-side__subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 2px;
    padding: 7px 12px;
    border-radius: var(--mk-radius-sm);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}
/* subitem: o hover só acende o texto em amarelo (como o app); o ativo é a pílula amarela */
.mk-side__subitem:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--mk-yellow);
}
.mk-side__subitem.is-active {
    background: var(--mk-yellow);
    color: var(--mk-navy);
    box-shadow: var(--mk-shadow-accent);
}
/* item que a conta não pode usar agora: fica no lugar, a 55%, na cor dos outros, sem hover nem clique (o motivo vai no
   title) */
.mk-side :where(.mk-side__item, .mk-side__subitem).is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.mk-side .mk-side__item.is-disabled:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    box-shadow: none;
}
.mk-side .mk-side__subitem.is-disabled:hover {
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
}
/* selo de novidade no item do menu (o app usa 9px; o mínimo legível do guia é 11px) */
.mk-side__badge {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-yellow);
    color: var(--mk-navy);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 0 0 0 rgba(250, 208, 44, 0.55);
    animation: mk-badge-pulse 2.4s ease-out infinite;
}
.mk-side__item.is-active .mk-side__badge,
.mk-side__item:hover .mk-side__badge {
    background: var(--mk-navy);
    color: var(--mk-yellow);
    animation: none;
}
/* o selo pulsa (um anel amarelo que se espalha) até a pessoa passar pelo item */
@keyframes mk-badge-pulse {
    0% { box-shadow: 0 0 0 0 rgba(250, 208, 44, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(250, 208, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(250, 208, 44, 0); }
}
.mk-main {
    min-width: 0;
}
.mk-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 10px 30px 0;
}
.mk-topbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--mk-white);
    color: var(--mk-navy);
    box-shadow: var(--mk-shadow-card);
    cursor: pointer;
}
.mk-topbar__toggle svg {
    width: 18px;
    height: 18px;
}
/* seletor de negócio: o único controle em pílula, no centro do topo */
.mk-topbar__client {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 300px;
    max-width: 100%;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--mk-line-soft);
    border-radius: var(--mk-radius-pill);
    background: var(--mk-white);
    color: var(--mk-ink);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(51, 54, 82, 0.10);
    cursor: pointer;
}
.mk-topbar__end {
    justify-self: end;
}
.mk-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 45px 90px;
}
.mk-wrap--dense {
    gap: 16px;
    max-width: 1280px;
}
/* corpo da tela: é o contêiner que decide as colunas (o menu aberto estreita o conteúdo).
   Modal e painel lateral ficam fora dele: container-type prende position: fixed. */
.mk-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    container-type: inline-size;
    transition: opacity var(--mk-fast) var(--mk-ease);
}
/* recarregando: o conteúdo anterior fica, esmaecido, até o novo chegar */
.mk-body.is-loading {
    opacity: 0.45;
    pointer-events: none;
}
.mk-grid3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}
@container (min-width: 640px) {
    .mk-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 960px) {
    .mk-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- cabeçalho da tela ---------- */
.mk-pagehead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 24px;
}
.mk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--mk-muted);
}
.mk-eyebrow svg {
    width: 12px;
    height: 12px;
}
.mk-pagehead .mk-eyebrow {
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--mk-violet);
}
.mk-title {
    margin: 2px 0 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--mk-ink);
}
/* traço amarelo curto sob o título: a assinatura dos títulos do marktech.tech */
.mk-title::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--mk-yellow);
}
.mk-sub {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--mk-muted);
}
.mk-pagehead__side {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.mk-pagehead__meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
    color: var(--mk-muted);
}
.mk-pagehead__meta strong {
    display: block;
    font-weight: 600;
    color: var(--mk-ink);
}
/* quando o dado em cache foi calculado, com o botão de atualizar */
.mk-cachenote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--mk-muted);
    white-space: nowrap;
}
.mk-cachenote svg {
    width: 11px;
    height: 11px;
}
.mk-cachenote__btn {
    padding: 0;
    border: none;
    background: none;
    color: var(--mk-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.mk-cachenote__btn:hover {
    text-decoration: underline;
}
.mk-cachenote__btn[disabled] {
    opacity: 0.55;
    cursor: default;
    text-decoration: none;
}

/* ---------- cartões e blocos ---------- */
/* cartão de página: o único com borda. Branco, borda fina e sombra mínima */
.mk-card {
    position: relative;
    min-width: 0;
    padding: 22px 24px 24px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-card);
}
.mk-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 16px;
}
.mk-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mk-ink);
}
/* título de seção entre cartões, direto sobre mk-paper */
.mk-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: 8px;
}
.mk-section__title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--mk-ink);
}
/* bloco interno: fundo suave, sem borda e sem sombra (nunca cartão com borda dentro de cartão) */
.mk-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.mk-stats--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mk-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 16px 18px;
    border-radius: var(--mk-radius-block);
    background: var(--mk-soft);
}
.mk-stat__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-stat__value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mk-ink);
    font-variant-numeric: tabular-nums;
}
.mk-stat__text {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--mk-ink);
}
.mk-stat .mk-link {
    align-self: flex-start;
    margin-top: 4px;
}
/* destaques do período: frase com ficha de ícone */
.mk-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mk-note {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--mk-radius-block);
    background: var(--mk-soft);
}
.mk-note__title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-note__text {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mk-ink);
    overflow-wrap: anywhere;
}
/* ficha de ícone: navy com o desenho amarelo (o ícone dos cartões do site) */
.mk-iconchip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: var(--mk-radius-control);
    background: var(--mk-navy);
    color: var(--mk-yellow);
}
.mk-iconchip svg {
    width: 16px;
    height: 16px;
}
/* a versão invertida, amarela com o desenho navy: ícone de área da Grade (as quatro iguais) */
.mk-iconchip--accent {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--mk-yellow);
    color: var(--mk-navy-deep);
}
/* número de ordem de uma lista de prioridades */
.mk-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--mk-navy);
    color: var(--mk-yellow);
    font-size: 13px;
    font-weight: 700;
}
.mk-priorities {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mk-priority {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--mk-radius-block);
    background: var(--mk-soft);
}
.mk-priority__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--mk-ink);
}
/* a categoria do item, em texto comum, sem etiqueta */
.mk-areatag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-priority__text {
    margin: 3px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--mk-muted);
}
.mk-priority__gain {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    white-space: nowrap;
}
.mk-priority__gain strong {
    font-size: 16px;
    color: var(--mk-good);
}
.mk-priority__gain span {
    font-size: 11px;
    color: var(--mk-muted);
}

/* ---------- botões ---------- */
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--mk-radius-control);
    background: var(--mk-yellow);
    color: var(--mk-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--mk-fast) var(--mk-ease), border-color var(--mk-fast) var(--mk-ease),
                color var(--mk-fast) var(--mk-ease), opacity var(--mk-fast) var(--mk-ease);
}
/* o amarelo vira navy no hover, como o botão do site */
.mk-btn:not([disabled]):hover {
    background: var(--mk-navy);
    color: var(--mk-white);
}
.mk-btn svg {
    flex: none;
    width: 13px;
    height: 13px;
}
.mk-btn--ghost {
    border-color: var(--mk-line);
    background: var(--mk-white);
    color: var(--mk-ink);
}
.mk-btn--ghost:not([disabled]):hover {
    border-color: var(--mk-yellow-dark);
    background: var(--mk-yellow-soft);
    color: var(--mk-ink);
}
.mk-btn--dark {
    background: var(--mk-navy);
    color: var(--mk-white);
}
.mk-btn--dark:not([disabled]):hover {
    background: var(--mk-navy-hover);
}
.mk-btn--danger {
    border-color: var(--mk-bad-line);
    background: var(--mk-white);
    color: var(--mk-bad);
}
.mk-btn--danger:not([disabled]):hover {
    border-color: var(--mk-bad-line);
    background: var(--mk-bad-bg);
    color: var(--mk-bad);
}
.mk-btn--sm {
    height: 30px;
    padding: 0 11px;
    border-radius: var(--mk-radius-sm);
    font-size: 12px;
}
.mk-btn--icon {
    width: 38px;
    padding: 0;
}
.mk-btn--icon.mk-btn--sm {
    width: 30px;
}
.mk-btn[disabled] {
    opacity: 0.55;
    cursor: default;
}
/* enviando: o botão fica, travado, e troca o rótulo ("Salvando...") */
.mk-btn[aria-busy="true"] {
    opacity: 1;
    cursor: progress;
}
.mk-spin {
    flex: none;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mk-spin 0.7s linear infinite;
}
@keyframes mk-spin {
    to { transform: rotate(360deg); }
}
/* link de ação: texto que faz algo ("Ver esses termos") */
.mk-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--mk-navy);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.mk-link:hover {
    text-decoration: underline;
}
/* link dentro de texto corrido */
.mk-prose a {
    color: var(--mk-violet);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- campos ---------- */
.mk-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin: 0;
}
.mk-field__label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mk-muted);
}
.mk-field__hint {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--mk-muted);
}
.mk-input {
    display: block;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-control);
    background: var(--mk-white);
    color: var(--mk-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: border-color var(--mk-fast) var(--mk-ease), box-shadow var(--mk-fast) var(--mk-ease);
}
.mk-input::placeholder {
    color: var(--mk-faint);
    font-weight: 400;
}
.mk-input:focus {
    outline: none;
    border-color: var(--mk-navy);
    box-shadow: 0 0 0 3px rgba(51, 54, 82, 0.14);
}
select.mk-input {
    padding-right: 28px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6f8c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    cursor: pointer;
}
textarea.mk-input {
    height: auto;
    min-height: 60px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    resize: vertical;
}
.mk-input[disabled] {
    opacity: 0.6;
    cursor: default;
}
.mk-field.has-error .mk-input {
    border-color: var(--mk-bad);
}
.mk-field.has-error .mk-field__hint {
    font-weight: 600;
    color: var(--mk-bad);
}
.mk-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-ink);
    cursor: pointer;
    user-select: none;
}
.mk-check input[type="checkbox"],
.mk-check input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--mk-navy);
}
/* seletor segmentado: poucas opções excludentes */
.mk-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 3px;
    border-radius: var(--mk-radius-md);
    background: var(--mk-soft);
}
.mk-seg__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 13px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--mk-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--mk-fast) var(--mk-ease), color var(--mk-fast) var(--mk-ease);
}
.mk-seg__btn:hover {
    color: var(--mk-ink);
}
.mk-seg__btn .mk-i {
    width: 11px;
    height: 11px;
    color: var(--mk-muted);
}
.mk-seg__btn.is-active {
    background: var(--mk-white);
    color: var(--mk-ink);
    box-shadow: 0 1px 3px rgba(51, 54, 82, 0.16);
}
.mk-seg__btn:disabled {
    opacity: 0.55;
    cursor: default;
}
.mk-seg--sm {
    border-radius: 11px;
}
.mk-seg--sm .mk-seg__btn {
    height: 28px;
    padding: 0 12px;
    border-radius: var(--mk-radius-sm);
    font-size: 12.5px;
}
/* menu suspenso (lista de opções de um campo) */
.mk-menu {
    min-width: 220px;
    max-height: 320px;
    margin: 4px 0 0;
    padding: 4px 0;
    overflow: auto;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-md);
    background: var(--mk-white);
    box-shadow: 0 12px 28px rgba(51, 54, 82, 0.16);
    list-style: none;
}
.mk-menu__option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--mk-ink);
    cursor: pointer;
}
.mk-menu__option:hover,
.mk-menu__option.is-highlight {
    background: var(--mk-soft);
}
.mk-menu__option.is-selected {
    font-weight: 600;
}
.mk-menu__check {
    flex: none;
    width: 14px;
    margin-left: auto;
    color: var(--mk-navy);
}
/* balão de ajuda: um só por tela, navy, acima do ícone (embaixo se não couber), a 8px da borda da janela;
   abre no hover e no foco do ícone de informação (Marktech.tooltip, em components/bundle.js) */
.mk-tooltip {
    position: fixed;
    z-index: 100000;
    max-width: 280px;
    padding: 8px 12px;
    border-radius: var(--mk-radius-sm);
    background: var(--mk-navy);
    color: var(--mk-white);
    font-size: 11.25px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 22px rgba(20, 20, 43, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s var(--mk-ease);
}
.mk-tooltip.is-shown {
    opacity: 1;
}
/* o balão parado, para mostrar num exemplo */
.mk-tooltip--static {
    position: static;
    display: inline-block;
    opacity: 1;
}
.mk-info {
    display: inline-flex;
    padding: 0;
    border: none;
    background: none;
    color: var(--mk-faint);
    cursor: help;
}
.mk-info svg {
    width: 13px;
    height: 13px;
}
.mk-info:hover,
.mk-info:focus-visible {
    color: var(--mk-muted);
}

/* ---------- filtro (nasce recolhido) ---------- */
.mk-filtertoggle.is-open {
    border-color: var(--mk-navy);
}
.mk-filtertoggle__caret {
    width: 10px;
    height: 10px;
    transition: transform var(--mk-fast) var(--mk-ease);
}
.mk-filtertoggle.is-open .mk-filtertoggle__caret {
    transform: rotate(180deg);
}
.mk-filtertoggle__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-yellow);
    color: var(--mk-ink);
    font-size: 11px;
    font-weight: 700;
}
.mk-filterchips {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}
.mk-filterchip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 4px 3px 10px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-pill);
    background: var(--mk-white);
    color: var(--mk-body);
    font-size: 12px;
    font-weight: 600;
}
.mk-filterchip__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mk-filterchip__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--mk-muted);
    cursor: pointer;
}
.mk-filterchip__x svg {
    width: 9px;
    height: 9px;
}
.mk-filterchip__x:hover {
    background: var(--mk-bad-bg);
    color: var(--mk-bad);
}
/* o painel aberto: um cartão numa linha só, acima do que ele recorta */
.mk-filter {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
    margin-top: 6px;
    padding: 16px 20px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-card);
}
.mk-filter__set {
    display: contents;
}
.mk-filter__set[disabled] .mk-field {
    opacity: 0.6;
}
.mk-filter__dates {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.mk-filter__dates .mk-field {
    width: 138px;
}
/* o campo que cede espaço para o painel caber numa linha */
.mk-filter__grow {
    flex: 1 1 140px;
    max-width: 460px;
}
.mk-filter__actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.mk-filter__apply {
    min-width: 132px;
}

/* ---------- abas ---------- */
.mk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
    border-bottom: 1px solid var(--mk-line);
}
.mk-tabs__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 2px 11px;
    border: none;
    background: none;
    color: var(--mk-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
}
.mk-tabs__btn:hover,
.mk-tabs__btn.is-active {
    color: var(--mk-ink);
}
.mk-tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--mk-yellow);
}
.mk-tabs__count {
    color: var(--mk-muted);
    font-weight: 600;
}

/* ---------- estado ---------- */
/* variação contra o período anterior: pílula pequena, com seta */
.mk-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-line-soft);
    color: var(--mk-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
.mk-delta svg {
    width: 9px;
    height: 9px;
}
.mk-delta--good { background: var(--mk-good-bg); color: var(--mk-good); }
.mk-delta--bad { background: var(--mk-bad-bg); color: var(--mk-bad); }
/* variação dentro de tabela: sem fundo */
.mk-delta--plain {
    padding: 0;
    background: none;
    font-size: 11px;
    font-weight: 600;
}
/* situação dentro de painel: texto colorido com seta ou ícone, sem pílula */
.mk-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mk-body);
}
.mk-status svg {
    flex: none;
    width: 11px;
    height: 11px;
}
.mk-status--good { color: var(--mk-good); }
.mk-status--warn { color: var(--mk-warn); }
.mk-status--bad { color: var(--mk-bad); }
/* etiqueta: classificação (tipo de campanha, Encerrada, Teste, sugestão) */
.mk-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-line-soft);
    color: var(--mk-body);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.mk-tag svg {
    width: 10px;
    height: 10px;
}
.mk-tag--good { background: var(--mk-good-bg); color: var(--mk-good); }
.mk-tag--warn { background: var(--mk-warn-bg); color: var(--mk-warn); }
.mk-tag--bad { background: var(--mk-bad-bg); color: var(--mk-bad); }
/* sugestão da leitura por IA: navy, para não se confundir com a sugestão por dados (âmbar) */
.mk-tag--ai { background: var(--mk-navy-soft); color: var(--mk-navy); }
/* faixa da nota da Grade: a etiqueta leva a cor e a palavra */
.mk-band--critical { --band: var(--mk-bad); --band-soft: var(--mk-bad-bg); }
.mk-band--low { --band: var(--mk-warn); --band-soft: var(--mk-warn-bg); }
.mk-band--medium { --band: var(--mk-navy); --band-soft: var(--mk-navy-soft); }
.mk-band--good { --band: var(--mk-good); --band-soft: var(--mk-good-bg); }
.mk-bandtag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--mk-radius-pill);
    background: var(--band-soft, var(--mk-line-soft));
    color: var(--band, var(--mk-ink));
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.mk-bandtag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--band, var(--mk-faint));
}
/* ponto de status da campanha: cheio verde ativa, cinza pausada, vazado encerrada */
.mk-dot {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mk-faint);
}
.mk-dot--on { background: var(--mk-good); }
.mk-dot--ended {
    background: var(--mk-white);
    box-shadow: inset 0 0 0 2px var(--mk-faint);
}

/* ---------- indicadores ---------- */
/* 4 colunas a partir de 730px de bloco, 2 a partir de 530px, 1 abaixo: nunca 3 e 1. Os menores (--sm) ficam
   em 2 colunas até no celular */
.mk-kpis {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}
.mk-kpis.mk-kpis--sm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@container (max-width: 529px) {
    .mk-kpis.mk-kpis--sm { gap: 12px; }
}
@container (min-width: 530px) {
    .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 730px) {
    .mk-kpis,
    .mk-kpis.mk-kpis--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mk-kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 18px 20px 16px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-lg);
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-card);
}
.mk-kpi__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-kpi__main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.mk-kpi__value {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.2px;
    color: var(--mk-ink);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
/* tendência diária do período: linha clara com o ponto final em navy */
.mk-kpi__spark {
    flex: 0 1 96px;
    min-width: 0;
    height: 34px;
}
.mk-kpi__spark polyline {
    fill: none;
    stroke: var(--mk-line-strong);
    stroke-width: 1.75;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.mk-kpi__spark circle {
    fill: var(--mk-series-1);
    stroke: var(--mk-white);
    stroke-width: 1.5;
}
.mk-kpi__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    font-size: 12px;
    color: var(--mk-muted);
}
.mk-kpis--sm .mk-kpi {
    gap: 4px;
    padding: 14px 18px 13px;
}
.mk-kpis--sm .mk-kpi__value {
    font-size: 20px;
}

/* ---------- progresso ---------- */
/* barra de nota (Grade): navy quando vai bem, amarela até 50% (Baixa e Crítica) */
.mk-meter {
    display: block;
    height: 8px;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-line);
    overflow: hidden;
}
.mk-meter > span {
    display: block;
    height: 8px;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-navy);
    transition: width 0.5s var(--mk-ease);
}
.mk-band--low .mk-meter > span,
.mk-band--critical .mk-meter > span {
    background: var(--mk-yellow);
}
/* orçamento do mês: barra navy e a marca do esperado até ontem */
.mk-budget {
    position: relative;
}
.mk-budget__track {
    height: 8px;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-line);
    overflow: hidden;
}
.mk-budget__fill {
    height: 100%;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-navy);
    transition: width 0.5s var(--mk-ease);
}
.mk-budget__mark {
    position: absolute;
    top: -5px;
    width: 2px;
    height: 18px;
    margin-left: -1px;
    background: var(--mk-ink);
    box-shadow: 0 0 0 1.5px var(--mk-white);
}
.mk-budget__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 16px;
    margin-top: 9px;
    font-size: 12.5px;
    color: var(--mk-muted);
}
.mk-budget__foot strong {
    font-weight: 600;
    color: var(--mk-ink);
}

/* ---------- Grade: anel, canais e cartões de área ---------- */
.mk-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.mk-ring {
    position: relative;
    width: 148px;
    height: 148px;
}
.mk-ring svg {
    display: block;
    transform: rotate(-90deg);
}
.mk-ring__track {
    fill: none;
    stroke: var(--mk-line);
    stroke-width: 10;
}
/* o anel é o único degradê do produto: violeta para navy */
.mk-ring__fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s var(--mk-ease);
}
.mk-ring__stop1 { stop-color: var(--mk-violet); }
.mk-ring__stop2 { stop-color: var(--mk-navy); }
.mk-ring__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mk-ring__value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--mk-ink);
}
.mk-ring__value small {
    font-size: 18px;
    font-weight: 600;
}
.mk-ring__label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-score__deltas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    font-size: 12px;
    color: var(--mk-muted);
}
.mk-channels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.mk-channel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: var(--mk-radius-md);
    background: var(--mk-soft);
    color: var(--mk-ink);
    font-size: 13px;
}
.mk-channel svg {
    width: 13px;
    height: 13px;
}
/* cartões de área: 4 colunas a partir de 1056px de bloco, 2 a partir de 520px */
.mk-areas-wrap {
    container: mk-areas / inline-size;
}
.mk-areas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
@container mk-areas (max-width: 1055px) {
    .mk-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container mk-areas (max-width: 519px) {
    .mk-areas { grid-template-columns: minmax(0, 1fr); }
}
/* cartão que é botão (filtra a lista): borda navy de 2px quando escolhido, sobe 1px no hover */
.mk-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 2px solid transparent;
    border-radius: var(--mk-radius-lg);
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-card);
    color: var(--mk-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--mk-fast) var(--mk-ease), transform var(--mk-fast) var(--mk-ease);
}
.mk-area:hover {
    transform: translateY(-1px);
}
.mk-area.is-active {
    border-color: var(--mk-navy);
}
.mk-area__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mk-area__name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}
.mk-area__value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}
.mk-area__value small {
    font-size: 16px;
    font-weight: 600;
}
.mk-area__foot {
    font-size: 12px;
    color: var(--mk-muted);
}

/* ---------- tabela ---------- */
/* tabela comprida rola dentro do cartão; cabeçalho, total e (a partir de 768px) a primeira coluna ficam presos */
.mk-tablewrap {
    margin: 0 -8px;
    max-height: min(68vh, 640px);
    overflow: auto;
}
.mk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.mk-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--mk-white);
    transition: box-shadow var(--mk-fast) var(--mk-ease);
}
.mk-table tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--mk-white);
}
.mk-tablewrap.is-scrolled-y thead th {
    box-shadow: 0 8px 10px -8px rgba(20, 20, 43, 0.22);
}
@media (min-width: 768px) {
    .mk-table th:first-child,
    .mk-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
        background: var(--mk-white);
    }
    .mk-table thead th:first-child,
    .mk-table tfoot td:first-child {
        z-index: 3;
    }
    .mk-tablewrap.is-scrolled-x th:first-child,
    .mk-tablewrap.is-scrolled-x td:first-child {
        box-shadow: 8px 0 10px -8px rgba(20, 20, 43, 0.18);
    }
}
.mk-table th,
.mk-table td {
    padding: 11px 12px;
    text-align: right;
    white-space: nowrap;
}
.mk-table th {
    border-bottom: 1px solid var(--mk-line);
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-table td {
    border-bottom: 1px solid var(--mk-line-soft);
    color: var(--mk-ink);
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}
.mk-table th:first-child,
.mk-table td:first-child {
    text-align: left;
}
.mk-table tbody tr:hover > td {
    background: var(--mk-paper);
}
.mk-table tfoot td {
    border-top: 1px solid var(--mk-line);
    border-bottom: none;
    font-weight: 700;
    color: var(--mk-ink);
}
/* cabeçalho que ordena: seta apagada, acesa na coluna em uso (com aria-sort no th) */
.mk-th {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.mk-th svg {
    width: 8px;
    height: 10px;
    opacity: 0.35;
}
.mk-th:hover,
.mk-th.is-sorted {
    color: var(--mk-ink);
}
.mk-th.is-sorted svg {
    opacity: 1;
}
.mk-cell-name {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 230px;
    max-width: 380px;
    white-space: normal;
}
.mk-cell-name .mk-dot {
    margin-top: 6px;
}
.mk-cell-name__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.mk-cell-name__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.mk-cell-num {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}
/* parte do custo, embaixo do valor */
.mk-cell-bar {
    display: block;
    width: 100%;
    min-width: 70px;
    height: 4px;
    margin-top: 4px;
    border-radius: 2px;
    background: var(--mk-line-soft);
}
.mk-cell-bar > span {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: var(--mk-series-1);
}
/* linha filha (o item dentro de um grupo aberto): fundo de página, texto menor e recuo */
.mk-table tr.is-child > td {
    background: var(--mk-paper);
    font-size: 12.5px;
}
.mk-table tr.is-child > td:first-child {
    padding-left: 44px;
}
.mk-table tr.is-excluded > td {
    color: var(--mk-muted);
}
.mk-table tr.is-excluded .mk-cell-name__text {
    text-decoration: line-through;
}
.mk-tabletools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.mk-tabletools .mk-input {
    width: 220px;
}
.mk-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--mk-muted);
}
/* grupo aberto: o nome fica preso logo abaixo do cabeçalho enquanto os itens dele passam */
.mk-pinned {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--mk-yellow-line);
    background: var(--mk-yellow-soft);
    color: var(--mk-ink);
    font-size: 12.5px;
    font-weight: 700;
}
.mk-pinned__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mk-warn);
}

/* ---------- gráficos (SVG) ---------- */
.mk-chart {
    position: relative;
    min-width: 0;
}
.mk-chart svg {
    display: block;
    overflow: visible;
}
.mk-chart text {
    font-family: var(--mk-font, var(--font-app));
    font-size: 11px;
    fill: var(--mk-muted);
    font-variant-numeric: tabular-nums;
}
.mk-chart__plot {
    position: relative;
    outline: none;
}
.mk-chart__plot:focus-visible {
    border-radius: var(--mk-radius-control);
    outline: 3px solid var(--mk-focus);
    outline-offset: 2px;
}
.mk-chart__grid line,
line.mk-chart__grid {
    stroke: var(--mk-line-soft);
    stroke-width: 1;
}
.mk-chart__line {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.mk-chart__line--projected {
    stroke-dasharray: 2 5;
}
/* área sob a linha: a cor da própria série a 10% */
.mk-chart__area {
    stroke: none;
    opacity: 0.1;
}
.mk-chart__dot {
    stroke: var(--mk-white);
    stroke-width: 2;
}
/* coluna atrás das linhas (nota total da Grade): violeta a 26%, ponta navy */
.mk-chart__col,
rect.mk-chart__colkey {
    fill: var(--mk-violet);
    fill-opacity: 0.26;
    transition: fill-opacity 0.12s var(--mk-ease);
}
.mk-chart__col.is-on {
    fill-opacity: 0.45;
}
.mk-chart__colcap {
    stroke: var(--mk-series-1);
    stroke-width: 2.5;
    stroke-linecap: round;
}
.mk-chart__cross {
    stroke: var(--mk-faint);
    stroke-width: 1;
}
.mk-chart__bar {
    fill: var(--mk-series-1);
    transition: opacity 0.12s var(--mk-ease);
}
.mk-chart__bar.is-dim {
    opacity: 0.45;
}
.mk-c1 { stroke: var(--mk-series-1); }
.mk-c2 { stroke: var(--mk-series-2); }
.mk-c3 { stroke: var(--mk-series-3); }
.mk-c4 { stroke: var(--mk-series-4); }
.mk-c5 { stroke: var(--mk-series-5); }
.mk-c6 { stroke: var(--mk-series-6); }
.mk-c7 { stroke: var(--mk-series-7); }
.mk-f1 { fill: var(--mk-series-1); }
.mk-f2 { fill: var(--mk-series-2); }
.mk-f3 { fill: var(--mk-series-3); }
.mk-f4 { fill: var(--mk-series-4); }
.mk-f5 { fill: var(--mk-series-5); }
.mk-f6 { fill: var(--mk-series-6); }
.mk-f7 { fill: var(--mk-series-7); }
.mk-b1 { background: var(--mk-series-1); }
.mk-b2 { background: var(--mk-series-2); }
.mk-b3 { background: var(--mk-series-3); }
.mk-b4 { background: var(--mk-series-4); }
.mk-b5 { background: var(--mk-series-5); }
.mk-b6 { background: var(--mk-series-6); }
.mk-b7 { background: var(--mk-series-7); }
/* rótulo direto no fim da linha: o valor, em tinta de texto */
.mk-chart text.mk-chart__endlabel {
    font-size: 12px;
    font-weight: 700;
    fill: var(--mk-ink);
}
/* modo Juntos (eixo duplo): os números de cada eixo no tom de texto da sua série */
.mk-chart text.mk-axis--1 { fill: var(--mk-series-1); }
.mk-chart text.mk-axis--2 { fill: var(--mk-warn); }
.mk-chart text.mk-axis--3 { fill: var(--mk-violet); }
.mk-chart__empty {
    margin: 0;
    padding: 34px 0;
    font-size: 13px;
    text-align: center;
    color: var(--mk-muted);
}
.mk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-ink);
}
.mk-legend__key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mk-legend__swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}
/* amostra de linha, quando o gráfico mistura linha cheia e tracejada */
.mk-legend__line {
    display: inline-block;
    width: 18px;
    height: 0;
    border-top: 2px solid currentColor;
}
.mk-legend__line--projected {
    border-top-style: dotted;
}
/* tooltip do gráfico: valor de todas as séries naquele dia */
.mk-tip {
    position: absolute;
    z-index: 6;
    min-width: 150px;
    max-width: 260px;
    padding: 9px 11px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-control);
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-pop);
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
}
.mk-tip__title {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--mk-muted);
}
.mk-tip__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--mk-muted);
}
.mk-tip__row + .mk-tip__row {
    margin-top: 2px;
}
.mk-tip__row strong {
    font-weight: 700;
    color: var(--mk-ink);
    white-space: nowrap;
}
.mk-tip__name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* medidas de escalas diferentes: gráficos empilhados, um eixo cada, o mesmo eixo do tempo */
.mk-trend__panel + .mk-trend__panel {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--mk-line-soft);
}
.mk-trend__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.mk-trend__name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mk-ink);
}
.mk-trend__total {
    font-size: 13px;
    color: var(--mk-muted);
}
.mk-trend__total strong {
    color: var(--mk-ink);
}

/* ---------- lista de barras ---------- */
.mk-bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mk-bars__row {
    display: grid;
    grid-template-columns: minmax(84px, 34%) minmax(48px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: var(--mk-radius-sm);
    font-size: 13px;
    outline: none;
}
.mk-bars__row:hover,
.mk-bars__row:focus-visible {
    background: var(--mk-soft);
}
.mk-bars__label {
    min-width: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
    /* palavra que não cabe quebra com hífen ("Computado-res"); precisa de lang="pt-BR" na página */
    hyphens: auto;
    -webkit-hyphens: auto;
    color: var(--mk-ink);
}
.mk-bars__track {
    display: block;
    height: 10px;
}
/* nome comprido em cima da barra: a barra e o valor ficam na linha de baixo */
.mk-bars--stacked .mk-bars__row {
    grid-template-columns: minmax(48px, 1fr) auto;
    row-gap: 4px;
}
.mk-bars--stacked .mk-bars__label {
    grid-column: 1 / -1;
    overflow-wrap: break-word;
}
.mk-bars__bar {
    display: block;
    height: 10px;
    min-width: 2px;
    border-radius: 0 4px 4px 0;
    background: var(--mk-series-1);
}
/* tom fixo por tipo de recorte, igual em todos os relatórios: o quê fica na cor padrão */
.mk-bars--when .mk-bars__bar { background: var(--mk-series-2); }
.mk-bars--who .mk-bars__bar { background: var(--mk-series-4); }
.mk-bars--where .mk-bars__bar { background: var(--mk-series-3); }
.mk-bars__value {
    min-width: 52px;
    font-weight: 700;
    text-align: right;
    color: var(--mk-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.mk-bars__share {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--mk-muted);
}
/* parte do todo em uma barra só (parcela de impressões: obtida, perdida por orçamento, por posição) */
.mk-share__row {
    display: grid;
    grid-template-columns: minmax(120px, 40%) 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 7px 6px;
    border-radius: var(--mk-radius-sm);
    font-size: 13px;
}
.mk-share__stack {
    display: flex;
    gap: 2px;
    height: 14px;
}
.mk-share__seg {
    min-width: 0;
    height: 14px;
}
.mk-share__seg:first-child { border-radius: 4px 0 0 4px; }
.mk-share__seg:last-child { border-radius: 0 4px 4px 0; }
.mk-share__seg--rest { background: var(--mk-line-strong); }

/* ---------- vazio, erro e carga ---------- */
.mk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 44px 24px;
    text-align: center;
}
.mk-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: var(--mk-radius);
    background: var(--mk-soft);
    color: var(--mk-muted);
}
.mk-empty__icon svg {
    width: 20px;
    height: 20px;
}
.mk-empty--good .mk-empty__icon {
    background: var(--mk-good-bg);
    color: var(--mk-good);
}
.mk-empty__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--mk-ink);
}
.mk-empty__text {
    max-width: 460px;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mk-muted);
}
/* esqueleto: a forma do conteúdo, com um brilho que corre pela tela inteira (fixed: tudo pisca junto) */
.mk-skel,
.mk-skel__line,
.mk-skel__col,
.mk-skel__ring {
    border-radius: var(--mk-radius-md);
    background: linear-gradient(100deg, var(--mk-line) 40%, var(--mk-line-soft) 50%, var(--mk-line) 60%) fixed;
    background-size: 200% 100%;
    animation: mk-shimmer 1.5s linear infinite;
}
@keyframes mk-shimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -20% 0; }
}
.mk-skel__line {
    display: block;
    height: 12px;
    border-radius: 6px;
}
.mk-skel__line--sm { height: 9px; }
.mk-skel__line--title { height: 15px; }
.mk-skel__line--value { height: 30px; border-radius: 8px; }
.mk-skel__line--num { height: 22px; border-radius: 8px; }
.mk-skel__line--bar { height: 8px; }
.mk-skel__line--chip { height: 30px; border-radius: var(--mk-radius-md); }
.mk-skel__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.mk-skel__plot {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 0 0 4px;
    border-bottom: 1px solid var(--mk-line);
}
.mk-skel__col {
    flex: 1 1 0;
    border-radius: 6px 6px 0 0;
}
.mk-skel__row {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
    padding: 13px 4px;
    border-bottom: 1px solid var(--mk-line-soft);
}
.mk-skel__ring {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle, transparent 59px, #000 60px);
    mask: radial-gradient(circle, transparent 59px, #000 60px);
}

/* ---------- diálogos ---------- */
.mk-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--mk-overlay);
}
.mk-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    max-height: min(88vh, 760px);
    overflow: hidden;
    border-radius: var(--mk-radius-lg);
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-lg);
}
.mk-dialog--wide {
    max-width: 1120px;
    max-height: none;
    height: 100%;
}
.mk-dialog__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 24px 4px;
}
.mk-dialog__heading {
    flex: 1 1 auto;
    min-width: 0;
}
.mk-dialog__eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--mk-muted);
}
.mk-dialog__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mk-ink);
}
.mk-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: var(--mk-radius-control);
    background: transparent;
    color: var(--mk-muted);
    cursor: pointer;
}
.mk-dialog__close:hover {
    background: var(--mk-soft);
    color: var(--mk-ink);
}
.mk-dialog__close svg {
    width: 14px;
    height: 14px;
}
.mk-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 24px 18px;
}
.mk-dialog__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid var(--mk-line-soft);
}
.mk-dialog__status {
    margin-right: auto;
    font-size: 12.5px;
    color: var(--mk-muted);
}
/* falha ao enviar: a frase numa linha própria, acima dos botões (o diálogo não fecha) */
.mk-dialog__status--error {
    flex: 1 1 100%;
    margin-right: 0;
    line-height: 1.45;
    color: var(--mk-bad);
}
/* painel lateral: entra pela direita, altura toda, sem canto */
.mk-drawer-shade {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(20, 20, 43, 0.32);
}
.mk-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1041;
    display: flex;
    flex-direction: column;
    width: min(860px, 100vw);
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-lg);
    animation: mk-drawer-in var(--mk-slow) var(--mk-ease);
}
@keyframes mk-drawer-in {
    from { transform: translateX(24px); opacity: 0; }
}
.mk-drawer__head {
    flex: 0 0 auto;
    padding: 16px 24px;
    border-bottom: 1px solid var(--mk-line-soft);
}
.mk-drawer__title {
    margin: 10px 0 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mk-ink);
}
.mk-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 24px 32px;
}
/* aviso de ação feita, com Desfazer, quando a ação não pede confirmação */
.mk-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: min(560px, calc(100vw - 32px));
    padding: 11px 12px 11px 18px;
    border-radius: var(--mk-radius-block);
    background: var(--mk-navy);
    color: var(--mk-white);
    font-size: 13.5px;
    line-height: 1.4;
    box-shadow: 0 12px 32px rgba(20, 20, 43, 0.3);
    transform: translateX(-50%);
}
.mk-toast__action {
    padding: 6px 10px;
    border: none;
    border-radius: var(--mk-radius-sm);
    background: rgba(255, 255, 255, 0.12);
    color: var(--mk-yellow);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.mk-toast__action:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- slides (apresentação 16:9, medidas em cqi = 1% da largura) ---------- */
.mk-slide {
    position: relative;
    container-type: inline-size;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: var(--mk-white);
    color: var(--mk-body);
    font-family: var(--mk-font, var(--font-app));
    font-size: 1.6cqi;
    line-height: 1.3;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
.mk-slide :where(p, h1, h2, ul, ol, li) {
    margin: 0;
}
.mk-slide__in {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 5.2cqi 6.25cqi 7.4cqi;
}
.mk-slide__kicker {
    margin-bottom: 1.1cqi;
    font-size: 1.2cqi;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mk-violet);
}
.mk-slide__title {
    font-size: 3.5cqi;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.022em;
    color: var(--mk-ink);
    text-wrap: balance;
}
/* o traço amarelo embaixo do título */
.mk-slide__dash {
    display: block;
    width: 4.4cqi;
    height: 0.42cqi;
    margin-top: 1.5cqi;
    border-radius: 0.3cqi;
    background: var(--mk-yellow);
}
.mk-slide__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    margin-top: 2.8cqi;
}
.mk-slide__lead {
    margin-top: 2.2cqi;
    font-size: 2cqi;
    line-height: 1.45;
}
.mk-slide__foot {
    position: absolute;
    left: 6.25cqi;
    right: 6.25cqi;
    bottom: 2.7cqi;
    display: flex;
    align-items: center;
    gap: 1.4cqi;
    font-size: 1.05cqi;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-slide__logo {
    display: block;
    flex: none;
    width: auto;
    height: 1.55cqi;
}
/* logo da capa e do encerramento, no alto à esquerda */
.mk-slide__brand {
    display: block;
    flex: none;
    align-self: flex-start;
    width: auto;
    height: 2.2cqi;
}
.mk-slide__client {
    min-width: 0;
    padding-left: 1.4cqi;
    border-left: 1px solid var(--mk-line-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-slide__num {
    margin-left: auto;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--mk-ink);
    font-variant-numeric: tabular-nums;
}
.mk-slide__num small {
    font-size: 1em;
    font-weight: 600;
    color: var(--mk-faint);
}
/* barra amarela no pé do slide: mostra o avanço da apresentação */
.mk-slide__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 0.42cqi;
    background: var(--mk-yellow);
}
/* traço de marca maior, nos slides de abertura, seção e encerramento */
.mk-slide__bar {
    display: block;
    width: 7cqi;
    height: 0.6cqi;
    margin-top: 2.4cqi;
    border-radius: 99cqi;
    background: var(--mk-yellow);
}
/* capa: navy */
.mk-slide--dark {
    background: var(--mk-navy);
    color: rgba(255, 255, 255, 0.78);
}
.mk-slide--dark .mk-slide__kicker {
    font-size: 1.35cqi;
    color: var(--mk-yellow);
}
.mk-slide--dark .mk-slide__title {
    font-size: 5.6cqi;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--mk-white);
}
.mk-slide--dark .mk-slide__foot { color: rgba(255, 255, 255, 0.7); }
.mk-slide--dark .mk-slide__num { color: var(--mk-white); }
/* seção: amarela, número grande em navy */
.mk-slide--accent {
    background: var(--mk-yellow);
    color: var(--mk-ink);
}
.mk-slide--accent .mk-slide__bar,
.mk-slide--accent .mk-slide__progress {
    background: var(--mk-navy);
}
.mk-slide--accent .mk-slide__title {
    font-size: 5.2cqi;
    line-height: 1.04;
    letter-spacing: -0.03em;
}
.mk-slide__section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 6cqi;
}
.mk-slide__sectionnum {
    font-size: 22cqi;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--mk-navy);
    font-variant-numeric: tabular-nums;
}
/* encerramento: navy mais fundo, tudo no centro */
.mk-slide--closing {
    background: var(--mk-navy-deep);
    color: rgba(255, 255, 255, 0.76);
}
.mk-slide--closing .mk-slide__title {
    font-size: 6.2cqi;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--mk-white);
}
/* tópicos com o marcador quadrado amarelo */
.mk-slide__list {
    display: flex;
    flex-direction: column;
    padding: 0;
    font-size: 2.15cqi;
    list-style: none;
}
.mk-slide__list > li {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    padding: 0.62em 0;
    border-top: 1px solid var(--mk-line);
}
.mk-slide__list > li:first-child {
    padding-top: 0;
    border-top: 0;
}
.mk-slide__bullet {
    display: block;
    flex: none;
    width: 0.38em;
    height: 0.38em;
    margin-top: 0.42em;
    border-radius: 0.1em;
    background: var(--mk-yellow);
}
.mk-slide__item {
    font-weight: 700;
    line-height: 1.25;
    color: var(--mk-ink);
}
.mk-slide__sub {
    margin-top: 0.3em;
    font-size: 0.74em;
    font-weight: 500;
    line-height: 1.42;
    color: var(--mk-body);
}
/* blocos do slide: fundo suave, sem borda */
.mk-slide__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2cqi;
}
.mk-slide__card {
    padding: 2.6cqi 2.4cqi 2.8cqi;
    border-radius: 1.4cqi;
    background: var(--mk-soft);
}

/* ---------- ícones (sprite do components/bundle.js: <svg class="mk-i"><use href="#mk-i-pen"/></svg>) ---------- */
.mk-i {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

/* ---------- interruptor: liga e desliga uma regra que vale na hora ---------- */
.mk-switch {
    position: relative;
    display: inline-flex;
    flex: none;
    width: 40px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: var(--mk-radius-pill);
    background: var(--mk-line-strong);
    cursor: pointer;
    transition: background-color var(--mk-fast) var(--mk-ease);
}
.mk-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-sm);
    transition: transform var(--mk-fast) var(--mk-ease);
}
.mk-switch[aria-checked="true"] {
    background: var(--mk-navy);
}
.mk-switch[aria-checked="true"]::after {
    transform: translateX(16px);
}
.mk-switch[disabled] {
    opacity: 0.55;
    cursor: default;
}
.mk-switchrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-ink);
}

/* ---------- fichas de escolha: várias opções curtas, uma ou mais valendo ---------- */
.mk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-pill);
    background: var(--mk-white);
    color: var(--mk-body);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--mk-fast) var(--mk-ease), border-color var(--mk-fast) var(--mk-ease),
                color var(--mk-fast) var(--mk-ease);
}
.mk-chip:hover,
.mk-chip.is-hover {
    border-color: var(--mk-line-strong);
    color: var(--mk-ink);
}
.mk-chip.is-active,
.mk-chip[aria-pressed="true"] {
    border-color: var(--mk-navy);
    background: var(--mk-navy);
    color: var(--mk-white);
}

/* ---------- caixa de marcar da marca, em linha de lista que se escolhe ---------- */
.mk-box {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--mk-line);
    border-radius: 5px;
    background: var(--mk-white);
    color: transparent;
}
.mk-box .mk-i {
    width: 10px;
    height: 10px;
}
.mk-box.is-on {
    border-color: var(--mk-navy);
    background: var(--mk-navy);
    color: var(--mk-yellow);
}

/* ---------- campo com prefixo (R$, %) ---------- */
.mk-inputwrap {
    position: relative;
}
.mk-inputwrap .mk-input {
    padding-left: 34px;
}
.mk-inputwrap__prefix,
.mk-inputwrap__suffix {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-muted);
    pointer-events: none;
}
/* unidade depois do número (%) */
.mk-inputwrap--suffix .mk-input {
    padding-left: 11px;
    padding-right: 34px;
}
.mk-inputwrap__suffix {
    left: auto;
    right: 12px;
}
.mk-input[readonly] {
    background: var(--mk-paper);
}

/* ---------- navegador de mês ---------- */
.mk-monthnav {
    display: inline-flex;
    align-items: center;
    height: 38px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-control);
    background: var(--mk-white);
}
.mk-monthnav__nav,
.mk-monthnav__label {
    height: 34px;
    padding: 0;
    border: none;
    border-radius: var(--mk-radius-sm);
    background: transparent;
    color: var(--mk-ink);
    font: inherit;
    cursor: pointer;
}
.mk-monthnav__nav {
    width: 34px;
    margin: 0 1px;
}
.mk-monthnav__label {
    min-width: 138px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
}
.mk-monthnav__nav:hover,
.mk-monthnav__label:hover {
    background: var(--mk-soft);
}

/* ---------- lista com busca: escolher itens de uma lista longa (campanhas) ---------- */
.mk-picker {
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-md);
    overflow: hidden;
}
.mk-picker__tools {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--mk-line);
    background: var(--mk-soft);
    color: var(--mk-muted);
}
.mk-picker__search {
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--mk-ink);
    font: inherit;
    font-size: 13.5px;
    outline: none;
}
.mk-picker__link {
    flex: none;
    padding: 0;
    border: none;
    background: none;
    color: var(--mk-ink);
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.mk-picker__list {
    max-height: 260px;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    list-style: none;
}
.mk-picker__row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--mk-ink);
    font: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}
.mk-picker__row:hover,
.mk-picker__row.is-hover {
    background: var(--mk-soft);
}
.mk-picker__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
.mk-picker__id {
    flex: none;
    font-size: 11.5px;
    color: var(--mk-muted);
    font-variant-numeric: tabular-nums;
}
.mk-picker__empty {
    margin: 0;
    padding: 14px 12px;
    font-size: 13px;
    color: var(--mk-muted);
}
.mk-picker__foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid var(--mk-line);
    font-size: 12.5px;
    color: var(--mk-muted);
}

/* ---------- cartão de opção: escolher um entre poucos itens com descrição ---------- */
.mk-optioncard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 78px;
    padding: 10px 14px;
    border: 2px solid transparent;
    border-radius: var(--mk-radius-block);
    background: var(--mk-soft);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--mk-fast) var(--mk-ease), background-color var(--mk-fast) var(--mk-ease);
}
.mk-optioncard:hover,
.mk-optioncard.is-hover {
    border-color: var(--mk-line-strong);
}
.mk-optioncard.is-active,
.mk-optioncard[aria-checked="true"] {
    border-color: var(--mk-navy);
    background: var(--mk-white);
}

/* ---------- aviso no lugar: o resultado de uma ação, logo acima do que mudou ---------- */
.mk-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    padding: 10px 14px;
    border-radius: var(--mk-radius-md);
    background: var(--mk-soft);
    color: var(--mk-ink);
    font-size: 13px;
    line-height: 1.45;
}
.mk-notice__text {
    flex: 1 1 260px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.mk-notice__text .mk-i {
    margin-right: 7px;
    color: var(--mk-violet);
}
.mk-notice--bad .mk-notice__text .mk-i {
    color: inherit;
}
.mk-notice__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
/* confirmação no lugar ("Excluir este destaque?") e falha */
.mk-notice--bad {
    background: var(--mk-bad-bg);
    color: var(--mk-bad);
}

/* ---------- confirmação ancorada: excluir a partir de um botão de ícone ---------- */
.mk-popconfirm {
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 16px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-block);
    background: var(--mk-white);
    box-shadow: 0 16px 36px rgba(51, 54, 82, 0.18);
}
.mk-popconfirm__title {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--mk-ink);
}
.mk-popconfirm__text {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mk-muted);
}
.mk-popconfirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

/* ---------- barra de salvar: presa ao pé do cartão do formulário ---------- */
.mk-savebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
    margin: 20px -24px -24px;
    padding: 14px 24px;
    border-top: 1px solid var(--mk-line-soft);
    border-radius: 0 0 var(--mk-radius-lg) var(--mk-radius-lg);
    background: var(--mk-white);
    box-shadow: 0 -10px 18px -14px rgba(20, 20, 43, 0.28);
}
.mk-savestate {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 auto 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-savestate .mk-i {
    width: 8px;
    height: 8px;
}
.mk-savestate--saved { color: var(--mk-good); }
.mk-savestate--saved .mk-i { width: 12px; height: 12px; }
.mk-savestate--dirty { color: var(--mk-warn); }
.mk-savestate--error { color: var(--mk-bad); }

/* ---------- envio de arquivo ---------- */
.mk-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 10px;
    border: 2px dashed var(--mk-line-strong);
    border-radius: var(--mk-radius-block);
    background: var(--mk-paper);
    color: var(--mk-body);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--mk-fast) var(--mk-ease), background-color var(--mk-fast) var(--mk-ease);
}
.mk-dropzone .mk-i {
    width: 18px;
    height: 18px;
    color: var(--mk-muted);
}
.mk-dropzone:hover,
.mk-dropzone.is-over {
    border-color: var(--mk-navy);
    background: var(--mk-yellow-soft);
}
.mk-dropzone__hint {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--mk-muted);
}
.mk-swatchadd {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px dashed var(--mk-line-strong);
    border-radius: 50%;
    background: var(--mk-paper);
    color: var(--mk-muted);
    cursor: pointer;
}
.mk-swatch {
    display: inline-block;
    width: 42px;
    height: 42px;
    border: 1px solid var(--mk-line);
    border-radius: 50%;
}
/* miniatura de arquivo enviado: imagem, selo de duração, X para remover e, enquanto sobe, véu com o percentual */
.mk-filetile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--mk-radius-block);
    background: var(--mk-soft);
    overflow: hidden;
}
.mk-filetile__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mk-filetile__badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--mk-radius-pill);
    background: rgba(20, 20, 43, 0.8);
    color: var(--mk-white);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.mk-filetile__badge .mk-i {
    width: 8px;
    height: 8px;
    color: var(--mk-yellow);
}
.mk-filetile__x {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(20, 20, 43, 0.78);
    color: var(--mk-white);
    cursor: pointer;
}
.mk-filetile__x .mk-i {
    width: 11px;
    height: 11px;
}
.mk-filetile__x:hover {
    background: var(--mk-bad);
}
.mk-filetile__state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--mk-navy);
    text-align: center;
}
.mk-filetile__state .mk-i {
    width: 18px;
    height: 18px;
}
.mk-filetile__state.is-error {
    background: rgba(253, 234, 234, 0.86);
    color: var(--mk-bad);
    font-size: 12px;
    font-weight: 600;
}
.mk-filetile__pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--mk-ink);
    font-variant-numeric: tabular-nums;
}
.mk-filetile__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--mk-line);
}
.mk-filetile__bar > span {
    display: block;
    height: 4px;
    background: var(--mk-navy);
    transition: width 0.2s var(--mk-ease);
}
/* andamento de envio ou de processamento: barra fina navy com o percentual ao lado */
.mk-progress {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: var(--mk-line);
    overflow: hidden;
}
.mk-progress > span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--mk-navy);
    transition: width var(--mk-slow) var(--mk-ease);
}

/* ---------- mais itens ---------- */
.mk-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

/* ---------- nota de 0 a 100: cartão principal e lista de itens com nota (medidos na Grade) ---------- */
/* cartão principal: o anel à esquerda (260 a 340px) e a evolução à direita; uma coluna em bloco estreito */
.mk-hero {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}
@container (max-width: 730px) {
    .mk-hero { grid-template-columns: minmax(0, 1fr); }
}
/* ícone de uma entidade na cor da série dela (ao lado do gráfico em que ela tem série) */
.mk-t1 { color: var(--mk-series-1); }
.mk-t2 { color: var(--mk-series-2); }
.mk-t3 { color: var(--mk-series-3); }
.mk-t4 { color: var(--mk-series-4); }
.mk-t5 { color: var(--mk-series-5); }
.mk-t6 { color: var(--mk-series-6); }
.mk-t7 { color: var(--mk-series-7); }
/* recorte sempre visível acima da lista (categoria e entidade) */
.mk-tabletools--tight {
    gap: 10px;
    margin: -4px 0 16px;
}
.mk-metrics {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mk-metrics__group {
    margin: 18px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--mk-muted);
}
.mk-metrics__group:first-child {
    margin-top: 0;
}
/* a linha é um botão: abre o histórico do item */
.mk-metric {
    display: grid;
    grid-template-columns: 22px minmax(150px, 1.1fr) minmax(90px, 1.4fr) 54px 92px 84px 20px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 8px;
    border: none;
    border-bottom: 1px solid var(--mk-line-soft);
    border-radius: 10px;
    background: none;
    color: var(--mk-ink);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background var(--mk-fast) var(--mk-ease);
}
.mk-metric:hover,
.mk-metric.is-hover {
    background: var(--mk-soft);
}
.mk-metric__channel {
    justify-self: center;
    width: 15px;
    height: 15px;
}
.mk-metric__name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 600;
    color: var(--mk-ink);
}
.mk-metric__value {
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--mk-ink);
}
.mk-metric__change {
    text-align: right;
}
.mk-metric__open {
    width: 12px;
    height: 12px;
    color: var(--mk-faint);
}
@container (max-width: 730px) {
    .mk-metric { grid-template-columns: 22px minmax(120px, 1fr) minmax(60px, 1fr) 50px 84px; }
    .mk-metric__change,
    .mk-metric__open { display: none; }
}
@container (max-width: 520px) {
    .mk-metric { grid-template-columns: 22px minmax(0, 1fr) 46px; }
    .mk-metric .mk-meter,
    .mk-metric .mk-bandtag { display: none; }
}

/* ---------- painel de acompanhamento: um cartão por entidade acompanhada (medido nas Metas) ---------- */
.mk-panel {
    container: mk-panel / inline-size;
}
.mk-panelhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 20px;
}
.mk-panelhead__name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--mk-ink);
}
.mk-panelhead__name .mk-i {
    width: 20px;
    height: 20px;
}
.mk-panelhead__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    min-width: 0;
}
.mk-panelhead__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* o que o painel acompanha: rótulo e itens numa linha */
.mk-scope {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.5;
}
.mk-scope__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 14px;
    min-width: 0;
}
.mk-scope__label {
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-scope__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    color: var(--mk-body);
    overflow-wrap: anywhere;
}
/* resumo do consumo: valor e situação à esquerda, barra à direita, com um fio em cima */
.mk-summary {
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr);
    align-items: center;
    gap: 12px 48px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--mk-line);
}
.mk-summary__value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin: 2px 0 3px;
}
.mk-summary__value strong {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--mk-ink);
}
.mk-summary__value span {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--mk-muted);
}
/* comparativos: blocos internos lado a lado (quatro, ou dois por linha; nunca três e um) */
.mk-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.mk-tiles .mk-stat {
    gap: 4px;
    padding: 14px 18px;
}
.mk-tiles .mk-stat__value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}
/* unidade ao lado do valor ("média de 7 dias") */
.mk-stat__value small {
    font-size: 12px;
    font-weight: 500;
    color: var(--mk-muted);
}
/* referências de um valor: rótulo em apoio, número em tinta */
.mk-refs {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
}
.mk-refs > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
}
.mk-refs dt {
    font-weight: 400;
    color: var(--mk-muted);
}
.mk-refs dd {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    color: var(--mk-ink);
}
/* rodapé do painel: legenda, nota de atualização e o botão de texto */
.mk-panelfoot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 24px;
    margin-top: 6px;
}
/* botão de texto: ação de exibição (ocultar o gráfico), sem borda */
.mk-textbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none;
    height: 30px;
    padding: 0 10px;
    border: none;
    border-radius: var(--mk-radius-sm);
    background: transparent;
    color: var(--mk-muted);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--mk-fast) var(--mk-ease), color var(--mk-fast) var(--mk-ease);
}
.mk-textbtn .mk-i {
    width: 12px;
    height: 12px;
}
.mk-textbtn:hover,
.mk-textbtn.is-hover {
    background: var(--mk-soft);
    color: var(--mk-ink);
}
@container mk-panel (max-width: 820px) {
    .mk-summary { grid-template-columns: minmax(0, 1fr); }
}
/* painel largo: a meta inteira cabe numa tela de notebook (1366 x 768). O resumo segue na largura toda; embaixo,
   os comparativos em 2 x 2 à esquerda e o gráfico (mk-panelchart) à direita. Sem o gráfico, os comparativos voltam a
   ficar lado a lado. A partir de 808px de painel (760px de corpo, o de um notebook de 1280 com o menu aberto). */
.mk-panelchart {
    margin-top: 18px;
}
@container mk-panel (min-width: 808px) {
    .mk-panelbody:has(> .mk-panelchart) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "scope scope"
            "summary summary"
            "tiles chart"
            "foot foot";
        column-gap: 32px;
        align-items: start;
    }
    .mk-panelbody:has(> .mk-panelchart) > .mk-scope { grid-area: scope; }
    .mk-panelbody:has(> .mk-panelchart) > .mk-summary { grid-area: summary; }
    .mk-panelbody:has(> .mk-panelchart) > .mk-tiles {
        grid-area: tiles;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mk-panelbody:has(> .mk-panelchart) .mk-tiles .mk-stat { padding: 12px 16px; }
    .mk-panelbody:has(> .mk-panelchart) > .mk-panelchart { grid-area: chart; }
    .mk-panelbody:has(> .mk-panelchart) > .mk-panelfoot { grid-area: foot; }
}
/* entidade sem meta (ou que não carregou) dentro do painel: uma faixa com ícone, texto e ação na mesma linha, no
   lugar de um bloco centrado de 300px */
.mk-panel > .mk-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "icon title action"
        "icon text action";
    align-items: center;
    gap: 2px 16px;
    padding: 14px 0 0;
    text-align: left;
}
.mk-panel > .mk-empty .mk-empty__icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 12px;
}
.mk-panel > .mk-empty .mk-empty__icon svg {
    width: 16px;
    height: 16px;
}
.mk-panel > .mk-empty .mk-empty__title {
    grid-area: title;
    align-self: end;
    font-size: 15px;
}
.mk-panel > .mk-empty .mk-empty__text {
    grid-area: text;
    align-self: start;
    max-width: none;
    margin: 0;
}
.mk-panel > .mk-empty .mk-btn {
    grid-area: action;
    margin: 0;
}
@container mk-panel (max-width: 560px) {
    .mk-panel > .mk-empty {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "icon title"
            "icon text"
            "action action";
    }
    .mk-panel > .mk-empty .mk-btn {
        justify-self: start;
        margin-top: 10px;
    }
}
@container mk-panel (max-width: 720px) {
    .mk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container mk-panel (max-width: 520px) {
    .mk-summary__value strong { font-size: 24px; }
    .mk-tiles { gap: 8px; }
    .mk-tiles .mk-stat { padding: 12px 14px; }
    .mk-tiles .mk-stat__value { font-size: 18px; }
}

/* ---------- formulário longo: seções dentro do cartão e campos em duas colunas (medido no Guideline para a IA) ---------- */
.mk-formsection + .mk-formsection {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--mk-line-soft);
}
.mk-formsection__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mk-ink);
}
.mk-formgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin-bottom: 16px;
}
.mk-formgrid > .is-wide {
    grid-column: 1 / -1;
}
/* contador de itens no rótulo ("Cores da marca 2/5") */
.mk-field__label small {
    font-size: 12px;
    font-weight: 500;
}
@container (max-width: 640px) {
    .mk-formgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- aplicação pequena (até cinco áreas, ou uma tela só): sem menu lateral, só a barra do topo.
   Mesmos tons e estados do menu lateral: navy, item ativo amarelo com texto navy, foco amarelo para dentro. ---------- */
.mk-appbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 60px;
    padding: 0 30px;
    background: var(--mk-navy);
    box-shadow: var(--mk-shadow-lg);
}
.mk-appbar__brand {
    display: flex;
    flex: none;
    align-items: center;
    gap: 14px;
    color: var(--mk-white);
    text-decoration: none;
}
.mk-appbar__brand img {
    display: block;
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
}
/* o nome da aplicação ao lado do logo, depois de um fio */
.mk-appbar__name {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.mk-appbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.mk-appbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--mk-radius-sm);
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--mk-fast) var(--mk-ease), color var(--mk-fast) var(--mk-ease);
}
.mk-appbar__item .mk-i {
    width: 15px;
    height: 15px;
}
.mk-appbar__item:hover,
.mk-appbar__item.is-active {
    background: var(--mk-yellow);
    color: var(--mk-navy);
    box-shadow: var(--mk-shadow-accent);
}
.mk-appbar__end {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
@media (max-width: 767px) {
    .mk-appbar {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 10px 15px;
    }
    .mk-appbar__nav {
        order: 3;
        flex: 1 1 100%;
    }
}

/* ---------- lista por data: o que a equipe produz, agrupado por mês, do mais recente (medido em Destaques) ---------- */
.mk-month {
    margin-top: 20px;
}
.mk-month__title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 4px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mk-ink);
}
.mk-month__title span {
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-items {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mk-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--mk-line-soft);
}
.mk-item:first-child {
    border-top: none;
}
/* a linha inteira abre o item no painel lateral */
.mk-item__open {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 4px 0;
    padding: 10px 8px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--mk-fast) var(--mk-ease);
}
.mk-item__open:hover,
.mk-item__open.is-hover,
.mk-item.is-current .mk-item__open {
    background: var(--mk-paper);
}
.mk-item__date {
    flex: 0 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 12px;
    background: var(--mk-soft);
}
.mk-item__date b {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--mk-ink);
}
.mk-item__date small {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-item__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mk-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mk-muted);
}
.mk-item__meta .mk-i {
    width: 11px;
    height: 11px;
    margin-right: 5px;
    vertical-align: -1px;
}
.mk-item__flag {
    color: var(--mk-warn);
}
.mk-item__draft {
    color: var(--mk-violet);
}
.mk-item__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mk-ink);
    overflow-wrap: anywhere;
}
.mk-item__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mk-body);
}
/* busca: as palavras achadas no trecho do texto */
.mk-item__excerpt mark {
    padding: 0 1px;
    border-radius: 3px;
    background: var(--mk-yellow-soft);
    color: var(--mk-ink);
}
/* ações rápidas: aparecem no hover e no foco da linha; sempre visíveis no toque */
.mk-item__quick {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    padding-right: 6px;
    opacity: 0;
    transition: opacity var(--mk-fast) var(--mk-ease);
}
.mk-item:hover .mk-item__quick,
.mk-item:focus-within .mk-item__quick,
.mk-item.is-hover .mk-item__quick {
    opacity: 1;
}
@media (hover: none) {
    .mk-item__quick {
        opacity: 1;
    }
}
/* botão de ícone da ação rápida: 34px, desenho navy */
.mk-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-control);
    background: var(--mk-white);
    color: var(--mk-navy);
    font-size: 13px;
    cursor: pointer;
    transition: background var(--mk-fast) var(--mk-ease), border-color var(--mk-fast) var(--mk-ease);
}
.mk-iconbtn .mk-i {
    width: 13px;
    height: 13px;
}
.mk-iconbtn:hover,
.mk-iconbtn.is-hover {
    border-color: var(--mk-yellow-dark);
    background: var(--mk-yellow-soft);
}
.mk-iconbtn[disabled] {
    opacity: 0.4;
    cursor: default;
    border-color: var(--mk-line);
    background: var(--mk-white);
}
/* quantos itens a lista mostra, à direita das ferramentas */
.mk-count {
    margin: 0 0 0 auto;
    white-space: nowrap;
    font-size: 12.5px;
    color: var(--mk-muted);
}
@media (max-width: 575px) {
    .mk-item__open {
        gap: 12px;
    }
    .mk-item__quick {
        display: none;
    }
    .mk-count {
        margin-left: 0;
    }
}

/* ---------- gaveta do menu no celular ---------- */
.mk-side--drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
    width: 260px;
    border-radius: 0;
    box-shadow: 8px 0 30px rgba(20, 20, 43, 0.25);
}
.mk-shade {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(20, 20, 43, 0.5);
}

/* ---------- celular: os mesmos componentes, com o respiro de tela pequena ---------- */
/* o "Sair" do fim do menu só aparece quando o menu vira gaveta */
.mk-side__logout {
    display: none;
}
/* computador: o botão redondo recolhe o menu (classe que o bundle.js põe no .mk-shell) */
@media (min-width: 992px) {
    .mk-shell.is-menu-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }
    .mk-shell.is-menu-collapsed > .mk-side {
        display: none;
    }
}
/* celular e tablet: o menu vira gaveta pela esquerda, com fundo escuro atrás, e o "Sair" mora no fim dela */
@media (max-width: 991px) {
    .mk-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .mk-shell > .mk-side {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1100;
        width: 260px;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: none;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    }
    .mk-shell.is-menu-open > .mk-side {
        transform: none;
        box-shadow: 8px 0 30px rgba(20, 20, 43, 0.25);
    }
    .mk-shell.is-menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(20, 20, 43, 0.5);
    }
    body:has(.mk-shell.is-menu-open) {
        overflow: hidden;
    }
    .mk-side__logout {
        display: inline-flex;
        margin: 14px 12px 0;
    }
    .mk-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
    }
    .mk-topbar__client {
        width: 100%;
        max-width: 340px;
        min-width: 0;
        justify-self: center;
    }
    .mk-shell:has(.mk-side__logout) .mk-topbar__end {
        display: none;
    }
}
@media (max-width: 767px) {
    .mk-wrap {
        gap: 14px;
        padding: 12px 15px 90px;
    }
    .mk-body {
        gap: 14px;
    }
    .mk-card,
    .mk-kpi,
    .mk-filter {
        border-radius: var(--mk-radius);
    }
    .mk-card {
        padding: 18px 16px 20px;
    }
    .mk-topbar {
        padding: 12px 16px 14px;
        gap: 20px;
    }
}
@media (max-width: 560px) {
    .mk-kpi__value {
        font-size: 24px;
    }
    .mk-kpis--sm .mk-kpi__value {
        font-size: 20px;
    }
}

/* ---------- entrada: login, senha, cadastro e páginas de erro (medido no app: login, resetar a senha, cadastro) ----------
   Fundo navy liso, logo branco em cima, um cartão branco no meio (canto 24 e a sombra do diálogo) e o rodapé
   em branco a 72%. Campos e botões são os do kit; no celular o campo tem 16px (o iPhone amplia a tela abaixo
   disso) e a ação principal 44px. */
.mk-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 40px 16px 20px;
    background: var(--mk-navy);
}
.mk-entry *,
.mk-entry *::before,
.mk-entry *::after {
    box-sizing: border-box;
}
.mk-entry__main {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
}
.mk-entry__brand {
    display: block;
    height: 32px;
    width: auto;
}
.mk-entry__card {
    width: 100%;
    max-width: 420px;
    padding: 32px 32px 28px;
    border-radius: var(--mk-radius-lg);
    background: var(--mk-white);
    box-shadow: var(--mk-shadow-lg);
}
/* cadastro com duas colunas de campos e o último passo com as conexões */
.mk-entry__card--wide {
    max-width: 580px;
}
.mk-entry__step {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mk-violet);
}
.mk-entry__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--mk-ink);
}
.mk-entry__title::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--mk-yellow);
}
.mk-entry__text {
    max-width: 65ch;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--mk-body);
}
/* situação no topo do cartão (e-mail enviado, link vencido, senha alterada): a ficha do estado vazio */
.mk-entry__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: var(--mk-radius);
    background: var(--mk-soft);
    color: var(--mk-muted);
}
.mk-entry__icon .mk-i {
    width: 20px;
    height: 20px;
}
.mk-entry__icon--good {
    background: var(--mk-good-bg);
    color: var(--mk-good);
}
.mk-entry__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 0;
}
.mk-entry__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}
.mk-entry .mk-notice {
    margin-top: 16px;
}
.mk-entry__form .mk-notice {
    margin-top: 0;
}
.mk-entry__submit {
    width: 100%;
    margin-top: 4px;
}
.mk-entry__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--mk-body);
    text-align: center;
}
.mk-entry__links p {
    margin: 0;
}
.mk-entry__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.mk-entry__actions .mk-btn {
    flex: 1 1 0;
}
/* conta em mais de um lugar: uma opção por botão */
.mk-entry__choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mk-entry__choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-control);
    background: var(--mk-white);
    color: var(--mk-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--mk-fast) var(--mk-ease), border-color var(--mk-fast) var(--mk-ease);
}
.mk-entry__choice:hover,
.mk-entry__choice.is-hover {
    border-color: var(--mk-yellow-dark);
    background: var(--mk-yellow-soft);
}
.mk-entry__choice .mk-i {
    width: 12px;
    height: 12px;
    color: var(--mk-muted);
}
.mk-entry__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin-top: 28px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}
.mk-entry__foot p {
    margin: 0;
}
.mk-entry__foot a {
    color: var(--mk-white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mk-ui .mk-entry__foot a:focus-visible {
    outline: 3px solid var(--mk-yellow);
    outline-offset: 2px;
}
@media (max-width: 767px) {
    .mk-entry {
        padding: 24px 16px 16px;
    }
    .mk-entry__main {
        gap: 22px;
    }
    .mk-entry__brand {
        height: 28px;
    }
    .mk-entry__card {
        padding: 24px 20px 22px;
        border-radius: var(--mk-radius);
    }
    .mk-entry .mk-input {
        height: 44px;
        font-size: 16px;
    }
    .mk-entry__submit,
    .mk-entry__actions .mk-btn {
        height: 44px;
        font-size: 14px;
    }
}
@media (max-width: 479px) {
    .mk-entry__row {
        grid-template-columns: minmax(0, 1fr);
    }
    .mk-entry__actions {
        flex-direction: column-reverse;
    }
    .mk-entry .mk-conn {
        flex-wrap: wrap;
    }
}

/* ---------- conexão com um serviço de fora (conta de anúncios, banco, loja): um bloco interno por serviço ----------
   O nome com o ícone da marca, a situação em texto com ícone (conectado, acesso vencido, não conectado), a frase
   do que fazer e Conectar ou Reconectar em contorno pequeno. Medido em Configuração do Usuário e Negócios. */
.mk-conns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.mk-conns--stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.mk-conn {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px 18px;
    border-radius: var(--mk-radius-block);
    background: var(--mk-soft);
}
.mk-conn__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.mk-conn__name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mk-ink);
}
.mk-conn__name .mk-i {
    width: 15px;
    height: 15px;
}
.mk-conn__text {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--mk-body);
}
.mk-conn__text.is-bad {
    color: var(--mk-bad);
}
.mk-conn .mk-btn {
    flex: none;
}
/* a situação é a do painel (mk-status), um pouco maior no bloco de conexão */
.mk-conn .mk-status {
    margin: 0;
    font-size: 13px;
}
.mk-conn .mk-status svg {
    width: 12px;
    height: 12px;
}
.mk-status--muted { color: var(--mk-muted); }
@container (max-width: 760px) {
    .mk-conns {
        grid-template-columns: minmax(0, 1fr);
    }
}
@container (max-width: 480px) {
    .mk-conn {
        flex-wrap: wrap;
    }
}

/* ---------- estados para documentação: .is-hover e .is-focus mostram parado o que :hover e o foco fazem ---------- */
.mk-btn.is-hover:not([disabled]) {
    background: var(--mk-navy);
    color: var(--mk-white);
}
.mk-btn--ghost.is-hover:not([disabled]) {
    border-color: var(--mk-yellow-dark);
    background: var(--mk-yellow-soft);
    color: var(--mk-ink);
}
.mk-btn--dark.is-hover:not([disabled]) {
    background: var(--mk-navy-hover);
}
.mk-btn--danger.is-hover:not([disabled]) {
    background: var(--mk-bad-bg);
    color: var(--mk-bad);
}
.mk-link.is-hover {
    text-decoration: underline;
}
.mk-seg__btn.is-hover,
.mk-tabs__btn.is-hover {
    color: var(--mk-ink);
}
.mk-side__item.is-hover,
.mk-appbar__item.is-hover {
    background: var(--mk-yellow);
    color: var(--mk-navy);
    box-shadow: var(--mk-shadow-accent);
}
.mk-table tbody tr.is-hover > td {
    background: var(--mk-paper);
}
.mk-bars__row.is-hover,
.mk-menu__option.is-hover {
    background: var(--mk-soft);
}
.mk-area.is-hover {
    transform: translateY(-1px);
}
.mk-ui .is-focus {
    outline: 3px solid var(--mk-focus);
    outline-offset: 2px;
}
.mk-ui :where(.mk-side, .mk-appbar) .is-focus {
    outline-color: var(--mk-yellow);
    outline-offset: -3px;
}
.mk-ui :where(.mk-side__item, .mk-side__subitem, .mk-appbar__item).is-active.is-focus {
    outline-color: var(--mk-navy);
}
.mk-input.is-focus {
    outline: none;
    border-color: var(--mk-navy);
    box-shadow: 0 0 0 3px rgba(51, 54, 82, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .mk-ui *,
    .mk-ui *::before,
    .mk-ui *::after {
        transition: none !important;
        animation: none !important;
    }
}
