:root {
    --ink: #101828;
    --muted: #667085;
    --line: #e8ecf3;
    --navy: #14233c;
    --blue: #4263eb;
    --violet: #7c3aed;
    --mint: #12b981;
    --soft: #f7f9fc;
}

body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--soft); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Manrope', 'DM Sans', sans-serif; letter-spacing: -.04em; }

.btn-brand { background: var(--blue); border: 1px solid var(--blue); color: #fff; border-radius: 11px; font-weight: 700; padding: .72rem 1.15rem; box-shadow: 0 8px 18px rgba(66,99,235,.18); transition: transform .2s, box-shadow .2s, background .2s; }
.btn-brand:hover { color: #fff; background: #3450cc; border-color: #3450cc; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(66,99,235,.25); }
.btn-ghost { border: 1px solid #d0d5dd; color: var(--ink); background: #fff; border-radius: 11px; font-weight: 700; padding: .72rem 1.15rem; transition: border-color .2s, color .2s, transform .2s; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: #3f55c6; background: #eef1ff; border: 1px solid #e0e5ff; border-radius: 999px; padding: .43rem .78rem; font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.eyebrow.on-dark { color: #c7d2fe; background: rgba(199,210,254,.1); border-color: rgba(199,210,254,.2); }

.rp-hero { position: relative; isolation: isolate; padding: 84px 0 150px; background: #fff; overflow: hidden; }
.rp-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(66,99,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(66,99,235,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.rp-hero::after { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; top: -360px; right: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.2), rgba(99,102,241,0) 66%); }
.rp-hero h1 { margin: 1.2rem 0 1.15rem; font-size: clamp(2.4rem, 4.1vw, 3.55rem); font-weight: 800; line-height: 1.06; }
.rp-hero h1 .accent { color: var(--blue); position: relative; white-space: nowrap; }
.rp-hero h1 .accent::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 10px; background: #c7d2fe; border-radius: 10px; z-index: -1; }
.rp-hero-copy { max-width: 560px; color: var(--muted); font-size: 1.1rem; }
.rp-trust { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2rem; color: #475467; font-size: .84rem; font-weight: 600; }
.rp-trust i { color: var(--mint); margin-right: .4rem; }

.rp-hero-visual { position: relative; max-width: 620px; margin-left: auto; }
.rp-map-card { position: relative; background: rgba(255,255,255,.86); border: 1px solid #e6eaf2; border-radius: 22px; padding: 18px 18px 14px; box-shadow: 0 30px 70px rgba(26,43,83,.16); backdrop-filter: blur(14px); transform: perspective(1200px) rotateY(-5deg) rotateX(3deg); }
.rp-map-card::before { content: ""; position: absolute; z-index: -1; inset: 12% 8% 0; background: rgba(66,99,235,.28); filter: blur(46px); }
.rp-map-card-head { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin-bottom: 8px; }
.rp-map-card-head b { font-size: .86rem; color: var(--ink); }
.rp-map-card-head span { font-size: .7rem; color: var(--muted); font-weight: 600; }
.rp-live { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; color: #027a48; background: #ecfdf3; border-radius: 999px; padding: 3px 9px; }
.rp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 0 rgba(18,183,106,.55); animation: rp-pulse 1.8s infinite; }
@keyframes rp-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.55); } 70% { box-shadow: 0 0 0 7px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }
.rp-map-card img { display: block; width: 100%; height: auto; }
.rp-map-legend { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 8px; padding-left: 12%; font-size: .66rem; color: var(--muted); }
.rp-map-legend span { flex: 0 0 150px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #dbe4ff, #91a7ff, #3b5bdb, #2b44b0); }
.rp-float { position: absolute; background: #fff; border: 1px solid #e8ecf3; border-radius: 14px; padding: 10px 13px; box-shadow: 0 16px 34px rgba(16,24,40,.13); min-width: 150px; animation: rp-float 6s ease-in-out infinite; }
.rp-float small { display: block; font-size: .64rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.rp-float strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1.12rem; letter-spacing: -.03em; color: var(--ink); line-height: 1.25; }
.rp-float em { font-style: normal; font-size: .68rem; font-weight: 700; color: #027a48; }
.rp-float.f1 { left: -34px; bottom: 34px; }
.rp-float.f2 { right: -18px; top: -26px; animation-delay: -2s; }
.rp-float.f3 { right: 26px; bottom: -36px; animation-delay: -4s; min-width: 190px; }
.rp-mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 6px; }
.rp-mini-bars i { flex: 1; border-radius: 3px 3px 0 0; background: #c7d2fe; }
.rp-mini-bars i:nth-child(2n) { background: #fdba74; }
@keyframes rp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.rp-studio-section { position: relative; margin-top: -96px; padding-bottom: 40px; }
.rp-studio-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.rp-studio-intro h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; margin: .6rem 0 0; }
.rp-studio-intro p { color: var(--muted); max-width: 520px; margin: 0; font-size: .95rem; }

.studio { position: relative; background: #fff; border: 1px solid #e3e8f1; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(22,35,66,.34), 0 12px 30px rgba(22,35,66,.06); }
.studio-top { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; background: #fff; border-bottom: 1px solid #edf0f5; }
.studio-top .dot { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.studio-top .dot:nth-child(1) { background: #f97066; }
.studio-top .dot:nth-child(2) { background: #fdb022; }
.studio-top .dot:nth-child(3) { background: #47cd89; }
.studio-url { margin-left: 14px; display: flex; align-items: center; gap: 8px; flex: 0 1 420px; height: 28px; padding: 0 12px; background: #f2f4f7; border-radius: 8px; font-size: .74rem; color: #667085; white-space: nowrap; overflow: hidden; }
.studio-url i { color: #12b76a; font-size: .7rem; }
.studio-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .74rem; color: #475467; font-weight: 600; }
.studio-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #4263eb, #7c3aed); color: #fff; font-size: .7rem; font-weight: 800; }
.studio-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 760px; }

.studio-nav { background: var(--navy); color: #98a2b3; padding: 20px 12px; display: flex; flex-direction: column; gap: 3px; }
.studio-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: .92rem; margin: 0 8px 20px; letter-spacing: -.01em; }
.studio-brand i { color: #7c9cff; }
.studio-nav-group { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #667085; margin: 14px 10px 6px; }
.studio-tab { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 11px; background: transparent; color: #cbd5e1; text-align: left; cursor: pointer; transition: background .18s, color .18s; }
.studio-tab .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #a5b4fc; font-size: .82rem; transition: background .18s, color .18s; }
.studio-tab b { display: block; font-size: .84rem; font-weight: 700; color: inherit; line-height: 1.2; }
.studio-tab small { display: block; font-size: .66rem; color: #8b98ad; line-height: 1.2; margin-top: 2px; }
.studio-tab:hover { background: rgba(255,255,255,.06); color: #fff; }
.studio-tab.is-active { background: rgba(124,156,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(165,180,252,.18); }
.studio-tab.is-active .ico { background: var(--blue); color: #fff; }
.studio-tab:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 1px; }
.studio-nav-note { margin-top: auto; padding: 14px 10px 4px; font-size: .7rem; line-height: 1.45; color: #8b98ad; border-top: 1px solid rgba(255,255,255,.08); }
.studio-nav-note i { color: #fdb022; margin-right: 4px; }

.studio-main { position: relative; background: #f5f7fb; padding: 22px 24px 26px; min-width: 0; }
.rs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rs-title { margin: 0; font-size: 1.45rem; font-weight: 800; }
.rs-desc { margin: 3px 0 0; color: var(--muted); font-size: .86rem; max-width: 640px; }
.rs-meta { margin-top: 6px; font-size: .72rem; color: #98a2b3; }
.rs-meta i { margin-right: 4px; }
.rs-meta b { color: #b54708; font-weight: 700; }
.rs-actions { display: flex; gap: 8px; }
.rs-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px; border: 1px solid #d0d5dd; background: #fff; color: #344054; font-size: .8rem; font-weight: 700; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rs-btn:hover { border-color: #98a2b3; box-shadow: 0 4px 10px rgba(16,24,40,.08); transform: translateY(-1px); }
.rs-btn .fa-file-excel { color: #12b76a; }
.rs-btn .fa-file-pdf { color: #f04438; }

.rs-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0 16px; padding: 12px 14px; background: #fff; border: 1px solid #e6eaf1; border-radius: 14px; }
.rs-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.rs-field > span { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #98a2b3; }
.rs-field select { height: 36px; min-width: 170px; padding: 0 34px 0 11px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; appearance: none; -webkit-appearance: none; font-size: .84rem; font-weight: 600; color: #101828; cursor: pointer; }
.rs-field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(66,99,235,.14); }
.rs-filter-end { margin-left: auto; }
.rs-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: #eef1ff; color: #3f55c6; font-size: .76rem; font-weight: 700; white-space: nowrap; }

.rs-seg { display: inline-flex; background: #f2f4f7; border: 1px solid #e4e7ec; border-radius: 10px; padding: 2px; gap: 2px; }
.rs-seg-btn { border: 0; background: transparent; color: #475467; font-size: .76rem; font-weight: 700; padding: 5px 12px; border-radius: 8px; cursor: pointer; line-height: 1.4; transition: background .15s, color .15s; }
.rs-seg-btn.is-active { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.rs-seg-btn:not(.is-active):hover { color: #101828; }
.rs-seg-icon { padding: 4px 9px; }

#rsView { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
#rsView.is-ready { opacity: 1; transform: none; }

.rs-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rs-kpi { background: #fff; border: 1px solid #e6eaf1; border-radius: 14px; padding: 13px 15px 12px; min-width: 0; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.rs-kpi-top { display: flex; align-items: center; gap: 9px; }
.rs-kpi-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); font-size: .8rem; flex: 0 0 30px; }
.rs-kpi-label { font-size: .76rem; font-weight: 700; color: #475467; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-kpi-value { margin-top: 8px; font-family: 'Manrope', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; color: #101828; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-kpi-foot { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: .72rem; color: #98a2b3; min-height: 18px; }
.rs-kpi-trend { font-weight: 800; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.rs-kpi-trend.is-up { color: #027a48; background: #ecfdf3; }
.rs-kpi-trend.is-down { color: #b42318; background: #fef3f2; }

.rs-card { background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); overflow: hidden; min-width: 0; }
.rs-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 16px 11px; border-bottom: 1px solid #eef1f6; }
.rs-eyebrow { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #98a2b3; }
.rs-card-title { margin: 1px 0 0; font-family: 'DM Sans', sans-serif; font-size: .98rem; font-weight: 800; letter-spacing: -.01em; color: #101828; }
.rs-card-title-sm { font-size: .9rem; margin: 0; }
.rs-muted { font-size: .74rem; color: #98a2b3; }

.rs-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; margin-bottom: 14px; }
.rs-map-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-map { height: 430px; background: #eef3fb; outline: 0; }
.rs-map.leaflet-container { background: #eef3fb; font-family: 'DM Sans', sans-serif; }
.rs-map-message { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #667085; font-size: .84rem; text-align: center; padding: 20px; }
.rs-map-message i { font-size: 2rem; opacity: .5; }
.rs-map-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid #eef1f6; }
.rs-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .7rem; color: #475467; }
.rs-legend-row { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-legend-row i { width: 14px; height: 9px; border-radius: 3px; display: inline-block; }
.rs-legend-row.is-empty { color: #98a2b3; }
.rs-legend-unit { font-weight: 800; color: #344054; margin-right: 2px; }
.rs-legend-bubble { display: inline-flex; align-items: center; gap: 6px; }
.rs-legend-bubble b { display: block; border-radius: 50%; background: #4263eb; opacity: .7; }
.rs-tip { background: #101828; color: #fff; border: 0; border-radius: 9px; padding: 8px 11px; box-shadow: 0 8px 22px rgba(16,24,40,.25); font-size: .76rem; font-family: 'DM Sans', sans-serif; }
.rs-tip::before { display: none; }
.rs-tip-name { font-weight: 800; font-size: .82rem; }
.rs-tip-value { font-variant-numeric: tabular-nums; }
.rs-tip-muted { color: #cbd5e1; font-size: .7rem; }

.rs-rank-card { display: flex; flex-direction: column; }
.rs-rank { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1 1 0; min-height: 0; max-height: 500px; }
.rs-rank-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px 8px 7px 4px; border-radius: 10px; cursor: pointer; outline: 0; transition: background .12s; }
.rs-rank-item:hover, .rs-rank-item.is-hover, .rs-rank-item:focus-visible { background: #f2f4f7; }
.rs-rank-item.is-selected { background: #eef1ff; box-shadow: inset 3px 0 0 var(--blue); }
.rs-rank-no { font-size: .7rem; font-weight: 800; color: #98a2b3; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25rem; }
.rs-rank-item:nth-child(-n+3) .rs-rank-no { color: var(--blue); }
.rs-rank-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-rank-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rs-rank-name { font-size: .8rem; font-weight: 700; color: #1d2939; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-rank-value { font-size: .76rem; color: #1d2939; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-rank-bar { flex: 1; height: 4px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.rs-rank-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #748ffc, #3b5bdb); }
.rs-rank-share { font-size: .68rem; color: #98a2b3; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

.rs-table-card { background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.rs-table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px 11px; border-bottom: 1px solid #eef1f6; }
.rs-table-scroll { max-height: 440px; overflow: auto; }
.rs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.rs-table thead th { position: sticky; top: 0; z-index: 2; background: #f8fafc; color: #475467; font-weight: 800; font-size: .7rem; letter-spacing: .02em; text-transform: uppercase; padding: 0; border-bottom: 1px solid #eaecf0; vertical-align: bottom; }
.rs-table thead tr.rs-filter-row th { top: 46px; background: #fff; padding: 6px 8px; text-transform: none; vertical-align: middle; }
.rs-th-btn { display: flex; align-items: center; gap: 6px; width: 100%; height: 46px; padding: 6px 12px; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.25; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left; }
.rs-table th.is-num .rs-th-btn { justify-content: flex-end; text-align: right; }
.rs-th-btn i { font-size: .66rem; color: #c0c6d1; }
.rs-table th.is-sorted .rs-th-btn { color: var(--blue); }
.rs-table th.is-sorted .rs-th-btn i { color: var(--blue); }
.rs-filter-row input { width: 100%; min-width: 70px; height: 28px; padding: 0 8px; border: 1px solid #e4e7ec; border-radius: 7px; font-size: .74rem; color: #101828; background: #fcfcfd; }
.rs-filter-row th.is-num input { text-align: right; }
.rs-filter-row input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(66,99,235,.12); background: #fff; }
.rs-table tbody td { padding: 9px 12px; border-bottom: 1px solid #f2f4f7; color: #1d2939; white-space: nowrap; }
.rs-table tbody tr:nth-child(even) td { background: #fcfcfd; }
.rs-table tbody tr.is-clickable { cursor: pointer; }
.rs-table tbody tr.is-clickable:hover td { background: #f5f8ff; }
.rs-table tbody tr.is-selected td { background: #eef1ff !important; }
.rs-table tbody tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.rs-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-table .is-up { color: #027a48; font-weight: 700; }
.rs-table .is-down { color: #b42318; font-weight: 700; }
.rs-table .is-neg { color: #b42318; }
.rs-table tfoot td { position: sticky; bottom: 0; z-index: 1; background: #f0f3fa; padding: 10px 12px; font-weight: 800; color: #101828; border-top: 1px solid #dfe3eb; white-space: nowrap; }
.rs-caret { font-size: .62rem; color: #98a2b3; margin-right: 8px; transition: transform .18s; }
.rs-table tr.is-open .rs-caret { transform: rotate(90deg); color: var(--blue); }
.rs-table tr.is-open td { background: #f5f8ff; font-weight: 700; }
.rs-detail-row td { padding: 0 !important; background: #f8faff !important; }
.rs-detail { padding: 10px 14px 14px 34px; animation: rs-drop .25s ease; }
@keyframes rs-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rs-detail-title { font-size: .72rem; font-weight: 800; color: #3f55c6; margin-bottom: 6px; }
.rs-detail-title i { margin-right: 6px; }
.rs-subtable { width: 100%; border-collapse: collapse; font-size: .76rem; background: #fff; border: 1px solid #e4e9f5; border-radius: 10px; overflow: hidden; }
.rs-subtable th { background: #eef2ff; color: #3f55c6; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; padding: 7px 10px; font-weight: 800; }
.rs-subtable td { padding: 6px 10px; border-top: 1px solid #eef1f6; color: #1d2939; }
.rs-subtable .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-empty { text-align: center; color: #98a2b3; padding: 28px !important; }
.rs-table-note { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-top: 1px solid #eef1f6; font-size: .72rem; color: #667085; background: #fcfcfd; }
.rs-table-note i { color: var(--blue); }

.rs-period + .rs-period { margin-top: 20px; }
.rs-period { margin-bottom: 18px; }
.rs-period-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 7px; margin-bottom: 12px; border-bottom: 2px solid var(--blue); }
.rs-period-head h4 { margin: 0; font-family: 'DM Sans', sans-serif; font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.rs-pkpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; align-items: start; }
.rs-pkpi { background: #fff; border: 1px solid #e6eaf1; border-radius: 14px; padding: 13px 15px; min-width: 0; }
.rs-pkpi.is-diff { background: #f8faff; }
.rs-pkpi-top { display: flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; color: #475467; }
.rs-pkpi-top i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.rs-pkpi-value { font-family: 'Manrope', sans-serif; font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; margin-top: 4px; line-height: 1.2; }
.rs-pkpi-value.is-neg, .rs-pcard .is-neg { color: #b42318; }
.rs-pkpi-value.is-pos, .rs-pcard .is-pos { color: #027a48; }
.rs-groups { list-style: none; margin: 9px 0 0; padding: 8px 0 0; border-top: 1px solid #eef1f6; display: flex; flex-direction: column; gap: 4px; }
.rs-groups li { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .74rem; color: #344054; }
.rs-group-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-group-track { height: 7px; background: #f0f2f6; border-radius: 4px; overflow: hidden; }
.rs-group-track span { display: block; height: 100%; border-radius: 4px; }
.rs-group-value { font-weight: 800; color: #101828; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.rs-net-meter { height: 7px; border-radius: 4px; background: #f0f2f6; overflow: hidden; margin-top: 8px; }
.rs-net-meter span { display: block; height: 100%; border-radius: 4px; }
.rs-period-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rs-period-body.has-cards { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.rs-chart-legend { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; font-size: .74rem; color: #475467; font-weight: 600; }
.rs-chart-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.rs-chart { position: relative; height: 290px; padding: 12px 14px 8px; }
.rs-pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.rs-pcard { background: #fff; border: 1px solid #e6eaf1; border-radius: 13px; padding: 11px 13px; }
.rs-pcard-title { font-weight: 800; font-size: .92rem; margin-bottom: 5px; }
.rs-pcard-title small { font-weight: 600; font-size: .64rem; color: #98a2b3; }
.rs-pcard-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .74rem; color: #475467; padding: 2px 0; }
.rs-pcard-row i { width: 10px; height: 10px; border-radius: 3px; }
.rs-pcard-row.is-net i { border: 2px solid #98a2b3; }
.rs-pcard-row b { font-variant-numeric: tabular-nums; color: #101828; }

.rs-rank-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.rs-bars { list-style: none; margin: 0; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.rs-bars li { display: grid; grid-template-columns: 20px 108px minmax(0, 1fr) 96px; align-items: center; gap: 10px; }
.rs-bar-rank { font-size: .7rem; font-weight: 800; color: #98a2b3; text-align: right; }
.rs-bar-name { font-size: .8rem; font-weight: 700; color: #1d2939; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-bar-name small { display: block; font-size: .64rem; font-weight: 600; color: #98a2b3; }
.rs-bar-track { height: 12px; background: #f0f2f6; border-radius: 6px; overflow: hidden; }
.rs-bar-track span { display: block; height: 100%; border-radius: 6px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.rs-bar-value { text-align: right; font-size: .78rem; font-weight: 800; color: #101828; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rs-bar-value small { display: block; font-size: .64rem; font-weight: 600; color: #98a2b3; }
.rs-donut-card { display: flex; flex-direction: column; }
.rs-donut { position: relative; height: 230px; margin: 12px 10px 4px; }
.rs-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.rs-donut-center b { font-family: 'Manrope', sans-serif; font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.rs-donut-center span { font-size: .68rem; color: #98a2b3; font-weight: 700; }
.rs-donut-legend { list-style: none; margin: 0; padding: 6px 16px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 14px; }
.rs-donut-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 7px; align-items: center; font-size: .74rem; color: #344054; }
.rs-donut-legend i { width: 10px; height: 10px; border-radius: 3px; }
.rs-donut-legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rs-pivot-scroll { max-height: none; }
.rs-pivot { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.rs-pivot th { background: #f8fafc; color: #475467; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; padding: 11px 12px; border-bottom: 1px solid #eaecf0; white-space: nowrap; }
.rs-pivot td { padding: 9px 12px; border-bottom: 1px solid #f2f4f7; white-space: nowrap; }
.rs-pivot td small { display: block; font-size: .66rem; color: #98a2b3; }
.rs-pivot .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.rs-pivot .rs-heat { font-weight: 700; border-left: 2px solid #fff; transition: filter .15s; }
.rs-pivot .rs-heat:hover { filter: brightness(.95); }
.rs-pivot .rs-total-cell { font-weight: 800; background: #f8fafc; }
.rs-pivot tfoot td { background: #f0f3fa; font-weight: 800; border-top: 1px solid #dfe3eb; }
.rs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.rs-mix-head { width: 170px; }
.rs-mix-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #f0f2f6; min-width: 140px; }
.rs-mix-bar span { display: block; height: 100%; }

.rs-toast { position: absolute; left: 50%; bottom: 18px; z-index: 30; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #101828; color: #fff; font-size: .8rem; font-weight: 600; padding: 10px 16px; border-radius: 11px; box-shadow: 0 12px 30px rgba(16,24,40,.25); transition: opacity .25s, transform .25s; }
.rs-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.rp-metrics { padding: 30px 0 10px; }
.rp-metric { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem 1.25rem; height: 100%; }
.rp-metric strong { display: block; font-family: 'Manrope', sans-serif; font-size: 1.45rem; letter-spacing: -.035em; }
.rp-metric span { display: block; color: var(--muted); font-size: .8rem; }
.rp-metric i { float: right; color: #7c9cff; background: #f0f2ff; padding: .55rem; border-radius: 9px; }

.rp-section { padding: 96px 0; }
.rp-title { max-width: 640px; }
.rp-title h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.12; margin: .9rem 0; text-wrap: balance; }
.rp-title p { color: var(--muted); }

.rp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.rp-tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.rp-tile:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(16,24,40,.08); border-color: #d6ddfb; }
.rp-tile.span-3 { grid-column: span 3; }
.rp-tile.span-2 { grid-column: span 2; }
.rp-tile h5 { font-family: 'DM Sans', sans-serif; font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 6px; }
.rp-tile p { color: var(--muted); font-size: .86rem; margin: 0; }
.rp-tile-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800; color: #3f55c6; background: #eef1ff; border-radius: 999px; padding: 3px 9px; }
.rp-vis { height: 150px; border-radius: 14px; background: #f7f9fc; border: 1px solid #edf0f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rp-vis img { width: auto; height: auto; max-width: 92%; max-height: 86%; }
.rp-tile.span-3 .rp-vis { height: 190px; }
.rp-tile.span-3 .rp-vis-bars { height: 140px; }
.rp-vis-bars { display: flex; align-items: flex-end; gap: 9px; height: 110px; width: 78%; }
.rp-vis-bars span { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.rp-vis-bars i { flex: 1; border-radius: 4px 4px 0 0; background: #4263eb; }
.rp-vis-bars i + i { background: #f76707; }
.rp-vis-heat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 78%; }
.rp-vis-heat i { height: 18px; border-radius: 4px; background: #4263eb; }
.rp-vis-rank { width: 80%; display: flex; flex-direction: column; gap: 9px; }
.rp-vis-rank i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #12b886, #63e6be); }
.rp-vis-table { width: 84%; background: #fff; border: 1px solid #e6eaf1; border-radius: 10px; overflow: hidden; }
.rp-vis-table div { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 7px 10px; border-top: 1px solid #f2f4f7; }
.rp-vis-table div:first-child { border-top: 0; background: #f8fafc; }
.rp-vis-table i { height: 7px; border-radius: 4px; background: #e4e7ec; }
.rp-vis-table div:first-child i { background: #c7d2fe; }
.rp-vis-table div:last-child { background: #f0f3fa; }
.rp-vis-table div:last-child i { background: #98a2b3; }
.rp-vis-chips { display: flex; flex-wrap: wrap; gap: 7px; width: 86%; justify-content: center; }
.rp-vis-chips span { font-size: .72rem; font-weight: 700; color: #344054; background: #fff; border: 1px solid #e4e7ec; border-radius: 999px; padding: 5px 10px; }
.rp-vis-chips span.on { color: #fff; background: var(--blue); border-color: var(--blue); }

.rp-migrate { background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(1.6rem, 4vw, 3.4rem); position: relative; overflow: hidden; }
.rp-migrate::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -200px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02); }
.rp-migrate h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.12; margin: 1rem 0; }
.rp-migrate > .row > div > p { color: #b9c3d6; max-width: 480px; }
.rp-steps { list-style: none; padding: 0; margin: 1.6rem 0 0; position: relative; z-index: 1; }
.rp-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.rp-steps li:first-child { border-top: 0; }
.rp-steps b { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(124,156,255,.16); color: #a5b4fc; font-family: 'Manrope', sans-serif; }
.rp-steps strong { display: block; font-size: .96rem; }
.rp-steps span { display: block; color: #98a2b3; font-size: .84rem; }
.rp-verify { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.rp-verify-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #eef1f6; }
.rp-verify-head strong { font-size: .88rem; }
.rp-verify-head span { font-size: .68rem; font-weight: 800; color: #027a48; background: #ecfdf3; border-radius: 999px; padding: 3px 9px; }
.rp-verify-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 28px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f2f4f7; font-size: .8rem; }
.rp-verify-row.head { font-size: .64rem; font-weight: 800; color: #98a2b3; text-transform: uppercase; letter-spacing: .05em; padding: 10px 0 6px; }
.rp-verify-row span:nth-child(2), .rp-verify-row span:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.rp-verify-row .ok { color: #12b76a; text-align: center; }
.rp-verify-row .warn { color: #f79009; text-align: center; }
.rp-verify-note { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; background: #fffaeb; border: 1px solid #fedf89; border-radius: 12px; padding: 10px 12px; font-size: .78rem; color: #93370d; }
.rp-verify-note i { margin-top: 3px; }

.rp-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rp-why-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.rp-why-item i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef1ff; color: var(--blue); font-size: 1rem; }
.rp-why-item h5 { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 6px; }
.rp-why-item p { color: var(--muted); font-size: .86rem; margin: 0; }

.rp-faq .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; overflow: hidden; margin-bottom: 10px; background: #fff; }
.rp-faq .accordion-button { font-weight: 700; font-size: .98rem; color: var(--ink); background: #fff; box-shadow: none; padding: 1.05rem 1.25rem; }
.rp-faq .accordion-button:not(.collapsed) { color: var(--blue); background: #fbfcff; }
.rp-faq .accordion-body { color: var(--muted); font-size: .92rem; padding: 0 1.25rem 1.15rem; }

.rp-cta { padding: 40px 0 90px; }
.rp-cta-box { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(120deg, #263e88, #6342b7); color: #fff; padding: clamp(2rem, 5vw, 4rem); }
.rp-cta-box::after { content: ""; position: absolute; width: 380px; height: 380px; right: -110px; top: -190px; border: 45px solid rgba(255,255,255,.07); border-radius: 50%; }
.rp-cta-box h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; max-width: 640px; text-wrap: balance; }
.rp-cta-box p { max-width: 560px; color: #e0e7ff; }
.rp-cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.rp-cta-art { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 22px; }
.rp-cta-flow { display: flex; align-items: center; gap: 12px; }
.rp-cta-node { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 10px; border-radius: 14px; background: rgba(255,255,255,.1); font-size: .82rem; font-weight: 700; text-align: center; }
.rp-cta-node i { font-size: 1.45rem; color: #c7d2fe; }
.rp-cta-node.is-target { background: #fff; color: #263e88; box-shadow: 0 14px 30px rgba(16,24,40,.25); }
.rp-cta-node.is-target i { color: #4263eb; }
.rp-cta-arrow { color: #c7d2fe; font-size: 1.25rem; }
.rp-cta-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; font-size: .88rem; color: #e0e7ff; }
.rp-cta-list i { color: #63e6be; margin-right: 9px; }
.btn-white { background: #fff; color: #314aa4; border: 0; border-radius: 11px; font-weight: 700; padding: .75rem 1.1rem; }
.btn-white:hover { background: #eef2ff; color: #243878; }
.footer { background: #101828; color: #98a2b3; }

@media (max-width: 1199.98px) {
    .rs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-map-layout { grid-template-columns: minmax(0, 1fr) 250px; }
    .rp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .rp-hero { padding: 60px 0 120px; }
    .rp-studio-section { margin-top: -40px; }
    .rp-hero-visual { margin: 3rem auto 0; }
    .rp-map-card { transform: none; }
    .rp-float.f1 { left: -6px; }
    .rp-float.f2 { right: -6px; }
    .studio-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .studio-nav { flex-direction: row; overflow-x: auto; padding: 10px; gap: 6px; }
    .studio-brand, .studio-nav-group, .studio-nav-note { display: none; }
    .studio-tab { flex: 0 0 auto; width: auto; grid-template-columns: 26px auto; padding: 7px 12px 7px 8px; }
    .studio-tab .ico { width: 26px; height: 26px; }
    .studio-tab small { display: none; }
    .studio-main { padding: 16px; }
    .studio-url { display: none; }
    .rs-map-layout, .rs-rank-layout, .rs-period-body.has-cards { grid-template-columns: minmax(0, 1fr); }
    .rs-map { height: 320px; }
    .rs-rank { flex: none; max-height: 300px; }
    .rs-pkpis { grid-template-columns: minmax(0, 1fr); }
    .rs-pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-filter-end { margin-left: 0; }
    .rp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-tile.span-3, .rp-tile.span-2 { grid-column: span 1; }
    .rp-migrate .rp-verify { margin-top: 2rem; }
    .rp-section { padding: 70px 0; }
    .rp-cta-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 575.98px) {
    .rp-hero h1 { font-size: 2.35rem; }
    .rp-float { display: none; }
    .rs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .rs-kpi { padding: 11px; }
    .rs-kpi-value { font-size: 1.15rem; }
    .rs-kpi-label { white-space: normal; line-height: 1.2; }
    .rs-kpi-foot { flex-wrap: wrap; row-gap: 2px; }
    .rs-field select { min-width: 140px; }
    .rs-bars li { grid-template-columns: 16px 86px minmax(0, 1fr) 76px; gap: 7px; }
    .rs-actions { width: 100%; }
    .rs-btn { flex: 1; justify-content: center; }
    .rp-bento, .rp-why { grid-template-columns: minmax(0, 1fr); }
    .rp-verify-row { grid-template-columns: 1fr 1fr 1fr 22px; font-size: .72rem; }
    .rp-cta-art { padding: 16px; }
    .rs-map { height: 250px; }
    .rp-metric { padding: 1rem; }
    .rp-metric strong { font-size: 1.12rem; }
    .rp-metric i { padding: .45rem; font-size: .8rem; }
    .rp-cta-node { font-size: .74rem; padding: 14px 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .rp-float, .rp-live::before { animation: none; }
    #rsView { transition: none; }
}
@media print {
    body.rs-printing > *:not(main), body.rs-printing main > *:not(.rp-studio-section), body.rs-printing .rp-studio-intro, body.rs-printing .studio-nav, body.rs-printing .studio-top, body.rs-printing .rs-actions, body.rs-printing .qa-stack { display: none !important; }
    body.rs-printing { background: #fff; }
    body.rs-printing .rp-studio-section { margin: 0; padding: 0; }
    body.rs-printing .studio { box-shadow: none; border: 0; }
    body.rs-printing .studio-body { display: block; }
    body.rs-printing .rs-table-scroll { max-height: none; overflow: visible; }
    body.rs-printing .rs-table thead th, body.rs-printing .rs-table tfoot td { position: static; }
    body.rs-printing .rs-filter-row { display: none; }
    body.rs-printing .rs-card, body.rs-printing .rs-kpis, body.rs-printing .rs-pkpis, body.rs-printing .rs-pcards { break-inside: avoid; }
    body.rs-printing .rs-table tr { break-inside: avoid; }
}
