/* fix-ger — ajustes de 26/09. Carregado depois do styles.css, então vence por ordem.
   26/09 (tarde): superfície trocada de plástico opaco para VIDRO (tokens do fix-base).
   Layout preservado; só a matéria e a luz mudaram. UM glow na seção: a ação que a
   regra dispara ("pausar o conjunto"). */

/* ==========================================================================
   MOSAICO DO GERENCIADOR — 26/09
   Layout: linha 1 = Alertas (3) + Regras (3); linha 2 = Pixel (4) + Detalhar (2).
   ========================================================================== */
#gerenciador .b-pxl  { grid-column: span 4; }
#gerenciador .b-mini { grid-column: span 2; }
@media (max-width: 1080px) {
    #gerenciador .b-pxl  { grid-column: span 2; }
    #gerenciador .b-mini { grid-column: span 1; }
}
@media (max-width: 760px) {
    #gerenciador .b-pxl, #gerenciador .b-mini { grid-column: span 1; }
}

/* ==========================================================================
   LUZ — o vidro só existe se houver algo atrás pra desfocar.
   Dois brilhos de marca atrás do mosaico; nascem e morrem em transparente.
   ========================================================================== */
#gerenciador { --text-3: #8C8C96; }   /* legenda sobre vidro: sobe de 4,1 para ~5,5:1 */
#gerenciador .bento { position: relative; isolation: isolate; }
#gerenciador .bento::before {
    content: "";
    position: absolute;
    inset: -90px -6% -70px;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(34% 30% at 74% 26%, rgba(60, 230, 160, .13), transparent 70%),
        radial-gradient(32% 34% at 22% 78%, rgba(47, 214, 147, .09), transparent 72%),
        radial-gradient(26% 24% at 30% 18%, rgba(229, 112, 107, .035), transparent 70%);
    filter: blur(8px);
}

/* ---------- card grande: vidro com anel + molde + véu ---------- */
#gerenciador .bento > .bcard {
    border: 0;
    border-radius: var(--r-box);
    background-color: var(--surface);
    background-image:
        var(--veil),
        radial-gradient(70% 55% at 18% 0%, rgba(60, 230, 160, .045), transparent 70%),
        var(--glass-grad);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--ring), var(--mold), var(--drop);
}
#gerenciador .bento > .bcard:nth-child(2) {
    background-image: var(--veil), radial-gradient(70% 55% at 82% 0%, rgba(60, 230, 160, .05), transparent 70%), var(--glass-grad);
}
#gerenciador .bento > .bcard:nth-child(4) {
    background-image: var(--veil), radial-gradient(70% 55% at 90% 8%, rgba(60, 230, 160, .045), transparent 70%), var(--glass-grad);
}
#gerenciador .bento > .bcard:hover {
    box-shadow: var(--ring-strong), var(--mold), var(--drop);
}

/* ---------- Alertas: a bolha não estica, e o resto do card conta o que avisa ---------- */
#gerenciador .al-msg {
    flex: 0 0 auto; align-self: stretch;
    border-radius: var(--r-card);
    background-color: rgba(32, 44, 51, .62);      /* o verde-petróleo do WhatsApp, agora translúcido */
    background-image: linear-gradient(267deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    -webkit-backdrop-filter: var(--glass-blur-2);
    backdrop-filter: var(--glass-blur-2);
    box-shadow: var(--ring), var(--mold-soft);
}
#gerenciador .al-kinds {
    display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding: 0;
    align-content: flex-end;
}
#gerenciador .al-kinds span,
#gerenciador .hrm-cuts span {
    padding: 5px 11px; border-radius: var(--r-pill);
    border: 0;
    background-color: var(--surface-2);
    background-image: var(--glass-grad);
    -webkit-backdrop-filter: var(--glass-blur-2);
    backdrop-filter: var(--glass-blur-2);
    box-shadow: var(--ring), var(--mold-soft);
    font-size: 11.5px; color: var(--text-2); white-space: nowrap;
}

/* ---------- Regras: a regra em linguagem normal é o herói ---------- */
#gerenciador .rlp { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#gerenciador .rlp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
#gerenciador .rlp-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: var(--r-pill);
    border: 0;
    background: var(--brand-grad-deep);
    box-shadow: var(--ring-brand), var(--mold-soft);
    color: var(--brand);
    font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
#gerenciador .rlp-badge svg { width: 12px; height: 12px; }
#gerenciador .rlp-name {
    flex: 1 1 auto; min-width: 0;
    font-size: 13px; font-weight: 600; color: var(--text-2);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
