/* Tema PROVISÓRIO configurável — interpretação visual executiva. Substituir pelos tokens do
   manual de marca oficial quando fornecido. Não reproduz logo nem manual Sankhya. */
:root {
  --brand: #00a85a;          /* verde Hunter (KV Máquina de Vendas Hunter) */
  --brand-2: #00c96b;
  --brand-soft: #e2f7ec;
  --ink: #12202b;
  --ink-2: #44525e;
  --muted: #6f7c87;
  --line: #e2e7ec;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --side: #0a0d0c;
  --side-ink: #c8d2cd;
  --danger: #b42318; --danger-soft: #fdecea;
  --warn: #9a6700; --warn-soft: #fff4d6;
  --ok: #067647; --ok-soft: #e6f6ee;
  --info: #175cd3; --info-soft: #e8f0fd;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6edf3; --ink-2: #b7c3cd; --muted: #8b98a5; --line: #26333e; --bg: #0b141b; --surface: #111d26;
    --brand-soft: #123a33; --danger-soft: #3a1714; --warn-soft: #33290f; --ok-soft: #0f3324; --info-soft: #132a4a;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink-2); }
a { color: var(--brand-2); }
code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .err { color: var(--danger); min-height: 1em; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(135deg, var(--side), #163240); }
.login-card { background: var(--surface); padding: 32px; border-radius: 14px; width: min(400px, 100%); display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.side-brand strong { color: #fff; display: block; font-size: 13px; } .side-brand span { font-size: 11px; opacity: .7; }
#nav { padding: 10px 8px; overflow-y: auto; flex: 1; }
#nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; color: var(--side-ink); text-decoration: none; border-radius: 7px; font-weight: 500; }
#nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
#nav a.active { background: var(--brand); color: #fff; }
#nav .group { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .5; padding: 14px 10px 4px; }
.side-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
main { min-width: 0; outline: none; }
#view { padding: 24px 28px 60px; max-width: 1400px; }
.demo-bar { background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 6px 28px; border-bottom: 1px solid var(--line); }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn { font: inherit; font-weight: 600; font-size: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--brand-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--danger); } .btn.ghost { background: transparent; color: inherit; border-color: rgba(255,255,255,.15); }
.btn.small { padding: 4px 8px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.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)); }
.kpi { padding: 14px 16px; } .kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; } .kpi .l { color: var(--muted); font-size: 12px; }
.kpi.alert .v { color: var(--danger); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--brand-soft); }
.table-wrap { overflow-x: auto; }

.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tag.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
textarea { min-height: 70px; width: 100%; resize: vertical; }
label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.form { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }

.queue-section { margin-bottom: 18px; }
.queue-section h2 { display: flex; gap: 8px; align-items: center; }
.qitem { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); margin-bottom: 6px; align-items: center; }
.qitem .t { font-weight: 600; } .qitem .m { color: var(--muted); font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.empty { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 9px; }

.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 200px; }
.col.over { outline: 2px dashed var(--brand-2); }
.col h3 { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 4px 8px; margin: 0; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px; margin-bottom: 6px; cursor: grab; box-shadow: var(--shadow); }
.kcard:focus { outline: 2px solid var(--brand-2); }
.kcard .t { font-weight: 600; font-size: 13px; } .kcard .m { font-size: 11px; color: var(--muted); margin-top: 4px; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.cal .d { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; min-height: 92px; padding: 5px; font-size: 11px; }
.cal .d.today { border-color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand-2); }
.cal .d.out { opacity: .45; }
.cal .ev { background: var(--brand-soft); color: var(--brand); border-radius: 4px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal .ev.late { background: var(--danger-soft); color: var(--danger); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; padding: 9px 12px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 13px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); position: relative; font-size: 13px; }
.timeline li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); position: absolute; left: -5px; top: 13px; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--brand-2); }
.banner { padding: 10px 14px; border-radius: 9px; margin-bottom: 14px; font-size: 13px; border: 1px solid transparent; }
.banner.warn { background: var(--warn-soft); color: var(--warn); } .banner.danger { background: var(--danger-soft); color: var(--danger); } .banner.info { background: var(--info-soft); color: var(--info); } .banner.ok { background: var(--ok-soft); color: var(--ok); }

