/* JoyTalk – estilos da aplicação (complementa o Bootstrap 5) */
:root {
    --jt-primary: #4f46e5;
    --jt-primary-hover: #4338ca;
    --jt-primary-soft: #eef2ff;
    --jt-sidebar-bg: #003b1d;
    --jt-sidebar-text: #9ca3af;
    --jt-sidebar-active: #ffffff;
    --jt-body-bg: #fcf5eb;
    --jt-border: #e5e7eb;
    --jt-sidebar-width: 248px;
    --jt-header-height: 64px;
}

body { font-size: .9375rem; }

.btn-primary {
    --bs-btn-bg: var(--jt-primary);
    --bs-btn-border-color: var(--jt-primary);
    --bs-btn-hover-bg: var(--jt-primary-hover);
    --bs-btn-hover-border-color: var(--jt-primary-hover);
    --bs-btn-active-bg: var(--jt-primary-hover);
    --bs-btn-active-border-color: var(--jt-primary-hover);
    --bs-btn-disabled-bg: var(--jt-primary);
    --bs-btn-disabled-border-color: var(--jt-primary);
}
.form-control:focus, .form-select:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15);
}

/* ---------- Layout administrativo ---------- */
.jt-body { background: var(--jt-body-bg); min-height: 100vh; }

.jt-sidebar {
    /* !important: o Bootstrap força fundo transparente em .offcanvas-lg no desktop */
    background-color: var(--jt-sidebar-bg) !important;
    color: var(--jt-sidebar-text);
    display: flex;
    flex-direction: column;
}
@media (min-width: 992px) {
    .jt-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: var(--jt-sidebar-width);
        z-index: 1030;
    }
    .jt-main { margin-left: var(--jt-sidebar-width); }
}
@media (max-width: 991.98px) {
    .jt-sidebar.offcanvas-lg { --bs-offcanvas-width: var(--jt-sidebar-width); --bs-offcanvas-bg: var(--jt-sidebar-bg); }
}

.jt-sidebar-brand {
    height: var(--jt-header-height);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.jt-logo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    letter-spacing: -.01em;
}
.jt-logo:hover { color: #fff; }
.jt-logo-dark, .jt-logo-dark:hover { color: #111827; }
.jt-logo-mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1, #22c55e);
    color: #fff;
    font-size: 1rem;
}

.jt-nav { padding: 1rem .75rem; flex: 1; overflow-y: auto; }
.jt-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .85rem;
    margin-bottom: .2rem;
    border-radius: .5rem;
    color: var(--jt-sidebar-text);
    text-decoration: none;
    font-weight: 500;
}
.jt-nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.jt-nav-link:hover { color: #e5e7eb; background: rgba(255, 255, 255, .05); }
.jt-nav-link.active { color: var(--jt-sidebar-active); background:green; }

.jt-sidebar-footer {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.25rem;
    font-size: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Logo da empresa (sidebar e Configurações > Empresa); sem logo, mostra a inicial. */
.jt-company-logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.jt-company-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.jt-company-logo-lg {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    font-size: 1.75rem;
    background: var(--jt-primary-soft);
    color: var(--jt-primary);
    border: 1px solid var(--jt-border);
}

.jt-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--jt-header-height);
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--jt-border);
}
.jt-header-title { font-size: 1.125rem; font-weight: 600; margin: 0; }

.jt-user-btn { display: inline-flex; align-items: center; gap: .5rem; border: 0; }
.jt-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--jt-primary-soft);
    color: var(--jt-primary);
    font-weight: 600;
}

.jt-content { padding: 1.5rem; }
@media (max-width: 575.98px) {
    .jt-content, .jt-header { padding-left: 1rem; padding-right: 1rem; }
}

.card { border-color: var(--jt-border); border-radius: .75rem; }