#gerenciador .rlp-top .app-tgl { flex: 0 0 auto; }

/* interruptor: pill de vidro, anel no lugar da borda */
#gerenciador .app-tgl {
    border: 0;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    box-shadow: var(--ring-strong), var(--mold-soft);
}
#gerenciador .app-tgl.on {
    background: var(--brand-grad-lit);
    box-shadow: var(--ring-brand);
}
#gerenciador .app-tgl-thumb { top: 2px; left: 2px; }
#gerenciador .app-tgl.on .app-tgl-thumb {
    background: #EFFFF7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

/* o palco: vidro secundário, com a luz de marca nascendo no canto */
#gerenciador .rlp-stage {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: var(--r-card);
    border: 0;
    background-color: var(--surface-2);
    background-image:
        var(--veil),
        radial-gradient(120% 90% at 6% 0%, rgba(60, 230, 160, .08) 0%, transparent 58%),
        var(--glass-grad);
    -webkit-backdrop-filter: var(--glass-blur-2);
    backdrop-filter: var(--glass-blur-2);
    box-shadow: var(--ring), var(--mold), var(--drop);
    overflow: hidden;
}
#gerenciador .rlp-stage::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(60, 230, 160, .4), transparent);
}
#gerenciador .rlp-if {
    display: block; margin-bottom: 10px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-3);
}
#gerenciador .rlp-conds { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; min-width: 0; }
#gerenciador .rlp-cond {
    flex: 1 1 180px; min-width: 0;
    display: flex; flex-direction: column; gap: 3px;
    padding: 11px 13px; border-radius: var(--r-card);
    border: 0;
    background-color: rgba(0, 0, 0, .22);          /* poço: afunda no palco em vez de flutuar */
    background-image: linear-gradient(267deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
    box-shadow: var(--ring);
}
#gerenciador .rlp-cond small {
    font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-3);
}
#gerenciador .rlp-cond b { font-size: 12.5px; font-weight: 400; color: var(--text-2); letter-spacing: -.01em; }
#gerenciador .rlp-cond em {
    font-style: normal; font-family: var(--mono); font-variant-numeric: tabular-nums;
    font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -.02em;
    display: block; margin-top: 2px;
}
#gerenciador .rlp-and {
    flex: 0 0 auto; align-self: center;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--text-3);
}
#gerenciador .rlp-then {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin: 14px 0 0; padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
#gerenciador .rlp-then > span {
    font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-3);
}
/* O ÚNICO GLOW DA SEÇÃO: a ação que a regra dispara */
#gerenciador .rlp-then b {
    display: inline-flex; align-items: center;
    padding: 7px 14px; border-radius: var(--r-pill);
    font-size: 15px; font-weight: 600; letter-spacing: -.02em;
    color: #FFE2E0;
    border: 0;
    background: linear-gradient(132deg, rgba(229, 112, 107, .34), rgba(120, 36, 34, .30));
    box-shadow: 0 0 0 1px rgba(229, 112, 107, .55), var(--glow-neg);
}
#gerenciador .rlp-foot {
    display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0;
    font-size: 11.5px; color: var(--text-3); line-height: 1.5;
}
#gerenciador .rlp-foot span { display: inline-flex; align-items: center; gap: 6px; }
#gerenciador .rlp-foot svg { width: 13px; height: 13px; color: var(--text-3); flex: 0 0 auto; }

