/* gerenciar: usa as variáveis, o fundo, a moldura da logo e o botão âmbar do style.css do site */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body { align-items: start; }

.ctl {
    --pink: #f472b6;
    --violet: #a78bfa;
    width: min(100%, 468px);
    padding: calc(36px + env(safe-area-inset-top, 0px)) 16px calc(48px + env(safe-area-inset-bottom, 0px));
}

body.in .ctl {
    width: min(100%, 1220px);
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    padding-bottom: 0;
}

/* na troca de app, a miniatura do sistema não mostra nada */
body.veiled .ctl { filter: blur(18px); opacity: .4; }

svg { overflow: visible; }

.ctl-sub svg,
.chip-btn svg,
.eye-btn svg,
.lk-ico svg,
.fl-ico svg,
.nav-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── cabeçalho da entrada ── */
.ctl-hero {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
    animation: rise .6s var(--ease) both;
}

.ctl-hero .logo { width: 72px; height: 72px; margin: 0 0 10px; border-radius: 21px; }
.ctl-hero .logo img,
.ctl-hero .logo::after { width: 70px; height: 70px; border-radius: 20px; }
.ctl-hero h1 { font: 600 26px var(--mono); letter-spacing: -0.02em; }

.ctl-sub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px 4px 9px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--chip-border);
    border-radius: 99px;
    background: rgb(255 255 255 / 0.03);
}

.ctl-sub svg { color: var(--green); }

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* ── vidro: a mesma face dos cartões do site, sem a inclinação ── */
.glass {
    --c: var(--blue);
    position: relative;
    border: 1px solid color-mix(in srgb, var(--c) 14%, #222d45);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.012) 45%, rgb(255 255 255 / 0) 60%),
        linear-gradient(rgb(23 33 58 / 0.62), rgb(12 19 34 / 0.74));
    -webkit-backdrop-filter: blur(6px) saturate(1.4);
    backdrop-filter: blur(6px) saturate(1.4);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.12),
        inset 0 -8px 12px -10px rgb(0 0 0 / 0.6),
        0 1px 0 color-mix(in srgb, var(--c) 12%, #0b111f),
        0 5px 0 color-mix(in srgb, var(--c) 8%, #060a12),
        0 6px 0 rgb(0 0 0 / 0.45),
        0 20px 30px -12px rgb(0 0 0 / 0.85);
}

.glass::before {
    content: "";
    position: absolute;
    inset: 0 18px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.14), transparent);
}

[data-c="amber"] { --c: var(--amber); }
[data-c="blue"] { --c: var(--blue); }
[data-c="green"] { --c: var(--green); }
[data-c="pink"] { --c: var(--pink); }
[data-c="violet"] { --c: var(--violet); }

/* ── trancas: você → passkey → código → senha ── */
.gate { animation: rise .6s .08s var(--ease) both; }
.gate[hidden] { display: none; }

.locks {
    display: flex;
    align-items: flex-start;
    margin: 26px 4px 22px;
    list-style: none;
}

.lk {
    flex: none;
    display: grid;
    justify-items: center;
    gap: 7px;
    width: 52px;
}

.lk-ico,
.fl-ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--muted);
    border: 1px solid var(--chip-border);
    border-radius: 11px;
    background: linear-gradient(var(--surf-top), var(--surf-bot));
    overflow: hidden;
    transition: color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.lk-ico svg { width: 17px; height: 17px; stroke-width: 1.4; }

.lk b { font: 400 10.5px var(--mono); color: var(--muted); transition: color .35s var(--ease); }

.lk.on .lk-ico, .lk.ok .lk-ico, .lk.no .lk-ico,
.fl.on .fl-ico, .fl.ok .fl-ico, .fl.no .fl-ico, .fl.warn .fl-ico {
    color: rgb(var(--rgb));
    border-color: rgb(var(--rgb) / 0.6);
    box-shadow: 0 0 20px -6px rgb(var(--rgb) / 0.75), inset 0 0 12px -4px rgb(var(--rgb) / 0.5);
}

.lk.on, .lk.ok, .lk.no, .fl.on, .fl.ok, .fl.no, .fl.warn { --rgb: 245 177 76; }
.lk.ok, .fl.ok { --rgb: 52 211 153; }
.lk.no, .fl.no { --rgb: 244 114 182; }
.lk.on b, .lk.ok b, .lk.no b { color: var(--text); }

/* a tranca da vez respira; ao abrir, um reflexo atravessa o ícone */
.lk.on .lk-ico, .fl.on .fl-ico { animation: breathe 1.8s ease-in-out infinite; }

.lk.ok .lk-ico::after,
.fl.ok .fl-ico::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -60%;
    width: 45%;
    rotate: 20deg;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.3), transparent);
    animation: sheen-once .9s var(--ease) both;
}

.lk.no .lk-ico, .fl.no .fl-ico { animation: treme .4s var(--ease); }

