.ins-page { display: grid; gap: 20px; min-width: 0; }
.ins-page h1, .ins-page h2, .ins-page h3, .ins-page p { margin: 0; }
.ins-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 2px 0; }
.ins-heading h1 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 750; line-height: 1.22; letter-spacing: -.04em; color: #1e2137; }
.ins-heading p { color: #68718a; margin-top: 8px; font-size: .91rem; }
.ins-caption { display: flex; align-items: center; gap: 8px; color: #65708b; font-size: .78rem; font-weight: 590; margin-bottom: 10px; }
.ins-caption > span { width: 7px; height: 7px; border-radius: 50%; background: #6a58ec; box-shadow: 0 0 0 4px #eeebff; margin: 0 3px 0 4px; }
.ins-caption > i { width: 3px; height: 3px; border-radius: 50%; background: #a2a9bd; }
.ins-page-actions { display: flex; align-items: center; gap: 8px; }
.ins-controls { padding: 12px; }
.ins-controls-main { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; }
.ins-controls-end { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.ins-segmented, .ins-chart-switch { padding: 3px; background: #f2f3f8; border: 1px solid #eeeff5; border-radius: 9px; display: inline-flex; gap: 2px; align-items: center; white-space: nowrap; }
.ins-segmented button, .ins-chart-switch button { min-height: 30px; padding: 5px 12px; color: #636b82; border: 1px solid transparent; border-radius: 6px; background: transparent; font: inherit; font-size: .81rem; cursor: pointer; }
.ins-segmented button:hover, .ins-chart-switch button:hover { color: #5244c4; }
.ins-segmented button.active, .ins-chart-switch button.active { background: #fff; color: #5946d1; border-color: #e8e6f2; box-shadow: 0 1px 3px #19153c12; font-weight: 700; }
.ins-chart-switch { padding: 2px; }
.ins-chart-switch button { min-height: 25px; padding: 3px 9px; font-size: .76rem; }
.ins-filter-count { border-radius: 5px; background: #eeeaff; color: #5541cb; font-size: .71rem; line-height: 1.35; padding: 2px 5px; }
.ins-inline-field { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ins-inline-field span { font-size: .79rem; color: #69728b; white-space: nowrap; }
.ins-site-select { min-width: 126px; }
.ins-inline-field select, .ins-pagination select { box-sizing: border-box; min-height: 34px; padding: 6px 28px 6px 11px; border: 1px solid #e0e3ee; border-radius: 8px; background-color: #fff; color: #333b57; font: inherit; font-size: .83rem; max-width: 260px; }
.ins-site-select select { width: 100%; }
.ins-primary-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.ins-metric { display: flex; flex-direction: column; align-items: flex-start; padding: 15px 16px; min-width: 0; }
.ins-metric-top { display: flex; width: 100%; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ins-metric-icon, .ins-card-glyph, .ins-empty-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; flex: 0 0 auto; }
.ins-tone-blue { color: #4958d4; background: #edf0ff; }
.ins-tone-violet { color: #7455d7; background: #f2eefe; }
.ins-tone-green { color: #0e8c75; background: #e8f8f3; }
.ins-tone-amber { color: #a7611e; background: #fff3e4; }
.ins-metric-label { color: #565f79; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.ins-metric > strong { color: #22243d; font-size: 1.92rem; letter-spacing: -.04em; font-weight: 750; line-height: 1.25; margin: 4px 0; font-variant-numeric: tabular-nums; }
.ins-metric-sub { display: flex; align-items: center; gap: 6px; min-height: 19px; max-width: 100%; }
.ins-mutetext { color: #717a92; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-delta { padding: 2px 5px; font-size: .71rem; font-weight: 700; color: #5b6380; border-radius: 5px; background: #eff1f6; white-space: nowrap; }
.ins-delta-up { color: #087859; background: #e5f7ef; }
.ins-delta-down { color: #ae4251; background: #fcecef; }
.ins-icon-button, .ins-text-button { border: 0; background: transparent; color: #6959d7; cursor: pointer; font: inherit; }
.ins-icon-button { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 7px; color: #75809a; }
.ins-icon-button:hover { background: #f1eeff; color: #5a45d4; }
.ins-text-button { padding: 4px 3px; font-size: .82rem; font-weight: 630; }
.ins-text-button:hover { color: #4932bc; text-decoration: underline; }
.ins-text-button:disabled { cursor: default; text-decoration: none; color: #727b92; }
.ins-main-charts { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(255px, 1fr); gap: 15px; }
.ins-chart-card, .ins-table-card { padding: 18px; min-width: 0; }
.ins-card-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 16px; }
.ins-card-head h2 { color: #262945; line-height: 1.25; font-size: 1.03rem; font-weight: 690; }
.ins-card-head p { margin-top: 5px; color: #747d95; font-size: .78rem; line-height: 1.45; }
.ins-card-glyph { width: 34px; height: 34px; background: #f2f0ff; color: #6e57db; }
.ins-legend { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; color: #58637f; font-size: .75rem; margin: 1px 0 5px; }
.ins-legend span { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.ins-legend i, .ins-chart-tooltip i, .ins-pie-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); flex: 0 0 auto; }
.ins-trend-plot { position: relative; }
.ins-trend-svg { width: 100%; height: auto; display: block; overflow: visible; min-height: 170px; }
.ins-trend-svg text { font-family: inherit; fill: #687590; font-size: 13px; font-variant-numeric: tabular-nums; }
.ins-trend-inputs { position: absolute; inset: 5% 0 17% 0; pointer-events: none; }
.ins-trend-inputs button { border: 0; padding: 0; background: transparent; position: absolute; top: 0; bottom: 0; width: 2.25%; min-width: 5px; transform: translateX(-50%); color: #b5adea; cursor: crosshair; pointer-events: auto; }
.ins-trend-inputs button:hover, .ins-trend-inputs button:focus-visible { background: #6656dd14; }
.ins-chart-tooltip { pointer-events: none; position: absolute; top: 10%; min-width: 128px; font-size: .74rem; border: 1px solid #eeebf9; border-radius: 10px; padding: 8px 10px; background: #fff; box-shadow: 0 8px 26px #29255118; color: #333b58; z-index: 1; }
.ins-chart-tooltip > strong { display: block; margin-bottom: 4px; }
.ins-chart-tooltip span { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.ins-chart-tooltip b { margin-left: auto; }
.ins-trend-zero .ins-trend-svg { opacity: .72; }
.ins-plot-empty { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; font-size: .79rem; color: #68728c; padding: 5px 10px; background: #fff; border: 1px solid #edf0f5; border-radius: 6px; }
.ins-funnel-phases { display: grid; gap: 8px; padding-top: 0; }
.ins-funnel-stage, .ins-ranking button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; width: 100%; text-align: left; color: #555f7b; padding: 4px 2px; font: inherit; font-size: .84rem; background: transparent; border: 0; cursor: pointer; align-items: center; border-radius: 5px; }
.ins-funnel-stage:hover, .ins-ranking button:hover { background: #f9f8ff; color: #5644c2; }
.ins-funnel-stage strong, .ins-ranking strong { font-size: .88rem; color: #323a55; font-weight: 690; font-variant-numeric: tabular-nums; }
.ins-track { grid-column: 1 / -1; height: 8px; border-radius: 12px; overflow: hidden; background: #f1f1f8; }
.ins-track > i { display: block; width: var(--bar-width); height: 100%; background: var(--bar-color); border-radius: 12px; }
.ins-more-metrics { padding: 0; }
.ins-more-metrics summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; cursor: pointer; color: #414a68; font-size: .84rem; font-weight: 660; }
.ins-more-metrics summary > span { display: inline-flex; align-items: center; gap: 8px; }
.ins-more-metrics summary svg { color: #6c5cd8; }
.ins-more-metrics summary::-webkit-details-marker, .ins-lead-sections summary::-webkit-details-marker { display: none; }
.ins-more-metrics[open] summary > svg, .ins-lead-sections details[open] summary svg { transform: rotate(180deg); }
.ins-more-metrics > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0 12px 12px; }
.ins-more-metrics .ins-metric { padding: 12px; box-shadow: none; }
.ins-more-metrics .ins-metric-icon { width: 31px; height: 31px; }
.ins-more-metrics .ins-metric > strong { font-size: 1.46rem; }
.ins-comparison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.ins-ranking { display: grid; gap: 8px; }
.ins-rank-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-empty { min-height: 132px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 20px; text-align: center; color: #3b4563; font-size: .86rem; }
.ins-empty-icon { background: #f0edff; color: #7161d9; margin-bottom: 3px; }
.ins-empty p { color: #727c95; font-size: .76rem; }
.ins-device-layout { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 4px; }
.ins-donut { width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; }
.ins-donut > div { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ins-donut strong { font-size: 1.17rem; color: #292d46; }
.ins-donut small { color: #69738d; font-size: .69rem; }
.ins-pie-key { display: grid; gap: 5px; flex: 1 1 115px; }
.ins-pie-key button { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 2px; color: #51607b; font: inherit; font-size: .77rem; cursor: pointer; }
.ins-pie-key button:hover { color: #5d47d6; }
.ins-pie-key strong { margin-left: auto; }
.ins-view-row { display: flex; align-items: center; justify-content: space-between; color: #626b85; font-size: .82rem; font-weight: 640; }
.ins-table-card .table-wrap { max-width: 100%; }
.ins-table { width: 100%; border-collapse: collapse; font-size: .84rem; color: #394461; white-space: nowrap; }
.ins-table th { color: #68728c; background: #f8f9fc; text-align: left; padding: 11px 12px; font-size: .76rem; font-weight: 650; }
.ins-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.ins-table th button:hover { color: #5c47d4; }
.ins-table td { padding: 13px 12px; border-bottom: 1px solid #eef0f5; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.ins-table tbody tr:hover { background: #fafaff; }
.ins-table small { display: block; margin-top: 3px; color: #727c95; font-size: .74rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.ins-table-date, .ins-ip { font-variant-numeric: tabular-nums; }
.ins-pagination { margin-top: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #6d7791; font-size: .78rem; }
.ins-pagination > div, .ins-pagination label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ins-page-step { min-width: 31px; width: 31px; padding: 0; display: grid; place-items: center; }
.ins-pagination select { min-height: 30px; }
.ins-modal-form { display: grid; gap: 14px; }
.ins-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 13px; }
.ins-modal-form label { display: grid; gap: 5px; color: #495572; font-size: .81rem; font-weight: 630; min-width: 0; }
.ins-modal-form label[hidden], .ins-chart-tooltip[hidden] { display: none; }
.ins-modal-form input, .ins-modal-form select, .ins-modal-form textarea { box-sizing: border-box; width: 100%; border: 1px solid #e1e4ef; border-radius: 8px; padding: 8px 10px; min-height: 37px; background-color: #fff; color: #28334e; font: inherit; font-size: .84rem; font-weight: 480; }
.ins-modal-form textarea { resize: vertical; }
.ins-modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 4px; }
.ins-lead-tabs { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid #e9ecf6; }
.ins-lead-tabs button { background: transparent; color: #65718b; border: 0; border-bottom: 2px solid transparent; padding: 4px 2px 11px; font: inherit; font-size: .84rem; cursor: pointer; white-space: nowrap; }
.ins-lead-tabs button:hover, .ins-lead-tabs button.active { color: #5d49d1; }
.ins-lead-tabs button.active { border-bottom-color: #6954e9; font-weight: 700; }
.ins-lead-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; }
.ins-lead-tools > div { display: flex; gap: 7px; align-items: center; }
.ins-search { display: flex; align-items: center; gap: 7px; min-height: 37px; border: 1px solid #e4e7f1; border-radius: 8px; padding: 0 9px; color: #687590; }
.ins-search input { min-width: 240px; min-height: 32px; border: 0; background: none; color: #26324f; font: inherit; font-size: .84rem; }
.ins-search:focus-within { border-color: #8774ec; }
.ins-search input:focus { outline: 0; }
.ins-person { display: flex; gap: 9px; align-items: center; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; max-width: 100%; }
button.ins-person { cursor: pointer; }
button.ins-person:hover strong { color: #5b47cc; }
.ins-person > span:last-child { min-width: 0; }
.ins-person strong, .ins-person small { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.ins-person strong { font-size: .89rem; color: #293653; }
.ins-person small { margin-top: 3px; font-size: .76rem; color: #737c93; }
.ins-avatar { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; background: #ede9ff; color: #694ecb; font-size: .83rem; font-weight: 700; flex: 0 0 auto; }
.ins-avatar[data-tone="1"] { color: #3552bc; background: #eaf0ff; }
.ins-avatar[data-tone="2"] { color: #936329; background: #fff1df; }
.ins-avatar[data-tone="3"] { color: #098771; background: #e4f7f0; }
.ins-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; background: #f0f1f6; color: #566680; padding: 4px 7px; font-size: .72rem; font-weight: 680; white-space: nowrap; }
.ins-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ins-status-submitted { color: #10795b; background: #e5f8ef; }
.ins-status-abandoned { color: #9b5b2a; background: #fff0e0; }
.ins-status-in_progress { color: #4f50b7; background: #eeedff; }
.ins-status-failed { color: #a13760; background: #fbeaf1; }
.ins-lead-dialog { width: min(640px, calc(100vw - 50px)); max-width: none; }
.ins-loading { min-height: 100px; display: grid; place-items: center; color: #61708d; }
.ins-lead-top { display: flex; justify-content: space-between; align-items: center; padding: 0 0 15px; }
.ins-lead-top .ins-avatar { width: 41px; height: 41px; font-size: .95rem; }
.ins-lead-sections { display: grid; gap: 7px; }
.ins-lead-sections details { border: 1px solid #e7eaf2; border-radius: 8px; background: #fff; }
.ins-lead-sections summary { list-style-type: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 9px 11px; color: #3c4966; font-weight: 660; font-size: .83rem; }
.ins-lead-sections summary svg { color: #657193; }
.ins-lead-sections details > div { padding: 0 11px 11px; }
.ins-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; margin: 0; }
.ins-facts > div { min-width: 0; }
.ins-facts dt { color: #71809c; font-size: .74rem; }
.ins-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .84rem; color: #354261; }
.ins-muted, .ins-muted-pill { color: #6e7a95; font-size: .75rem; }
.ins-muted-pill { display: inline-block; border-radius: 5px; background: #f1f3f8; padding: 2px 5px; }
.ins-history { padding: 0; margin: 0; list-style: none; max-height: 195px; overflow: auto; }
.ins-history li { padding: 7px 0; border-bottom: 1px solid #f0f1f7; overflow-wrap: anywhere; }
.ins-history strong { display: block; color: #3d4b66; font-weight: 650; font-size: .82rem; }
.ins-history small { color: #78839b; font-size: .74rem; }
.ins-lead-edit { margin-top: 16px; }
.ins-lead-edit h3 { font-size: .9rem; margin: 0; color: #3c4966; }
.ins-danger { color: #ab334d; }
.ins-danger-solid { background: #b5324e; color: #fff; border-color: #b5324e; }
.ins-danger-solid:hover { background: #94243d; color: #fff; }
.ins-confirm-copy { color: #54607a; font-size: .89rem; line-height: 1.55; margin: 0 0 12px; }
.ins-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
@media (max-width: 1180px) {
  .ins-more-metrics > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ins-main-charts { grid-template-columns: minmax(0, 1.6fr) minmax(225px, 1fr); }
  .ins-trend-svg text { font-size: 15px; }
}
@media (max-width: 900px) {
  .ins-primary-metrics, .ins-more-metrics > div, .ins-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-main-charts { grid-template-columns: minmax(0, 1fr); }
}