/* ---------- Pixel: o caminho do evento, sem código ---------- */
#gerenciador .pxf { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#gerenciador .pxf-flow {
    display: flex; align-items: flex-start; gap: 8px; min-width: 0;
    padding: 18px 16px; border-radius: var(--r-card);
    border: 0;
    background-color: var(--surface-2);
    background-image:
        var(--veil),
        radial-gradient(60% 120% at 50% 0%, rgba(60, 230, 160, .08) 0%, transparent 62%),
        var(--glass-grad);
    -webkit-backdrop-filter: var(--glass-blur-2);
    backdrop-filter: var(--glass-blur-2);
    box-shadow: var(--ring), var(--mold), var(--drop);
}
#gerenciador .pxf-node {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
#gerenciador .pxf-node i {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: var(--r-card); border: 0;
    background-color: var(--surface-2);
    background-image: var(--glass-grad);
    box-shadow: var(--ring-strong), var(--mold-soft);
    color: var(--text-2);
}
#gerenciador .pxf-node i svg { width: 19px; height: 19px; }
#gerenciador .pxf-node b { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -.02em; }
#gerenciador .pxf-node small { font-size: 11px; color: var(--text-3); line-height: 1.35; }
#gerenciador .pxf-node.is-mid i {
    background: var(--brand-grad-deep);
    color: var(--brand);
    box-shadow: var(--ring-brand), var(--mold);
}
#gerenciador .pxf-node.is-mid b { color: var(--brand); }
#gerenciador .pxf-wire { flex: 0 1 40px; min-width: 16px; margin-top: 19px; position: relative; height: 6px; }
#gerenciador .pxf-wire::before {
    content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; border-radius: var(--r-pill);
    background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(60, 230, 160, .45));
}
#gerenciador .pxf-wire i {
    position: absolute; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand);            /* sem halo: o glow da seção é da regra */
    animation: pxfdot 2.4s var(--ease) infinite;
}
#gerenciador .pxf-wire:nth-of-type(4) i { animation-delay: .5s; }
@keyframes pxfdot {
    0% { left: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: calc(100% - 6px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { #gerenciador .pxf-wire i { animation: none; left: 50%; } }

#gerenciador .pxf-score {
    display: flex; align-items: center; gap: 16px; min-width: 0;
    padding: 14px 16px; border-radius: var(--r-card);
    border: 0;
    background-color: var(--surface-2);
    background-image:
        var(--veil),
        linear-gradient(90deg, rgba(60, 230, 160, .09), transparent 60%),
        var(--glass-grad);
    -webkit-backdrop-filter: var(--glass-blur-2);
    backdrop-filter: var(--glass-blur-2);
    box-shadow: var(--ring), var(--mold-soft);
}
#gerenciador .pxf-num { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; }
#gerenciador .pxf-num b {
    font-family: var(--mono); font-variant-numeric: tabular-nums;
    font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.04em;
    color: var(--brand);
    text-shadow: none;
}
#gerenciador .pxf-num small { font-size: 10.5px; color: var(--text-3); margin-top: 4px; letter-spacing: .06em; }
#gerenciador .pxf-sc { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#gerenciador .pxf-sc b { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -.02em; }
#gerenciador .pxf-sc small { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }

/* barras: trilho de vidro com molde, preenchimento no gradiente de marca */
#gerenciador .pxf-bar,
#gerenciador .pxf-keys li i {
    display: block; height: 6px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .04);
    position: relative; overflow: hidden;
}
#gerenciador .pxf-bar { margin-top: 4px; }
#gerenciador .pxf-bar::after,
#gerenciador .pxf-keys li i::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: var(--r-pill);
    background: var(--brand-grad-lit);
    box-shadow: none;
}
#gerenciador .pxf-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
#gerenciador .pxf-keys li {
    display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 42px;
    gap: 10px; align-items: center; font-size: 12px; color: var(--text-2);
}
#gerenciador .pxf-keys li b {
    text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums;
    font-weight: 500; color: var(--text); font-size: 11.5px;
}

/* ---------- Detalhar: virou detalhe compacto ---------- */
#gerenciador .hrm {
    display: flex; flex-direction: column; gap: 10px; min-width: 0;
    padding: 14px 14px 12px; border-radius: var(--r-card);
    border: 0;
    background-color: var(--surface-2);
    background-image:
        var(--veil),
        radial-gradient(70% 60% at 85% 10%, rgba(60, 230, 160, .07), transparent 70%),
        var(--glass-grad);
    -webkit-backdrop-filter: var(--glass-blur-2);
    backdrop-filter: var(--glass-blur-2);
    box-shadow: var(--ring), var(--mold), var(--drop);
}
#gerenciador .hrm-t { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 12.5px; }
#gerenciador .hrm-t b { font-weight: 600; color: var(--text); }
#gerenciador .hrm-t span { font-size: 11px; color: var(--text-3); }
#gerenciador .hrm { flex: 0 1 auto; }
#gerenciador .hrm-chart { display: block; width: 100%; height: auto; min-height: 76px; max-height: 150px; flex: 1 1 auto; }
#gerenciador .hrm-cuts {
    display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding: 0;
    align-content: flex-end;
}
#gerenciador .hrm-chart rect { fill: rgba(255, 255, 255, .11); }
#gerenciador .hrm-chart rect.is-hi { fill: var(--brand); }
#gerenciador .hrm-x { display: flex; justify-content: space-between; margin: 0; font-size: 10px; color: var(--text-3); }
#gerenciador .hrm-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
#gerenciador .hrm-facts span {
    flex: 1 1 110px; display: flex; flex-direction: column; gap: 2px;
    padding: 8px 10px; border-radius: var(--r-card);
    border: 0;
    background-color: rgba(0, 0, 0, .2);
    background-image: linear-gradient(267deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    box-shadow: var(--ring);
}
#gerenciador .hrm-facts small {
    font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