@keyframes breathe {
    50% { box-shadow: 0 0 28px -4px rgb(var(--rgb) / 0.9), inset 0 0 14px -4px rgb(var(--rgb) / 0.6); }
}

@keyframes sheen-once {
    from { left: -60%; }
    to { left: 130%; }
}

/* fio: pontilhado parado; alcançado, uma luz corre e ele fica aceso */
.lk-wire {
    position: relative;
    flex: 1;
    height: 1px;
    margin: 19px 2px 0;
    background: repeating-linear-gradient(90deg, var(--chip-border) 0 4px, transparent 4px 8px);
}

.lk-wire i,
.fl-wire i {
    position: absolute;
    inset: -0.5px auto -0.5px 0;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, rgb(52 211 153 / 0.4), rgb(52 211 153 / 0.95));
    box-shadow: 0 0 8px rgb(52 211 153 / 0.6);
    transition: width .6s var(--ease), height .6s var(--ease);
}

.lk-wire.ok i, .fl-wire.run i { width: 100%; }
.lk-wire.no i, .fl-wire.no i { width: 100%; background: linear-gradient(90deg, rgb(244 114 182 / 0.3), rgb(244 114 182 / 0.9)); box-shadow: 0 0 8px rgb(244 114 182 / 0.6); }

/* ── cartão da entrada ── */
.gate-card { padding: 22px 20px 16px; }

.step { display: grid; gap: 12px; animation: rise .4s var(--ease) both; }
.step[hidden] { display: none; }
.step h3 { font-size: 17px; font-weight: 600; color: var(--text); }
.step > p { margin-top: -6px; font-size: 13px; line-height: 1.5; color: var(--body); }
.step .vault-open { width: 100%; margin-top: 4px; }
.step code { font: 12px var(--mono); color: var(--text); }

.step > p.fine,
.fine {
    margin-top: -4px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--muted);
}

.fine b { color: var(--body); font-weight: 600; }

.howto {
    display: grid;
    gap: 5px;
    margin: -4px 0 2px 18px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--body);
}

.howto li::marker { color: var(--amber); font: 600 12px var(--mono); }

.cmd {
    display: block;
    padding: 11px 12px;
    font: 13px var(--mono) !important;
    color: #bbf7d0 !important;
    text-align: center;
    border: 1px dashed rgb(52 211 153 / 0.4);
    border-radius: 10px;
    background: rgb(52 211 153 / 0.06);
    user-select: all;
}

.in {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font: 15px var(--sans);
    color: var(--text);
    background: rgb(255 255 255 / 0.03);
    border: 1px solid var(--chip-border);
    border-radius: 11px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.in::placeholder { color: var(--faint); }

.in:focus {
    border-color: rgb(96 165 250 / 0.55);
    background: rgb(96 165 250 / 0.04);
    box-shadow: 0 0 22px -6px rgb(96 165 250 / 0.45);
}

.in.sm { padding: 9px 12px; font-size: 14px; }

.code-in {
    padding: 12px 10px 12px calc(10px + .55em);
    font: 600 28px var(--mono);
    letter-spacing: .55em;
    text-align: center;
}

.code-in.sm { font-size: 20px; padding-block: 9px; }
.rec-in { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }

form.err .in {
    border-color: rgb(248 113 113 / 0.6);
    box-shadow: 0 0 18px -8px rgb(248 113 113 / 0.6);
    animation: treme .4s var(--ease);
}

/* o login (usuário) fica à vista: o Bitwarden separa "gerenciar" de "contato" por ele */
.user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 11.5px;
    color: var(--muted);
    border: 1px dashed var(--chip-border);
    border-radius: 11px;
}

.user-in {
    flex: 1;
    min-width: 0;
    padding: 0;
    font: 600 13px var(--mono);
    color: var(--text);
    background: none;
    border: 0;
    outline: none;
}

.boot-row { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.boot-row[hidden] { display: none; }

/* senha nova: olho dentro do campo, gerador e medidor */
.pw-field { position: relative; display: flex; }
.pw-field .in { padding-right: 46px; }

.pw-eye {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    padding: 0;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.pw-eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--amber); background: rgb(245 177 76 / 0.08); }

.pw-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.pw-meter {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 11px var(--mono);
    color: var(--muted);
}

.pw-meter i {
    position: relative;
    width: 64px;
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: rgb(255 255 255 / 0.08);
}

.pw-meter i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: var(--pink);
    transition: width .3s var(--ease), background-color .3s;
}

.pw-meter[data-s="-1"] { visibility: hidden; }
.pw-meter[data-s="0"] i::after { width: 14%; }
.pw-meter[data-s="1"] i::after { width: 40%; }
.pw-meter[data-s="2"] i::after { width: 70%; background: var(--amber); }
.pw-meter[data-s="3"] i::after { width: 100%; background: var(--green); box-shadow: 0 0 8px rgb(52 211 153 / 0.7); }
.pw-meter[data-s="0"] b, .pw-meter[data-s="1"] b { color: var(--pink); font-weight: 400; }
.pw-meter[data-s="2"] b { color: var(--amber); font-weight: 400; }
.pw-meter[data-s="3"] b { color: var(--green); font-weight: 400; }

