/* Metro Insights 1.1 — app shell and pages (light, flat, Metropolitan colours). Loaded after insights.css. */

body.in-app { background: #FFFFFF; color: #1C244B; }
.in-app .num { font-variant-numeric: tabular-nums; }
.in-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #FFFFFF; color: #001A74; padding: 8px 14px; border-radius: 8px; }
.in-skip:focus { left: 8px; }

/* ---------- Shell ---------- */
.in-shell { display: flex; min-height: 100vh; }
.in-side {
	position: sticky; top: 0; height: 100vh; flex: 0 0 248px; box-sizing: border-box; overflow-y: auto;
	display: flex; flex-direction: column; gap: 28px; padding: 28px 16px 20px;
	background: linear-gradient(180deg, #0A2690 0%, #001A74 42%, #00135C 100%); color: #FFFFFF;
}
.in-side__top { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.in-app .in-side .in-side__close { display: none; }
.in-wordmark { display: flex; flex-direction: column; line-height: 1; }
.in-wordmark span:first-child { font-size: 18px; font-weight: 800; letter-spacing: 0.02em; }
.in-wordmark span:last-child { font-size: 10px; letter-spacing: 0.5em; margin-top: 5px; color: #C9D6FF; }
.in-wordmark--sm { align-items: center; }
.in-wordmark--sm span:first-child { font-size: 14px; }
.in-wordmark--sm span:last-child { font-size: 7px; margin-top: 4px; }
.in-nav { display: flex; flex-direction: column; gap: 24px; }
.in-nav__group { display: flex; flex-direction: column; gap: 2px; }
.in-nav__label { font-size: 12px; font-weight: 500; color: #8DA4E8; padding: 0 12px 8px; }
.in-app a.in-nav__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 24px; border-radius: 8px; color: #C9D6FF; text-decoration: none; font-size: 14px; font-weight: 500; }
.in-app a.in-nav__item:hover { background: #0E2A8C; color: #FFFFFF; }
.in-app a.in-nav__item.is-on { background: #FFFFFF; color: #001A74; font-weight: 600; }
.in-app a.in-nav__item--sm { font-size: 13px; padding: 8px 12px; }
.in-nav__item svg { flex: none; }
.in-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.in-goal { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: linear-gradient(135deg, #1B3BB5 0%, #0E2A8C 100%); }
.in-goal__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.in-goal__row span { color: #C9D6FF; }
.in-goal__bar { height: 6px; border-radius: 3px; background: rgba(0, 19, 92, 0.6); overflow: hidden; }
.in-goal__bar > div { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #9DBBFF, #FFFFFF); }
.in-goal__sub { font-size: 12px; color: #C9D6FF; }
.in-me { display: flex; align-items: center; gap: 10px; padding: 4px 4px 0; }
.in-me__av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #001A74; background: #E8EFFE; }
.in-me__who { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; line-height: 1.3; }
.in-me__who strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-me__who span { font-size: 12px; color: #C9D6FF; }
.in-app .in-iconbtn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: none; background: none; border-radius: 8px; color: inherit; cursor: pointer; padding: 0; }
.in-app .in-side .in-iconbtn { color: #C9D6FF; }
.in-app .in-iconbtn:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.in-app .in-iconbtn[disabled] { opacity: 0.5; cursor: default; }
.in-scrim { display: none; }

.in-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.in-main { width: 100%; max-width: 1720px; margin: 0 auto; box-sizing: border-box; padding: 32px 36px 48px; display: flex; flex-direction: column; gap: 24px; }
.in-mtop, .in-tabs { display: none; }

/* ---------- Page head and controls ---------- */
.in-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.in-head__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.in-app .in-head h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; color: #001A74; letter-spacing: -0.01em; }
.in-head p { margin: 0; font-size: 14px; color: #5A6B88; }
.in-head__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.in-sel-form { margin: 0; display: inline-flex; }
.in-sel { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: #5A6B88; }
.in-sel__box { position: relative; display: inline-flex; align-items: center; }
.in-sel__box svg { position: absolute; right: 14px; pointer-events: none; color: #001A74; }
.in-app .in-sel select {
	font-family: inherit; font-size: 14px; font-weight: 600; color: #001A74; background: #FFFFFF;
	border: 1px solid #C8D2DE; border-radius: 8px; padding: 9px 40px 9px 14px; min-height: 40px; min-width: 180px;
	cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
.in-app .in-sel select:hover { border-color: #7A8CA3; }
.in-app .in-btn { font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 10px 18px; min-height: 40px; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.in-app .in-btn--primary { color: #FFFFFF; background: linear-gradient(135deg, #1B3BB5 0%, #001A74 100%); }
.in-app .in-btn--primary:hover { color: #FFFFFF; filter: brightness(1.1); }
.in-app .in-btn--ghost { color: #001A74; background: #FFFFFF; border-color: #C8D2DE; }
.in-app .in-btn[disabled] { opacity: 0.55; cursor: default; filter: none; }
.in-spin { animation: in-spin 1s linear infinite; }
@keyframes in-spin { to { transform: rotate(360deg); } }
.in-toast { margin: -12px 0 0; font-size: 13px; color: #324A6D; min-height: 0; }
.in-toast:empty { display: none; }

.in-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: #E8EFFE; color: #1C244B; border: 1px solid #C9D6FF; }
.in-banner svg { flex: none; margin-top: 2px; color: #1B3BB5; }
.in-banner--warn { background: #FFF1D6; border-color: #F2D49B; }
.in-banner--warn svg { color: #8A5300; }

/* ---------- Cards and layout ---------- */
.in-card { background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 12px; min-width: 0; }
.in-pad { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.in-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.in-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.in-grow { flex: 999 1 540px; min-width: 0; }
.in-side-col { flex: 1 1 300px; min-width: 0; }
.in-half { flex: 1 1 380px; min-width: 0; }
.in-ch { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.in-app .in-ch h2 { margin: 0; font-size: 15px; font-weight: 600; color: #1C244B; line-height: 1.4; }
.in-ch__aside { font-size: 13px; color: #5A6B88; }
.in-app .in-link { font-size: 13px; font-weight: 600; text-decoration: none; color: #2A5CD6; }
.in-note { margin: 0; font-size: 12px; color: #5A6B88; line-height: 1.5; }
.in-foot { margin: 0; font-size: 12px; color: #5A6B88; }

/* KPI strip */
.in-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); overflow: hidden; }
.in-kpi { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid #E3E8EF; min-width: 0; margin-right: -1px; }
.in-kpi__l { font-size: 13px; color: #5A6B88; }
.in-kpi__v { font-size: 30px; font-weight: 600; color: #001A74; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.in-kpi__v small { font-size: 16px; font-weight: 500; }
.in-kpi__v .in-of { font-size: 18px; font-weight: 400; color: #7A8CA3; }
.in-kpi__s { font-size: 12px; color: #5A6B88; }
.in-kpi__s b { font-weight: 600; }
.in-up { color: #0B6C27; }
.in-down { color: #C42B1D; }
.in-track { height: 4px; border-radius: 2px; background: #E8EFFE; overflow: hidden; }
.in-track > div { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #001A74, #467FF7); }

.in-big { font-size: 32px; font-weight: 600; color: #001A74; line-height: 1; font-variant-numeric: tabular-nums; }
.in-big small { font-size: 18px; font-weight: 500; }
.in-pill-up { font-size: 13px; font-weight: 600; color: #0B6C27; }

/* Segmented control (links) */
.in-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: #F3F5F8; }
.in-app .in-seg a { font-size: 12px; font-weight: 600; color: #5A6B88; text-decoration: none; border-radius: 6px; padding: 7px 12px; }
.in-app .in-seg a[aria-current] { background: #FFFFFF; color: #001A74; box-shadow: 0 1px 2px rgba(28, 36, 75, 0.12); }

.in-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #324A6D; }
.in-legend span { display: inline-flex; align-items: center; gap: 8px; }
.in-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.in-legend i.in-ln { width: 18px; height: 0; border-radius: 0; border-top: 2.5px dashed #61B859; }
.in-legend i.in-ar { width: 12px; border-top: 2px solid #001A74; background: linear-gradient(180deg, rgba(70, 127, 247, 0.5), rgba(70, 127, 247, 0.1)); box-sizing: border-box; }
.in-legend strong { color: #1C244B; font-weight: 600; }

/* ---------- Charts ---------- */
.in-chart { display: grid; grid-template-columns: auto 1fr; grid-template-rows: var(--h, 220px) auto; column-gap: 10px; row-gap: 8px; }
.in-chart__y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: #7A8CA3; text-align: right; line-height: 1; transform: translateY(-5px); height: calc(100% + 10px); }
.in-chart__plot { position: relative; min-width: 0; touch-action: pan-y; }
.in-chart__grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.in-chart__grid div { border-top: 1px solid #F0F3F7; }
.in-chart__grid div:last-child { border-top-color: #C8D2DE; }
.in-chart__svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.in-chart__x { grid-column: 2; position: relative; height: 16px; font-size: 11px; color: #7A8CA3; }
.in-chart__x span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.in-chart__x span.is-first { transform: none; }
.in-chart__x span.is-last { transform: translateX(-100%); }
.in-chart__x span.is-on { color: #1C244B; font-weight: 600; }
.in-chart__guide { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(28, 36, 75, 0.4); pointer-events: none; }
.in-chart__mark { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #FFFFFF; border: 4px solid #001A74; box-sizing: border-box; pointer-events: none; }
.in-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #FFFFFF; border: 3px solid #001A74; box-sizing: border-box; pointer-events: none; }
.in-chart__end { position: absolute; right: 0; font-size: 13px; font-weight: 600; color: #001A74; pointer-events: none; }
.in-chart__end--line { color: #0B6C27; }
.in-tip { position: absolute; top: 4%; transform: translateX(14px); display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 8px; background: #1C244B; font-size: 12px; color: #C9D6FF; white-space: nowrap; pointer-events: none; z-index: 2; font-variant-numeric: tabular-nums; }
.in-tip.is-left { transform: translateX(calc(-100% - 14px)); }
.in-tip__t { font-weight: 600; color: #FFFFFF; }

.in-ring { border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.in-ring__hole { border-radius: 50%; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; text-align: center; }

/* Bars */
.in-bars { display: flex; flex-direction: column; gap: 12px; }
.in-bar { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 12px; font-size: 13px; }
.in-bar__l { color: #324A6D; }
.in-bar__t { height: 20px; border-radius: 4px; background: #F3F5F8; overflow: hidden; }
.in-bar__t > div { height: 100%; border-radius: 4px; }
.in-bar--thin .in-bar__t { height: 6px; border-radius: 3px; background: #EEF2F6; }
.in-bar__v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.in-g0 { background: linear-gradient(90deg, #001A74, #1B3BB5); }
.in-g1 { background: linear-gradient(90deg, #0E2A8C, #2F5FE0); }
.in-g2 { background: linear-gradient(90deg, #1B3BB5, #467FF7); }
.in-g3 { background: linear-gradient(90deg, #2F5FE0, #7FA6FA); }
.in-gok { background: #0B6C27; }
.in-ggrey { background: #7A8CA3; }

/* Hot leads */
.in-hot { display: flex; align-items: center; gap: 12px; }
.in-hot__n { font-size: 40px; font-weight: 600; color: #001A74; line-height: 1; font-variant-numeric: tabular-nums; }
.in-hot__t { font-size: 13px; line-height: 1.35; color: #324A6D; }
.in-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #0B6C27; }
.in-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.in-live--off { color: #7A8CA3; }

.in-list { display: flex; flex-direction: column; }
.in-list__h { font-size: 13px; font-weight: 500; color: #5A6B88; padding-bottom: 4px; }
.in-li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EEF2F6; font-size: 13px; }
.in-li:last-child { border-bottom: none; }
.in-li__main { display: flex; flex-direction: column; min-width: 0; }
.in-li__main strong { font-weight: 500; color: #1C244B; }
.in-li__main span { font-size: 12px; color: #5A6B88; }
.in-li__v { font-weight: 600; color: #1C244B; white-space: nowrap; font-variant-numeric: tabular-nums; }
.in-li__v--ok { color: #0B6C27; }
.in-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #E3E8EF; font-size: 13px; color: #324A6D; }
.in-sum strong { color: #1C244B; font-weight: 600; }

/* People cards */
.in-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 12px; }
.in-person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 8px 16px; border-radius: 12px; background: #F9FAFD; border: 1px solid #EEF2F6; min-width: 0; text-decoration: none; color: inherit; }
.in-app a.in-person:hover { border-color: #C9D6FF; color: inherit; }
.in-person .in-ring { margin-bottom: 6px; }
.in-av { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(160deg, #E8EFFE, #C9D6FF); border: 3px solid #FFFFFF; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: #001A74; }
.in-person__n { font-size: 13px; font-weight: 600; color: #1C244B; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-person__p { font-size: 20px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.in-person__s { font-size: 12px; color: #5A6B88; font-variant-numeric: tabular-nums; }

/* Tables */
.in-tablewrap { overflow-x: auto; position: relative; }
.in-t { width: 100%; border-collapse: collapse; }
.in-t th { font-size: 12px; font-weight: 500; color: #5A6B88; text-align: left; padding: 10px 16px; background: #F9FAFD; border-bottom: 1px solid #E3E8EF; white-space: nowrap; }
.in-t td { font-size: 14px; color: #1C244B; padding: 12px 16px; border-bottom: 1px solid #EEF2F6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.in-t tr:last-child td { border-bottom: none; }
.in-t tbody tr:hover td { background: #F9FAFD; }
.in-t .r { text-align: right; }
.in-t .b { font-weight: 600; }
.in-t th:first-child, .in-t td:first-child { padding-left: 24px; }
.in-t th:last-child, .in-t td:last-child { padding-right: 24px; }
.in-t--plain th { background: none; padding: 8px 0; }
.in-t--plain td { padding: 9px 0; font-size: 13px; }
.in-t--plain th:first-child, .in-t--plain td:first-child, .in-t--plain th:last-child, .in-t--plain td:last-child { padding-left: 0; padding-right: 0; }
.in-t--plain td + td, .in-t--plain th + th { padding-left: 14px; }
.in-t tr.in-sub td { background: #FBFCFE; font-size: 13px; color: #324A6D; }
.in-t tr.in-sub td:first-child { padding-left: 52px; }
.in-t tr.in-total td { font-weight: 600; background: #F9FAFD; }
.in-tb { height: 6px; min-width: 80px; border-radius: 3px; background: #EEF2F6; overflow: hidden; }
.in-tb > div { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #1B3BB5, #467FF7); }
.in-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 10px; vertical-align: -1px; }
.in-expand { font: inherit; font-weight: 500; color: #1C244B; background: none; border: none; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.in-expand svg { transition: transform .15s; color: #7A8CA3; }
.in-expand[aria-expanded="true"] svg { transform: rotate(180deg); }

.in-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.in-chip--green { color: #0B6C27; background: #E6F4EA; }
.in-chip--amber { color: #8A5300; background: #FFF1D6; }
.in-chip--red { color: #C42B1D; background: #FDE8E6; }
.in-chip--none { color: #5A6B88; background: #F3F5F8; font-weight: 500; }
.in-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #5A6B88; background: #F3F5F8; padding: 3px 10px; border-radius: 999px; }
.in-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7A8CA3; }
.in-st.is-on { color: #0B6C27; background: #E6F4EA; }
.in-st.is-on::before { background: #0B6C27; }
.in-muted { color: #7A8CA3; }
.in-good { color: #0B6C27; font-weight: 600; }
.in-bad { color: #C42B1D; font-weight: 600; }

/* Social */
.in-socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.in-soc { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: #F9FAFD; border: 1px solid #EEF2F6; min-width: 0; }
.in-soc__i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; background: #E8EFFE; color: #001A74; }
.in-soc__n { font-size: 12px; color: #5A6B88; }
.in-soc__v { font-size: 22px; font-weight: 600; color: #001A74; line-height: 1.1; font-variant-numeric: tabular-nums; }
.in-soc__g { font-size: 12px; font-weight: 600; color: #0B6C27; font-variant-numeric: tabular-nums; }
.in-post { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF2F6; font-size: 13px; }
.in-post:last-child { border-bottom: none; }
.in-post__th { width: 44px; height: 44px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; color: #FFFFFF; background: linear-gradient(135deg, #467FF7, #001A74); }
.in-post__m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.in-post__m strong { font-weight: 500; }
.in-post__m span, .in-post__v span { font-size: 12px; color: #5A6B88; }
.in-post__v { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.in-post__v strong { font-weight: 600; font-variant-numeric: tabular-nums; }

.in-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 28px 16px; border-radius: 10px; background: #F9FAFD; border: 1px dashed #DCE3EA; color: #5A6B88; font-size: 13px; line-height: 1.5; flex: 1; }
.in-empty svg { color: #7A8CA3; }
.in-empty strong { color: #1C244B; font-weight: 600; font-size: 14px; }

.in-stats3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid #EEF2F6; margin-top: auto; }
.in-stats3 div { display: flex; flex-direction: column; gap: 2px; }
.in-stats3 span { font-size: 12px; color: #5A6B88; }
.in-stats3 strong { font-size: 15px; font-weight: 600; color: #1C244B; font-variant-numeric: tabular-nums; }

/* ---------- Animation ---------- */
@keyframes in-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes in-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes in-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.in-app .rise { animation: in-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.in-app .bar { transform-origin: left center; animation: in-grow .9s cubic-bezier(.2, .7, .2, 1) .2s both; }
.in-chart__svg { animation: in-reveal 1.1s cubic-bezier(.6, .05, .2, 1) .1s both; }
@media (prefers-reduced-motion: reduce) {
	.in-app .rise, .in-app .bar, .in-chart__svg { animation: none; }
}

/* ---------- Mobile-only blocks (Sales overview) ---------- */
.in-m { display: none; }

/* ---------- Phone and small tablet ---------- */
@media (max-width: 899px) {
	body.in-app { background: #F9FAFD; }
	.in-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; width: 280px; }
	.in-app .in-side .in-side__close { display: inline-flex; }
	body.in-nav-open .in-side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
	body.in-nav-open .in-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0, 19, 92, 0.45); }

	.in-mtop { display: flex; flex-direction: column; gap: 10px; padding: 8px 14px 46px; color: #FFFFFF; background: linear-gradient(180deg, #0A2690 0%, #001A74 60%, #00135C 100%); }
	.in-mtop__bar { display: flex; align-items: center; justify-content: space-between; margin: 0 -10px; }
	.in-mtop__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
	.in-mtop__title > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
	.in-mtop__h { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; }
	.in-mtop__sub { font-size: 11px; color: #8DA4E8; }
	.in-app .in-mtop .in-iconbtn { color: #FFFFFF; }
	.in-mtop .in-sel__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.in-app .in-mtop .in-sel select { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); border-color: rgba(201, 214, 255, 0.35); border-radius: 999px; font-size: 13px; padding: 8px 34px 8px 14px; min-width: 0; max-width: 46vw; }
	.in-app .in-mtop .in-sel select option { color: #1C244B; }
	.in-mtop .in-sel__box svg { color: #FFFFFF; right: 12px; }

	.in-main { padding: 0 12px 92px; margin-top: -36px; gap: 12px; }
	.in-head { display: none; }
	.in-toast { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E3E8EF; }
	.in-banner { font-size: 13px; }
	.in-row, .in-col { gap: 12px; }
	.in-pad { padding: 16px; gap: 14px; }
	.in-card { border-radius: 14px; }
	.in-kpis { grid-template-columns: 1fr 1fr; }
	.in-kpi { padding: 14px; border-bottom: 1px solid #E3E8EF; margin-bottom: -1px; }
	.in-kpi__v { font-size: 24px; }
	.in-big { font-size: 26px; }
	.in-t th:first-child, .in-t td:first-child { padding-left: 16px; }
	.in-t th:last-child, .in-t td:last-child { padding-right: 16px; }
	.in-t th, .in-t td { padding-left: 10px; padding-right: 10px; }
	.in-t td { font-size: 13px; }
	.in-chart { --h: 160px !important; }
	.in-tip { font-size: 11px; padding: 8px 10px; }
	.in-chart__x span:nth-child(even):not(.is-last) { display: none; }

	.in-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #FFFFFF; border-top: 1px solid #E3E8EF; padding: 2px 4px calc(6px + env(safe-area-inset-bottom)); }
	.in-app a.in-tabs__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-size: 10px; font-weight: 500; color: #5A6B88; text-decoration: none; }
	.in-app a.in-tabs__item.is-on { color: #001A74; font-weight: 600; }

	.in-d { display: none !important; }
	.in-legacy > p.mi-sub:first-child { display: none; }
	.in-app .in-legacy .mi-card { padding: 18px 16px; }
	.in-m { display: flex; }
}

/* ---------- Mobile Sales overview ---------- */
.in-mhero { flex-direction: column; gap: 12px; padding: 14px; box-shadow: 0 6px 18px rgba(0, 26, 116, 0.08); }
.in-mhero__top { display: flex; align-items: center; gap: 14px; }
.in-mhero__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.in-mhero__txt span { font-size: 12px; color: #5A6B88; }
.in-mhero__txt strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.in-ms { display: flex; border-top: 1px solid #EEF2F6; padding-top: 12px; }
.in-ms > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 4px; }
.in-ms > div + div { border-left: 1px solid #EEF2F6; padding-left: 12px; }
.in-ms b { font-size: 17px; font-weight: 600; color: #001A74; line-height: 1.2; font-variant-numeric: tabular-nums; }
.in-ms span { font-size: 11px; color: #5A6B88; }
.in-tiles { gap: 10px; }
.in-app a.in-tile { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 44px; text-decoration: none; color: #1C244B; }
.in-tile b { font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.in-tile span { font-size: 11px; line-height: 1.3; color: #5A6B88; }
.in-mfees { flex-direction: column; gap: 10px; padding: 14px 14px 12px; }
.in-mfees .in-chart { --h: 84px !important; grid-template-columns: 0 1fr; column-gap: 0; }
.in-mfees .in-chart__y { visibility: hidden; width: 0; overflow: hidden; }
.in-mfees .in-chart__grid, .in-mfees .in-tip, .in-mfees .in-chart__guide { display: none; }
.in-mfees .in-chart__x span:not(.is-first):not(.is-last) { display: none; }
.in-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.in-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #324A6D; white-space: nowrap; }
.in-chips i { width: 8px; height: 8px; border-radius: 2px; }
.in-chips b { color: #1C244B; font-weight: 600; }
.in-mtabs { flex-direction: column; padding: 12px 0 6px; position: relative; }
.in-mtabs input { position: absolute; opacity: 0; pointer-events: none; }
.in-mtabs__bar { display: flex; gap: 2px; padding: 3px; margin: 0 12px; border-radius: 10px; background: #F3F5F8; }
.in-mtabs__bar label { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: #5A6B88; padding: 8px 4px; border-radius: 8px; cursor: pointer; }
.in-mtabs input:focus-visible ~ .in-mtabs__bar { outline: 3px solid #467FF7; outline-offset: 2px; }
.in-mpane { display: none; padding: 6px 14px 4px; }
#in-tt:checked ~ .in-mtabs__bar label[for=in-tt], #in-tf:checked ~ .in-mtabs__bar label[for=in-tf], #in-tp:checked ~ .in-mtabs__bar label[for=in-tp] { background: #FFFFFF; color: #001A74; box-shadow: 0 1px 2px rgba(28, 36, 75, 0.12); }
#in-tt:checked ~ .in-mpanes .in-mpane--t, #in-tf:checked ~ .in-mpanes .in-mpane--f, #in-tp:checked ~ .in-mpanes .in-mpane--p { display: block; }
.in-mrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EEF2F6; font-size: 13px; }
.in-mrow:last-child { border-bottom: none; }
.in-mrow__n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.in-mrow__n > span:first-child { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-mrow__s { font-size: 11px; color: #5A6B88; font-variant-numeric: tabular-nums; }
.in-mrow__v { font-weight: 600; text-align: right; min-width: 38px; font-variant-numeric: tabular-nums; }
.in-mtr { height: 5px; border-radius: 3px; background: #EEF2F6; overflow: hidden; }
.in-mtr > div { height: 100%; border-radius: 3px; }
.in-mav { width: 28px; height: 28px; border-radius: 50%; background: #E8EFFE; border: 2px solid #FFFFFF; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: #001A74; }
.in-sample { font-size: 10px; color: #7A8CA3; text-align: center; }

/* Targets page inside the new shell: keep the old components, drop their page chrome. */
.in-app .in-legacy { display: flex; flex-direction: column; gap: 24px; }
.in-app .in-legacy .mi-card { border-radius: 12px; box-shadow: none; border: 1px solid #E3E8EF; }

.in-mwrap { flex-direction: column; gap: 10px; }
.in-mwrap .in-card { display: flex; }

.in-bars--fill { flex: 1; justify-content: space-evenly; }
.in-t--plain th:last-child, .in-t--plain td:last-child { padding-left: 20px; }

/* Period with custom dates */
.in-period { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.in-dates { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.in-date { display: inline-flex; }
.in-date .in-sel__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.in-app .in-date input { font-family: inherit; font-size: 14px; font-weight: 600; color: #001A74; background: #FFFFFF; border: 1px solid #C8D2DE; border-radius: 8px; padding: 8px 10px; min-height: 40px; box-sizing: border-box; }
.in-app .in-date input:hover { border-color: #7A8CA3; }
.in-dates__sep { color: #7A8CA3; }
@media (max-width: 899px) {
	.in-mtop__title { flex-wrap: wrap; }
	.in-mtop .in-period { justify-content: flex-start; }
	.in-mtop .in-dates { width: 100%; }
	.in-app .in-mtop .in-date input { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); border-color: rgba(201, 214, 255, 0.35); color-scheme: dark; font-size: 13px; min-height: 40px; }
	.in-mtop .in-date { flex: 1; }
	.in-mtop .in-date input { width: 100%; }
	.in-app .in-mtop .in-dates .in-btn { background: #FFFFFF; color: #001A74; border: none; }
	.in-mtop .in-dates__sep { color: #C9D6FF; }
}

/* Loading state after Apply or a filter change */
.in-loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, #467FF7 40%, #1B3BB5 60%, transparent); background-size: 50% 100%; background-repeat: no-repeat; }
body.in-loading .in-loadbar { opacity: 1; animation: in-load 1.1s linear infinite; }
@keyframes in-load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
body.in-loading .in-main > *:not(.in-head):not(.in-toast) { filter: opacity(0.45); transition: filter .2s; pointer-events: none; }
.in-app .in-btn:active:not([disabled]) { transform: translateY(1px); }
.in-app .in-dates .in-btn { color: #FFFFFF; background: linear-gradient(135deg, #1B3BB5 0%, #001A74 100%); border-color: transparent; }
.in-app .in-dates .in-btn[aria-busy] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { body.in-loading .in-loadbar { animation: none; background: #467FF7; } }

/* Top posts open the post on Instagram / Facebook */
.in-app a.in-post--link { color: inherit; text-decoration: none; border-radius: 10px; margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.in-app a.in-post--link:hover { background: #F9FAFD; color: inherit; }
.in-app a.in-post--link:hover .in-post__m strong { color: #001A74; text-decoration: underline; text-underline-offset: 2px; }
.in-post__th { position: relative; }
.in-post__pf { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; color: #001A74; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #FFFFFF; }
.in-post__open { color: #2A5CD6; font-weight: 600; }
.in-post__m strong { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
