/* LK Hub · componentes */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-md); color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--brand-2); }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); margin: 0; }
.small { font-size: var(--fs-sm); }
.tnum { font-variant-numeric: tabular-nums; }
.num { text-align: right; }
.fw-600 { font-weight: 600; }
.mono { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: var(--fs-sm); }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--surface-3); padding: 2px 6px; border-radius: var(--radius-sm); }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.h-page { margin: 0; font-family: var(--font-head); font-size: var(--fs-page); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-size: var(--fs-md); font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn--primary { background: var(--brand-2); border-color: var(--brand-2); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #FFFFFF; }
.btn--secondary { background: var(--surface); border-color: #D5DBE3; color: var(--text); }
.btn--secondary:hover { background: var(--surface-2); color: var(--text); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }
.btn--sm { height: 32px; padding: 0 12px; font-size: var(--fs-sm); }
.btn--lg { height: 46px; font-size: var(--fs-lg); }
.btn--block { width: 100%; }
.icon-btn { position: relative; width: 38px; height: 38px; border: 0; border-radius: var(--radius); background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn--dark { color: var(--navy-text); width: 32px; height: 32px; }
.icon-btn--dark:hover { background: var(--navy-active); color: #FFFFFF; }

/* Badges e tags */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge--neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.badge--blue { background: var(--blue-bg); color: var(--blue-fg); }
.badge--amber { background: var(--amber-bg); color: var(--amber-fg); }
.badge--green { background: var(--green-bg); color: var(--green-fg); }
.badge--red { background: var(--red-bg); color: var(--red-fg); }
.badge--violet { background: var(--violet-bg); color: var(--violet-fg); }
.badge--cyan { background: var(--cyan-bg); color: var(--cyan-fg); }
.tag { display: inline-flex; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--neutral-fg); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }

/* Tiles de ícone */
.tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.tile--lg { width: 56px; height: 56px; border-radius: 14px; }
.tile--blue { background: var(--blue-bg); color: var(--blue-fg); }
.tile--violet { background: var(--violet-bg); color: var(--violet-fg); }
.tile--amber { background: var(--amber-bg); color: var(--amber-fg); }
.tile--green { background: var(--green-bg); color: var(--green-fg); }
.tile--red { background: var(--red-bg); color: var(--red-fg); }

/* Avatar */
.avatar { width: 26px; height: 26px; border-radius: var(--radius); background: var(--brand-2); color: #FFFFFF; font-family: var(--font-head); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.avatar--round { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); font-size: 13px; }
.client { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.client__name { font-weight: 500; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.card--flush { padding: 0; gap: 0; }
.card--center { align-items: center; text-align: center; padding: 48px 24px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.card__title { margin: 0; font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; }

/* KPI */
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi__label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.kpi__value { font-family: var(--font-head); font-size: var(--fs-kpi); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi__foot { font-size: 12.5px; color: var(--text-3); }
.progress { height: 6px; border-radius: 999px; background: #E9EDF2; overflow: hidden; }
.progress__bar { height: 100%; border-radius: 999px; background: var(--brand-2); }

/* Tabelas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table th { text-align: left; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.table th.num { text-align: right; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--divider); font-size: var(--fs-md); vertical-align: middle; }
.table tbody tr:hover { background: #FBFCFE; }
.table__actions { text-align: right; white-space: nowrap; }

/* Abas e barra de ferramentas */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); padding: 0 18px; overflow-x: auto; }
.tabs__tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; font-size: var(--fs-md); font-weight: 600; color: var(--text-3); text-decoration: none; white-space: nowrap; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand-2); }
.tabs__count { padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: var(--fs-xs); }
.tabs__tab.is-active .tabs__count { background: #DBEAFE; color: var(--blue-fg); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; }

/* Busca */
.search { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; background: var(--surface-3); border: 1px solid #E2E8F0; border-radius: 9px; color: var(--text-3); flex: 0 1 460px; min-width: 200px; }
.search input { border: 0; outline: none; font: inherit; font-size: var(--fs-md); width: 100%; background: transparent; color: var(--text); }
.search kbd { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--text-3); background: var(--surface); border: 1px solid #D5DBE3; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.search--sm { height: 34px; background: var(--surface); border-color: #D5DBE3; flex-basis: 300px; }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-card { gap: 18px; padding: 24px; }
.form-section { margin: 8px 0 0; font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.field--full { grid-column: 1 / -1; }
.field__label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field__label .muted { font-weight: 400; }
.field__error { color: var(--red-fg); font-size: var(--fs-sm); font-weight: 500; }
.field__hint { color: var(--text-3); font-size: var(--fs-sm); font-weight: 400; }
.control { height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: var(--fs-md); font-weight: 400; color: var(--text); width: 100%; }
textarea.control { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.control:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.control.is-invalid { border-color: var(--red-dot); }
.input { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text-3); }
.input:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.input input { border: 0; outline: none; font: inherit; font-size: var(--fs-lg); font-weight: 400; width: 100%; background: transparent; color: var(--text); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-md); color: var(--text-2); }
.check input { width: 16px; height: 16px; accent-color: var(--brand-2); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--divider); }

/* Alertas e notas */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: var(--fs-md); }
.alert--success { background: var(--green-bg); color: var(--green-fg); }
.alert--error { background: var(--red-bg); color: var(--red-fg); }
.alert--info { background: var(--blue-bg); color: var(--blue-fg); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.note .icon { color: var(--brand-2); }

/* Listas */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist__item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: var(--fs-md); color: var(--text-2); }
.checklist__item.is-done { color: var(--text); }
.checklist__mark { color: var(--text-3); display: inline-flex; }
.checklist__item.is-done .checklist__mark { color: var(--green-dot); }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.activity__action { font-family: ui-monospace, Consolas, monospace; font-size: var(--fs-sm); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; text-align: center; }
.empty p { margin: 0; }

/* QR do 2FA */
.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); text-align: center; }
.qr img { border-radius: var(--radius); background: #FFFFFF; }