.link {
    justify-self: center;
    padding: 4px 8px;
    font: 12px var(--sans);
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
}

.link:hover { color: var(--text); }
.link.sm { padding: 2px 4px; font-size: 11.5px; }

.gate-msg {
    min-height: 18px;
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
    color: #fca5a5;
}

.gate-msg:empty { margin-top: 0; }
.gate-msg.busy { color: var(--muted); }
.gate-msg.good { color: var(--green); }

/* instalação: QR do app autenticador e a chave para digitar */
.totp-qr {
    justify-self: center;
    width: min(100%, 196px);
    aspect-ratio: 1;
    padding: 8px;
    border-radius: 14px;
    background: #f1f4f9;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 16px 30px -14px rgb(96 165 250 / 0.5);
}

.totp-qr:empty { display: none; }
.totp-qr svg { display: block; width: 100%; height: 100%; }
.totp-key { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.totp-key code { font: 12px var(--mono); color: var(--text); word-spacing: .2em; }

/* botão de vidro pequeno */
.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    font: 500 12px var(--sans);
    color: var(--body);
    border: 1px solid var(--chip-border);
    border-radius: 99px;
    background: rgb(255 255 255 / 0.04);
    cursor: pointer;
    transition: color .2s, border-color .2s, background-color .2s, filter .2s;
}

