/* Ledgwise — brandbook: Azul profundo #0B1F3B · Dourado #C9A227 · Cinza claro #F5F7FA · Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --navy: #0B1F3B; --navy-2: #13294B; --navy-3: #1E3A63;
  --gold: #C9A227; --gold-soft: #F6EDD0;
  --bg: #F5F7FA; --card: #FFFFFF; --line: #E3E8EF; --line-2: #EEF1F5;
  --text: #0F1B2D; --muted: #5B6B80; --faint: #8C99AB;
  --ok: #1E8E5A; --ok-bg: #E4F4EC; --warn: #B7791F; --warn-bg: #FDF3E1;
  --err: #C0392B; --err-bg: #FBE9E7; --info: #2B6CB0; --info-bg: #E6F0FA;
  --radius: 10px; --shadow: 0 1px 2px rgba(11,31,59,.06), 0 1px 1px rgba(11,31,59,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg);
  color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

/* layout */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #C8D2E0; padding: 18px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; }
.brand img { width: 30px; height: 30px; }
.brand b { font-size: 17px; letter-spacing: .01em; }
.brand small { display: block; color: var(--gold); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side a.nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 8px;
  color: #C8D2E0; font-weight: 500; }
.side a.nav:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.side a.nav.on { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side .sect { margin: 16px 10px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #7F90A8; font-weight: 600; }
.side .co { font-size: 13px; }
.side .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--navy-3); font-size: 12px; }
.side .foot button { background: none; border: 0; color: #9FB0C6; padding: 0; cursor: pointer; font: inherit; }
.main { padding: 26px 32px 60px; max-width: 1320px; width: 100%; min-width: 0; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.top .sub { color: var(--muted); margin-top: 4px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.pill { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  background: var(--gold); color: var(--navy); text-align: center; line-height: 19px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .hd { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card > .bd { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 12px; font-weight: 500; }
.stat .v { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat.hl { background: var(--navy); color: #fff; border-color: var(--navy); }
.stat.hl .k { color: #AFC0D6; } .stat.hl .v small { color: var(--gold); }
.bar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar > span { display: block; height: 100%; background: var(--gold); }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #FAFBFD; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #FBFCFE; }
.desc { max-width: 360px; }
.desc .raw { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.amt-in { color: var(--ok); font-weight: 600; } .amt-out { color: var(--text); }

/* badges */
.b { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.b.ok { background: var(--ok-bg); color: var(--ok); } .b.warn { background: var(--warn-bg); color: var(--warn); }
.b.info { background: var(--info-bg); color: var(--info); } .b.muted { background: var(--line-2); color: var(--muted); }
.b.gold { background: var(--gold-soft); color: #7A5F0F; } .b.err { background: var(--err-bg); color: var(--err); }
.conf { font-size: 11.5px; color: var(--muted); }

/* forms */
label { display: block; font-weight: 500; font-size: 12.5px; margin-bottom: 5px; color: #2A3A50; }
input[type=text], input[type=email], input[type=password], input[type=month], input[type=search],
input[type=number], input[type=tel], input[type=date], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #CDD5E0; border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,162,39,.35); border-color: var(--gold); }
textarea { min-height: 70px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 140px; margin-bottom: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--navy-3); text-decoration: none; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #B8931F; }
.btn.ghost { background: #fff; color: var(--navy); border-color: #CDD5E0; }
.btn.ghost:hover { background: var(--bg); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.link { background: none; border: 0; color: var(--navy-3); padding: 0; font-weight: 500; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 12.5px; color: var(--muted); margin: 0; }
.decide { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.decide select { width: 230px; padding: 6px 8px; font-size: 13px; }
.decide input[type=text] { width: 150px; padding: 6px 8px; font-size: 13px; }

/* flashes */
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; font-weight: 500; border: 1px solid transparent; }
.flash.ok { background: var(--ok-bg); color: #155F3D; border-color: #BFE3CF; }
.flash.error { background: var(--err-bg); color: #8E2A20; border-color: #F2C6C0; }
.flash.info { background: var(--info-bg); color: #1F4E80; border-color: #C5DAF0; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.reason { font-size: 12px; color: var(--warn); }
details summary { cursor: pointer; color: var(--navy-3); font-weight: 500; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 8px 0 8px 34px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--line-2); color: var(--muted); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.steps li.done::before { content: "✓"; background: var(--ok-bg); color: var(--ok); }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth .hero { background: var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: linear-gradient(rgba(201,162,39,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(201,162,39,.08) 1px, transparent 1px);
  background-size: 34px 34px; }
.auth .hero h1 { font-size: 38px; line-height: 1.1; max-width: 460px; }
.auth .hero h1 em { color: var(--gold); font-style: normal; }
.auth .hero p { color: #AFC0D6; max-width: 420px; font-size: 15px; }
.auth .panel { display: grid; place-items: center; padding: 40px; }
.auth form { width: 100%; max-width: 360px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .hero { display: none; } }

/* ---------- extras ---------- */
.wrap { word-break: break-word; overflow-wrap: anywhere; }
.actions { text-align: right; white-space: nowrap; }
.actions details { display: inline-block; text-align: left; }
.actions details[open] { display: block; }
.btn.danger { color: var(--err); border-color: #F2C6C0; }
.mtop, .menu-shade { display: none; }
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-actions { flex-wrap: wrap; }
.sm-select { width: auto; padding: 5px 8px; font-size: 12.5px; max-width: 260px; }
.rename { display: flex; gap: 6px; margin-top: 6px; }
.rename input { min-width: 180px; }
.docs tr.up td { background: #FAFBFD; }
.sel { width: 34px; }
.newacc { margin-top: 10px; padding: 12px; background: var(--bg); border-radius: 8px; width: 100%; }
.newacc .row > .field { min-width: 160px; }
table.resp td .field { margin-bottom: 0; }
.top > .row, .top > div:last-child.row { flex-wrap: wrap; }
.card { min-width: 0; }
.card > table:not(.resp) { display: block; overflow-x: auto; }
.card > table:not(.resp) > tbody, .card > table:not(.resp) > thead { display: table; width: 100%; }

.decision { min-width: 300px; }
.decide .newacc { flex-basis: 100%; text-align: left; }
.newacc .newacc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.newacc .newacc-fields .field { min-width: 0; margin: 0; }
.newacc input[type=text], .newacc select { width: 100% !important; }
.doc-actions { padding: 12px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center;
  justify-content: space-between; gap: 10px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- celular ---------- */
@media (max-width: 900px) {
  body { font-size: 15px; }
  input[type=text], input[type=email], input[type=password], input[type=month], input[type=search],
  input[type=date], input[type=number], input[type=tel], select, textarea { font-size: 16px; }   /* evita zoom automático no iPhone */
  .mtop { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; background: var(--navy);
    color: #fff; padding: 10px 14px; }
  .mtop .brand { padding: 0; gap: 8px; color: #fff; text-decoration: none; }
  .mtop .brand img { width: 26px; height: 26px; }
  .menu-btn { background: none; border: 1px solid var(--navy-3); color: #fff; font-size: 20px; line-height: 1; padding: 6px 10px;
    border-radius: 8px; cursor: pointer; }
  .shell { display: block; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 270px; height: 100%; z-index: 60;
    transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0,0,0,.25); }
  body.menu-open .side { transform: none; }
  body.menu-open .menu-shade { display: block; position: fixed; inset: 0; background: rgba(11,31,59,.45); z-index: 50; }
  .main { padding: 16px 14px 60px; }
  .top { flex-direction: column; align-items: stretch; }
  .top h1 { font-size: 20px; }
  .top > .row, .top > a.btn, .top form { width: 100%; }
  .top .row > * { flex: 1 1 auto; }
  .top .btn { width: 100%; justify-content: center; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px 14px; } .stat .v { font-size: 22px; }
  .row { flex-direction: column; align-items: stretch; }
  .row > .field { min-width: 0; max-width: none !important; width: 100%; }
  .row > .btn, .row > button { width: 100%; justify-content: center; }
  .card > .hd { flex-wrap: wrap; padding: 12px 14px; }
  .card > .bd { padding: 14px; }
  .tabs { margin-left: -14px; margin-right: -14px; padding: 0 8px; }
  .decide { flex-direction: column; align-items: stretch; }
  .decide select, .decide input[type=text] { width: 100%; }
  .decide .btn { justify-content: center; }
  .doc-actions .row { width: 100%; }
  .sm-select { max-width: none; width: 100%; }

  /* tabelas viram cartões */
  table.resp, table.resp tbody, table.resp tr, table.resp td { display: block; width: 100%; }
  table.resp thead { display: none; }
  table.resp tr { border-bottom: 1px solid var(--line); padding: 10px 14px; position: relative; }
  table.resp tr:hover td { background: transparent; }
  table.resp td { border: 0; padding: 4px 0; text-align: left; }
  table.resp td.num { text-align: left; }
  table.resp td[data-label] { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  table.resp td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 500; flex-shrink: 0; }
  table.resp td[data-label] > * { text-align: right; }
  table.resp td.desc, table.resp .desc .raw { max-width: none; white-space: normal; }
  table.resp td.actions, table.resp td.decision { text-align: left; padding-top: 8px; white-space: normal; min-width: 0; }
  .newacc .newacc-fields { grid-template-columns: 1fr; }
  .top .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .top .row > form:last-child { grid-column: 1 / -1; }
  .top .row > *:only-child { grid-column: 1 / -1; }
  .top .btn { padding: 9px 8px; white-space: normal; font-size: 14px; text-align: center; }
  .top .row > * { min-width: 0; }
  .doc-actions { padding: 12px 14px; }
  .doc-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .doc-actions .row .sm-select { grid-column: 1 / -1; }
  table.resp td.sel { position: absolute; right: 14px; top: 12px; width: auto; padding: 0; }
  table.resp td.sel input { width: 20px; height: 20px; }
  table.resp.docs td:nth-child(2) { padding-right: 34px; }
  .rename input { min-width: 0; flex: 1; }
  .auth .panel { padding: 24px 18px; }
}

/* dados da empresa: só abre ao clicar em Editar */
details.edit-co > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
details.edit-co > summary h2 { margin: 0; }
@media (max-width: 900px) { details.edit-co > summary { padding: 12px 14px; } }
details.edit-co > summary::-webkit-details-marker { display: none; }
details.edit-co[open] > summary .btn { visibility: hidden; }
details.edit-co[open] + .co-summary { display: none; }
.co-summary { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
/* documentos: "marcar todos" no cabeçalho da tabela; no celular fica na barra */
.only-mobile { display: none !important; }
@media (max-width: 900px) { .only-mobile { display: inline-flex !important; } }
@media (min-width: 901px) {
  .doc-actions { flex-wrap: nowrap; justify-content: flex-start; }
  .doc-actions .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: auto; }
  .doc-actions .row .sm-select { width: auto; max-width: 260px; }
}

details.csv-backup > summary { list-style: none; cursor: pointer; flex-wrap: wrap; }
details.csv-backup > summary::-webkit-details-marker { display: none; }
details.csv-backup > summary h2::after { content: " ▸"; color: var(--muted); font-weight: 400; }
details.csv-backup[open] > summary h2::after { content: " ▾"; }
details.csv-backup:not([open]) > summary { border-bottom: 0; }

/* fechamento mensal */
@media (min-width: 1101px) { .months-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
table.months td.actions form { display: inline; }

/* painel do escritório */
@media (min-width: 1101px) { .dash-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
ul.alerts, ul.ready-list { list-style: none; margin: 0; padding: 6px 0; }
ul.alerts li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 18px; border-bottom: 1px solid var(--line-2); }
ul.alerts li:last-child { border-bottom: 0; }
ul.alerts li.more { display: none; }
.show-all ul.alerts li.more { display: flex; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.dot.err { background: var(--err); } .dot.warn { background: var(--warn); } .dot.info { background: var(--info); }
ul.ready-list li { padding: 8px 18px; border-bottom: 1px solid var(--line-2); }
ul.ready-list .chk { color: var(--ink, inherit); font-size: 13.5px; align-items: flex-start; }
ul.ready-list .chk input { margin-top: 3px; }
.light { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.light.green { background: #2E9B62; } .light.yellow { background: #D9A21B; } .light.red { background: #C9452F; }
@media (max-width: 900px) {
  ul.alerts li, ul.ready-list li { padding: 8px 14px; }
}
.nowrap { white-space: nowrap; }

/* leitura automática do QuickBooks */
.syncing { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold);
  animation: spin .9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.just-updated { animation: flashnew 2.4s ease-out; border-radius: 4px; }
@keyframes flashnew { 0% { background: var(--gold-soft); } 100% { background: transparent; } }

/* perguntas ao cliente */
details.ask { margin-top: 6px; }
details.ask summary { cursor: pointer; color: var(--navy); }
details.ask textarea { width: 100%; min-height: 54px; }
td.answer { max-width: 320px; }
.quote { border-left: 3px solid var(--gold); padding: 4px 8px; margin: 4px 0; background: #FCFAF3; font-size: 13px; white-space: pre-wrap; }
details.waiting > summary { list-style: none; cursor: pointer; }
details.waiting > summary::-webkit-details-marker { display: none; }
details.waiting:not([open]) > summary { border-bottom: 0; }

/* portal do cliente */
ul.plist { list-style: none; margin: 0; padding: 4px 0; }
ul.plist li { display: flex; gap: 10px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line-2); }
ul.plist li:last-child { border-bottom: 0; }
.qlist .q { padding: 16px 18px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.qlist .q:last-child { border-bottom: 0; }
.qtx { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.qamt { font-weight: 700; font-size: 16px; white-space: nowrap; }
.qamt.in { color: var(--ok); }
.qask { font-size: 14px; }
.qlist .q .field { margin: 0; }
.qlist .q .btn { align-self: flex-start; }
@media (max-width: 900px) {
  ul.plist li, .qlist .q { padding: 12px 14px; }
  .qlist .q .btn { align-self: stretch; justify-content: center; }
}

/* lembretes */
@media (min-width: 1101px) { .rem-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.chk.big { font-size: 14px; color: inherit; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.var { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--gold-soft); color: #6E550E; border-radius: 6px; padding: 3px 7px; cursor: pointer; user-select: none; }
.var:hover { background: #F3E2AE; }
h3.sub-h { margin: 0; font-size: 14px; color: var(--navy); }
.prev { border-bottom: 1px solid var(--line-2); padding: 10px 18px; }
.prev:last-of-type { border-bottom: 0; }
.prev-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.prev-item summary { cursor: pointer; padding: 4px 0; }
pre.msg { white-space: pre-wrap; font-family: inherit; font-size: 13px; background: #F7F8FA; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; margin: 6px 0 10px; }
@media (max-width: 900px) { .prev { padding: 10px 14px; } }

/* white label: logo do escritório */
.brand img.blogo { width: auto; height: 34px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.mtop .brand img.blogo { height: 28px; }
.binit { width: 32px; height: 32px; border-radius: 8px; background: var(--gold); color: var(--navy); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.auth .hero .brand img.blogo { height: 44px; max-width: 180px; }
/* marca: prévia e DNS */
.brand-prev { --pc: #C9A227; --pi: #0B1F3B; display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 170px; }
.bp-side { background: var(--navy); color: #fff; width: 42%; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bp-side img { max-height: 36px; max-width: 100%; background: #fff; border-radius: 6px; padding: 3px; }
.bp-side .binit { background: var(--pc); color: var(--pi); }
.bp-main { flex: 1; padding: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bp-h { font-weight: 700; }
.bp-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; width: 100%; }
.bp-pill { background: var(--pc); color: var(--pi); border-radius: 99px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.bp-btn { background: var(--pc); color: var(--pi); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.kv { font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
table.dns td.wrap { word-break: break-all; max-width: 380px; }

/* mensagens */
tr.unread td b, tr.unread td a.wrap { font-weight: 700; }
tr.unread td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.side a.nav .pill { margin-left: 6px; }

/* pagamento de invoice */
.invbox { margin-top: 8px; border: 1px solid #CDE8D6; background: #F2FAF5; border-radius: 8px; padding: 8px 10px;
  display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 13px; }
.invbox form { display: inline; }
.syncing.importing { align-items: flex-start; gap: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink, #0f1b33);
  border: 1px solid var(--gold); background: #fffaf0; margin-bottom: 18px; }
.syncing.importing .spin { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.syncing.importing .small { color: var(--muted); margin-top: 3px; }
.side .nav.co .spin { display: inline-block; vertical-align: -1px; margin-left: 4px; border-color: rgba(255,255,255,.25); border-top-color: var(--gold); }
.empty .spin { display: block; width: 18px; height: 18px; margin: 0 auto 10px; }
/* telas de login: idioma e links legais */
.auth .panel { position: relative; }
.auth-top { position: absolute; top: 18px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; }
.auth-langs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.auth-langs a { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 9px; text-decoration: none; }
.auth-langs a + a { border-left: 1px solid var(--line); }
.auth-langs a.on { background: var(--navy); color: #fff; }
.auth-legal { margin-top: 26px; }
.auth-legal a { color: var(--faint); }
/* segurança da conta */
.me-link { display: block; color: #AFC0D6; font-size: 13px; text-decoration: none; margin-bottom: 8px; }
.me-link:hover, .me-link.on { color: #fff; }
.qr-wrap { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin-top: 16px; }
.qr svg { display: block; width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 10px; }
.secret { display: inline-block; font-size: 15px; letter-spacing: .08em; background: var(--bg, #F4F6FA); padding: 6px 10px; border-radius: 8px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.codes code { font-size: 15px; letter-spacing: .06em; text-align: center; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.mini h3 { margin: 0 0 6px; font-size: 15px; }
.captcha-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.captcha-row img { border: 1px solid var(--line); border-radius: 8px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }
.danger-zone { margin-top: 26px; padding-top: 18px; border-top: 1px dashed #F2C6C0; }
.danger-zone h3 { margin: 0 0 4px; font-size: 15px; color: var(--err); }
.viewas { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--navy); color: #DCE5F2; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.viewas b { color: #fff; display: block; }
.viewas .btn { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* idiomas dos lembretes */
.lang-row { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.lang-row .field { max-width: 280px; }
.tr-box { margin: 4px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--bg); }
.tr-box summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tr-box[open] summary { margin-bottom: 4px; }
.lang-pick { display: flex; gap: 4px; margin: 0 10px 10px; }
.lang-pick a { color: #C8D2E0; font-size: 12px; padding: 2px 6px; border-radius: 4px; text-decoration: none; }
.lang-pick a.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }

/* plano */
.plans { margin: 4px 0 10px; }
.plan-opt { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.plan-opt .price { font-size: 26px; font-weight: 700; color: var(--navy); }
.plan-opt .price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-opt .btn { align-self: flex-start; margin-top: 6px; }
.bill-note { margin: 0 0 14px; }
.foot-lang { margin: 0 0 8px; }
.plan-opt .b { align-self: flex-start; }
.lang-row { align-items: flex-start; }