.jt-stat { transition: box-shadow .15s ease, transform .15s ease; }
.jt-stat:hover { box-shadow: 0 6px 18px rgba(17, 24, 39, .06); transform: translateY(-1px); }
.jt-stat-icon, .jt-empty-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--jt-primary-soft);
    color: var(--jt-primary);
    font-size: 1.3rem;
}
.jt-empty-icon { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 16px; }
.jt-stat-value { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1.1; }
.jt-stat-label { color: #6b7280; font-size: .85rem; }

.jt-nav-section {
    margin: 1.25rem .85rem .5rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
}

.table > :not(caption) > * > * { padding: .85rem 1rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; font-weight: 600; background: #fafafa; }
.jt-form-card { max-width: 860px; }

.jt-role { font-weight: 600; }
.jt-role-admin { background: #eef2ff; color: #4338ca; }
.jt-role-supervisor { background: #ecfeff; color: #0e7490; }
.jt-role-agent { background: #f3f4f6; color: #374151; }

/* ---------- Telas públicas (login, erro, instalador) ---------- */
.jt-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: radial-gradient(circle at top left, #eef2ff, var(--jt-body-bg) 55%);
}
.jt-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--jt-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}
.jt-auth-card.jt-install { max-width: 720px; }
.jt-error-card { text-align: center; max-width: 560px; }
.jt-error-code { font-size: 3rem; font-weight: 800; color: var(--jt-primary); line-height: 1; margin-bottom: .75rem; }
.jt-debug { background: #fef2f2; border: 1px solid #fecaca; border-radius: .5rem; padding: 1rem; overflow: auto; }
.jt-debug pre { white-space: pre-wrap; word-break: break-all; }

.jt-cell-wide { max-width: 320px; }
.jt-payload { background: #f8f9fb; border: 1px solid var(--jt-border); border-radius: .5rem; padding: 1rem; max-height: 560px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.jt-copy-field { font-family: var(--bs-font-monospace); font-size: .8rem; }

/* =====================================================================
   Inbox de atendimento
   ===================================================================== */
.jt-full-height .jt-main { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.jt-content-flush { padding: 0 !important; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.jt-content-flush > .alert { margin: .75rem; }

.jt-inbox {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr) 300px;
    background: #fff;
}
.jt-inbox-list, .jt-inbox-chat, .jt-inbox-details { min-height: 0; display: flex; flex-direction: column; }
.jt-inbox-list { border-right: 1px solid var(--jt-border); }
.jt-inbox-details { border-left: 1px solid var(--jt-border); background: #fcfcfd; }

/* ---------- coluna 1 ---------- */
.jt-inbox-list-head { padding: .75rem; border-bottom: 1px solid var(--jt-border); }
.jt-search { position: relative; }
.jt-search i { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: .85rem; }
.jt-search input { padding-left: 1.9rem; }
.jt-filters { display: flex; gap: .35rem; margin-top: .6rem; overflow-x: auto; scrollbar-width: none; }
.jt-filters::-webkit-scrollbar { display: none; }
.jt-filter {
    border: 1px solid var(--jt-border); background: #fff; color: #4b5563; border-radius: 999px;
    padding: .2rem .65rem; font-size: .78rem; white-space: nowrap;
}
.jt-filter.active { background: var(--jt-primary); border-color: var(--jt-primary); color: #fff; }

.jt-chat-list { flex: 1; overflow-y: auto; }
.jt-chat-item {
    display: flex; gap: .7rem; width: 100%; text-align: left; border: 0; background: transparent;
    padding: .7rem .8rem; border-bottom: 1px solid #f1f2f5; align-items: flex-start;
}
.jt-chat-item:hover { background: #f8f9fb; }
.jt-chat-item.active { background: var(--jt-primary-soft); }
.jt-chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.jt-chat-item-top, .jt-chat-item-bottom, .jt-chat-item-meta { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.jt-chat-item-name { font-weight: 600; color: #111827; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-chat-item-time { font-size: .72rem; color: #9ca3af; white-space: nowrap; }
.jt-chat-item.unread .jt-chat-item-time { color: var(--jt-primary); font-weight: 600; }
.jt-chat-item-preview { flex: 1; min-width: 0; font-size: .82rem; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-chat-item.unread .jt-chat-item-preview { color: #111827; }
.jt-unread { background: var(--jt-primary); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 700; min-width: 1.25rem; padding: 0 .35rem; text-align: center; line-height: 1.25rem; }
.jt-chat-item-meta { font-size: .7rem; color: #9ca3af; }
.jt-assignee { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-assignee.none { color: #d97706; }
.jt-list-empty, .jt-list-more { padding: 1.5rem 1rem; text-align: center; color: #9ca3af; font-size: .85rem; }

.jt-status { display: inline-block; border-radius: 4px; padding: 0 .35rem; font-size: .68rem; font-weight: 600; line-height: 1.15rem; }
.jt-status-open { background: #dcfce7; color: #166534; }
.jt-status-waiting { background: #fef3c7; color: #92400e; }
.jt-status-closed { background: #f3f4f6; color: #4b5563; }

/* avatares */
.jt-avatar-md, .jt-avatar-lg, .jt-avatar-xl {
    position: relative; flex-shrink: 0; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; background: #9ca3af;
}
.jt-avatar-md { width: 40px; height: 40px; font-size: .85rem; }
.jt-avatar-lg { width: 38px; height: 38px; font-size: .85rem; }
.jt-avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; }
.jt-avatar-md img, .jt-avatar-lg img, .jt-avatar-xl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- coluna 2 ---------- */
.jt-chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9ca3af; gap: .5rem; background: #f8f9fb; }
.jt-chat-empty i { font-size: 2.5rem; }
.jt-chat-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.jt-chat-head { display: flex; align-items: center; gap: .65rem; padding: .6rem .9rem; border-bottom: 1px solid var(--jt-border); min-height: 60px; }
.jt-chat-head-info { min-width: 0; }
.jt-chat-head-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jt-chat-head-meta { display: flex; gap: .5rem; align-items: center; font-size: .78rem; color: #6b7280; }

.jt-messages { flex: 1; overflow-y: auto; padding: .75rem 1rem 1rem; background: #f5f6fa; }
.jt-older, .jt-loading { text-align: center; font-size: .75rem; color: #9ca3af; padding: .25rem 0 .5rem; }
.jt-older { height: 1.75rem; overflow: hidden; } /* altura fixa: o texto "carregando" não desloca a leitura */
.jt-day { text-align: center; margin: .8rem 0 .5rem; }
.jt-day { font-size: .72rem; color: #6b7280; }
.jt-msg { display: flex; margin: .2rem 0; }
.jt-msg.out { justify-content: flex-end; }
.jt-bubble {
    max-width: min(72%, 560px); padding: .45rem .65rem .3rem; border-radius: .75rem; background: #fff;
    border: 1px solid #eceef3; box-shadow: 0 1px 1px rgba(17, 24, 39, .03);
}
.jt-msg.in .jt-bubble { border-top-left-radius: .2rem; }
.jt-msg.out .jt-bubble { background: #e9e7ff; border-color: #dcd9ff; border-top-right-radius: .2rem; }
.jt-msg.failed .jt-bubble { background: #fef2f2; border-color: #fecaca; }
.jt-msg-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: .9rem; color: #111827; }
.jt-msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: .35rem; font-size: .68rem; color: #9ca3af; margin-top: .1rem; }
.jt-msg-sender { margin-right: auto; color: #6b7280; }
.jt-msg-type { text-transform: uppercase; letter-spacing: .03em; }
.jt-msg-error { font-size: .72rem; color: #b91c1c; margin-top: .15rem; }
.jt-read { color: #2563eb; }
.jt-failed { color: #dc2626; }
.jt-media { margin-bottom: .25rem; }
.jt-image { display: block; max-width: 100%; max-height: 320px; border-radius: .5rem; }
.jt-sticker { display: block; max-width: 140px; max-height: 140px; }
.jt-media audio { width: 260px; max-width: 100%; }
.jt-media video { max-width: 100%; max-height: 320px; border-radius: .5rem; }
.jt-document, .jt-media-placeholder { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: .5rem; background: rgba(17, 24, 39, .04); font-size: .82rem; color: #374151; text-decoration: none; }
.jt-document i, .jt-media-placeholder i { font-size: 1.2rem; }
.jt-media-placeholder.unknown { font-style: italic; color: #6b7280; }

.jt-composer { display: flex; align-items: flex-end; gap: .5rem; padding: .6rem .75rem; border-top: 1px solid var(--jt-border); background: #fff; }
.jt-composer textarea {
    flex: 1; resize: none; border: 1px solid var(--jt-border); border-radius: .6rem; padding: .5rem .7rem;
    font-size: .9rem; line-height: 1.35; max-height: 160px; outline: none;
}
.jt-composer textarea:focus { border-color: #a5b4fc; box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12); }
.jt-composer .btn { flex-shrink: 0; }

/* ---------- coluna 3 ---------- */
.jt-details-head { display: none; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--jt-border); min-height: 60px; }
.jt-details-body { flex: 1; overflow-y: auto; padding: 1rem; }
.jt-det-section { margin-top: 1rem; }
.jt-det-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 600; margin-bottom: .35rem; }
.jt-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.jt-tag { display: inline-flex; align-items: center; gap: .15rem; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: .05rem .2rem .05rem .55rem; font-size: .75rem; }
.jt-tag-remove { border: 0; background: transparent; color: inherit; padding: 0 .15rem; line-height: 1; }
.jt-notes { margin-top: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.jt-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: .5rem; padding: .45rem .6rem; }
.jt-note-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; }
.jt-note-meta { font-size: .68rem; color: #92400e; margin-top: .2rem; }

.jt-toast {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; max-width: 360px; padding: .6rem .9rem;
    border-radius: .5rem; background: #111827; color: #fff; font-size: .85rem; opacity: 0; transform: translateY(8px);
    transition: opacity .2s, transform .2s; pointer-events: none;
}
.jt-toast.show { opacity: 1; transform: none; }
.jt-toast.error { background: #b91c1c; }

.jt-only-mobile { display: none; }

/* 992–1199px: lista + conversa; contato abre como painel lateral */
@media (max-width: 1199.98px) {
    .jt-inbox { grid-template-columns: 320px minmax(0, 1fr); position: relative; }
    .jt-inbox-details {
        position: absolute; top: 0; right: 0; bottom: 0; width: 320px; z-index: 5;
        box-shadow: -8px 0 24px rgba(17, 24, 39, .08); transform: translateX(105%); transition: transform .2s;
    }
    .jt-inbox.jt-details-open .jt-inbox-details { transform: none; }
    .jt-details-head { display: flex; }
}
@media (min-width: 1200px) {
    .jt-details-toggle { display: none; }
}

/* < 992px: uma tela por vez (lista → conversa → contato) */
@media (max-width: 991.98px) {
    .jt-inbox { grid-template-columns: minmax(0, 1fr); }
    .jt-inbox-list, .jt-inbox-chat, .jt-inbox-details { display: none; }
    .jt-inbox[data-view="list"] .jt-inbox-list,
    .jt-inbox[data-view="chat"] .jt-inbox-chat,
    .jt-inbox[data-view="details"] .jt-inbox-details { display: flex; }
    .jt-inbox-details { position: static; width: auto; transform: none; box-shadow: none; border-left: 0; }
    .jt-only-mobile { display: inline-block; }
    .jt-bubble { max-width: 85%; }
}

/* Inbox: anexos e reenvio */
.jt-attachment { padding: .5rem .75rem 0; background: #fff; border-top: 1px solid var(--jt-border); }
.jt-attachment-chip { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem .4rem .7rem; border: 1px solid var(--jt-border); border-radius: .6rem; background: #f8f9fb; }
.jt-attachment-chip > i { font-size: 1.3rem; color: var(--jt-primary); }
.jt-attachment + .jt-composer { border-top: 0; }
.jt-document { min-width: 220px; }
.jt-document-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.jt-document-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.jt-document-meta { font-size: .72rem; color: #6b7280; }
.jt-document-download { margin-left: auto; color: var(--jt-primary); }
.jt-retry { margin-top: .35rem; font-size: .75rem; padding: .1rem .5rem; }
.jt-msg-warning { font-size: .72rem; color: #92400e; margin-top: .15rem; }
.jt-msg.failed .jt-bubble { border-left: 3px solid #dc2626; }

/* Inbox: gestão de atendimento */
.jt-count { display: inline-block; min-width: 1.1rem; padding: 0 .3rem; margin-left: .15rem; border-radius: 999px; font-size: .68rem; font-weight: 700; line-height: 1.1rem; text-align: center; background: rgba(17, 24, 39, .08); color: inherit; }
.jt-count:empty { display: none; }
.jt-filter.active .jt-count { background: rgba(255, 255, 255, .25); }
.jt-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.jt-actions .btn { white-space: nowrap; }
.jt-event { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .5rem auto; max-width: 90%; padding: .25rem .7rem; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: .74rem; width: fit-content; }
.jt-event-time { color: #6366f1; opacity: .8; }
.jt-det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 575.98px) {
    .jt-actions .btn { padding: .2rem .45rem; font-size: .75rem; }
    .jt-actions .btn i { margin-right: 0 !important; }
}

/* Etiquetas: paleta fixa (config/app.php → tag_colors) */
.jt-tagc-6c757d { --jt-tag: #6c757d; } .jt-tagc-2563eb { --jt-tag: #2563eb; } .jt-tagc-16a34a { --jt-tag: #16a34a; } .jt-tagc-d97706 { --jt-tag: #d97706; }
.jt-tagc-dc2626 { --jt-tag: #dc2626; } .jt-tagc-7c3aed { --jt-tag: #7c3aed; } .jt-tagc-db2777 { --jt-tag: #db2777; } .jt-tagc-0891b2 { --jt-tag: #0891b2; }
.jt-tag-pill { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .1rem .55rem; font-size: .75rem; font-weight: 600; color: #fff; background: var(--jt-tag, #6c757d); }
.jt-swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; background: var(--jt-tag, #6c757d); vertical-align: middle; }
.jt-color-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.jt-color-options label { cursor: pointer; }
.jt-color-options input { position: absolute; opacity: 0; }
.jt-color-options .jt-swatch { width: 1.6rem; height: 1.6rem; border: 2px solid transparent; }
.jt-color-options input:checked + .jt-swatch { border-color: #111827; box-shadow: 0 0 0 2px #fff inset; }
.jt-color-options input:focus-visible + .jt-swatch { outline: 2px solid var(--jt-primary); outline-offset: 2px; }
.jt-note-label { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: #92400e; background: #fde68a; border-radius: 4px; padding: 0 .35rem; margin-bottom: .2rem; }
.jt-history { display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; font-size: .8rem; }
.jt-history dt { color: #6b7280; font-weight: 400; }
.jt-history dd { margin: 0; text-align: right; }

/* ---------- Dashboard ---------- */
.jt-stat-icon-sm { width: 32px; height: 32px; border-radius: 8px; font-size: 1rem; }

/* Gráfico de volume (SVG do servidor). Cores validadas para daltonismo (ΔE 22 deutan). */
.jt-viz { width: 100%; height: auto; display: block; }
.jt-viz-grid { stroke: #eef0f3; stroke-width: 1; }
.jt-viz-base { stroke: #d1d5db; stroke-width: 1; }
.jt-viz-axis { fill: #6b7280; font-size: 11px; }
.jt-viz-in { fill: #0d9488; }
.jt-viz-out { fill: #4f46e5; }
.jt-viz-hit { fill: transparent; }
.jt-viz-col:hover .jt-viz-hit { fill: rgba(17, 24, 39, .04); }
.jt-viz-col:hover path { opacity: .85; }
.jt-viz-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.jt-viz-key-in { background: #0d9488; }
.jt-viz-key-out { background: #4f46e5; }

/* ---------- Primeiros passos ---------- */
.jt-onboarding { max-width: 760px; }
.jt-onboarding-progress { height: 6px; }
.jt-onboarding-progress .progress-bar { background: var(--jt-primary); }
.jt-progress-0 { width: 0; } .jt-progress-1 { width: 16.66%; } .jt-progress-2 { width: 33.33%; } .jt-progress-3 { width: 50%; }
.jt-progress-4 { width: 66.66%; } .jt-progress-5 { width: 83.33%; } .jt-progress-6 { width: 100%; }
.jt-step-badge {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: .9rem;
    background: #f3f4f6; color: #6b7280;
}
.jt-step-done .jt-step-badge { background: #dcfce7; color: #166534; }
.jt-step-current { border-color: var(--jt-primary); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .08); }
.jt-step-current .jt-step-badge { background: var(--jt-primary); color: #fff; }
.jt-step-todo { opacity: .7; }

/* ---------- Login em duas colunas (marca + formulário) ---------- */
.jt-auth-split { padding: 0; align-items: stretch; background: var(--jt-body-bg); }
.jt-auth-split .jt-auth-card { align-self: center; margin: 1.5rem 1rem; }
.jt-auth-brand {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44%;
    max-width: 560px;
    padding: 2.5rem 3rem;
    color: #e0e7ff;
    background: linear-gradient(160deg, #312e81 0%, #4338ca 55%, #0f766e 130%);
}
.jt-auth-tagline { font-size: 1.85rem; font-weight: 700; line-height: 1.2; color: #fff; letter-spacing: -.02em; max-width: 22ch; margin-bottom: 1.75rem; }
.jt-auth-points li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .9rem; font-size: .95rem; }
.jt-auth-points i { font-size: 1.1rem; color: #a5f3fc; line-height: 1.4; }
.jt-auth-foot { color: rgba(224, 231, 255, .6); }
@media (min-width: 992px) {
    .jt-auth-brand { display: flex; }
    .jt-auth-split .jt-auth-card { margin: auto; }
}
@media (max-width: 991.98px) {
    .jt-auth-split { justify-content: center; }
}