.chip-btn:hover { color: var(--text); border-color: rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.08); }
.chip-btn:disabled { opacity: .55; cursor: progress; }
.chip-btn[hidden] { display: none; }
.chip-btn.warn:hover, .chip-btn.warn.arm { color: #fbcfe8; border-color: rgb(244 114 182 / 0.5); background: rgb(244 114 182 / 0.1); }
.chip-btn.primary { color: #2a1a04; font-weight: 600; border-color: transparent; background: linear-gradient(#ffcf7d, #f5b14c); }
.chip-btn.primary:hover { color: #2a1a04; filter: brightness(1.07); }

/* ══ painel: menu + conteúdo ══ */
/* só opacidade: um transform aqui prenderia a barra fixa e o aviso dentro do painel */
.app { display: grid; gap: 16px; animation: fade .5s var(--ease) both; }

@keyframes fade {
    from { opacity: 0; }
}
.app[hidden] { display: none; }
.main { min-width: 0; padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }

/* celular: barra fixa embaixo, cinco seções */
.nav {
    --c: var(--amber);
    position: fixed;
    z-index: 20;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px;
    border-radius: 20px;
}

.nav .nav-brand, .nav-foot { display: none; }

.nav-btn {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 0 7px;
    font: 500 10px var(--sans);
    letter-spacing: -0.01em;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.nav-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-btn svg { width: 19px; height: 19px; transition: color .2s, filter .2s; }
.nav-btn:hover { color: var(--text); }
.nav-btn[aria-current="page"] { color: var(--text); background: rgb(245 177 76 / 0.1); }
.nav-btn[aria-current="page"] svg { color: var(--amber); filter: drop-shadow(0 0 6px rgb(245 177 76 / 0.6)); }

.badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 5px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font: normal 600 9.5px/16px var(--mono);
    text-align: center;
    color: #2a1a04;
    background: var(--amber);
    border-radius: 99px;
    box-shadow: 0 0 10px rgb(245 177 76 / 0.6);
}

.badge:empty { display: none; }
.badge.warn { color: #2b0a1a; background: var(--pink); box-shadow: 0 0 10px rgb(244 114 182 / 0.6); }

.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.topbar > div { flex: 1; min-width: 0; }
.view-title { font-size: 20px; font-weight: 600; color: var(--text); }
.view-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

.view { animation: rise .35s var(--ease) both; }
.view[hidden] { display: none; }

/* computador: menu lateral fixo, conteúdo ao lado */
@media (min-width: 900px) {
    .app { grid-template-columns: 236px minmax(0, 1fr); align-items: start; gap: 22px; }
    .main { padding: 6px 0 40px; }

    .nav {
        position: sticky;
        top: 18px;
        left: auto;
        right: auto;
        bottom: auto;
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-height: calc(100svh - 36px);
        padding: 16px 12px 14px;
        border-radius: 18px;
    }

    .nav .nav-brand {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 8px;
        padding: 2px 6px 16px;
        border-bottom: 1px solid rgb(255 255 255 / 0.06);
    }

    .nav-brand .logo { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
    .nav-brand .logo img, .nav-brand .logo::after { width: 38px; height: 38px; border-radius: 11px; }
    .nav-brand b { display: block; font: 600 15px var(--mono); color: var(--text); }
    .nav-brand small { font: 11px var(--mono); color: var(--muted); }

    .nav-btn {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 10px 12px;
        font-size: 13.5px;
        letter-spacing: 0;
        text-align: left;
    }

    .nav-btn span { flex: 1; }
    .nav-btn svg { width: 17px; height: 17px; }
    .badge { position: static; }

    .nav-foot {
        display: grid;
        gap: 10px;
        margin-top: auto;
        padding: 14px 6px 0;
        border-top: 1px solid rgb(255 255 255 / 0.06);
    }

    .nav-foot .chip-btn { justify-self: start; }
    .nav-session { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
    .top-logout { display: none; }
}

/* ── grades fixas ── */
.ov {
    display: grid;
    gap: 14px;
    grid-template-areas: "stats" "flow" "soon" "recent";
    align-items: stretch;
}

.stats { grid-area: stats; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.flow-card { grid-area: flow; }
.soon-card { grid-area: soon; }
.recent-card { grid-area: recent; }

.duo { display: grid; gap: 14px; }


.stat {
    display: grid;
    gap: 2px;
    padding: 14px 16px 13px;
    animation: rise .5s var(--ease) both;
}

.stat:nth-child(2) { animation-delay: .05s; }
.stat:nth-child(3) { animation-delay: .1s; }
.stat:nth-child(4) { animation-delay: .15s; }

.stat b {
    font: 600 26px var(--mono);
    line-height: 1.15;
    color: color-mix(in srgb, var(--c) 70%, #fff);
    text-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent);
}

.stat span { font-size: 12px; color: var(--muted); }

.pane { padding: 16px 16px 14px; animation: rise .5s .08s var(--ease) both; }

.pane > header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.pane h3 {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.pane h3::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 8px 1px 0;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 10px var(--c);
}

.pane > .fine { margin-top: 10px; }
.pane-text { font-size: 12.5px; line-height: 1.5; color: var(--body); }

.tag {
    flex: none;
    padding: 2px 8px;
    font: 10.5px var(--mono);
    color: var(--muted);
    border: 1px solid var(--chip-border);
    border-radius: 99px;
}

.tag:empty { display: none; }
.tag.ok { color: var(--green); border-color: rgb(52 211 153 / 0.35); }
.tag.busy { color: var(--amber); border-color: rgb(245 177 76 / 0.4); }
.tag.no { color: var(--pink); border-color: rgb(244 114 182 / 0.4); }

/* ── diagrama: você → Worker → GitHub → site → convidados ── */
.flow-card { container: flow / inline-size; }

.flow {
    display: flex;
    align-items: flex-start;
    padding: 10px 2px 6px;
    list-style: none;
}

.fl {
    flex: none;
    display: grid;
    justify-items: center;
    gap: 4px;
    width: 96px;
    text-align: center;
}

.fl-ico { width: 48px; height: 48px; margin-bottom: 4px; border-radius: 14px; color: var(--body); }
.fl-ico svg { width: 20px; height: 20px; stroke-width: 1.35; }
.fl b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.fl small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 10.5px var(--mono); color: var(--muted); }
.fl.warn small { color: var(--amber); }

.fl-wire {
    position: relative;
    flex: 1;
    min-width: 24px;
    height: 1px;
    margin: 24px 4px 0;
    background: repeating-linear-gradient(90deg, var(--chip-border) 0 4px, transparent 4px 8px);
}

/* em repouso, um pulso calmo mostra o sentido; gravando, a luz corre e fica acesa */
.fl-wire::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
    opacity: 0;
    animation: travel 3.6s ease-in-out infinite;
}

.fl-wire:nth-of-type(4)::after { animation-delay: .9s; }
.fl-wire:nth-of-type(6)::after { animation-delay: 1.8s; }
.fl-wire:nth-of-type(8)::after { animation-delay: 2.7s; }
.fl-wire.run::after { background: var(--green); box-shadow: 0 0 8px var(--green); animation-duration: 1.1s; }

.fl-wire em {
    position: absolute;
    top: 9px;
    left: 50%;
    translate: -50% 0;
    font: normal 9.5px var(--mono);
    color: var(--faint);
    white-space: nowrap;
}

@keyframes travel {
    0% { left: 0; opacity: 0; }
    15% { opacity: .9; }
    85% { opacity: .9; }
    100% { left: calc(100% - 5px); opacity: 0; }
}

.flow-msg { min-height: 0; margin-top: 4px; font-size: 12px; text-align: center; color: #fca5a5; }
.flow-msg.busy { color: var(--muted); }
.flow-msg.good { color: var(--green); }

/* o nome do que passa em cada fio só aparece quando cabe */
@container flow (max-width: 879px) {
    .fl-wire em { display: none; }
}

/* cartão estreito (celular): o caminho na vertical, com o nome do fio ao lado */
@container flow (max-width: 559px) {
    .fl-wire em { display: block; }
    .flow { flex-direction: column; align-items: stretch; padding: 4px 2px; }
    .fl { width: auto; grid-template-columns: 44px 1fr; justify-items: start; column-gap: 12px; row-gap: 0; text-align: left; }
    .fl-ico { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
    .fl b { align-self: end; }
    .fl small { align-self: start; }
    .fl-wire { flex: none; width: 1px; height: 28px; min-width: 0; margin: 3px 0 3px 22px; background: repeating-linear-gradient(180deg, var(--chip-border) 0 4px, transparent 4px 8px); }
    .fl-wire i { transition: height .6s var(--ease); inset: 0 -0.5px auto -0.5px; width: auto; height: 0; background: linear-gradient(180deg, rgb(52 211 153 / 0.4), rgb(52 211 153 / 0.95)); }
    .fl-wire.run i, .fl-wire.no i { width: auto; height: 100%; }
    .fl-wire::after { left: -2px; top: 0; animation-name: travel-down; }
    .fl-wire em { top: 50%; left: 18px; translate: 0 -50%; }
}

@keyframes travel-down {
    0% { top: 0; opacity: 0; }
    15% { opacity: .9; }
    85% { opacity: .9; }
    100% { top: calc(100% - 5px); opacity: 0; }
}

/* ── listas ── */
.list { list-style: none; }

.item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 2px;
    font-size: 13px;
    color: var(--text);
    border-top: 1px solid rgb(255 255 255 / 0.05);
}

.list > .item:first-child { border-top: 0; }
.item-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.item-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-main small { font-size: 11.5px; color: var(--muted); }
.item-main .muted { color: var(--muted); font-style: italic; }
.item-side { flex: none; font: 11.5px var(--mono); color: var(--muted); }
.item-side.soon { color: var(--amber); }
.item-side.gone { color: var(--pink); }
.item.empty { color: var(--muted); font-size: 12.5px; }
.item.note { font-size: 12.5px; line-height: 1.45; color: var(--amber); }
.item.guest .item-main small { white-space: normal; }
.mono { font-family: var(--mono); font-size: 12.5px; }

.times { margin-left: 7px; font: normal 600 10.5px var(--mono); color: var(--amber); }

.dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgb(52 211 153 / 0.7);
}

.dot.soon { background: var(--amber); box-shadow: 0 0 10px rgb(245 177 76 / 0.7); }
.dot.gone { background: var(--pink); box-shadow: 0 0 10px rgb(244 114 182 / 0.7); }

.flag {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 22px;
    font: 600 10.5px var(--mono);
    color: var(--green);
    border: 1px solid rgb(52 211 153 / 0.35);
    border-radius: 6px;
}

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }

.filter {
    height: 28px;
    padding: 0 11px;
    font: 500 11.5px var(--sans);
    color: var(--muted);
    border: 1px solid var(--chip-border);
    border-radius: 99px;
    background: none;
    cursor: pointer;
    transition: color .2s, border-color .2s, background-color .2s;
}

.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { color: var(--text); border-color: rgb(167 139 250 / 0.5); background: rgb(167 139 250 / 0.1); }

/* cofre: foto, telefone e e-mail (mascarados até tocar no olho) */
.me {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
    padding: 6px 2px 12px;
    border-bottom: 1px solid rgb(255 255 255 / 0.05);
}

.me-photo {
    flex: none;
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--muted);
    border: 1px solid rgb(52 211 153 / 0.35);
    border-radius: 50%;
    background: linear-gradient(var(--surf-top), var(--surf-bot));
    overflow: hidden;
    box-shadow: 0 0 18px -8px rgb(52 211 153 / 0.8);
}

.me-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.me-photo img[hidden] { display: none; }
.me-photo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.me dl { flex: 1; min-width: 0; display: grid; gap: 6px; }
.me dl div { display: grid; }
.me dt { font-size: 11px; color: var(--muted); }
.me dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px var(--mono); color: var(--text); }

.eye-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--muted);
    border: 1px solid var(--chip-border);
    border-radius: 50%;
    background: rgb(255 255 255 / 0.04);
    cursor: pointer;
    transition: color .2s, background-color .2s, border-color .2s;
}

