/* Rivo Leads: the full-screen lead (see rivo-lead.js). Everything is scoped to .rvl-full so the old popup rules cannot touch it. */
html.rvl-open { overflow: hidden; }
.drawer-bg.rvl-full, .drawer-bg.rvl-full.open { padding: 0 !important; display: none; background: var(--paper, #F4F5F9); z-index: 200; }
.drawer-bg.rvl-full.open { display: block; }
.drawer-bg.rvl-full .drawer { position: fixed !important; inset: 0 !important; width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow-y: auto; overflow-x: hidden; animation: none !important; background: var(--paper, #F4F5F9); }
.drawer-bg.rvl-full .drawer .close-x { position: fixed; top: 14px; right: 18px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, #E3E5EE); background: #fff; color: var(--ink, #14141A); font-size: 1rem; box-shadow: 0 6px 18px rgba(18, 28, 58, .12); cursor: pointer; }
.drawer-bg.rvl-full .drawer .close-x:hover { background: var(--paper, #F4F5F9); }
.drawer-bg.rvl-full #drawerContent { display: block; padding: 0; }
.drawer-bg.rvl-full:not(.rvl-ready) #drawerContent { visibility: hidden; }
.drawer-bg.rvl-full .rvx-exp { display: none !important; }

.rvl-shell { max-width: 1280px; margin: 0 auto; padding: 0 28px 40px; }
.rvl-hd { display: flex; align-items: flex-start; gap: 14px; padding: 22px 56px 6px 0; }
.rvl-ttl { flex: 1; min-width: 0; }
.rvl-ttl h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.02em; line-height: 1.15; }
.rvl-ttl .sub { margin-top: 3px; color: var(--muted, #6A6E7B); font-size: .86rem; }
.rvl-id { font-size: .72rem; color: var(--muted, #6A6E7B); background: #fff; border: 1px solid var(--line, #E3E5EE); border-radius: 99px; padding: 4px 10px; margin-top: 6px; }

.rvl-top { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 14px; }
.rvl-chips { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.rvl-chips::-webkit-scrollbar { display: none; }
.rvl-cap { flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6A6E7B); min-width: 58px; }
.rvl-chip { flex: none; border: 1px solid var(--line, #E3E5EE); background: #fff; color: var(--ink, #14141A); border-radius: 99px; padding: 7px 14px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.rvl-chip:hover { border-color: var(--primary, #FF5A1F); }
.rvl-chip.on { background: var(--primary, #FF5A1F); border-color: var(--primary, #FF5A1F); color: #fff; }
.rvl-qual .rvl-chip.on { background: #14141A; border-color: #14141A; }
.rvl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rvl-card { background: #fff; border: 1px solid var(--line, #E3E5EE); border-radius: 16px; padding: 12px 16px; }
.rvl-card small { display: block; color: var(--muted, #6A6E7B); font-size: .74rem; font-weight: 600; }
.rvl-card b { display: block; font-size: 1.05rem; margin-top: 2px; letter-spacing: -.01em; }
.rvl-card.bad b { color: #D14343; }
.rvl-card.warn b { color: #C27A0E; }

.rvl-body { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.rvl-side { background: #fff; border: 1px solid var(--line, #E3E5EE); border-radius: 20px; padding: 18px; position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow-y: auto; }
.rvl-side > div:first-child { margin-top: 0; }
.rvl-side .actrow { flex-wrap: wrap; }
.rvl-side > div[style*="display:flex"] { flex-wrap: wrap; row-gap: 8px; }
.rvl-side .rvl-cwrap { flex: none; }
.rvl-side .formgrid { grid-template-columns: 1fr 1fr; }
.rvl-main { background: #fff; border: 1px solid var(--line, #E3E5EE); border-radius: 20px; padding: 6px 22px 22px; min-height: 360px; }
.rvl-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line, #E3E5EE); margin: 0 -22px 14px; padding: 0 16px; scrollbar-width: none; }
.rvl-tabs::-webkit-scrollbar { display: none; }
.rvl-tab { flex: none; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted, #6A6E7B); padding: 14px 14px 12px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.rvl-tab i { font-style: normal; font-size: .7rem; background: var(--paper, #F4F5F9); border-radius: 99px; padding: 2px 7px; margin-left: 4px; color: var(--ink, #14141A); }
.rvl-tab:hover { color: var(--ink, #14141A); }
.rvl-tab.on { color: var(--ink, #14141A); border-bottom-color: var(--primary, #FF5A1F); }
.rvl-pane[hidden] { display: none; }
.rvl-pane .timeline { border: 0; padding: 0; margin: 0; }
.rvl-pane #tkCard .tk-card, .rvl-pane #tkCard { margin-top: 0; }

@media (max-width: 1000px) {
  .rvl-body { grid-template-columns: 1fr; }
  .rvl-side { position: static; max-height: none; }
}
@media (max-width: 820px) {
  .rvl-shell { padding: 0 14px 28px; }
  .rvl-hd { padding: 16px 52px 4px 0; }
  .rvl-ttl h2 { font-size: 1.25rem; }
  .rvl-id { display: none; }
  .drawer-bg.rvl-full .drawer .close-x { top: 10px; right: 12px; width: 38px; height: 38px; }
  .rvl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rvl-card { padding: 10px 11px; border-radius: 14px; }
  .rvl-card b { font-size: .92rem; }
  .rvl-side { padding: 14px; border-radius: 18px; }
  .rvl-side .formgrid { grid-template-columns: 1fr; }
  .rvl-main { padding: 4px 14px 16px; border-radius: 18px; }
  .rvl-tabs { margin: 0 -14px 12px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .rvl-chip { transition: none; } }