.modal-back { position: fixed; inset: 0; background: rgba(10,20,28,.5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 14px; width: min(720px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal .body { padding: 18px 20px; } .modal footer { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toasts { position: fixed; bottom: 16px; right: 16px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 9px; font-size: 13px; max-width: 380px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.toast.error { background: var(--danger); color: #fff; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand-2); border-radius: 50%; animation: s 0.7s linear infinite; vertical-align: middle; }
@keyframes s { to { transform: rotate(360deg); } }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .menu-btn { display: inline-block; margin: 12px 16px 0; }
  #view { padding: 16px; }
  .g2, .g3, .g4, .form { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .qitem { grid-template-columns: 1fr; }
}

/* ---------- Playbook (premium) ---------- */
.pb-hero { background: radial-gradient(1200px 300px at 0% 0%, rgba(20,145,123,.35), transparent 60%), linear-gradient(135deg, #0e1c26 0%, #13303b 60%, #0f4a42 100%); color: #e8f1f4; border-radius: 16px; padding: 28px 28px 22px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(14,28,38,.25); }
.pb-hero h1 { color: #fff; font-size: 26px; }
.pb-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 600; color: #7fd8c4; margin-bottom: 6px; }
.pb-line { font-size: 16px; max-width: 760px; color: #d4e3e8; margin: 8px 0 18px; line-height: 1.5; }
.pb-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.pb-facts div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; }
.pb-facts strong { display: block; font-size: 18px; color: #fff; margin-bottom: 4px; }
.pb-facts span { font-size: 12px; color: #b9cdd4; line-height: 1.4; display: block; }
.pb-caveat { font-size: 12px; color: #9fb7bf; margin: 14px 0 0; }
.pb-target { display: grid; gap: 8px; margin-bottom: 14px; }
.pb-target select { max-width: 520px; }
.pb-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.pb-chips button { font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.pb-chips button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(15,107,92,.3); }
.pb-sector { margin-bottom: 16px; }
.pb-sector h2 { font-size: 17px; line-height: 1.35; }
.pb-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); font-weight: 700; margin-bottom: 6px; }
.pb-sector ul, .pb-sector ol { padding-left: 18px; margin: 6px 0 0; } .pb-sector li { margin-bottom: 4px; }
.pb-msg { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--brand-2); }
.pb-msg-head { display: flex; justify-content: space-between; align-items: center; }
.pb-subject { background: var(--bg); border-radius: 8px; padding: 8px 10px; font-weight: 600; }
.pb-body { white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.55; margin: 0; background: var(--bg); border-radius: 8px; padding: 12px; flex: 1; }
@media (max-width: 900px) { .pb-facts { grid-template-columns: 1fr 1fr; } .pb-hero { padding: 20px; } }

/* ---------- Agente Hunter (KV Máquina de Vendas Hunter: preto, verde e pontilhado) ---------- */
.login { position: relative; overflow: hidden; background: #050706; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 0; padding: 0; }
.login-kv { position: relative; height: 100vh; overflow: hidden; width: 100%; justify-self: stretch; align-self: stretch; }
.login-kv img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 92%; max-width: none; filter: grayscale(1) contrast(1.05); }
.login-kv .dots { left: 12%; top: 8%; bottom: auto; height: 46%; filter: none; opacity: .9; }
.login-card { background: #0e1311; color: #e9efec; border: 1px solid #1d2622; margin: 24px; }
.login-card h1 { color: #fff; font-size: 30px; letter-spacing: -.02em; }
.login-card .muted { color: #9fb0a8; }
.login-card label { color: #c8d2cd; }
.login-card input { background: #151c19; border-color: #26312c; color: #fff; }
.login-logo { width: 150px; }
.h-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); }
.side-logo { width: 84px; }
.side-brand { flex-wrap: wrap; }
#nav a.active { background: var(--brand); color: #04120b; }
.h-hero { position: relative; overflow: hidden; background: #070a09 url('/img/hunter-dots.png') no-repeat right -60px top -80px / 300px; color: #e9efec; border-radius: 14px; padding: 26px 28px; margin-bottom: 14px; }
.h-hero h1 { color: #fff; font-size: 28px; margin: 6px 0; }
.h-hero p { color: #b6c4bd; max-width: 640px; margin: 0 0 16px; }
.h-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.h-hero .btn:not(.primary) { background: transparent; color: #e9efec; border-color: #2c3833; }
.btn.primary { color: #04120b; }
.h-period { margin: 0 0 12px; }
.h-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.hk { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.hk:first-child { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.hk-l { font-size: 12px; color: var(--muted); }
.hk-v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; } .hk-v span { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.hfun { display: grid; grid-template-columns: 150px 1fr 34px; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.hfun strong { text-align: right; font-variant-numeric: tabular-nums; }
.hrow { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hrow strong { font-variant-numeric: tabular-nums; }
.col.win { border-color: var(--brand); background: var(--brand-soft); }
.hscore { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.hscore legend { font-size: 12px; font-weight: 700; padding: 0 4px; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; } .login-kv { display: none; }
  .hfun { grid-template-columns: 110px 1fr 30px; }
}

/* ---------- Agente Hunter · acabamento visual ---------- */
:root { --display: 'Space Grotesk', 'Inter', system-ui, sans-serif; --radius: 12px; --bg: #f3f6f4; --line: #e0e7e3; --shadow: 0 1px 2px rgba(10,20,15,.05), 0 4px 14px rgba(10,20,15,.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #080b0a; --surface: #0f1513; --line: #1f2925; --brand-soft: #0f2a1d; } }
h1, .page-head h1, .h-hero h1, .login-card h1 { font-family: var(--display); letter-spacing: -.02em; }
.side { background: linear-gradient(180deg, #070a09 0%, #0b100e 100%); border-right: 1px solid #141b18; }
.side-brand { display: grid; gap: 10px; padding: 20px 16px 16px; }
.side-logo { width: 100%; max-width: 196px; height: auto; }
.side-sub { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8fa198; }
.side-sub img { width: 62px; opacity: .85; }
#nav .group { color: #00d26a; opacity: .8; letter-spacing: .14em; }
#nav .group::before { content: '>>> '; opacity: .6; }
#nav a { font-size: 13px; transition: background .15s, color .15s; }
#nav a.active { background: linear-gradient(90deg, #00c96b, #00a85a); color: #04120b; box-shadow: 0 4px 14px rgba(0,201,107,.25); }
.page-head h1 { font-size: 26px; }
.card { border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.card:hover { border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.card h2 { font-family: var(--display); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.card h2::before { content: ''; width: 6px; height: 16px; border-radius: 3px; background: var(--brand-2); }
.btn { border-radius: 9px; transition: transform .1s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(90deg, #00c96b, #00a85a); border-color: #00b862; }
.btn.primary:hover { background: #00d26a; }
.h-hero { background: radial-gradient(600px 220px at 85% 10%, rgba(0,210,106,.18), transparent 70%), #070a09 url('/img/hunter-dots.png') no-repeat right -40px top -90px / 280px; border: 1px solid #16201b; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.h-hero h1 { font-size: 32px; }
.hk { border-radius: 12px; position: relative; overflow: hidden; }
.hk:first-child { background: linear-gradient(135deg, #07110c, #0c1a13); border-color: #00a85a; }
.hk:first-child .hk-l, .hk:first-child .hk-v span { color: #9fd9b9; }
.hk:first-child .hk-v { color: #fff; }
.hk-v { font-family: var(--display); }
.bar { height: 7px; background: color-mix(in srgb, var(--line) 80%, transparent); }
.bar > span { background: linear-gradient(90deg, #00a85a, #00e676); border-radius: 99px; }
.kanban { gap: 12px; }
.col { border-radius: 12px; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.col h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.col.win { background: linear-gradient(180deg, var(--brand-soft), transparent); }
.kcard { border-radius: 10px; border-left: 3px solid var(--brand-2); transition: transform .12s, box-shadow .12s; }
.kcard:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(10,20,15,.1); }
.qitem { border-radius: 11px; transition: border-color .15s; }
.qitem:hover { border-color: var(--brand-2); }
.tag { border-radius: 7px; }
.login-card { border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,210,106,.08); padding: 34px; }
.login-logo { width: 240px; margin-bottom: 4px; }
.login-card h1 { font-size: 24px; }
.login-card .btn.primary { padding: 11px; font-size: 14px; }
.login::after { content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, transparent, #00d26a, transparent); opacity: .6; }
@media (prefers-reduced-motion: reduce) { .card, .kcard, .btn, .qitem { transition: none; } .kcard:hover { transform: none; } }

/* Assistente Claude */
.ai-card{border-left:3px solid var(--brand,#00a85a)}
.ai-out{background:rgba(0,168,90,.06);border:1px solid rgba(0,168,90,.25);border-radius:10px;padding:12px 14px;margin-top:12px}
.ai-text{white-space:pre-wrap;line-height:1.55;font-size:14px}

/* Ficha do lead em caixas temáticas */
.ld-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
.ld-box{padding:18px 20px}
.ld-box h3{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.ld-box h3 svg{width:18px;height:18px;fill:none;stroke:var(--brand);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ld-box dl{display:grid;grid-template-columns:minmax(96px,34%) 1fr;gap:9px 14px;margin:0}
.ld-box dt{color:var(--muted);font-size:12.5px;padding-top:1px}
.ld-box dd{margin:0;font-size:14px;color:var(--ink);overflow-wrap:anywhere}
.ld-score h3{justify-content:space-between}
.ld-big{font-family:var(--display,inherit);font-size:30px;letter-spacing:0;text-transform:none;color:var(--brand);line-height:1}
.ld-big small{font-size:13px;color:var(--muted);font-weight:600}
/* Formulário em grupos */
fieldset.lf{border:1px solid var(--line);border-radius:12px;padding:14px 16px 6px;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 14px}
fieldset.lf legend{padding:0 6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brand)}
fieldset.lf .full{grid-column:1/-1}
.imp-det{margin-top:10px;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.imp-det summary{cursor:pointer;font-size:13px}
.imp-det table{margin-top:8px;max-height:320px;display:block;overflow:auto}
@media (max-width:640px){.ld-box dl{grid-template-columns:1fr}.ld-box dt{padding-top:6px}}

/* Login clean: só a foto, fundo liso e o formulário */
.login::after { display: none; }
.login { background: #050706; }
.login-kv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, #050706 100%), linear-gradient(0deg, #050706 0%, transparent 18%); pointer-events: none; }
.login-kv img { filter: grayscale(1) contrast(1.02) brightness(.95); }
.login-card { background: transparent; border: 0; box-shadow: none; }