.eye-btn svg { width: 16px; height: 16px; }
.eye-btn:hover, .eye-btn[aria-pressed="true"] { color: var(--amber); border-color: rgb(245 177 76 / 0.4); background: rgb(245 177 76 / 0.08); }

/* segurança e atividade: ícones */
.dev-ico,
.act-ico {
    flex: none;
    position: relative;
    width: 26px;
    height: 26px;
    color: var(--muted);
    border: 1px solid var(--chip-border);
    border-radius: 8px;
    background: rgb(255 255 255 / 0.03);
}

.dev-ico::after,
.act-ico::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
}

.dev-ico { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='1.5' width='8' height='13' rx='2'/%3E%3Cpath d='M7 12.2h2'/%3E%3C/svg%3E"); }
.item.current .dev-ico { color: var(--blue); border-color: rgb(96 165 250 / 0.45); box-shadow: 0 0 14px -6px rgb(96 165 250 / 0.8); }
.item.current .item-side { color: var(--blue); }

.act-ico { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2.5h2.5a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H10M5.5 11l-3-3 3-3M2.7 8H10'/%3E%3C/svg%3E"); }
.act-in .act-ico { color: var(--green); }
.act-out .act-ico { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.5H3.5a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1H6M10.5 11 13.5 8l-3-3M13.3 8H6'/%3E%3C/svg%3E"); }
.act-setup .act-ico,
.act-add .act-ico { color: var(--blue); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='5.2' cy='8' r='2.9'/%3E%3Cpath d='M8.1 8h6.2M12.4 8v2.6M14.3 8v1.8'/%3E%3C/svg%3E"); }
.act-block .act-ico { color: var(--pink); border-color: rgb(244 114 182 / 0.4); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.8'/%3E%3Cpath d='m3.9 3.9 8.2 8.2'/%3E%3C/svg%3E"); }
.act-save .act-ico { color: var(--amber); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='4.5' cy='3.5' r='1.6'/%3E%3Ccircle cx='4.5' cy='12.5' r='1.6'/%3E%3Ccircle cx='11.5' cy='5.5' r='1.6'/%3E%3Cpath d='M4.5 5.1v5.8M11.5 7.1c0 2.4-2 3.2-5.6 4'/%3E%3C/svg%3E"); }

.add { display: grid; gap: 8px; padding: 10px 0 4px; }
.add[hidden] { display: none; }
.add p { font-size: 12.5px; color: var(--body); }
.add-row { display: flex; gap: 8px; }
.add-row .in { flex: 1; }
.add-row .vault-open { height: auto; }

/* convite de aparelho: QR ao lado do texto (embaixo no estreito) */
.invite { display: flex; align-items: center; gap: 16px; padding: 12px 0 4px; }
.invite[hidden] { display: none; }
.invite .invite-qr { flex: none; width: 148px; justify-self: auto; }
.invite-text { display: grid; gap: 6px; min-width: 0; }
.invite-text p { font-size: 12.5px; line-height: 1.5; color: var(--body); }
.invite-text b { color: var(--text); font-weight: 600; }
.invite-text .row-btns { padding-top: 4px; }
.invite-left { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .invite { flex-direction: column; align-items: stretch; } .invite .invite-qr { align-self: center; } }

.row-btns { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }

/* convidados: ações e nome */
.item-acts { flex: none; display: flex; gap: 4px; margin-left: 2px; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 9px;
    background: none;
    cursor: pointer;
    transition: color .2s, border-color .2s, background-color .2s;
}

.icon-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--text); border-color: var(--chip-border); background: rgb(255 255 255 / 0.05); }
.icon-btn.warn:hover, .icon-btn.warn.arm { color: #fbcfe8; border-color: rgb(244 114 182 / 0.5); background: rgb(244 114 182 / 0.12); }
.icon-btn.warn.arm { animation: treme .4s var(--ease); }
.icon-btn:disabled { opacity: .5; cursor: progress; }

@media (pointer: coarse) {
    .icon-btn { width: 36px; height: 36px; }
}

.guest-edit {
    display: grid;
    gap: 8px;
    padding: 10px 2px 12px;
    border-top: 1px solid rgb(255 255 255 / 0.05);
    animation: rise .3s var(--ease) both;
}

.guest-edit small { font-size: 11.5px; color: var(--muted); }
.guest-edit-btns { display: flex; justify-content: flex-end; gap: 8px; }

/* formulário de senha que abre no cartão */
.slot:empty { display: none; }
.slot:not(:empty) + .row-btns { display: none; }   /* com o formulário aberto, os botões do cartão saem */
.pwform { display: grid; gap: 9px; padding: 12px 0 2px; animation: rise .3s var(--ease) both; }

/* ── código de recuperação (aparece uma vez) ── */
.reccode {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 16px;
    animation: rise .4s var(--ease) both;
}

.reccode[hidden] { display: none; }
.reccode > header { display: flex; align-items: center; gap: 8px; }
.reccode h3 { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.reccode p { font-size: 12.5px; line-height: 1.5; color: var(--body); }
.reccode .row-btns { padding-top: 0; }

.rec-value {
    justify-self: center;
    padding: 10px 14px;
    font: 600 clamp(14px, 4.2vw, 19px) var(--mono);
    letter-spacing: .06em;
    text-align: center;
    word-break: break-all;
    color: #bbf7d0;
    border: 1px dashed rgb(52 211 153 / 0.45);
    border-radius: 11px;
    background: rgb(52 211 153 / 0.06);
    user-select: all;
}

/* ── aviso flutuante ── */
.toast {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    translate: -50% 0;
    width: max-content;
    max-width: min(92vw, 460px);
    padding: 10px 16px;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
    color: #fca5a5;
    border: 1px solid var(--chip-border);
    border-radius: 12px;
    background: rgb(12 19 34 / 0.94);
    box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: rise .3s var(--ease) both;
}

.toast[hidden] { display: none; }
.toast.busy { color: var(--body); }
.toast.good { color: var(--green); border-color: rgb(52 211 153 / 0.35); }

@media (min-width: 900px) {
    .toast { bottom: 24px; left: calc(50% + 129px); }
}

@media (prefers-reduced-motion: reduce) {
    .ctl-hero, .gate, .step, .app, .view, .stat, .pane, .toast, .lk.on .lk-ico, .fl.on .fl-ico,
    .lk.ok .lk-ico::after, .fl.ok .fl-ico::after { animation: none; }
    .fl-wire::after { display: none; }
    .lk-wire i, .fl-wire i { transition: none; }
}

/* ── convidados: nova senha, validade, estender e revogar ── */
.ng { display: grid; gap: 9px; }
.ng[hidden], .ng-done[hidden] { display: none; }
.ng .vault-open { width: 100%; margin-top: 4px; }

.chip-btn[aria-pressed="true"] { color: var(--text); border-color: rgb(96 165 250 / 0.55); background: rgb(96 165 250 / 0.12); }

.ng-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ng-lang span { margin-right: 2px; }

.days { display: grid; gap: 8px; padding: 10px 12px 12px; border: 1px solid var(--chip-border); border-radius: 11px; background: rgb(255 255 255 / 0.02); }
.days-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.days-out { font: 600 12.5px var(--mono); color: var(--text); }
.days-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.days-chips .chip-btn { justify-content: center; height: 28px; padding: 0; font: 600 12px var(--mono); }

/* convidado: as ações numa linha própria, embaixo, para o nome e a data respirarem */
.guests .item.guest { flex-wrap: wrap; }
.guests .item.guest .item-acts { flex-basis: 100%; justify-content: flex-end; margin: -2px 0 0; }
.days-range { width: 100%; accent-color: var(--blue); cursor: pointer; }

.ng-done { display: grid; gap: 10px; animation: rise .4s var(--ease) both; }
.ng-for { font-size: 12.5px; line-height: 1.5; color: var(--body); }
.ng-pw { justify-self: stretch; color: #bfdbfe; border-color: rgb(96 165 250 / 0.45); word-break: normal; overflow-wrap: break-word; }
.ng-msg {
    margin: 0;
    padding: 10px 12px;
    font: 12.5px/1.55 var(--sans);
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--body);
    border: 1px solid var(--chip-border);
    border-radius: 11px;
    background: rgb(255 255 255 / 0.03);
}
.ng-done .row-btns { padding-top: 0; }

.guest-edit { position: relative; }
.guest-edit .days { margin-top: 2px; }
.revoke { border-color: rgb(244 114 182 / 0.25); }
.warn-text { color: #fbcfe8; }

/* uso do Contato pelos convidados (avisos cifrados que só o painel abre) */
.item-main small.use { color: var(--faint); }
.item-main small.use.on { color: var(--violet); }
.act-guest .act-ico { color: var(--violet); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 8S4 3.5 8 3.5 14.5 8 14.5 8 12 12.5 8 12.5 1.5 8 1.5 8Z'/%3E%3Ccircle cx='8' cy='8' r='2'/%3E%3C/svg%3E"); }
.act-guestcv .act-ico { color: var(--green); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v8.5M4.5 7 8 10.5 11.5 7M3 13.5h10'/%3E%3C/svg%3E"); }

/* ── Cofre: dados, foto, currículos e perfil ── */
.field { display: grid; gap: 4px; }
.field > span { font-size: 11.5px; color: var(--muted); }
.field > small { font-size: 11px; line-height: 1.4; color: var(--faint); }
.file-in { padding: 7px 10px; font-size: 12.5px; color: var(--body); cursor: pointer; }
.file-in::file-selector-button {
    margin-right: 10px;
    padding: 5px 10px;
    font: 500 12px var(--sans);
    color: var(--text);
    border: 1px solid var(--chip-border);
    border-radius: 99px;
    background: rgb(255 255 255 / 0.06);
    cursor: pointer;
}
.file-btn { cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--body); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.code-area { min-height: 260px; font: 12px/1.5 var(--mono); resize: vertical; white-space: pre; overflow: auto; }
.flag.pub { color: var(--blue); border-color: rgb(96 165 250 / 0.4); }
.pane-text code { font: 12px var(--mono); color: var(--text); }

/* ajuda da entrada (passkey no iPhone) */
.help { margin-top: 2px; font-size: 12px; color: var(--muted); }
.help summary { cursor: pointer; list-style: none; text-align: center; color: var(--body); }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: " ›"; color: var(--faint); }
.help[open] summary::after { content: " ⌄"; }
.help ol { display: grid; gap: 6px; margin: 10px 0 8px; padding-left: 18px; line-height: 1.5; text-align: left; }
.help p { line-height: 1.5; text-align: left; }
.help b { color: var(--text); font-weight: 600; }

/* ══ grades pela largura do conteúdo (não da tela): com o menu lateral, o conteúdo é mais estreito ══ */
.main { container: main / inline-size; }

@container main (min-width: 640px) {
    .ov { grid-template-columns: 1fr 1fr; grid-template-areas: "stats stats" "flow flow" "soon recent"; }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .duo { grid-template-columns: 1fr 1fr; }
}

@container main (min-width: 860px) {
    .duo.split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
    .duo.split > :first-child { position: sticky; top: 18px; }
}

/* cartões lado a lado com a mesma altura; botões e notas descem para o pé do cartão */
.duo:not(.split) { align-items: stretch; }
.duo > .pane { display: flex; flex-direction: column; }
.duo > .pane > .row-btns:last-child,
.duo > .pane > .fine:last-child { margin-top: auto; padding-top: 12px; }

/* luz que acompanha o cursor dentro do cartão (por baixo do conteúdo) */
.pane, .stat { isolation: isolate; }
.pane::after, .stat::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 13%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.pane:hover::after, .stat:hover::after, .stat:focus-visible::after { opacity: 1; }
.pane { transition: border-color .25s; }
.pane:hover { border-color: color-mix(in srgb, var(--c) 30%, #222d45); }

/* números: atalhos para a seção, com ícone e um degrau ao passar */
.stat {
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 8px;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: translate .25s var(--ease), border-color .25s, box-shadow .25s;
}
.stat b { grid-column: 1; grid-row: 1; }
.stat span { grid-column: 1 / -1; }
.stat-ico {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: color-mix(in srgb, var(--c) 80%, #fff);
    background: color-mix(in srgb, var(--c) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 24%, transparent);
    transition: scale .25s var(--ease), box-shadow .25s;
}
.stat-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stat:hover, .stat:focus-visible {
    translate: 0 -2px;
    border-color: color-mix(in srgb, var(--c) 40%, #222d45);
    outline: none;
}
.stat:hover .stat-ico, .stat:focus-visible .stat-ico { scale: 1.08; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 16px -4px var(--c); }
.stat:active { translate: 0 0; }

/* menu: o item aberto ganha um fio de luz à esquerda (computador) */
@media (min-width: 900px) {
    .nav-btn[aria-current="page"]::before {
        content: "";
        position: absolute;
        left: -12px;
        top: 9px;
        bottom: 9px;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: var(--amber);
        box-shadow: 0 0 12px var(--amber);
    }
    a.nav-brand { color: inherit; text-decoration: none; border-radius: 12px; transition: background-color .2s; }
    a.nav-brand:hover { background: rgb(255 255 255 / 0.04); }
    .nav-brand small i { font-style: normal; opacity: 0; transition: opacity .2s; }
    a.nav-brand:hover small i { opacity: 1; }
    .nav-site { display: none; }
    .foot-btns { display: flex; flex-wrap: wrap; gap: 8px; }
}

/* volta ao my-links: no celular, primeiro item da barra; na entrada, uma pílula no alto */
.nav { grid-template-columns: 40px repeat(5, minmax(0, 1fr)); }
/* no celular o my-links fica só com a logo (o nome vai para o leitor de tela), separado das seções */
@media (max-width: 899px) {
    .nav-site { align-content: center; margin-right: 2px; box-shadow: 1px 0 0 rgb(255 255 255 / 0.07); border-radius: 14px 4px 4px 14px; }
    .nav-site .to-site-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .nav-site img { width: 22px; height: 22px; }
    .nav { gap: 0; padding: 6px 4px; }
    .nav-btn { font-size: 9.5px; letter-spacing: -0.02em; }
}
.nav-site { text-decoration: none; }
.nav-site img { width: 19px; height: 19px; border-radius: 6px; opacity: .85; transition: opacity .2s; }
.nav-site:hover img { opacity: 1; }
.nav-site.arm, a.chip-btn.arm, a.nav-brand.arm { color: #fbcfe8; }
.nav-site.arm { background: rgb(244 114 182 / 0.1); }
a.chip-btn { text-decoration: none; }
a.chip-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.back-site {
    position: fixed;
    z-index: 5;
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 8px;
    font: 500 12px var(--mono);
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--chip-border);
    border-radius: 99px;
    background: rgb(12 19 34 / 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: color .2s, border-color .2s, translate .2s var(--ease);
}
.back-site img { width: 18px; height: 18px; border-radius: 5px; }
.back-site svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back-site:hover { color: var(--text); border-color: rgb(255 255 255 / 0.2); translate: -2px 0; }
.gate[hidden] .back-site, body.in .back-site { display: none; }
/* celular: no fim da entrada, centralizada (no alto ela cobriria a logo) */
@media (max-width: 760px) {
    .back-site { position: static; display: flex; width: fit-content; margin: 22px auto 0; }
    .back-site:hover { translate: 0 -1px; }
}

@media (prefers-reduced-motion: reduce) {
    .stat, .stat-ico, .back-site { transition: none; }
}