#gerenciador .hrm-facts b {
    font-family: var(--mono); font-variant-numeric: tabular-nums;
    font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -.02em;
}
#gerenciador .hrm-facts span:first-child b { color: var(--brand); }

/* ---------- 414px ---------- */
@media (max-width: 560px) {
    #gerenciador .bento::before { inset: -60px -10% -40px; }
    #gerenciador .rlp-stage { padding: 15px 14px 14px; }
    #gerenciador .rlp-conds { flex-direction: column; align-items: stretch; }
    #gerenciador .rlp-cond { flex: 0 0 auto; }
    #gerenciador .rlp-and { align-self: flex-start; padding-left: 2px; }
    #gerenciador .rlp-then b { font-size: 14px; }
    #gerenciador .pxf-flow { flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 12px; }
    #gerenciador .pxf-node { flex-direction: row; align-items: center; text-align: left; gap: 11px; }
    #gerenciador .pxf-node b { flex: 0 0 auto; }
    #gerenciador .pxf-node small { flex: 1 1 auto; }
    #gerenciador .pxf-wire { margin: 0 0 0 19px; width: 6px; min-width: 6px; height: 16px; flex: 0 0 16px; }
    #gerenciador .pxf-wire::before {
        left: 2px; right: auto; top: 0; bottom: 0; width: 2px; height: 100%;
        background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(60, 230, 160, .45));
    }
    #gerenciador .pxf-wire i { animation: pxfdotv 2.4s var(--ease) infinite; left: 0; top: 0; }
    @keyframes pxfdotv { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
    #gerenciador .pxf-score { gap: 12px; padding: 13px 14px; }
    #gerenciador .pxf-num b { font-size: 34px; }
    #gerenciador .pxf-keys li { grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 40px; gap: 8px; font-size: 11.5px; }
}

/* ==========================================================================
   CARD VISUAL (26/09, tarde) — padrão Zouti: o DESENHO em cima (~65% do card),
   título + 2 linhas embaixo. O desenho explica a feature sem ler nada.
   Alertas = tela de bloqueio com as notificações chegando.
   Regras  = CPA cruzando o limite, a regra pausando e o gasto parando.
   ========================================================================== */
#gerenciador .b-vis { padding: 14px 14px 20px; }
#gerenciador .b-vis .bcard-live { margin: 0 0 18px; flex: 1 1 auto; }
#gerenciador .b-vis .bcard-live > * { margin-bottom: 0; }
#gerenciador .b-vis .bcard-h,
#gerenciador .b-vis .bcard-p { padding: 0 8px; }
#gerenciador .b-vis .bcard-p { margin-top: 8px; max-width: 48ch; text-wrap: pretty; }

/* palco comum: camada interna mais escura que o card, fio de 1px */
#gerenciador .lk,
#gerenciador .rg {
    position: relative;
    height: 100%;
    min-height: 262px;
    border-radius: var(--r-card);
    background-color: var(--surface-2);
    box-shadow: var(--ring);
    overflow: hidden;
}

/* ---------- Alertas: tela de bloqueio de iPhone (v2, 26/09) ----------
   Copiado do aparelho, não inventado: moldura preta com aro fino, Dynamic
   Island, barra de status, data + hora grandes, notificações no material
   escuro do iOS (todas iguais: o iOS não pinta notificação de vermelho), ícone
   real do WhatsApp e a segunda agrupada (a pilha atrás dela). Grão no papel
   de parede pra não parecer gradiente de IA. */
