@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/static/inter-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/static/inter-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Lead2Sales Senhas — estilo único, sem dependências externas. */
:root {
  --blue: #0e63f1; --blue-dark: #0a4fc4; --blue-soft: #e8f0fe;
  --ink: #101828; --muted: #667085; --line: #e4e7ec; --bg: #f6f7f9; --card: #fff;
  --ok: #067647; --ok-bg: #ecfdf3; --err: #b42318; --err-bg: #fef3f2; --warn-bg: #fffaeb; --info-bg: #eff8ff;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  font-family: "Inter Variable", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; display: flex; align-items: center; gap: .5rem; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; display: flex; align-items: center; gap: .45rem; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.pre { white-space: pre-wrap; word-break: break-word; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.pad { padding: .25rem .75rem; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.tag { background: var(--blue-soft); color: var(--blue); border-radius: 6px; padding: .05rem .45rem; font-size: .8rem; }
.topnav { display: flex; gap: .25rem; flex: 1; }
.topnav a { color: var(--muted); padding: .4rem .7rem; border-radius: 8px; font-weight: 500; }
.topnav a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.topnav a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.me { display: flex; align-items: center; gap: .75rem; }
.me-name { display: flex; align-items: center; gap: .35rem; color: var(--ink); font-weight: 500; }
.session { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .8rem; }
.me form { margin: 0; }

/* layout */
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 53px); }
.side { border-right: 1px solid var(--line); background: #fff; padding: 1rem .75rem; display: flex; flex-direction: column; gap: .75rem; }
.side-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .5rem .5rem 0; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 8px; color: var(--ink); }
.side-nav a:hover { background: var(--bg); text-decoration: none; }
.side-nav a[aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.side-nav .count { font-size: .75rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 0 .45rem; }
.side-nav span.grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.new-folder { display: flex; gap: .35rem; padding: 0 .25rem; }
.new-folder input { flex: 1; min-width: 0; }
.layout > * { min-width: 0; }
.main { padding: 1.5rem 2rem 3rem; max-width: 1100px; width: 100%; min-width: 0; }
.main.narrow { max-width: 760px; }
.main.solo { margin: 0 auto; }
.main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.title-row { display: flex; gap: .9rem; align-items: center; }
.actions, .button-row, .row-end { display: flex; gap: .5rem; flex-wrap: wrap; }
.row-end { justify-content: flex-end; }
.button-row form { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1.5rem; align-items: start; }

/* cartões e formulários */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; margin: 0 0 1rem; }
.card.flush { padding: 0; overflow: hidden; }
.stack { display: flex; flex-direction: column; gap: .85rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; font-size: .9rem; }
label.check { flex-direction: row; align-items: center; gap: .45rem; font-weight: 400; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #d0d5dd; border-radius: 8px; padding: .55rem .7rem; background: #fff; width: 100%; }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
textarea { resize: vertical; }
.inline { display: flex; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.inline.wrap { flex-wrap: wrap; }
.inline input, .inline select { width: auto; flex: 1; min-width: 160px; }
.pw-row { display: flex; gap: .4rem; }
.pw-row input { flex: 1; }
.field-block { display: flex; flex-direction: column; gap: .3rem; }
.field-block > label { flex-direction: row; align-items: baseline; gap: .3rem; font-weight: 500; font-size: .9rem; }
[data-qr-zone].drag input { border-color: var(--blue); background: var(--blue-soft); }
[data-qr-status].ok { color: var(--ok); }
[data-qr-status].err { color: var(--err); }
.code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 500; border: 1px solid #d0d5dd; background: #fff; color: var(--ink); border-radius: 8px; padding: .5rem .85rem; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--bg); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.danger { color: var(--err); border-color: #fda29b; }
.btn.danger:hover { background: var(--err-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.link { border: 0; background: none; color: var(--blue); padding: .25rem 0; }
.btn.small { padding: .3rem .6rem; font-size: .85rem; }
.btn.wide { width: 100%; }
.btn.icon { padding: .4rem; width: 34px; height: 34px; color: var(--muted); }
.btn.icon:hover { color: var(--blue); }
.btn.done { color: var(--ok); border-color: #abefc6; }

/* avisos e selos */
.alert { border-radius: 8px; padding: .65rem .85rem; margin: 0 0 1rem; border: 1px solid transparent; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: #abefc6; }
.alert.error { background: var(--err-bg); color: var(--err); border-color: #fecdca; }
.alert.info { background: var(--info-bg); color: #175cd3; border-color: #b2ddff; }
.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 600; background: var(--blue-soft); color: var(--blue); padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.badge .i { width: 13px; height: 13px; }
.badge.soft { background: var(--bg); color: var(--muted); font-weight: 500; }
.badge.admin { background: #f4ebff; color: #6941c6; }

/* busca e lista */
.search { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #d0d5dd; border-radius: 10px; padding: .15rem .25rem .15rem .75rem; margin-bottom: 1rem; color: var(--muted); }
.search input[type=search] { border: 0; outline: 0; padding: .55rem .25rem; }
.search select { width: auto; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.items { list-style: none; margin: 0 0 .75rem; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.item { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item:hover { background: #fafbfc; }
.item-main { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; color: var(--ink); }
.item-main:hover { text-decoration: none; }
.item-main:hover strong { color: var(--blue); }
.item-text { display: flex; flex-direction: column; min-width: 0; }
.item-text strong, .item-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-text small { color: var(--muted); }
.item-tags { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.item-actions { display: flex; gap: .25rem; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.avatar.big { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 12px; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; background: #fff; border: 1px dashed #d0d5dd; border-radius: var(--radius); }

/* detalhe do acesso */
.fields { padding: .25rem 1.25rem; }
.field { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); min-height: 52px; }
.field:first-child { border-top: 0; }
.field .label { color: var(--muted); font-size: .85rem; }
.field .value { min-width: 0; overflow-wrap: anywhere; }
.field-actions { display: flex; gap: .25rem; }
.totp .value { display: flex; align-items: center; gap: .75rem; }
.totp-code { font-size: 1.5rem; font-weight: 600; letter-spacing: .12em; color: var(--blue); }
.ring { position: relative; width: 34px; height: 34px; display: grid; place-items: center; font-size: .72rem; color: var(--muted); }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--blue); stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ring.low .fg { stroke: var(--err); }
.danger-zone { margin-top: 1.5rem; }
.danger-card { border-color: #fecdca; }
.shares .share-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.share-list li { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.share-list li:first-child { border-top: 0; }
.share-list form { margin: 0; }
.share-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-form select:first-of-type { flex: 1; min-width: 200px; width: auto; }
.share-form select { width: auto; }
.temp { border-color: #b2ddff; background: var(--info-bg); }
.temp-pw { display: flex; align-items: center; gap: .75rem; }
.temp-pw code { font-size: 1.3rem; background: #fff; padding: .35rem .7rem; border-radius: 8px; border: 1px solid #b2ddff; }

/* tabelas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; background: #fafbfc; }
.table th, .table td { padding: .6rem .85rem; border-top: 1px solid var(--line); vertical-align: top; }
.table thead th { border-top: 0; }
.table tr.off td { color: var(--muted); }
.table tr.warn td { background: var(--warn-bg); }
.filters select { flex: 1; }

/* login */
body.auth { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; background: linear-gradient(180deg, #eef4ff 0, var(--bg) 60%); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(16,24,40,.08); padding: 2rem; }
.auth-card h1 { font-size: 1.35rem; }
.auth-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.5rem; }
.auth-brand div { display: flex; flex-direction: column; line-height: 1.15; }
.auth-brand span { color: var(--blue); font-weight: 600; font-size: .9rem; }
.auth-foot { color: var(--muted); font-size: .8rem; }
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: s; font-size: .8rem; color: var(--muted); }
.steps li { counter-increment: s; display: flex; align-items: center; gap: .35rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--muted); font-weight: 700; }
.steps li.on { color: var(--blue); font-weight: 600; }
.steps li.on::before { background: var(--blue); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }
.steps li + li::after { content: none; }
.howto { padding-left: 1.2rem; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.qr { display: grid; place-items: center; margin: .5rem 0 1rem; }
.qr svg { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 10px; }
.manual { margin-bottom: 1rem; font-size: .9rem; }
.manual summary { cursor: pointer; color: var(--blue); }
.secret { display: block; font-size: 1.05rem; letter-spacing: .08em; background: var(--bg); padding: .6rem .75rem; border-radius: 8px; word-break: break-all; }

/* aviso flutuante */
.toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translate(-50%, 1rem); background: var(--ink); color: #fff; padding: .55rem 1rem; border-radius: 8px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--err); }

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: .5rem 1rem; }
  .session { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .main { padding: 1rem; }
  .item-tags { display: none; }
  .topnav { flex-wrap: wrap; }
  .me { flex-wrap: wrap; }
  .main-head { flex-wrap: wrap; }
  .field { grid-template-columns: 1fr auto; }
  .field .label { grid-column: 1 / -1; }
}