#gerenciador .lk {
    background-image: radial-gradient(55% 60% at 50% 18%, rgba(60, 230, 160, .08), transparent 70%);
    --ios: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
}
#gerenciador .lk-phone {
    position: relative;
    width: min(318px, 86%);
    height: 372px;
    margin: 22px auto 0;
    padding: 8px 8px 0;
    border-radius: 50px 50px 0 0;
    background: #050505;
    /* aro de titânio: 1px claro por fora, nada de bisel */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 2.5px #262a28, 0 34px 60px -24px rgba(0, 0, 0, .9);
    -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 97%);
            mask-image: linear-gradient(180deg, #000 76%, transparent 97%);
}
#gerenciador .lk-screen {
    position: relative;
    height: 100%;
    padding: 12px 12px 0;
    border-radius: 42px 42px 0 0;
    overflow: hidden;
    font-family: var(--ios);
    color: #fff;
    /* papel de parede: manchas de cor desfocadas, como os abstratos do iOS */
    background:
        radial-gradient(70% 45% at 18% 12%, #2E8C66 0%, transparent 62%),
        radial-gradient(60% 40% at 92% 30%, #125E6E 0%, transparent 64%),
        radial-gradient(80% 50% at 40% 62%, #0B3D2C 0%, transparent 70%),
        radial-gradient(90% 60% at 80% 100%, #04211A 0%, transparent 70%),
        #03110D;
}
#gerenciador .lk-screen::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    opacity: .16; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#gerenciador .lk-bar {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: 30px; margin: 0; padding: 0 10px;
    font-size: 13px; font-weight: 600; letter-spacing: -.01em;
}
#gerenciador .lk-island { width: 92px; height: 27px; border-radius: 999px; background: #000; }
#gerenciador .lk-sys { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
#gerenciador .lk-sys svg { height: 10px; width: auto; fill: #fff; }
#gerenciador .lk-bat {
    position: relative; width: 22px; height: 11px; border-radius: 3.5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
#gerenciador .lk-bat::after { content: ""; position: absolute; right: -3px; top: 3.5px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .45); }
#gerenciador .lk-bat i { position: absolute; left: 2px; top: 2px; bottom: 2px; width: calc((100% - 4px) * var(--b)); border-radius: 1.5px; background: #fff; }

#gerenciador .lk-clock { position: relative; z-index: 1; margin: 14px 0 18px; text-align: center; line-height: 1; }
#gerenciador .lk-clock span { display: block; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .78); letter-spacing: -.01em; }
#gerenciador .lk-clock b {
    display: block; margin-top: 2px;
    font-size: 78px; font-weight: 700; letter-spacing: -.035em;
    color: rgba(226, 250, 238, .9);
}

#gerenciador .lk-stack { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#gerenciador .lk-n {
    position: relative;
    display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center;
    padding: 11px 13px 12px 11px;
    border-radius: 21px;
    background: rgba(28, 34, 31, .58);
    -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
    transition: opacity .5s var(--ease), transform .6s cubic-bezier(.2, .9, .25, 1.08);
    transition-delay: calc(.35s + var(--d) * .9s);
}
/* notificação agrupada: duas camadas atrás, como o iOS empilha */
#gerenciador .lk-n.is-grp { margin-bottom: 14px; }
#gerenciador .lk-n.is-grp::before,
#gerenciador .lk-n.is-grp::after {
    content: ""; position: absolute; left: 50%; z-index: -1; height: 100%;
    border-radius: 21px; background: rgba(28, 34, 31, .42);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    transform: translateX(-50%);
}
#gerenciador .lk-n.is-grp::before { top: 7px;  width: 93%; }
#gerenciador .lk-n.is-grp::after  { top: 13px; width: 85%; background: rgba(28, 34, 31, .28); }
#gerenciador .lk-ic {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(180deg, #5FFC7B, #28D146);
}
#gerenciador .lk-ic svg { width: 21px; height: 21px; fill: #fff; }
#gerenciador .lk-tx { display: grid; gap: 1px; min-width: 0; font-size: 13.5px; line-height: 1.28; letter-spacing: -.01em; }
#gerenciador .lk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
#gerenciador .lk-h b { font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gerenciador .lk-h time { flex: none; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
#gerenciador .lk-t {
    color: rgba(255, 255, 255, .92);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.js #gerenciador .rv:not(.in) .lk-n { opacity: 0; transform: translateY(-18px) scale(.94); }

/* ---------- Regras: o gráfico que a regra lê ---------- */
#gerenciador .rg {
    display: flex; flex-direction: column;
    padding: 14px 14px 10px;
    background-image: radial-gradient(70% 60% at 55% 20%, rgba(60, 230, 160, .07), transparent 70%);
}
#gerenciador .rg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
#gerenciador .rg-name { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
#gerenciador .rg-name svg { width: 14px; height: 14px; color: var(--brand); }
#gerenciador .rg-chart { position: relative; flex: 1 1 auto; min-height: 176px; margin-top: 8px; }
#gerenciador .rg-chart > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#gerenciador .rg-chart > svg * { vector-effect: non-scaling-stroke; }
#gerenciador .rg-grid { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
#gerenciador .rg-lim  { stroke: rgba(229, 112, 107, .55); stroke-width: 1; stroke-dasharray: 4 4; }
#gerenciador .rg-lim.is-soft { stroke: rgba(255, 255, 255, .18); }
#gerenciador .rg-cpa {
    fill: none; stroke: #F08A85; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
#gerenciador .rg-area  { fill: url(#rg-fill); }
#gerenciador .rg-spend { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#gerenciador .rg-flat  { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .7; }
#gerenciador .rg-clip  { transform-box: fill-box; transform-origin: left center; transition: transform 2.1s var(--ease) .3s; }
#gerenciador .rg-clip.is-cpa { transition-duration: 1.5s; }
#gerenciador .rg-cut   { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 2 3; transition: opacity .4s var(--ease) 1.8s; }

#gerenciador .rg-lbl {
    position: absolute; font-size: 11px; line-height: 1; color: var(--text-3); white-space: nowrap; pointer-events: none;
}
#gerenciador .rg-lbl b { font-weight: 600; color: var(--text-2); }
#gerenciador .rg-lbl.is-cpa   { left: 5.6%; top: calc(49% - 20px); color: #F08A85; }
#gerenciador .rg-lbl.is-lim   { right: 4.4%; top: calc(33.3% - 17px); }
#gerenciador .rg-lbl.is-lim b { color: #F08A85; }
#gerenciador .rg-lbl.is-spend { left: 5.6%; top: calc(73.3% + 8px); color: var(--brand); }
#gerenciador .rg-lbl.is-lim2  { left: 25%; top: calc(73.3% - 16px); }

#gerenciador .rg-dot {
    position: absolute; left: 51.7%; top: 29.3%;
    width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
    background: #F08A85; box-shadow: 0 0 0 4px rgba(229, 112, 107, .22);
    transition: opacity .3s var(--ease) 1.6s, transform .4s var(--ease) 1.6s;
}
#gerenciador .rg-pause {
    position: absolute; left: 51.7%; top: 0; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px 5px 8px; border-radius: var(--r-pill);
    font-size: 11.5px; font-weight: 600; color: #fff; white-space: nowrap;
    background: linear-gradient(132deg, rgba(229, 112, 107, .38), rgba(120, 36, 34, .34));
    box-shadow: 0 0 0 1px rgba(229, 112, 107, .5), var(--glow-neg);
    transition: opacity .35s var(--ease) 1.8s, transform .45s var(--ease) 1.8s;
}
#gerenciador .rg-pause svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
#gerenciador .rg-stop {
    position: absolute; right: 4.4%; top: calc(71% - 19px);
    font-size: 11px; color: var(--text-3); white-space: nowrap;
    transition: opacity .4s var(--ease) 2.3s;
}
#gerenciador .rg-stop b { color: var(--brand); font-weight: 600; }
#gerenciador .rg-x {
    display: flex; justify-content: space-between; margin: 6px 0 0; padding: 0 3% 0 4.5%;
    font-size: 10.5px; color: var(--text-3);
}
#gerenciador .rg-x span:nth-child(2) { margin-left: 4%; }

.js #gerenciador .rv:not(.in) .rg-clip  { transform: scaleX(.02); }
.js #gerenciador .rv:not(.in) .rg-cut,
.js #gerenciador .rv:not(.in) .rg-stop  { opacity: 0; }
.js #gerenciador .rv:not(.in) .rg-dot   { opacity: 0; transform: scale(.3); }
.js #gerenciador .rv:not(.in) .rg-pause { opacity: 0; transform: translate(-50%, 6px); }

@media (prefers-reduced-motion: reduce) {
    #gerenciador .lk-n, #gerenciador .rg-clip, #gerenciador .rg-cut,
    #gerenciador .rg-dot, #gerenciador .rg-pause, #gerenciador .rg-stop { transition: none; }
    .js #gerenciador .rv:not(.in) :is(.lk-n, .rg-cut, .rg-stop, .rg-dot) { opacity: 1; transform: none; }
    .js #gerenciador .rv:not(.in) .rg-pause { opacity: 1; transform: translateX(-50%); }
    .js #gerenciador .rv:not(.in) .rg-clip  { transform: none; }
}
@media (max-width: 760px) {
    #gerenciador .lk, #gerenciador .rg { min-height: 250px; }
}

/* linha 2 no padrão visual: o gráfico de hora ocupa o palco inteiro */
#gerenciador .b-vis .hrm { flex: 1 1 auto; height: 100%; }
#gerenciador .b-vis .hrm-chart { max-height: none; min-height: 120px; }
