/* LGI Gateway — Lupo Games brand: ink #18181E, lime #C0ED14, lavender #9A8BF4 */
:root {
	color-scheme: dark;
	--ink: #18181e;
	--ink-2: #202029;
	--ink-3: #2a2a35;
	--line: #34343f;
	--text: #f3f3f6;
	--muted: #a3a3b2;
	--lime: #c0ed14;
	--lav: #9a8bf4;
	--ok: #7ddc8a;
	--warn: #f2c14e;
	--fail: #ff7a7a;
	--radius: 14px;
	/* theme tokens (dark) — light values under [data-theme="light"] */
	--scheme: dark;
	--lime-text: #c0ed14; --lime-line: #c0ed14; --lav-text: #9a8bf4; --on-accent: #18181e;
	--text-2: #d4d4de; --muted-2: #8a8a98; --line-2: #3d3d4a;
	--t-bad: #ff8a8a; --t-bad-2: #ffc2c2; --t-warn: #f4c46a; --t-warn-2: #fab219; --t-good: #6fdc7e; --t-good-2: #c7f2cd; --t-lav-2: #d9d2ff; --t-blue: #8cbcf3;
	--side-bg: #131318; --pop-bg: #111116; --hover-bg: #23232d; --skel-2: #303039; --glow: #2b2b3a;
	--wash: rgba(255, 255, 255, .02); --hair: rgba(255, 255, 255, .05);
	--shadow-1: rgba(0, 0, 0, .35); --shadow-2: rgba(0, 0, 0, .45); --shadow-3: rgba(0, 0, 0, .55);
	--heat-0: #17171d; --heat-1: #1f3657; --heat-2: #24508a; --heat-3: #2c6cbd; --heat-4: #3987e5; --heat-hover: #fff; --disabled: #55556a; --bar-bg: rgba(32, 32, 41, .97); --focus: #c0ed14; --lime-edge: #c0ed14; --lav-edge: #9a8bf4;
	/* type roles: caps label · metadata · secondary UI · body · inputs (16 stops iOS zoom) · card title · section title */
	--fs-cap: 11.5px; --fs-meta: 12.5px; --fs-sm: 13.5px; --fs-body: 15px; --fs-input: 16px; --fs-h3: 18px; --fs-h2: 20px;
	--display: "Big Shoulders Display", Impact, sans-serif;
	--body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--ink); color: var(--text); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: rgba(192, 237, 20, .28); color: var(--text); }
html { scrollbar-color: var(--line-2) transparent; }
.lgi-kpi strong { font-variant-numeric: tabular-nums; }

/* Buttons */
.lgi-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-3); color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none; }
.lgi-btn:hover { border-color: var(--muted); }
.lgi-btn--primary { background: var(--lime); border-color: var(--lime); color: var(--on-accent); font-weight: 700; }
.lgi-btn--primary:hover { filter: brightness(1.06); border-color: var(--lime-edge); }
.lgi-btn--ghost { background: transparent; }
.lgi-btn--block { width: 100%; }
.lgi-inline-form { margin: 0; }
.lgi-link { color: var(--lav-text); text-decoration: none; font-size: var(--fs-sm); }
.lgi-link:hover { text-decoration: underline; }

/* Login */
.lgi-login-page { background: radial-gradient(1200px 600px at 50% -10%, var(--glow) 0%, var(--ink) 60%); }
.lgi-login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 20px; }
.lgi-login__card { width: 100%; max-width: 420px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px 28px; box-shadow: 0 30px 80px var(--shadow-1); }
.lgi-login__brand { display: flex; justify-content: center; margin-bottom: 18px; }
.lgi-login__title { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: .5px; text-transform: uppercase; text-align: center; margin: 0 0 8px; color: var(--lime-text); }
.lgi-login__lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
.lgi-login__foot { text-align: center; color: var(--muted); font-size: var(--fs-meta); margin: 20px 0 0; }
.lgi-login__back { color: var(--muted); font-size: var(--fs-sm); text-decoration: none; }
.lgi-login__back:hover { color: var(--text); }
.lgi-logo { height: 120px; width: auto; display: block; }

/* Form */
.lgi-form label { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); margin: 14px 0 6px; }
.lgi-form input[type="text"], .lgi-form input[type="password"], .lgi-form input[type="email"], .lgi-form input[type="url"], .lgi-form input[type="number"] { width: 100%; min-height: 46px; padding: 10px 14px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 12px; }
.lgi-form input:focus { border-color: var(--lime-edge); outline: none; box-shadow: 0 0 0 3px rgba(192, 237, 20, .18); }
.lgi-password { position: relative; }
.lgi-password input { padding-right: 70px; }
.lgi-password__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--lav-text); font-size: var(--fs-sm); font-weight: 600; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.lgi-form__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 20px; }
.lgi-form .lgi-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; }
.lgi-check input { width: 16px; height: 16px; accent-color: var(--lime); }
.lgi-alert { border-radius: 10px; padding: 11px 14px; font-size: var(--fs-sm); margin-bottom: 6px; }
.lgi-alert--error { background: rgba(255, 122, 122, .12); border: 1px solid rgba(255, 122, 122, .4); color: var(--t-bad-2); }
.lgi-alert--ok { background: rgba(125, 220, 138, .1); border: 1px solid rgba(125, 220, 138, .35); color: var(--t-good-2); }

/* App shell */
.lgi-shell { display: flex; min-height: 100vh; }
.lgi-side { width: 252px; flex-shrink: 0; background: var(--side-bg); border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lgi-side__brand { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lgi-side__brand .lgi-logo { height: 76px; }
.lgi-nav__group { font-size: var(--fs-cap); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin: 18px 10px 6px; }
.lgi-nav { list-style: none; margin: 0; padding: 0; }
.lgi-nav__link { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.lgi-nav__link:hover { background: var(--ink-3); color: var(--text); }
.lgi-nav__link.is-active { background: rgba(192, 237, 20, .12); color: var(--lime-text); font-weight: 600; }
.lgi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lgi-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--line); }
.lgi-top__title { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; letter-spacing: .5px; margin: 0; line-height: 1.1; }
.lgi-top__menu { display: none; }
.lgi-top__user { display: flex; align-items: center; gap: 12px; }
.lgi-top__name { display: flex; flex-direction: column; font-size: var(--fs-sm); font-weight: 600; line-height: 1.25; }
.lgi-top__name small { color: var(--muted); font-weight: 400; font-size: var(--fs-meta); }
.lgi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--lav); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm); }
.lgi-content { padding: 32px; flex: 1; max-width: 1280px; width: 100%; }
.lgi-foot { padding: 18px 32px; color: var(--muted-2); font-size: var(--fs-meta); border-top: 1px solid var(--line); }

/* Content */
.lgi-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 32px; text-align: center; max-width: 720px; margin: 24px auto; background: var(--ink-2); }
.lgi-empty h2 { margin: 16px 0 8px; font-size: var(--fs-h2); }
.lgi-empty p { margin: 0 auto 8px; max-width: 520px; }
.lgi-muted { color: var(--muted); font-size: var(--fs-sm); }
.lgi-pill { display: inline-block; border-radius: 999px; padding: 5px 12px; font-size: var(--fs-meta); font-weight: 600; background: rgba(154, 139, 244, .15); color: var(--t-lav-2); }
.lgi-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; overflow-x: auto; }
.lgi-card h2 { margin: 0 0 4px; font-size: var(--fs-h3); }
.lgi-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: var(--fs-sm); }
.lgi-table th, .lgi-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lgi-table th { color: var(--muted); font-weight: 500; font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .8px; }
.lgi-table td:last-child { word-break: break-word; }
.lgi-status { display: inline-block; font-size: var(--fs-meta); font-weight: 700; letter-spacing: .6px; padding: 3px 8px; border-radius: 6px; }
.lgi-status--ok { background: rgba(125, 220, 138, .15); color: var(--ok); }
.lgi-status--warn { background: rgba(242, 193, 78, .15); color: var(--warn); }
.lgi-status--fail { background: rgba(255, 122, 122, .15); color: var(--fail); }
.lgi-status--info { background: rgba(154, 139, 244, .15); color: var(--t-lav-2); }

/* Users & audit */
.screen-reader-text { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lgi-content > * + * { margin-top: 16px; }
.lgi-flash { margin-bottom: 4px; }
.lgi-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lgi-toolbar p { margin: 0; }
.lgi-hint { color: var(--muted); font-size: var(--fs-sm); margin: 12px 0 16px; }
.lgi-back { display: inline-block; color: var(--lav-text); text-decoration: none; font-size: var(--fs-sm); }
.lgi-back:hover { text-decoration: underline; }
.lgi-btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-sm); }
.lgi-btn--danger { background: rgba(255, 122, 122, .12); border-color: rgba(255, 122, 122, .5); color: var(--t-bad-2); }
.lgi-btn--danger:hover { background: rgba(255, 122, 122, .22); border-color: var(--fail); }
.lgi-pill--lime { background: rgba(192, 237, 20, .14); color: var(--lime-text); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.lgi-invite > summary { display: inline-flex; }
.lgi-invite[open] > summary { margin-bottom: 8px; }
.lgi-danger > summary { color: var(--t-bad-2); font-weight: 600; }
.lgi-danger[open] > summary { margin-bottom: 8px; }
.lgi-form--app label { color: var(--text-2); }
.lgi-form--app input[type="email"], .lgi-form--app input[type="text"] { width: 100%; min-height: 44px; padding: 10px 14px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 12px; }
.lgi-form--app input[type="email"]:focus { border-color: var(--lime-edge); outline: none; box-shadow: 0 0 0 3px rgba(192, 237, 20, .18); }
.lgi-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lgi-roles { border: 0; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.lgi-roles legend { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.lgi-form .lgi-role { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); cursor: pointer; }
.lgi-role:has(input:checked) { border-color: var(--lime-edge); background: rgba(192, 237, 20, .06); }
.lgi-role input { margin-top: 3px; accent-color: var(--lime); }
.lgi-role strong { display: block; color: var(--text); font-size: var(--fs-sm); }
.lgi-role small { display: block; color: var(--muted); font-size: var(--fs-meta); line-height: 1.45; margin-top: 2px; }
.lgi-person { display: inline-flex; align-items: center; gap: 10px; }
.lgi-person > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.lgi-person small { color: var(--muted); font-size: var(--fs-meta); overflow-wrap: anywhere; }
.lgi-table .lgi-pill { white-space: nowrap; }
.lgi-invite:not([open]) { background: none; border: 0; padding: 0; }
.lgi-person-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lgi-table__action { text-align: right !important; white-space: nowrap; }
.lgi-table td { vertical-align: middle; }
.lgi-empty-inline { color: var(--muted); padding: 16px 0 0; margin: 0; }

/* Mobile */
@media (max-width: 900px) {
	.lgi-side { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 40px var(--shadow-2); }
	.lgi-side.is-open { transform: none; }
	.lgi-top { padding: 14px 16px; flex-wrap: wrap; }
	.lgi-top__menu { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-3); color: var(--text); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
	.lgi-top__menu:hover { border-color: var(--muted); }
	.lgi-top__menu[aria-expanded="true"] { border-color: var(--lime-edge); color: var(--lime-text); }
	.lgi-top__menu svg { width: 22px; height: 22px; }
	.lgi-top__menu .lgi-menu__x, .lgi-top__menu[aria-expanded="true"] .lgi-menu__bars { display: none; }
	.lgi-top__menu[aria-expanded="true"] .lgi-menu__x { display: block; }
	.lgi-top > div:has(> .lgi-top__title) { flex: 1 1 auto; }
	.lgi-top__title { font-size: 24px; text-wrap: balance; }
	.lgi-top__name { display: none; }
	.lgi-content { padding: 20px 16px; }
	.lgi-foot { padding: 16px; }
	.lgi-login__card { padding: 28px 20px 22px; }
	.lgi-grid2 { grid-template-columns: 1fr; }
	.lgi-card { padding: 18px 16px; }
	/* Tables become stacked cards on phones. */
	.lgi-table--people thead, .lgi-table--audit thead { display: none; }
	.lgi-table--people tr, .lgi-table--audit tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.lgi-table--people td, .lgi-table--audit td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
	.lgi-table--people td::before, .lgi-table--audit td::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-meta); text-align: left; }
	.lgi-table--people td[data-label="Person"] { justify-content: flex-start; text-align: left; }
	.lgi-table--people td[data-label="Person"]::before { display: none; }
	.lgi-table__action { justify-content: flex-end !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Games */
.lgi-flat { margin: 0; }
.lgi-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
details .lgi-game-grid { margin-top: 14px; }
.lgi-game { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s; }
.lgi-game { position: relative; }
.lgi-game:hover, .lgi-game:has(.lgi-game__link:focus-visible) { border-color: var(--lime-edge); }
.lgi-game__link { color: var(--text); text-decoration: none; }
.lgi-game__link:focus-visible { outline: none; }
.lgi-game__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card opens the app */
.lgi-pill--store { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.lgi-pill--store .lgi-ico { width: 12px; height: 12px; opacity: .7; }
.lgi-pill--store:hover, .lgi-pill--store:focus-visible { background: rgba(154, 139, 244, .32); color: var(--text); }
.lgi-game__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--lav); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.lgi-game__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lgi-game__body small { color: var(--muted); font-size: var(--fs-meta); }
.lgi-game__platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.lgi-platform { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 14px; margin: 14px 0 0; min-width: 0; }
.lgi-platform legend { padding: 0 6px; font-weight: 600; font-size: var(--fs-sm); }
.lgi-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin: 14px 0 18px; }
.lgi-checklist .lgi-check { color: var(--text); }
.lgi-roles--stack { grid-template-columns: 1fr; }
.lgi-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-sm); background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }

/* Analytics pages */
.lgi-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lgi-picker label { font-size: var(--fs-sm); color: var(--muted); }
.lgi-picker select { min-height: 40px; padding: 6px 12px; background: var(--ink-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.lgi-js .lgi-noscript { display: none; }
.lgi-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.lgi-kpi { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.lgi-kpi span { color: var(--muted); font-size: var(--fs-sm); }
.lgi-kpi strong { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
.lgi-chart { width: 100%; height: 200px; display: block; margin-top: 12px; }
.lgi-bar { fill: var(--lime); opacity: .85; }
.lgi-bar:hover { opacity: 1; }
.lgi-axis { fill: var(--muted); font-size: var(--fs-meta); font-family: var(--body); }
.lgi-meta { color: var(--muted); font-size: var(--fs-meta); margin: 12px 0 0; }
.lgi-note { color: var(--t-lav-2); font-size: var(--fs-sm); background: rgba(154, 139, 244, .1); border: 1px solid color-mix(in srgb, var(--lav) 35%, transparent); padding: 8px 12px; border-radius: 8px; margin: 8px 0 0; }
.lgi-hardest { margin: 12px 0 0; padding-left: 22px; line-height: 1.9; }
.lgi-table--levels td { white-space: nowrap; }
.lgi-table meter { width: 70px; height: 10px; vertical-align: middle; }
.lgi-subhead { font-size: var(--fs-sm); margin: 18px 0 6px; color: var(--text-2); }
.lgi-history { margin: 0; padding-left: 20px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.8; }
.lgi-kpi small { font-size: var(--fs-meta); }
.lgi-grid2--cards { gap: 16px; }
.lgi-grid2--cards .lgi-card { margin: 0; }

/* ===== Data-viz tokens (validated for colour-blind separation + 3:1 contrast on the #202029 card) ===== */
:root {
	--series-1: #3987e5; /* blue — Android, single-series charts */
	--series-2: #d95926; /* orange — iOS */
	--series-3: #199e70;
	--series-4: #c98500;
	--series-5: #d55181;
	--viz-grid: #2e2e38;
	--viz-axis: #44444f;
	--viz-tick: #9a9aa8;
	--good: #2fbf4a;
	--bad: #ef6b6b;
}
.lgi-s1 { --c: var(--series-1); }
.lgi-s2 { --c: var(--series-2); }
.lgi-s3 { --c: var(--series-3); }
.lgi-s4 { --c: var(--series-4); }
.lgi-s5 { --c: var(--series-5); }

/* Filters: one row above everything they scope */
.lgi-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; padding: 14px 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.lgi-field { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.lgi-field--wide { min-width: 220px; flex: 1 1 220px; max-width: 340px; }
.lgi-field--custom { flex-direction: row; align-items: flex-end; gap: 6px 8px; flex-wrap: wrap; }
.lgi-field--custom label { align-self: center; }
.lgi-field.is-hidden { display: none; }
.lgi-field label { font-size: var(--fs-meta); color: var(--muted); }
.lgi-field select, .lgi-field input[type="date"] { min-height: 38px; padding: 6px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); color-scheme: var(--scheme); }
.lgi-field select:focus, .lgi-field input:focus { border-color: var(--lime-edge); outline: none; }
.lgi-field--check { align-self: center; margin: 0 4px; }
.lgi-reset { align-self: center; }
.lgi-js .lgi-filters button[type="submit"] { display: none; }
.lgi-scope { color: var(--muted); font-size: var(--fs-sm); margin: 2px 2px 0; }

/* KPI tiles */
.lgi-kpis--5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.lgi-kpi strong { font-variant-numeric: proportional-nums; }
.lgi-kpi--lead { border-color: rgba(192, 237, 20, .35); }
.lgi-kpi .lgi-spark { margin-top: 4px; }
.lgi-delta { font-size: var(--fs-meta); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.lgi-delta--good { color: var(--good); }
.lgi-delta--bad { color: var(--bad); }
.lgi-delta--flat { color: var(--muted); }
.lgi-delta__ctx { color: var(--muted); font-weight: 400; }

/* Card header with chip controls */
.lgi-cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.lgi-cardhead h2 { margin: 0; }
.lgi-seg-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lgi-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: var(--fs-meta); }
.lgi-chip:hover { border-color: var(--muted); color: var(--text); }
.lgi-chip.is-on { background: rgba(192, 237, 20, .12); border-color: rgba(192, 237, 20, .45); color: var(--lime-text); font-weight: 600; }
.lgi-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

/* Charts: thin marks, hairline grid, wash areas */
.lgi-chartwrap { position: relative; margin-top: 8px; }
.lgi-svg { width: 100%; height: auto; display: block; overflow: visible; }
.lgi-grid { stroke: var(--viz-grid); stroke-width: 1; shape-rendering: crispEdges; }
.lgi-baseline { stroke: var(--viz-axis); stroke-width: 1; shape-rendering: crispEdges; }
.lgi-tick { fill: var(--viz-tick); font-size: var(--fs-cap); font-family: var(--body); font-variant-numeric: tabular-nums; }
.lgi-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lgi-area { fill: var(--c); opacity: .12; stroke: none; }
.lgi-dot { fill: var(--c); stroke: var(--ink-2); stroke-width: 2; }
.lgi-fill { fill: var(--c); }
.lgi-crosshair { stroke: var(--muted-2); stroke-width: 1; opacity: 0; pointer-events: none; }
.lgi-crosshair.is-on { opacity: 1; }
.lgi-hit { fill: transparent; cursor: crosshair; outline: none; }
.lgi-hit:focus-visible { stroke: var(--lime-line); stroke-width: 1; }
.lgi-tip { position: absolute; top: 8px; left: 0; min-width: 150px; padding: 8px 10px; background: var(--pop-bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px var(--shadow-2); font-size: var(--fs-meta); opacity: 0; pointer-events: none; transition: opacity .1s; z-index: 2; }
.lgi-tip.is-on { opacity: 1; }
.lgi-tip__head { color: var(--muted); margin-bottom: 4px; }
.lgi-tip__row { display: flex; align-items: center; gap: 8px; }
.lgi-tip__row strong { font-variant-numeric: tabular-nums; }
.lgi-tip__row span:last-child { color: var(--muted); }
.lgi-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; padding: 0; font-size: var(--fs-sm); color: var(--text-2); }
.lgi-legend li { display: inline-flex; align-items: center; gap: 7px; }
.lgi-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--series-1)); flex-shrink: 0; }
.lgi-key--line { width: 16px; height: 2px; border-radius: 1px; }
.lgi-spark { width: 96px; height: 26px; display: block; }
.lgi-spark polyline { fill: none; stroke: var(--muted-2); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lgi-spark circle { fill: var(--series-1); }
.lgi-seg { width: 100%; height: 28px; display: block; margin: 12px 0 8px; }
.lgi-legend--seg strong { color: var(--text); }
.lgi-hbars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.lgi-hbars li { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 52px; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.lgi-hbars__label { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgi-hbars__bar { width: 100%; height: 10px; display: block; }
.lgi-hbars__bar rect { rx: 0; }
.lgi-hbars__value { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }

/* Games table */
.lgi-tablewrap { overflow-x: auto; }
.lgi-table--games { min-width: 680px; }
.lgi-table--games td { vertical-align: middle; }
.lgi-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lgi-sort { color: inherit; text-decoration: none; }
.lgi-sort:hover { color: var(--text); }
.lgi-sort.is-on { color: var(--lime-text); }
.lgi-sort.is-on::after { content: " ↓"; }
.lgi-sort.is-on[data-dir="asc"]::after { content: " ↑"; }
.lgi-gamelink { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 500; }
.lgi-gamelink:hover { color: var(--lime-text); }
.lgi-table--games tbody tr:hover { background: var(--wash); }
@media (max-width: 900px) {
	.lgi-filters { padding: 12px; }
	.lgi-field, .lgi-field--wide { min-width: 0; flex: 1 1 140px; max-width: none; }
	.lgi-hbars li { grid-template-columns: 90px 1fr 46px; }
}
.lgi-table--games th:first-child, .lgi-table--games td:first-child { min-width: 240px; }
.lgi-table--games th { white-space: nowrap; }
@media (max-width: 900px) {
	.lgi-kpis--5 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.lgi-kpis--5 .lgi-kpi { padding: 14px; }
	.lgi-kpis--5 .lgi-kpi strong { font-size: 22px; }
	.lgi-kpis--5 .lgi-kpi--lead { grid-column: 1 / -1; }
}

/* Data Accuracy Center */
.lgi-status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.lgi-status-badge--ok { color: var(--t-good); background: rgba(12, 163, 12, .14); }
.lgi-status-badge--check { color: var(--t-warn-2); background: rgba(250, 178, 25, .12); }
.lgi-status-badge--problem { color: var(--t-bad); background: rgba(208, 59, 59, .18); }
.lgi-kpi .lgi-status-badge { align-self: flex-start; }
.lgi-issues { margin: 6px 0 0; padding-left: 26px; color: var(--muted); font-size: var(--fs-meta); line-height: 1.5; }
.lgi-table--dq { min-width: 980px; }
.lgi-table--dq td { vertical-align: top; }
.lgi-table--dq meter { width: 60px; height: 8px; vertical-align: middle; }
.lgi-table--dq code { font-size: var(--fs-meta); white-space: normal; }
.lgi-status-badge--inactive { color: var(--muted); background: var(--hair); }

/* ---------------------------------------------------------------- Funnels & User Flow */
.lgi-funnel { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.lgi-funnel__step { display: grid; grid-template-columns: minmax(110px, 220px) 1fr 104px; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.lgi-funnel__label { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lgi-funnel__bar { width: 100%; height: 22px; display: block; }
.lgi-funnel__track { fill: var(--hair); }
.lgi-funnel__value { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lgi-funnel__value .lgi-muted { font-size: var(--fs-meta); }
.lgi-funnel__gap { padding: 2px 0 2px calc(min(220px, 30%) + 12px); font-size: var(--fs-meta); color: var(--text-2); font-variant-numeric: tabular-nums; }
.lgi-callout { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(217, 89, 38, .1); border: 1px solid rgba(217, 89, 38, .45); font-size: var(--fs-sm); color: var(--text); }
.lgi-funnel-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 14px 0 6px; }
.lgi-funnel-form .lgi-field span { font-size: var(--fs-meta); color: var(--muted); }
.lgi-funnel-form input[type="text"] { min-height: 38px; width: 100%; padding: 6px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); }
.lgi-funnel-form .lgi-field { min-width: 0; flex: 1 1 160px; max-width: 230px; }
.lgi-funnel-form .lgi-field:has(select) { flex: 0 0 auto; }
.lgi-funnel-form .lgi-btn { min-height: 38px; }
.lgi-wait { margin: 14px 0 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.lgi-wait p { margin: 8px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.lgi-card h3 { font-size: var(--fs-sm); margin: 18px 0 6px; color: var(--text); }
@media (max-width: 700px) {
	.lgi-funnel__step { grid-template-columns: 1fr 88px; }
	.lgi-funnel__bar { grid-column: 1 / -1; grid-row: 2; height: 14px; }
	.lgi-funnel__gap { padding-left: 0; }
	.lgi-funnel-form .lgi-field { max-width: none; flex-basis: 100%; }
}

/* ---------------------------------------------------------------- Heatmaps (one-hue sequential ramp, brighter = more on dark) */
.lgi-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.lgi-card__head h2 { margin: 0; }
.lgi-card__head .lgi-inline-form { display: flex; align-items: center; gap: 8px; }
.lgi-card__head label { font-size: var(--fs-meta); color: var(--muted); }
.lgi-card__head select { min-height: 38px; padding: 6px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); color-scheme: var(--scheme); }
.lgi-heat { display: grid; grid-template-columns: minmax(240px, 460px) minmax(200px, 1fr); gap: 24px; margin-top: 16px; align-items: start; }
.lgi-heat__map { width: 100%; height: auto; display: block; }
.lgi-heat__bg { fill: var(--heat-0); stroke: var(--line); }
.lgi-heat--1 { fill: var(--heat-1); background: var(--heat-1); }
.lgi-heat--2 { fill: var(--heat-2); background: var(--heat-2); }
.lgi-heat--3 { fill: var(--heat-3); background: var(--heat-3); }
.lgi-heat--4 { fill: var(--heat-4); background: var(--heat-4); }
.lgi-heat--5 { fill: var(--t-blue); background: var(--t-blue); }
.lgi-heat__c:hover { stroke: var(--heat-hover); stroke-width: 1.5; }
.lgi-heat__legend { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-meta); color: var(--text-2); font-variant-numeric: tabular-nums; }
.lgi-heat__legend li { display: flex; align-items: center; gap: 8px; }
.lgi-heat__key { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.lgi-kpis--stack { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.lgi-note code { font-size: var(--fs-meta); }
@media (max-width: 760px) { .lgi-heat { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Integrations */
.lgi-facts { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); font-size: var(--fs-sm); display: grid; gap: 4px; }
.lgi-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.lgi-actions form { margin: 0; }
.lgi-keyform { max-width: 460px; margin-top: 16px; }
.lgi-keyform input[type="password"] { width: 100%; min-height: 44px; padding: 10px 14px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 12px; }
.lgi-input-sm { width: 140px; min-height: 34px; padding: 4px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.lgi-card code { font-size: var(--fs-meta); }
.lgi-steps { margin: 12px 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); }
.lgi-copy { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 6px; }
.lgi-field-label { display: block; font-size: var(--fs-meta); color: var(--muted); margin-top: 12px; }
.lgi-details { margin-top: 8px; }
.lgi-details summary { cursor: pointer; font-size: var(--fs-sm); color: var(--muted); }
.lgi-actions--row { margin: 0; flex-wrap: nowrap; }
.lgi-addacct { margin-top: 14px; }
.lgi-addacct > summary { list-style: none; display: inline-flex; }
.lgi-addacct > summary::-webkit-details-marker { display: none; }
.lgi-keyform textarea { width: 100%; padding: 10px 14px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 12px; font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.lgi-keyform input[type="file"] { color: var(--muted); font-size: var(--fs-sm); margin: 4px 0 8px; }
.lgi-keyform input[type="text"] { width: 100%; }

/* ---------------------------------------------------------------- LiveOps & A/B tests */
.lgi-table--rc input[type="text"], .lgi-table--rc select, .lgi-table--rc textarea { width: 100%; min-width: 120px; min-height: 34px; padding: 5px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color-scheme: var(--scheme); }
.lgi-rc-new { margin: 14px 0 10px; }
.lgi-rc-new input, .lgi-rc-new select { min-height: 38px; padding: 6px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); color-scheme: var(--scheme); }
.lgi-expform { max-width: 640px; }
.lgi-expform input[type="text"], .lgi-expform select { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; color-scheme: var(--scheme); }
.lgi-variants { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 12px 0; display: grid; gap: 8px; }
.lgi-variants legend { font-size: var(--fs-meta); color: var(--muted); padding: 0 6px; }
.lgi-variant { display: grid; grid-template-columns: 36px 1fr 80px auto; align-items: center; gap: 8px; color: var(--muted); }
.lgi-variant input[type="number"] { min-height: 38px; padding: 6px 8px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; color-scheme: var(--scheme); }
.lgi-stopform { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lgi-stopform select { min-height: 38px; padding: 6px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; color-scheme: var(--scheme); }
.lgi-table--exp th.is-goal { color: var(--lime-text); }

/* Game config & staged rollouts (0.19) */
.lgi-pill--warn { background: rgba(242, 193, 78, .15); color: var(--warn); }
.lgi-checks { border: 0; padding: 0; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lgi-checks legend { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; }
.lgi-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.lgi-killswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lgi-field--full { flex: 1 1 100%; }
.lgi-field--full textarea { width: 100%; font-family: ui-monospace, Menlo, monospace; }
.lgi-table--changes meter { width: 100px; }

/* AI Intelligence Center (0.19) */
.lgi-ai-q { font-size: var(--fs-input); margin: 6px 0 10px; }
.lgi-finding { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.lgi-finding h3 { font-size: var(--fs-h3); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lgi-finding h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 4px; }
.lgi-finding .lgi-actions { margin-top: 12px; }
.lgi-inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lgi-review { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: var(--fs-sm); }
.lgi-review--agree { border-color: rgba(192, 237, 20, .4); }
.lgi-review--disagree { border-color: rgba(255, 122, 122, .5); }
.lgi-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--lav); border-radius: 50%; animation: lgi-spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes lgi-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lgi-spinner { animation: none; } }

/* Studio pulse (0.21): one compact strip of tiles */
.lgi-pulse { padding-bottom: 14px; }
.lgi-ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lgi-ptile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; min-height: 84px; transition: border-color .15s; }
.lgi-ptile:hover, .lgi-ptile:focus-visible { border-color: var(--lav-edge); }
.lgi-ptile__label { font-size: var(--fs-meta); color: var(--muted); }
.lgi-ptile__value { font-size: var(--fs-h2); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.lgi-ptile__sub { font-size: var(--fs-meta); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-ptile .lgi-delta { font-size: var(--fs-meta); }
.lgi-ptile .lgi-status-badge { align-self: flex-start; transform: scale(.85); transform-origin: left; }
.lgi-pulse__more { margin-top: 10px; }
.lgi-table--mini { font-size: var(--fs-sm); }
.lgi-table--mini th, .lgi-table--mini td { padding: 5px 8px; font-variant-numeric: tabular-nums; }
/* Portfolio games table & charts (0.21) */
.lgi-gamefilters { margin: 4px 0 12px; align-items: flex-end; }
.lgi-colpick { position: relative; }
.lgi-colpick > summary { list-style: none; }
.lgi-colpick[open] { flex-basis: 100%; order: 10; }
.lgi-colpick[open] .lgi-checks { margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.lgi-ptile .lgi-delta__ctx { display: none; }
.lgi-colhit { fill: transparent; }
.lgi-colhit:hover { fill: rgba(154, 139, 244, .08); }
.lgi-tablewrap--scroll { max-height: 420px; overflow: auto; }
.lgi-table--series th[scope="row"] { font-weight: 500; white-space: nowrap; }
.lgi-subhead { font-size: var(--fs-body); margin: 18px 0 8px; }
.lgi-pulse meter, .lgi-table--changes meter { height: 8px; }
.lgi-pulse meter::-webkit-meter-bar, .lgi-table--changes meter::-webkit-meter-bar { background: var(--line); border: 0; border-radius: 4px; }
.lgi-pulse meter::-webkit-meter-optimum-value, .lgi-table--changes meter::-webkit-meter-optimum-value { background: var(--lime); border-radius: 4px; }
.lgi-pulse meter::-moz-meter-bar { background: var(--lime); }
.lgi-js .lgi-gamefilters button[type="submit"] { display: inline-flex; }

/* Integrations tabs (0.22) */
.lgi-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 6px; }
.lgi-tab { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 9px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; color: var(--text-2); text-decoration: none; margin-bottom: -1px; }
.lgi-tab span { font-weight: 600; font-size: var(--fs-sm); }
.lgi-tab small { font-size: var(--fs-meta); color: var(--muted); }
.lgi-tab:hover { color: var(--text); background: var(--wash); }
.lgi-tab.is-on { color: var(--lime-text); border-color: var(--line); background: var(--ink-2); }
.lgi-tabs__hint { margin: 0 0 14px; }
.lgi-table td .lgi-key { vertical-align: middle; margin-right: 2px; }
@media (max-width: 640px) { .lgi-tab { flex: 1 1 45%; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 4px; } .lgi-tabs { border-bottom: 0; } }
.lgi-table td[data-label="Spend"], .lgi-table td[data-label="CPI"], .lgi-table td[data-label="Share"], .lgi-table td[data-label="Installs"], .lgi-table td[data-label="Paid installs"] { white-space: nowrap; }

/* Portfolio: paid UA card + richer games filters (0.25) */
.lgi-card--quiet { border-style: dashed; }
.lgi-card--quiet h2 { font-size: var(--fs-body); }
.lgi-uasum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 16px; margin: 6px 0 14px; }
.lgi-uasum > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lgi-uasum span { color: var(--muted); font-size: var(--fs-meta); display: inline-flex; align-items: center; gap: 6px; }
.lgi-uasum strong { font-size: var(--fs-h3); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgi-uasum small { font-size: var(--fs-meta); }
.lgi-uasum .lgi-delta__ctx { display: none; }
.lgi-views { margin: 2px 0 10px; flex-wrap: wrap; }
.lgi-field--narrow { min-width: 110px; }
.lgi-gamefilters input[type="search"], .lgi-gamefilters input[type="number"] { min-height: 38px; padding: 6px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); }
.lgi-morefilters { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.lgi-activefilters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 0 10px; font-size: var(--fs-meta); }
.lgi-activefilters .lgi-chip span { margin-left: 4px; opacity: .8; }
@media (max-width: 640px) {
	.lgi-uasum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lgi-field--narrow { min-width: 0; flex: 1 1 40%; }
}
.lgi-profit.is-neg { color: var(--bad); }
/* In-place filter updates (0.25.1): content dims briefly instead of the whole page reloading */
.lgi-content[data-lgi-soft] { position: relative; }
.lgi-content.is-loading > * { opacity: .55; transition: opacity .15s ease .12s; }
.lgi-content.is-loading::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--lime), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: lgi-load 1s linear infinite; z-index: 5; }
@keyframes lgi-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .lgi-content.is-loading::before { animation: none; background: var(--lime); opacity: .5; } .lgi-content.is-loading > * { transition: none; } }

/* 0.26 Games tab: platform tabs + store icons */
.lgi-chip__n { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 2px; }
.lgi-games__count { margin: 0 0 10px; font-size: var(--fs-sm); }
.lgi-game__icon.has-img { background: var(--ink); overflow: hidden; }
.lgi-game__icon.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lgi-icons-bar { margin-top: 16px; }

/* 0.26.1 store icons beside game names in reports */
.lgi-mini { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; background: var(--lav); color: var(--on-accent); font-size: var(--fs-meta); font-weight: 700; overflow: hidden; vertical-align: middle; }
.lgi-mini.has-img { background: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.lgi-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lgi-gamecell { display: inline-flex; align-items: center; gap: 9px; }
.lgi-gamelink .lgi-mini { margin-right: 1px; }
.lgi-storename { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: var(--fs-sm); }

/* 0.27 Date range picker (presets · calendar · compare · Apply) */
.lgi-field__label { font-size: var(--fs-meta); color: var(--muted); }
.lgi-field--range { position: relative; min-width: 0; }
.lgi-daterange { position: relative; }
.lgi-daterange__btn { list-style: none; display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 6px 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: var(--fs-sm); white-space: nowrap; max-width: 100%; }
.lgi-daterange__btn::-webkit-details-marker { display: none; }
.lgi-daterange__btn:hover, .lgi-daterange[open] > .lgi-daterange__btn { border-color: var(--lime-edge); }
.lgi-daterange__btn strong { font-weight: 600; }
.lgi-daterange__dates { color: var(--muted); }
.lgi-daterange__vs { display: block; font-size: var(--fs-meta); color: var(--muted); line-height: 1.2; }
.lgi-daterange__btn > span { overflow: hidden; text-overflow: ellipsis; }
.lgi-daterange__ico { width: 17px; height: 17px; color: var(--lime-text); flex-shrink: 0; }
.lgi-daterange__caret { width: 12px; height: 12px; color: var(--muted); flex-shrink: 0; transition: transform .15s; }
.lgi-daterange[open] .lgi-daterange__caret { transform: rotate(180deg); }
.lgi-daterange__pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: min(620px, calc(100vw - 32px)); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px var(--shadow-3); display: flex; flex-direction: column; }
.lgi-daterange__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.lgi-daterange__head h3 { margin: 0; font-size: var(--fs-h3); font-weight: 600; }
.lgi-daterange__x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink-3); color: var(--text); font-size: var(--fs-h2); line-height: 1; cursor: pointer; }
.lgi-daterange__x:hover { background: var(--line); }
.lgi-daterange__body { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 0; }
.lgi-daterange__presets { margin: 0; padding: 6px 0; border: 0; border-right: 1px solid var(--line); flex: 0 0 190px; display: flex; flex-direction: column; overflow-y: auto; max-height: 420px; }
.lgi-daterange__presets hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.lgi-daterange__opt { display: flex; align-items: center; padding: 9px 18px; font-size: var(--fs-sm); cursor: pointer; color: var(--text); }
.lgi-daterange__opt:hover { background: var(--ink-3); }
.lgi-daterange__opt input { position: absolute; opacity: 0; pointer-events: none; }
.lgi-daterange__opt:has(input:checked) { background: rgba(192, 237, 20, .12); color: var(--lime-text); font-weight: 600; }
.lgi-daterange__opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.lgi-daterange__cal { flex: 1; min-width: 0; padding: 12px 14px 0; display: flex; flex-direction: column; }
.lgi-daterange__inputs { display: flex; align-items: flex-end; gap: 8px; color: var(--muted); }
.lgi-daterange__inputs label { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-meta); color: var(--muted); min-width: 0; }
.lgi-daterange__inputs input { min-height: 38px; padding: 6px 8px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-size: var(--fs-sm); color-scheme: var(--scheme); width: 100%; }
.lgi-daterange__inputs input:focus { border-color: var(--lime-edge); outline: none; }
.lgi-daterange__months { position: relative; margin-top: 10px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
.lgi-cal__dow { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: repeat(7, 1fr); background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 4px 0 6px; font-size: var(--fs-meta); color: var(--muted); text-align: center; }
.lgi-cal__title { font-size: var(--fs-meta); font-weight: 700; letter-spacing: .04em; padding: 12px 6px 6px; color: var(--text); }
.lgi-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.lgi-cal__day { position: relative; height: 34px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; border-radius: 0; font-variant-numeric: tabular-nums; }
.lgi-cal__day:hover:not(:disabled):not(.is-start):not(.is-end) { background: var(--ink-3); border-radius: 999px; }
.lgi-cal__day:disabled { color: var(--disabled); cursor: default; }
.lgi-cal__day.is-today { box-shadow: inset 0 0 0 1px var(--muted); border-radius: 999px; }
.lgi-cal__day.is-in { background: rgba(192, 237, 20, .14); border-radius: 0; }
.lgi-cal__day.is-start, .lgi-cal__day.is-end { background: var(--lime); color: var(--on-accent); font-weight: 700; border-radius: 999px; }
.lgi-cal__day:focus-visible { outline-offset: -2px; border-radius: 999px; }
.lgi-daterange__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.lgi-daterange__foot .lgi-btn { margin-left: auto; min-width: 96px; }
.lgi-switch { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); cursor: pointer; }
.lgi-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lgi-switch__track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line); transition: background .15s; flex-shrink: 0; }
.lgi-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.lgi-switch input:checked + .lgi-switch__track { background: var(--lime); }
.lgi-switch input:checked + .lgi-switch__track::after { transform: translateX(16px); background: var(--ink); }
.lgi-switch input:focus-visible + .lgi-switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }
.lgi-picker .lgi-field--range { flex-direction: row; align-items: center; gap: 8px; }
html:not(.lgi-js) .lgi-daterange__months { display: none; }
@media (max-width: 640px) {
	.lgi-field--range { width: 100%; }
	.lgi-daterange__btn { width: 100%; }
	.lgi-daterange__pop { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: calc(100vh - 24px); }
	.lgi-daterange__body { flex-direction: column; overflow-y: auto; }
	.lgi-daterange__presets { flex: none; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 6px; max-height: none; }
	.lgi-daterange__presets hr { display: none; }
	.lgi-daterange__opt { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); }
	.lgi-daterange__opt:has(input:checked) { box-shadow: none; border-color: var(--lime-edge); }
	.lgi-daterange__months { max-height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .lgi-daterange__caret, .lgi-switch__track, .lgi-switch__track::after { transition: none; } }
.lgi-js .lgi-filters .lgi-daterange__foot button[type="submit"], .lgi-js .lgi-picker .lgi-daterange__foot button[type="submit"] { display: inline-flex; }
.lgi-field .lgi-daterange label.lgi-daterange__opt { font-size: var(--fs-sm); color: var(--text); }
.lgi-field .lgi-daterange label.lgi-daterange__opt:has(input:checked) { color: var(--lime-text); }
.lgi-field .lgi-daterange label.lgi-switch { font-size: var(--fs-sm); color: var(--text); }
.lgi-field .lgi-daterange .lgi-daterange__inputs label { font-size: var(--fs-meta); }

/* 0.27.1 Portfolio Games table: the Game column stays put, the rest scrolls */
.lgi-table--games { border-collapse: separate; border-spacing: 0; }
.lgi-table--games th:first-child, .lgi-table--games td:first-child:not([colspan]) { position: sticky; left: 0; z-index: 2; background: var(--ink-2); }
.lgi-table--games tbody tr:hover td:first-child:not([colspan]) { background: var(--hover-bg); }
.lgi-table--games th:first-child::after, .lgi-table--games td:first-child:not([colspan])::after { content: ""; position: absolute; top: 0; bottom: -1px; right: -14px; width: 14px; background: linear-gradient(90deg, var(--shadow-2), rgba(0, 0, 0, 0)); opacity: 0; transition: opacity .15s; pointer-events: none; }
.lgi-tablewrap.is-scrolled .lgi-table--games th:first-child::after, .lgi-tablewrap.is-scrolled .lgi-table--games td:first-child:not([colspan])::after { opacity: 1; }
.lgi-tablewrap.is-scrollable .lgi-table--games th:first-child, .lgi-tablewrap.is-scrollable .lgi-table--games td:first-child:not([colspan]) { box-shadow: inset -1px 0 0 var(--line); }
@media (max-width: 700px) {
	.lgi-table--games th:first-child, .lgi-table--games td:first-child { min-width: 150px; max-width: 46vw; }
	.lgi-table--games .lgi-gamelink { white-space: normal; font-size: var(--fs-sm); line-height: 1.3; gap: 8px; }
	.lgi-table--games th:first-child, .lgi-table--games td:first-child { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .lgi-table--games th:first-child::after, .lgi-table--games td:first-child::after { transition: none; } }

/* 0.27.2 Integrations: account rows with icon actions and in-place editing */
.lgi-ico { width: 18px; height: 18px; flex-shrink: 0; }
.lgi-accts { list-style: none; margin: 14px 0 6px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lgi-acct + .lgi-acct { border-top: 1px solid var(--line); }
.lgi-acct__row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.lgi-acct__state { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.lgi-acct.is-ok .lgi-acct__state { color: var(--t-good); background: rgba(12, 163, 12, .16); }
.lgi-acct.is-problem .lgi-acct__state { color: var(--t-bad); background: rgba(208, 59, 59, .2); }
.lgi-acct.is-new .lgi-acct__state { color: var(--muted); background: var(--ink-3); }
.lgi-acct.is-problem .lgi-acct__state .lgi-ico { stroke-width: 2.4; }
.lgi-acct__main { flex: 1; min-width: 0; }
.lgi-acct__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.lgi-acct__name strong { font-size: var(--fs-body); }
.lgi-acct__detail { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.lgi-acct__detail code { font-size: var(--fs-meta); padding: 1px 6px; border-radius: 6px; background: var(--ink); border: 1px solid var(--line); }
.lgi-acct__msg { margin: 4px 0 0; font-size: var(--fs-meta); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lgi-acct__badge { font-weight: 600; }
.lgi-acct.is-ok .lgi-acct__badge { color: var(--t-good); }
.lgi-acct.is-problem .lgi-acct__badge { color: var(--t-bad); }
.lgi-acct__note { margin: 8px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.lgi-acct.is-problem .lgi-acct__note { padding: 9px 12px; border-radius: 10px; background: rgba(208, 59, 59, .1); border: 1px solid rgba(255, 138, 138, .22); }
.lgi-copyable { font-size: var(--fs-meta); padding: 1px 6px; border-radius: 6px; background: var(--ink); border: 1px solid var(--line); }
.lgi-copybtn { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-3); color: var(--text); font-size: var(--fs-meta); cursor: pointer; vertical-align: middle; }
.lgi-copybtn .lgi-ico { width: 14px; height: 14px; }
.lgi-copybtn:hover { border-color: var(--lime-edge); }
.lgi-copybtn.is-done { color: var(--lime-text); border-color: var(--lime-edge); }
.lgi-acct__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lgi-acct__actions form { margin: 0; display: inline-flex; }
.lgi-iconbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-3); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.lgi-iconbtn:hover { border-color: var(--muted); }
.lgi-iconbtn[aria-expanded="true"] { border-color: var(--lime-edge); color: var(--lime-text); }
.lgi-iconbtn--primary { background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.lgi-iconbtn--danger { background: transparent; color: var(--t-bad); border-color: rgba(255, 138, 138, .3); }
.lgi-iconbtn--danger:hover { background: rgba(208, 59, 59, .16); border-color: var(--t-bad); }
.lgi-iconbtn.is-busy { opacity: .7; cursor: progress; }
.lgi-iconbtn.is-busy .lgi-ico { animation: lgi-spin 1s linear infinite; }
@keyframes lgi-spin { to { transform: rotate(360deg); } }
.lgi-acct__edit { padding: 4px 16px 16px 62px; }
.lgi-acct__edit .lgi-keyform { max-width: 520px; padding: 14px 16px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.lgi-acct__editbar { display: flex; gap: 8px; margin-top: 6px; }
@media (max-width: 1100px) {
	.lgi-iconbtn { padding: 0 10px; }
	.lgi-acct__actions .lgi-iconbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.lgi-acct__actions .lgi-iconbtn { width: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 640px) {
	.lgi-acct__row { flex-wrap: wrap; padding: 12px; gap: 10px 12px; }
	.lgi-acct__main { flex-basis: calc(100% - 46px); }
	.lgi-acct__actions { width: 100%; justify-content: flex-end; }
	.lgi-acct__edit { padding: 0 12px 12px; }
}
@media (prefers-reduced-motion: reduce) { .lgi-iconbtn.is-busy .lgi-ico { animation: none; } }

/* 0.29 Partial days (read hourly until the day is final) */
.lgi-partialico { width: 14px; height: 14px; flex-shrink: 0; color: var(--warn); vertical-align: -2px; }
.lgi-partialnote { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 14px; padding: 9px 12px; border-radius: 10px; font-size: var(--fs-sm); color: var(--text-2); background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .25); }
.lgi-partialnote .lgi-partialico { margin-top: 2px; }
.lgi-partialnote strong { color: var(--warn); font-weight: 600; }
.lgi-line--partial { stroke-dasharray: 5 5; opacity: .9; }
.lgi-dot--partial { fill: var(--ink-2); stroke: var(--c); stroke-width: 2; }
.lgi-fill--partial { fill-opacity: .45; stroke: var(--c); stroke-width: 1; stroke-dasharray: 3 3; }
.lgi-partialtag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: var(--fs-meta); font-weight: 600; color: var(--warn); text-transform: none; letter-spacing: 0; }
.lgi-todaystrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 4px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid rgba(242, 193, 78, .3); color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.lgi-todaystrip:hover { border-color: var(--warn); }
.lgi-todaystrip__label strong { color: var(--warn); font-weight: 600; margin-right: 4px; }
.lgi-todaystrip__label { color: var(--muted); }
.lgi-todaystrip__stat b { font-size: var(--fs-body); font-variant-numeric: tabular-nums; margin-right: 3px; }
.lgi-todaystrip__when { color: var(--muted); font-size: var(--fs-meta); }
.lgi-todaystrip__go { margin-left: auto; color: var(--warn); font-weight: 600; font-size: var(--fs-meta); }
@media (max-width: 640px) { .lgi-todaystrip__go { margin-left: 0; width: 100%; } }
.lgi-subhead--split { margin: 22px 0 8px; font-size: var(--fs-sm); font-weight: 600; }
.lgi-subhead--first { margin-top: 10px; }
.lgi-subhead--split .lgi-muted { font-weight: 400; font-size: var(--fs-meta); }

/* 0.30.3 Date range picker: compact */
.lgi-daterange__pop { width: min(500px, calc(100vw - 32px)); }
.lgi-daterange__head { padding: 10px 12px 8px 14px; }
.lgi-daterange__head h3 { font-size: var(--fs-body); }
.lgi-daterange__x { width: 30px; height: 30px; font-size: var(--fs-h3); }
.lgi-daterange__presets { flex-basis: 148px; padding: 4px 0; max-height: 330px; }
.lgi-daterange__presets hr { margin: 4px 0; }
.lgi-daterange__opt { padding: 6px 14px; font-size: var(--fs-sm); }
.lgi-field .lgi-daterange label.lgi-daterange__opt { font-size: var(--fs-sm); }
.lgi-daterange__cal { padding: 10px 12px 0; }
.lgi-daterange__inputs { gap: 6px; }
.lgi-daterange__inputs input { min-height: 32px; padding: 4px 6px; font-size: var(--fs-sm); }
.lgi-daterange__months { margin-top: 8px; max-height: 236px; }
.lgi-cal__dow { font-size: var(--fs-meta); padding: 2px 0 4px; }
.lgi-cal__title { font-size: var(--fs-meta); padding: 8px 4px 4px; }
.lgi-cal__day { height: 28px; font-size: var(--fs-meta); }
.lgi-daterange__foot { padding: 8px 12px; }
.lgi-daterange__foot .lgi-btn { min-width: 80px; min-height: 34px; padding: 6px 14px; }
.lgi-field .lgi-daterange label.lgi-switch, .lgi-switch { font-size: var(--fs-sm); }
.lgi-switch__track { width: 34px; height: 20px; }
.lgi-switch__track::after { width: 14px; height: 14px; }
.lgi-switch input:checked + .lgi-switch__track::after { transform: translateX(14px); }
@media (max-width: 640px) { .lgi-daterange__pop { width: auto; } .lgi-daterange__opt { padding: 5px 10px; } }

/* 0.30.5 Filter bar: aligned controls, one dropdown style with icons */
.lgi-filters { align-items: flex-start; }
.lgi-field { gap: 6px; }
.lgi-field select, .lgi-picker select, .lgi-card__head select {
	-webkit-appearance: none; appearance: none; min-height: 38px; height: 38px; padding: 0 34px 0 12px;
	background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 12px 12px;
	line-height: 36px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
}
.lgi-field select:hover, .lgi-picker select:hover { border-color: var(--muted); }
.lgi-filters select[name="network"], .lgi-picker select[name="network"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5a8 8 0 0 1 11 0M4.5 9a5 5 0 0 1 7 0M6.6 11.4a2 2 0 0 1 2.8 0'/%3E%3Ccircle cx='8' cy='13.3' r='.6' fill='%23a3a3b2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="account"], .lgi-picker select[name="account"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='5.8' r='2.6'/%3E%3Cpath d='M3 13.8c.8-2.6 2.8-4 5-4s4.2 1.4 5 4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="game"], .lgi-picker select[name="game"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.8' y='4.6' width='12.4' height='7.6' rx='3.6'/%3E%3Cpath d='M5.2 7.2v2.4M4 8.4h2.4'/%3E%3Ccircle cx='10.4' cy='7.6' r='.6' fill='%23a3a3b2'/%3E%3Ccircle cx='11.8' cy='9.2' r='.6' fill='%23a3a3b2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="platform"], .lgi-picker select[name="platform"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.6' y='1.8' width='6.8' height='12.4' rx='1.6'/%3E%3Cpath d='M7.2 12h1.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="country"], .lgi-picker select[name="country"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='5.8'/%3E%3Cpath d='M2.4 8h11.2M8 2.2c2.1 2.3 2.1 9.3 0 11.6M8 2.2c-2.1 2.3-2.1 9.3 0 11.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-field select option { background: var(--ink-2); color: var(--text); }
.lgi-daterange__btn { height: 38px; min-height: 38px; padding: 0 12px; }
.lgi-daterange__btn > span { white-space: nowrap; }
.lgi-daterange__vs { display: inline; margin-left: 6px; font-size: var(--fs-meta); }
.lgi-daterange__vs::before { content: "· "; }
.lgi-reset { align-self: flex-start; margin-top: 24px; line-height: 38px; }
.lgi-filters .lgi-check { align-self: flex-start; margin-top: 24px; min-height: 38px; display: inline-flex; align-items: center; }
.lgi-picker { align-items: center; }
.lgi-picker > label { font-size: var(--fs-meta); color: var(--muted); }
@media (max-width: 640px) { .lgi-reset, .lgi-filters .lgi-check { margin-top: 0; } .lgi-daterange__vs { display: none; } }

/* 0.31.1 Games: Game data tiles + progress ring */
.lgi-gamedata__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.lgi-gdtile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }
.lgi-gdtile.is-running { border-color: rgba(192, 237, 20, .45); }
.lgi-gdtile.is-failed { border-color: rgba(255, 138, 138, .45); }
.lgi-gdtile__head { display: flex; gap: 12px; align-items: flex-start; }
.lgi-gdtile__head h3 { margin: 0 0 3px; font-size: var(--fs-body); }
.lgi-gdtile__head p { margin: 0; font-size: var(--fs-meta); color: var(--muted); line-height: 1.45; }
.lgi-gdtile__ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--lime-text); background: rgba(192, 237, 20, .1); }
.lgi-gdtile__last { margin: 0; font-size: var(--fs-meta); color: var(--text-2); line-height: 1.45; overflow-wrap: anywhere; }
.lgi-gdtile .lgi-details { margin: 0; font-size: var(--fs-meta); }
.lgi-gdtile__go { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.lgi-gdtile__go .lgi-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.lgi-gdtile__go .lgi-btn .lgi-ico { width: 16px; height: 16px; }
.lgi-gdtile__go .lgi-btn.is-busy .lgi-ico { animation: lgi-spin 1s linear infinite; }
.lgi-ring { position: relative; width: 42px; height: 42px; flex-shrink: 0; }
.lgi-ring[hidden] { display: none; }
.lgi-ring svg { width: 42px; height: 42px; transform: rotate(-90deg); }
.lgi-ring__bg { fill: none; stroke: var(--line); stroke-width: 3.5; }
.lgi-ring__fg { fill: none; stroke: var(--lime-line); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray .35s ease; }
.lgi-gdtile.is-failed .lgi-ring__fg { stroke: var(--t-bad); }
.lgi-ring__pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--fs-cap); font-weight: 700; font-variant-numeric: tabular-nums; }
.lgi-ring__text { font-size: var(--fs-meta); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .lgi-ring__fg { transition: none; } .lgi-gdtile__go .lgi-btn.is-busy .lgi-ico { animation: none; } }

/* 0.32 Store account names */
.lgi-namewrap { display: inline-flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lgi-acctline { display: block; font-size: var(--fs-meta); color: var(--muted); font-weight: 400; margin-top: 2px; }
.lgi-gamelink .lgi-acctline, .lgi-gamecell .lgi-acctline { white-space: normal; }
.lgi-pfacct { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 4px 0; }
.lgi-acctname { font-size: var(--fs-meta); color: var(--muted); }
.lgi-game__platforms { display: flex; flex-wrap: wrap; align-items: center; }

/* 0.32.5 Overview Games table: filter bar with icons, Advanced controls */
.lgi-filters select[name="trend"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 11.5 6 7.5l3 3 5-5.5'/%3E%3Cpath d='M10.5 5H14v3.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="ua"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5v3h2.2L10 12.5V3.5L4.7 6.5z'/%3E%3Cpath d='M12.3 6a2.6 2.6 0 0 1 0 4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="profit"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.2v11.6M10.8 4.6c-.5-.9-1.6-1.4-2.8-1.4-1.6 0-2.8.9-2.8 2.1 0 2.9 5.8 1.6 5.8 4.6 0 1.2-1.2 2.1-2.9 2.1-1.3 0-2.5-.6-3-1.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="rev"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='8' cy='4.5' rx='5' ry='2'/%3E%3Cpath d='M3 4.5v3.5c0 1.1 2.2 2 5 2s5-.9 5-2V4.5M3 8v3.5c0 1.1 2.2 2 5 2s5-.9 5-2V8'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="sort"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v10M2.8 10.8 5 13l2.2-2.2M11 13V3M8.8 5.2 11 3l2.2 2.2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="dir"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h8M4 8h5.5M4 12h3'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="limit"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 4h8M5.5 8h8M5.5 12h8'/%3E%3Ccircle cx='2.8' cy='4' r='.6' fill='%23a3a3b2'/%3E%3Ccircle cx='2.8' cy='8' r='.6' fill='%23a3a3b2'/%3E%3Ccircle cx='2.8' cy='12' r='.6' fill='%23a3a3b2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-filters select[name="acct"] { padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 6.2h10.4l-.8 7.1a1.2 1.2 0 0 1-1.2 1H4.8a1.2 1.2 0 0 1-1.2-1z'/%3E%3Cpath d='M5.6 6.2V5a2.4 2.4 0 0 1 4.8 0v1.2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: left 11px center, right 11px center; background-size: 16px 16px, 12px 12px; }
.lgi-field--search input[type="search"] { padding-left: 34px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='4.3'/%3E%3Cpath d='M10.2 10.2 13.5 13.5'/%3E%3C/svg%3E") no-repeat left 11px center / 16px 16px; }
.lgi-gamefilters.lgi-filters { display: block; padding: 14px 16px; }
.lgi-gf-sort .lgi-field { min-width: 0; max-width: none; }
.lgi-gf-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lgi-gf-sort { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.lgi-gf-sort .lgi-field { width: 190px; }
.lgi-gf-sort .lgi-field--narrow { width: 150px; }
.lgi-gf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lgi-gf-actions .lgi-btn, .lgi-gf-pop > summary { display: inline-flex; align-items: center; gap: 7px; height: 38px; min-height: 38px; padding: 0 14px; font-size: var(--fs-sm); white-space: nowrap; }
.lgi-gf-actions .lgi-ico { width: 16px; height: 16px; }
.lgi-js .lgi-gamefilters .lgi-gf-apply[type="submit"] { display: inline-flex; }
.lgi-gf-pop { position: relative; }
.lgi-gf-pop > summary { list-style: none; cursor: pointer; }
.lgi-gf-pop > summary::-webkit-details-marker { display: none; }
.lgi-gf-pop[open] > summary { border-color: var(--lime-edge); color: var(--lime-text); }
.lgi-gf-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--on-accent); font-size: var(--fs-meta); font-weight: 700; }
.lgi-gf-panel { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 300px; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px var(--shadow-3); }
.lgi-gf-panel--wide { width: min(480px, calc(100vw - 48px)); }
.lgi-gf-panel__title { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.lgi-gf-panel .lgi-morefilters { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; }
.lgi-gf-panel .lgi-field { width: 100%; min-width: 0; }
.lgi-gf-panel .lgi-field input[type="number"] { width: 100%; }
.lgi-gf-panel .lgi-checks { margin: 0; padding: 0; border: 0; columns: 2; column-gap: 16px; }
.lgi-gf-panel .lgi-checks legend { font-size: var(--fs-meta); color: var(--muted); margin-bottom: 6px; }
.lgi-gf-panel .lgi-checks label { display: flex; align-items: center; gap: 8px; break-inside: avoid; padding: 4px 0; font-size: var(--fs-sm); }
.lgi-gf-clear { color: var(--muted); }
.lgi-gf-clear:hover { color: var(--text); }
@media (max-width: 760px) {
	.lgi-gf-bar { flex-direction: column; align-items: stretch; }
	.lgi-gf-sort .lgi-field, .lgi-gf-sort .lgi-field--narrow { width: auto; flex: 1 1 140px; }
	.lgi-gf-panel, .lgi-gf-panel--wide { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 70vh; overflow: auto; }
	.lgi-gf-panel .lgi-checks { columns: 1; }
}
.lgi-gf-actions .lgi-gf-pop[open] { flex-basis: auto; order: 0; }
.lgi-gf-panel .lgi-checks, .lgi-colpick[open] .lgi-gf-panel .lgi-checks { display: block; border: 0; padding: 0; margin: 0; border-radius: 0; }
#lgi-games.lgi-card { overflow: visible; } /* pop-out panels must not be cut off; the table scrolls in its own wrapper */

/* 0.33.0 Data Accuracy Center: "What to fix" + issue chips */
.lgi-fixlist { display: grid; gap: 10px; }
.lgi-fix { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.lgi-fix.is-problem { border-color: color-mix(in srgb, var(--t-bad) 40%, transparent); background: color-mix(in srgb, var(--t-bad) 5%, var(--ink-2)); }
.lgi-fix.is-check { border-color: color-mix(in srgb, var(--t-warn) 40%, transparent); background: color-mix(in srgb, var(--t-warn) 5%, var(--ink-2)); }
.lgi-fix > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.lgi-fix > summary::-webkit-details-marker { display: none; }
.lgi-fix__ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--ink-3); color: var(--muted); }
.lgi-fix.is-problem .lgi-fix__ico { background: rgba(208, 59, 59, .18); color: var(--t-bad); }
.lgi-fix.is-check .lgi-fix__ico { background: rgba(244, 196, 106, .16); color: var(--t-warn); }
.lgi-fix__ico .lgi-ico { width: 16px; height: 16px; stroke-width: 2.2; }
.lgi-fix__title { flex: 1; min-width: 0; }
.lgi-fix__n { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ink-3); color: var(--muted); font-size: var(--fs-meta); white-space: nowrap; }
.lgi-fix__who { padding: 2px 9px; border-radius: 999px; font-size: var(--fs-meta); white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.lgi-fix__who.is-game { color: var(--lav-text); border-color: currentColor; }
.lgi-fix__who.is-admin { color: var(--lime-text); border-color: currentColor; }
.lgi-fix__caret { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; flex: none; }
.lgi-fix[open] .lgi-fix__caret { transform: rotate(180deg); }
.lgi-fix__body { padding: 0 14px 14px 52px; }
.lgi-fix__why { margin: 0 0 8px; color: var(--muted); }
.lgi-fix__steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.lgi-fix__games { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.lgi-fix__game { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 10px; background: var(--ink-3); color: var(--text); text-decoration: none; font-size: var(--fs-sm); max-width: 100%; }
.lgi-fix__game:hover { outline: 1px solid var(--lime-edge); }
.lgi-fix__game span { display: grid; line-height: 1.25; min-width: 0; }
.lgi-fix__game small { color: var(--muted); font-size: var(--fs-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-fix__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lgi-fix__actions .lgi-copybtn { margin-left: 0; padding: 6px 12px; font-size: var(--fs-sm); }
.lgi-fixes__ok, .lgi-fixes__info { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 12px 0 0; }
.lgi-fixes__ok .lgi-ico, .lgi-fixes__info .lgi-ico { width: 16px; height: 16px; flex: none; }
.lgi-fixes__ok { color: var(--lime-text); margin-top: 0; }
.lgi-fix:target { box-shadow: 0 0 0 2px var(--lime-edge); }
.lgi-ichips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 180px; }
.lgi-ichip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: var(--fs-meta); text-decoration: none; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.lgi-ichip.is-problem { color: var(--t-bad); border-color: rgba(255, 138, 138, .4); background: rgba(208, 59, 59, .1); }
.lgi-ichip.is-check { color: var(--t-warn); border-color: rgba(244, 196, 106, .4); background: rgba(244, 196, 106, .08); }
.lgi-ichip:hover { border-color: var(--lime-edge); }
@media (max-width: 720px) { .lgi-fix__body { padding-left: 14px; } .lgi-fix > summary { flex-wrap: wrap; } }

/* 0.34.0 Overview KPI hierarchy: business → monetization → retention → operations */
.lgi-exec { display: grid; gap: 22px; margin-bottom: 22px; }
.lgi-xrow__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; }
.lgi-xrow__head h2 { margin: 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lgi-xrow__head .lgi-muted { font-size: var(--fs-meta); }
.lgi-xgrid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lgi-xrow--lg .lgi-xgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lgi-xk { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color .15s, background-color .15s; }
a.lgi-xk:hover, a.lgi-xk:focus-visible { border-color: var(--lav-edge); background: var(--hover-bg); }
.lgi-xrow--lg .lgi-xk { padding: 18px 18px 14px; gap: 8px; min-height: 168px; }
.lgi-xk__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lgi-xk__label { font-size: var(--fs-meta); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-xrow--lg .lgi-xk__label { font-size: var(--fs-sm); color: var(--text); font-weight: 500; }
.lgi-xk__value { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; letter-spacing: -.3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgi-xrow--lg .lgi-xk__value { font-size: 30px; letter-spacing: -.6px; }
.lgi-xk.is-na .lgi-xk__value { font-size: var(--fs-body); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.lgi-xrow--lg .lgi-xk.is-na .lgi-xk__value { font-size: var(--fs-h3); }
.lgi-xk__foot { min-height: 18px; font-size: var(--fs-meta); }
.lgi-xk__foot .lgi-delta { font-size: var(--fs-meta); flex-wrap: wrap; }
.lgi-xrow--sm .lgi-delta__ctx { display: none; }
.lgi-xk__why { color: var(--muted); font-size: var(--fs-meta); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lgi-xk .lgi-spark { width: 100%; height: auto; max-height: 52px; margin-top: auto; }
.lgi-xk .lgi-spark polyline { stroke: var(--muted-2); stroke-width: 1.6; }
.lgi-xk:first-child .lgi-spark polyline { stroke: var(--lime-line); }
.lgi-xk__nospark { display: block; height: 30px; margin-top: auto; border-bottom: 1px dashed var(--line); }
.lgi-xtip { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; color: var(--muted); cursor: help; outline: none; }
.lgi-xtip .lgi-ico { width: 15px; height: 15px; }
.lgi-xtip:hover, .lgi-xtip:focus-visible { color: var(--text); background: var(--ink-3); }
.lgi-xtip::after { content: attr(data-tip); position: absolute; z-index: 30; top: calc(100% + 6px); right: -6px; width: 260px; max-width: 70vw; padding: 10px 12px; border-radius: 10px; background: var(--pop-bg); border: 1px solid var(--line); color: var(--text); font-size: var(--fs-meta); font-weight: 400; line-height: 1.45; text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: 0 10px 30px var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .12s, transform .12s, visibility 0s .12s; pointer-events: none; }
.lgi-xtip:hover::after, .lgi-xtip:focus-visible::after { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.lgi-xops { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lgi-xop { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; transition: border-color .15s; }
.lgi-xop:hover, .lgi-xop:focus-visible { border-color: var(--lav-edge); }
.lgi-xop__ico { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--ink-3); color: var(--muted); }
.lgi-xop__ico .lgi-ico { width: 17px; height: 17px; }
.lgi-xop.is-problem .lgi-xop__ico { background: rgba(208, 59, 59, .18); color: var(--t-bad); }
.lgi-xop.is-check .lgi-xop__ico { background: rgba(244, 196, 106, .14); color: var(--t-warn); }
.lgi-xop.is-ok .lgi-xop__ico { background: rgba(47, 191, 74, .14); color: var(--good); }
.lgi-xop.is-problem { border-color: rgba(255, 138, 138, .35); }
.lgi-xop__txt { display: grid; min-width: 0; line-height: 1.3; }
.lgi-xop__label { font-size: var(--fs-meta); color: var(--muted); }
.lgi-xop strong { font-size: var(--fs-input); }
.lgi-xop small { font-size: var(--fs-meta); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-exec .lgi-pulse__more { margin-top: -8px; }
@media (max-width: 1280px) { .lgi-xrow--lg .lgi-xk__value { font-size: 26px; } }
@media (max-width: 1100px) {
	.lgi-xrow--lg .lgi-xgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.lgi-xrow--lg .lgi-xk { grid-column: span 2; }
	.lgi-xrow--lg .lgi-xk:nth-child(n+4) { grid-column: span 3; }
	.lgi-xops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.lgi-xgrid, .lgi-xrow--lg .lgi-xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.lgi-xrow--lg .lgi-xk, .lgi-xrow--lg .lgi-xk:nth-child(n+4) { grid-column: auto; min-height: 0; }
	.lgi-xrow--lg .lgi-xk:first-child { grid-column: 1 / -1; }
	.lgi-xrow--lg .lgi-xk__value { font-size: 24px; }
	.lgi-xk__label { white-space: normal; }
	.lgi-xrow--lg .lgi-delta__ctx { display: none; }
	.lgi-xk { padding: 12px; }
	.lgi-xtip::after { right: auto; left: 50%; transform: translate(-50%, -3px); width: 230px; }
	.lgi-xtip:hover::after, .lgi-xtip:focus-visible::after { transform: translate(-50%, 0); }
}
@media (max-width: 420px) { .lgi-xops { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lgi-xk, .lgi-xtip::after, .lgi-xop { transition: none; } }
.lgi-content.is-loading .lgi-xk__value { color: transparent; background: linear-gradient(90deg, var(--ink-3), var(--skel-2), var(--ink-3)); background-size: 200% 100%; border-radius: 6px; animation: lgi-shimmer 1.1s linear infinite; }
@keyframes lgi-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .lgi-content.is-loading .lgi-xk__value { animation: none; } }

/* 0.35.0 Overview: data connections side panel */
.lgi-exec__split { display: grid; gap: 22px; }
.lgi-exec__main { display: grid; gap: 22px; min-width: 0; align-content: start; }
.lgi-exec__split.has-conn { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side"; align-items: start; }
.lgi-exec__split.has-conn > .lgi-exec__main { grid-area: main; }
.lgi-exec__split.has-conn > .lgi-conn { grid-area: side; }
.lgi-conn { position: sticky; top: 16px; display: grid; gap: 10px; padding: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.lgi-conn.is-problem { border-color: rgba(255, 138, 138, .4); }
.lgi-conn.is-check { border-color: rgba(244, 196, 106, .35); }
.lgi-conn__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lgi-conn__head h2 { margin: 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lgi-conn__pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: var(--fs-meta); font-weight: 600; white-space: nowrap; }
.lgi-conn__pill .lgi-ico { width: 14px; height: 14px; }
.lgi-conn__pill.is-ok { color: var(--good); background: rgba(47, 191, 74, .12); }
.lgi-conn__pill.is-check { color: var(--t-warn); background: rgba(244, 196, 106, .12); }
.lgi-conn__pill.is-problem { color: var(--t-bad); background: rgba(208, 59, 59, .16); }
.lgi-conn__sum { margin: 0; font-size: var(--fs-meta); color: var(--muted); }
.lgi-conn__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lgi-conn__item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); }
.lgi-conn__item.is-problem { border-color: rgba(255, 138, 138, .3); }
.lgi-conn__ico { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--ink-3); color: var(--muted); }
.lgi-conn__ico .lgi-ico { width: 15px; height: 15px; stroke-width: 2.2; }
.lgi-conn__item.is-problem .lgi-conn__ico { background: rgba(208, 59, 59, .18); color: var(--t-bad); }
.lgi-conn__item.is-check .lgi-conn__ico { background: rgba(244, 196, 106, .14); color: var(--t-warn); }
.lgi-conn__body { min-width: 0; flex: 1; display: grid; gap: 3px; }
.lgi-conn__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: var(--fs-sm); }
.lgi-conn__name strong { overflow-wrap: anywhere; }
.lgi-conn__name span { font-size: var(--fs-meta); color: var(--muted); }
.lgi-conn__msg { margin: 0; font-size: var(--fs-meta); line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lgi-conn__state { font-weight: 600; color: var(--text); }
.lgi-conn__item.is-problem .lgi-conn__state { color: var(--t-bad); }
.lgi-conn__item.is-check .lgi-conn__state { color: var(--t-warn); }
.lgi-conn__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lgi-conn__foot small { font-size: var(--fs-meta); color: var(--muted); }
.lgi-conn__fix { font-size: var(--fs-meta); font-weight: 600; color: var(--lime-text); text-decoration: none; white-space: nowrap; }
.lgi-conn__fix:hover { text-decoration: underline; }
.lgi-conn__allok { display: flex; gap: 8px; align-items: center; margin: 0; font-size: var(--fs-sm); color: var(--good); }
.lgi-conn__allok .lgi-ico { width: 16px; height: 16px; flex: none; }
.lgi-conn__ok summary { cursor: pointer; font-size: var(--fs-meta); color: var(--muted); padding: 2px 0; }
.lgi-conn__ok ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.lgi-conn__ok li { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-size: var(--fs-meta); border-top: 1px solid var(--hair); }
.lgi-conn__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--good); }
.lgi-conn__okname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-conn__okname small { margin-left: 6px; color: var(--muted); font-size: var(--fs-meta); }
.lgi-conn__ok time { font-size: var(--fs-meta); color: var(--muted); white-space: nowrap; }
.lgi-conn__all { font-size: var(--fs-meta); justify-self: start; }
@media (max-width: 1240px) {
	.lgi-exec__split.has-conn { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
	.lgi-exec__split.has-conn > .lgi-exec__main, .lgi-exec__split.has-conn > .lgi-conn { grid-area: auto; }
	.lgi-exec__split.has-conn > .lgi-conn.is-ok { order: 2; } /* all fine: at the end; issues: right under the business row */
	.lgi-conn { position: static; }
	.lgi-conn__list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
.lgi-acct.is-check .lgi-acct__state { color: var(--t-warn); background: rgba(244, 196, 106, .16); }
.lgi-acct.is-check .lgi-acct__badge { color: var(--t-warn); }

/* 0.35.1 Wide screens: the content stops at 1280px, so the Data connections panel moves into the empty
   column on the right, under the header (Sign out), and the KPI rows get their full width back. */
@media (min-width: 1856px) {
	.lgi-exec__split.has-conn { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
	.lgi-exec__split.has-conn > .lgi-exec__main { grid-area: auto; }
	.lgi-exec__split.has-conn > .lgi-conn { position: absolute; top: 32px; left: 100%; width: min(380px, calc(100vw - 252px - 1280px - 24px)); grid-area: auto; z-index: 2; }
	.lgi-conn__list { max-height: none; }
}

/* 0.35.2 Side rail: Data connections, then Studio operations underneath */
.lgi-exec__split.has-conn > .lgi-rail { grid-area: side; display: grid; gap: 18px; align-content: start; min-width: 0; }
.lgi-rail .lgi-conn { position: static; }
.lgi-rail .lgi-xrow--ops { padding: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; }
.lgi-rail .lgi-xrow--ops .lgi-xrow__head { margin-bottom: 10px; }
.lgi-rail .lgi-xops { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lgi-rail .lgi-xop { background: var(--ink); }
@media (max-width: 1240px) {
	.lgi-exec__split.has-conn > .lgi-rail { grid-area: auto; }
	.lgi-exec__split.has-conn > .lgi-rail.is-ok { order: 2; }
	.lgi-rail .lgi-xops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) { .lgi-rail .lgi-xops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .lgi-rail .lgi-xops { grid-template-columns: 1fr; } }
@media (min-width: 1856px) {
	.lgi-exec__split.has-conn > .lgi-rail { position: absolute; top: 32px; left: 100%; width: min(380px, calc(100vw - 252px - 1280px - 24px)); grid-area: auto; z-index: 2; }
}

/* Retention & LTV by day: card head */
.lgi-ret { display: grid; gap: 14px; }
.lgi-ret__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.lgi-ret__head h2 { margin: 0 0 4px; font-size: var(--fs-input); }
.lgi-ret__head .lgi-muted { margin: 0; font-size: var(--fs-sm); }
.lgi-ret__installs { display: grid; justify-items: end; line-height: 1.1; flex: none; }
.lgi-ret__installs strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.lgi-ret__installs span { font-size: var(--fs-meta); color: var(--muted); }
.lgi-ret .lgi-meta { margin: 0; }

/* 0.36.0 Analytics explorer */
.lgi-ax { display: grid; gap: 12px; }
.lgi-ax__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.lgi-ax__head h2 { margin: 0; font-size: var(--fs-h3); }
.lgi-ax__head .lgi-muted { font-size: var(--fs-sm); }
.lgi-ax__body { display: grid; gap: 12px; min-width: 0; }
.lgi-ax__skel { height: 360px; border-radius: 12px; background: linear-gradient(90deg, var(--ink-3), var(--skel-2), var(--ink-3)); background-size: 200% 100%; animation: lgi-shimmer 1.2s linear infinite; }
.lgi-js .lgi-ax__fallback { display: none; }
.lgi-ax__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lgi-ax__seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); }
.lgi-ax__segbtn, .lgi-ax__tool { padding: 5px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-meta); font-weight: 500; cursor: pointer; white-space: nowrap; }
.lgi-ax__segbtn:hover, .lgi-ax__tool:hover { color: var(--text); background: var(--ink-3); }
.lgi-ax__segbtn.is-on { color: var(--on-accent); background: var(--lime); font-weight: 600; }
.lgi-ax__tools { display: inline-flex; gap: 6px; margin-left: auto; }
.lgi-ax__tool { border: 1px solid var(--line); border-radius: 8px; }
.lgi-ax__tool.is-on { color: var(--text); border-color: var(--lav-edge); background: rgba(160, 140, 255, .14); }
.lgi-ax__tool:disabled { opacity: .4; cursor: default; }
.lgi-ax__sel { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--ink); }
.lgi-ax__selhead { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.lgi-ax__seltitle { font-size: var(--fs-meta); font-weight: 600; margin-right: auto; }
.lgi-ax__link { padding: 2px 4px; border: 0; background: none; color: var(--lav-text); font: inherit; font-size: var(--fs-meta); cursor: pointer; }
.lgi-ax__link:hover { text-decoration: underline; }
.lgi-ax__focus { padding: 2px 9px; border: 1px solid var(--lime-edge); border-radius: 999px; background: rgba(192, 237, 20, .1); color: var(--lime-text); font: inherit; font-size: var(--fs-meta); cursor: pointer; }
.lgi-ax__chips { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: minmax(124px, 1fr); gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.lgi-ax__chips[hidden] { display: none; }
.lgi-ax__chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-meta); text-align: left; cursor: pointer; transition: border-color .12s, color .12s, opacity .12s; }
.lgi-ax__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-ax__chip[hidden] { display: none; }
.lgi-ax__chip .lgi-ax__dot { opacity: .35; }
.lgi-ax__chip.is-on { color: var(--text); border-color: var(--line-2); background: var(--ink-2); }
.lgi-ax__chip.is-on .lgi-ax__dot { opacity: 1; }
.lgi-ax__chip.is-focus { border-color: var(--lime-edge); }
.lgi-ax__chip:disabled { opacity: .4; cursor: not-allowed; }
.lgi-ax__dot { width: 10px; height: 10px; flex: none; display: inline-block; vertical-align: -1px; }
.lgi-ax__wrap { position: relative; min-width: 0; }
.lgi-ax__svg { display: block; width: 100%; height: auto; outline: none; }
.lgi-ax__svg:focus-visible { box-shadow: 0 0 0 2px var(--lav-edge); border-radius: 6px; }
.lgi-ax__line { transition: opacity .15s; }
.lgi-ax__linehit { cursor: pointer; }
.lgi-ax__cross { opacity: 0; }
.lgi-ax__cross.is-on { opacity: 1; }
.lgi-ax__tip { min-width: 220px; max-width: 320px; }
.lgi-ax__tiprow { display: grid; grid-template-columns: 10px 1fr auto; column-gap: 8px; align-items: center; padding: 1px 0; }
.lgi-ax__tiprow small { grid-column: 3; justify-self: end; color: var(--muted); font-size: var(--fs-meta); }
.lgi-ax__tiplabel { color: var(--muted); }
.lgi-ax__tiprow strong.is-na { color: var(--muted); font-weight: 500; }
.lgi-ax__tipnote { margin-top: 4px; color: var(--muted); font-size: var(--fs-meta); }
.lgi-ax__empty { padding: 60px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.lgi-ax__tablewrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.lgi-ax__table th .lgi-ax__dot { margin-right: 2px; }
.lgi-ax__notes { margin: 0; }
@media (max-width: 760px) {
	.lgi-ax__tools { margin-left: 0; }
	.lgi-ax__seg { overflow-x: auto; max-width: 100%; }
	.lgi-ax__chips { grid-auto-columns: minmax(118px, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .lgi-ax__skel { animation: none; } .lgi-ax__line, .lgi-ax__chip { transition: none; } }
.lgi-ax, .lgi-ax__body > *, .lgi-ax__sel { min-width: 0; }
.lgi-ax__sel { overflow: hidden; }
/* Hidden tip bubbles must not widen the page on phones: only create them on hover/focus. */
.lgi-xtip::after { content: none; }
.lgi-xtip:hover::after, .lgi-xtip:focus-visible::after { content: attr(data-tip); }
/* 0.36.1 explorer: the card never scrolls; the tooltip is one line per metric and stays inside the chart */
.lgi-ax.lgi-card { overflow: visible; }
.lgi-ax__chips { overflow-y: hidden; }
.lgi-ax__tip { top: 0; min-width: 0; width: max-content; max-width: min(360px, 92%); padding: 8px 10px; font-size: var(--fs-meta); }
.lgi-ax__tiprow { grid-template-columns: 10px minmax(0, 1fr) auto auto; column-gap: 8px; padding: 0; line-height: 1.55; }
.lgi-ax__tiprow small, .lgi-ax__tiprow .lgi-ax__idx { grid-column: auto; min-width: 46px; text-align: right; color: var(--muted); font-size: var(--fs-meta); white-space: nowrap; }
.lgi-ax__tiplabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgi-ax__tipnote { max-width: 300px; }
.lgi-ax__tiphead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lgi-ax__tiphead small { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* 0.36.3 Retention & LTV by day: compact rows with slim bars */
.lgi-ret__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lgi-ret__table thead th { padding: 0 12px 8px; font-size: var(--fs-meta); font-weight: 500; color: var(--muted); text-align: left; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.lgi-ret__table thead th.lgi-num { text-align: right; }
.lgi-ret__table th, .lgi-ret__table td { padding: 11px 12px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.lgi-ret__table tbody tr:last-child > * { border-bottom: 0; }
.lgi-ret__table tbody tr:hover > * { background: var(--wash); }
.lgi-ret__day { width: 1%; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; text-align: left; color: var(--text); }
.lgi-ret__cell { display: flex; align-items: center; gap: 12px; }
.lgi-ret__val { flex: none; width: 56px; font-size: var(--fs-body); font-weight: 700; color: var(--text); }
.lgi-ret__bar { flex: 1; min-width: 60px; height: 8px; border-radius: 999px; overflow: hidden; display: block; }
.lgi-ret__track { fill: var(--ink-3); }
.lgi-ret__fill { fill: var(--lav); }
.lgi-ret__row.is-na .lgi-ret__day { color: var(--muted); font-weight: 500; }
.lgi-ret__why { font-size: var(--fs-meta); color: var(--muted); }
.lgi-ret__chg { width: 1%; white-space: nowrap; }
.lgi-ret__chg .lgi-delta { font-size: var(--fs-meta); }
.lgi-ret__chg .lgi-delta__ctx { display: none; }
.lgi-ret__ltv { width: 1%; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; }
.lgi-ret__row.is-na .lgi-ret__ltv { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) {
	.lgi-ret__table th, .lgi-ret__table td { padding: 9px 6px; }
	.lgi-ret__val { width: 46px; font-size: var(--fs-sm); }
	.lgi-ret__bar { min-width: 30px; }
}
.lgi-ret__table thead th { white-space: nowrap; text-transform: none; }
.lgi-ret__table tbody th.lgi-ret__day { text-transform: none; letter-spacing: 0; padding-right: 20px; }
.lgi-ret__table td.lgi-ret__chg, .lgi-ret__table td.lgi-ret__ltv { text-align: right; }

/* 0.36.4 Retention table: fixed column widths so every value sits under its heading */
.lgi-ret__table { table-layout: fixed; }
.lgi-ret__table col.lgi-ret__c-day { width: 120px; }
.lgi-ret__table col.lgi-ret__c-chg { width: 120px; }
.lgi-ret__table col.lgi-ret__c-ltv { width: 130px; }
.lgi-ret__table th, .lgi-ret__table td { padding: 12px 16px; }
.lgi-ret__table thead th { padding-top: 0; padding-bottom: 10px; }
.lgi-ret__table thead th.lgi-num, .lgi-ret__table td.lgi-num { text-align: right; }
.lgi-ret__day, .lgi-ret__chg, .lgi-ret__ltv { width: auto; }
.lgi-ret__cell { gap: 14px; }
.lgi-ret__bar { height: 10px; }
.lgi-ret__row.is-na .lgi-ret__why { font-style: normal; }
@media (max-width: 640px) {
	.lgi-ret__table col.lgi-ret__c-day { width: 64px; }
	.lgi-ret__table col.lgi-ret__c-chg { width: 78px; }
	.lgi-ret__table col.lgi-ret__c-ltv { width: 70px; }
	.lgi-ret__table th, .lgi-ret__table td { padding: 10px 6px; }
}

/* 0.37.0 Overview filter bar stays at the top while scrolling (compact once stuck), like AdMob's */
.lgi-stick-sentinel { height: 1px; margin-bottom: -1px; }
@media (min-width: 761px) {
	.lgi-filters--sticky { position: sticky; top: 0; z-index: 30; transition: padding .12s, box-shadow .12s, border-radius .12s; }
	.lgi-filters--sticky.is-stuck { padding: 8px 12px; gap: 8px; align-items: center; border-top-left-radius: 0; border-top-right-radius: 0; border-top-color: transparent; background: var(--bar-bg); box-shadow: 0 10px 24px var(--shadow-2); }
	.lgi-filters--sticky.is-stuck .lgi-field > label, .lgi-filters--sticky.is-stuck .lgi-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.lgi-filters--sticky.is-stuck .lgi-field { min-width: 0; gap: 0; }
	.lgi-filters--sticky.is-stuck .lgi-field--wide { flex: 0 1 240px; }
	.lgi-filters--sticky.is-stuck select, .lgi-filters--sticky.is-stuck .lgi-daterange__btn { min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: var(--fs-sm); border-radius: 999px; }
	.lgi-filters--sticky.is-stuck .lgi-reset { align-self: center; font-size: var(--fs-sm); }
}
@media (min-width: 761px) and (prefers-reduced-motion: reduce) { .lgi-filters--sticky { transition: none; } }

/* 0.37.1 Fixed filter bars on every report page; when fixed, everything stays on ONE line */
@media (min-width: 761px) {
	.lgi-picker.lgi-filters--sticky { padding: 10px 0; background: var(--ink); }
	.lgi-picker.lgi-filters--sticky.is-stuck { padding: 8px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
	.lgi-filters--sticky.is-stuck { flex-wrap: nowrap; overflow: visible; }
	.lgi-filters--sticky.is-stuck > * { flex: 0 1 auto; min-width: 0; }
	.lgi-filters--sticky.is-stuck .lgi-field, .lgi-filters--sticky.is-stuck .lgi-field--wide { flex: 0 1 auto; min-width: 0; max-width: none; }
	.lgi-filters--sticky.is-stuck select { width: 100%; min-width: 72px; max-width: 220px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
	.lgi-filters--sticky.is-stuck input[type="search"], .lgi-filters--sticky.is-stuck input[type="text"] { min-width: 90px; max-width: 200px; min-height: 32px; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-sm); }
	.lgi-filters--sticky.is-stuck .lgi-field--range { flex: 0 1 auto; min-width: 0; }
	.lgi-filters--sticky.is-stuck .lgi-daterange, .lgi-filters--sticky.is-stuck .lgi-daterange__btn { min-width: 0; max-width: 100%; }
	.lgi-filters--sticky.is-stuck .lgi-daterange__btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
	.lgi-filters--sticky.is-stuck .lgi-daterange__vs, .lgi-filters--sticky.is-stuck > button[type="submit"] { display: none; }
	.lgi-filters--sticky.is-stuck .lgi-check, .lgi-filters--sticky.is-stuck .lgi-field--check { margin: 0; min-height: 32px; white-space: nowrap; font-size: var(--fs-sm); flex: none; }
	.lgi-filters--sticky.is-stuck .lgi-reset, .lgi-filters--sticky.is-stuck .lgi-link { flex: none; white-space: nowrap; margin: 0 0 0 auto; }
	.lgi-filters--sticky.is-stuck .lgi-picker label, .lgi-picker.lgi-filters--sticky.is-stuck > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1400px) { .lgi-filters--sticky.is-stuck select { min-width: 118px; } }
@media (min-width: 761px) and (max-width: 1399px) {
	.lgi-filters--sticky.is-stuck .lgi-daterange__dates { display: none; }
	.lgi-filters--sticky.is-stuck select { min-width: 92px; padding-left: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 10px center; background-size: 12px 12px; }
}

/* 0.37.2 Filter bars: comparison dates under the dates; Game/Account/Country as wide as Platform; searchable Game */
.lgi-filters--sticky:not(.is-stuck) .lgi-daterange__btn > span { display: grid; line-height: 1.25; }
.lgi-filters--sticky:not(.is-stuck) .lgi-daterange__vs { display: block; margin: 1px 0 0; font-size: var(--fs-meta); }
.lgi-filters--sticky:not(.is-stuck) .lgi-daterange__vs::before { content: none; }
.lgi-filters--sticky:not(.is-stuck) { align-items: flex-end; }
.lgi-filters--sticky:not(.is-stuck) .lgi-field select, .lgi-filters--sticky:not(.is-stuck) .lgi-ss__btn, .lgi-filters--sticky:not(.is-stuck) .lgi-daterange__btn { min-height: 46px; }
.lgi-filters--sticky:not(.is-stuck) .lgi-field:not(.lgi-field--range):not(.lgi-field--check):not(.lgi-field--custom) { flex: 0 0 180px; width: 180px; min-width: 0; max-width: 180px; }
.lgi-filters--sticky:not(.is-stuck) .lgi-field select { width: 100%; text-overflow: ellipsis; }

/* Searchable dropdown (enhances a native <select data-lgi-search>; the select stays for no-JS and form posting) */
.lgi-ss { position: relative; min-width: 0; }
.lgi-ss__native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.lgi-ss__btn { display: flex; align-items: center; width: 100%; min-height: 38px; padding: 6px 30px 6px 34px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.8' y='4.6' width='12.4' height='7.6' rx='3.6'/%3E%3Cpath d='M5.2 7.2v2.4M4 8.4h2.4'/%3E%3Ccircle cx='10.4' cy='7.6' r='.6' fill='%23a3a3b2'/%3E%3Ccircle cx='11.8' cy='9.2' r='.6' fill='%23a3a3b2'/%3E%3C/svg%3E") no-repeat left 11px center / 16px 16px; color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.lgi-ss__btn::after { content: ""; position: absolute; right: 11px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23a3a3b2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 12px; }
.lgi-ss__btn:focus-visible, .lgi-ss__btn[aria-expanded="true"] { border-color: var(--lime-edge); outline: none; }
.lgi-ss__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lgi-picker .lgi-ss__btn { background-color: var(--ink-2); min-height: 40px; }
.lgi-ss__pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: max(100%, 300px); max-width: 90vw; padding: 8px; background: var(--pop-bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px var(--shadow-3); }
.lgi-ss__pop[hidden] { display: none; }
.lgi-ss__q { width: 100%; min-height: 36px; padding: 6px 10px 6px 32px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3b2' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14'/%3E%3C/svg%3E") no-repeat left 10px center / 15px 15px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: var(--fs-sm); }
.lgi-ss__q:focus { border-color: var(--lime-edge); outline: none; }
.lgi-ss__list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 300px; overflow-y: auto; }
.lgi-ss__opt { display: block; padding: 7px 10px; border-radius: 7px; font-size: var(--fs-sm); color: var(--text); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgi-ss__opt.is-act { background: var(--ink-3); }
.lgi-ss__opt[aria-selected="true"] { color: var(--lime-text); font-weight: 600; }
.lgi-ss__opt mark { background: none; color: var(--lime-text); font-weight: 700; }
.lgi-ss__opt--all { color: var(--muted); border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; margin-bottom: 4px; }
.lgi-ss__empty { margin: 8px 4px 2px; font-size: var(--fs-sm); color: var(--muted); }
.lgi-ss__count { margin: 6px 4px 0; font-size: var(--fs-meta); color: var(--muted); }
@media (min-width: 761px) {
	.lgi-filters--sticky.is-stuck .lgi-ss__btn { min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: var(--fs-sm); border-radius: 999px; max-width: 220px; min-width: 92px; }
	.lgi-filters--sticky.is-stuck .lgi-ss { min-width: 0; }
}
@media (min-width: 761px) and (max-width: 1399px) { .lgi-filters--sticky.is-stuck .lgi-ss__btn { padding-left: 12px; background-image: none; } }
.lgi-filters--sticky:not(.is-stuck) .lgi-field--range { flex: none; }
.lgi-filters--sticky:not(.is-stuck) .lgi-daterange__btn > span { grid-template-columns: auto auto; justify-content: start; column-gap: 6px; white-space: nowrap; }
.lgi-filters--sticky:not(.is-stuck) .lgi-daterange__vs { grid-column: 1 / -1; }

/* 0.37.3 Fixed bar: every control exactly the same height and centred; dropdown search keeps its icon room */
@media (min-width: 761px) {
	.lgi-filters--sticky.is-stuck { align-items: center; }
	.lgi-filters--sticky.is-stuck select, .lgi-filters--sticky.is-stuck .lgi-ss__btn, .lgi-filters--sticky.is-stuck .lgi-daterange__btn { box-sizing: border-box; height: 34px; min-height: 34px; padding-top: 0; padding-bottom: 0; line-height: 32px; }
	.lgi-filters--sticky.is-stuck .lgi-daterange__btn > span { line-height: 1.2; }
	.lgi-filters--sticky.is-stuck .lgi-field, .lgi-filters--sticky.is-stuck .lgi-ss { display: flex; align-items: center; }
	.lgi-filters--sticky.is-stuck .lgi-reset { line-height: 34px; height: 34px; }
	.lgi-filters--sticky .lgi-ss__q, .lgi-filters--sticky.is-stuck .lgi-ss__q { width: 100%; max-width: none; min-width: 0; min-height: 36px; height: 36px; padding: 0 10px 0 32px; border-radius: 8px; font-size: var(--fs-sm); }
}
.lgi-ss .lgi-ss__pop input.lgi-ss__q, .lgi-filters--sticky.is-stuck .lgi-ss .lgi-ss__pop input.lgi-ss__q { width: 100%; max-width: none; min-width: 0; height: 36px; min-height: 36px; padding: 0 10px 0 34px; border-radius: 8px; font-size: var(--fs-sm); background-position: left 11px center; }


/* ===== Light theme (html[data-theme="light"]) — the navigation stays dark so the brand logo reads ===== */
[data-theme="light"] {
	--scheme: light;
	--ink: #f4f5f8; --ink-2: #ffffff; --ink-3: #eceef3; --line: #dcdee6; --line-2: #c9ccd6;
	--text: #15161c; --text-2: #33353f; --muted: #5c5f6e; --muted-2: #6a6c79;
	--lime-text: #4f7000; --lime-line: #6f9a00; --lime-edge: #6b9500; --focus: #4f7000;
	--lav-text: #5a46d8; --lav-edge: #6f5ce6; --on-accent: #18181e;
	--ok: #116b33; --warn: #8a5a00; --fail: #b42323;
	--t-bad: #b42323; --t-bad-2: #9b1c1c; --t-warn: #8a5a00; --t-warn-2: #8a5a00; --t-good: #116b33; --t-good-2: #0f5f2c; --t-lav-2: #4b3bc4; --t-blue: #1d5ea8;
	--disabled: #b4b7c2; --bar-bg: rgba(255, 255, 255, .97); --pop-bg: #ffffff; --hover-bg: #f0f1f5; --skel-2: #e3e5eb; --glow: #e6e7f2;
	--wash: rgba(20, 20, 40, .025); --hair: rgba(20, 20, 40, .07);
	--shadow-1: rgba(20, 20, 50, .10); --shadow-2: rgba(20, 20, 50, .14); --shadow-3: rgba(20, 20, 50, .18);
	--heat-0: #eef1f6; --heat-1: #c9dcf4; --heat-2: #8db8ec; --heat-3: #4d8fdc; --heat-4: #1f63c4; --heat-hover: #15161c;
	--series-1: #2f78d6; --series-2: #c94f1c; --series-3: #138a60; --series-4: #a86e00; --series-5: #c23f70;
	--viz-grid: #e6e8ee; --viz-axis: #c4c7d1; --viz-tick: #5f6270;
	--good: #137a37; --bad: #c42f2f;
	color-scheme: light;
}
[data-theme="light"] .lgi-side {
	--ink: #18181e; --ink-2: #202029; --ink-3: #2a2a35; --line: #34343f; --line-2: #3d3d4a;
	--text: #f3f3f6; --text-2: #d4d4de; --muted: #a3a3b2; --muted-2: #8a8a98;
	--lime-text: #c0ed14; --lime-edge: #c0ed14; --focus: #c0ed14; --lav-text: #9a8bf4; --hover-bg: #23232d;
	color-scheme: dark; color: var(--text);
}
[data-theme="light"] .lgi-card, [data-theme="light"] .lgi-kpi, [data-theme="light"] .lgi-xk, [data-theme="light"] .lgi-filters, [data-theme="light"] .lgi-conn, [data-theme="light"] .lgi-rail .lgi-xrow--ops { box-shadow: 0 1px 2px rgba(20, 20, 50, .05); }
/* Light theme: embedded icons in a darker gray (generated from the rules above) */
[data-theme="light"] .lgi-field select, [data-theme="light"] .lgi-picker select, [data-theme="light"] .lgi-card__head select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="network"], [data-theme="light"] .lgi-picker select[name="network"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5a8 8 0 0 1 11 0M4.5 9a5 5 0 0 1 7 0M6.6 11.4a2 2 0 0 1 2.8 0'/%3E%3Ccircle cx='8' cy='13.3' r='.6' fill='%23686a78'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="account"], [data-theme="light"] .lgi-picker select[name="account"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='5.8' r='2.6'/%3E%3Cpath d='M3 13.8c.8-2.6 2.8-4 5-4s4.2 1.4 5 4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="game"], [data-theme="light"] .lgi-picker select[name="game"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.8' y='4.6' width='12.4' height='7.6' rx='3.6'/%3E%3Cpath d='M5.2 7.2v2.4M4 8.4h2.4'/%3E%3Ccircle cx='10.4' cy='7.6' r='.6' fill='%23686a78'/%3E%3Ccircle cx='11.8' cy='9.2' r='.6' fill='%23686a78'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="platform"], [data-theme="light"] .lgi-picker select[name="platform"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.6' y='1.8' width='6.8' height='12.4' rx='1.6'/%3E%3Cpath d='M7.2 12h1.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="country"], [data-theme="light"] .lgi-picker select[name="country"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='5.8'/%3E%3Cpath d='M2.4 8h11.2M8 2.2c2.1 2.3 2.1 9.3 0 11.6M8 2.2c-2.1 2.3-2.1 9.3 0 11.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="trend"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 11.5 6 7.5l3 3 5-5.5'/%3E%3Cpath d='M10.5 5H14v3.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="ua"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5v3h2.2L10 12.5V3.5L4.7 6.5z'/%3E%3Cpath d='M12.3 6a2.6 2.6 0 0 1 0 4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="profit"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.2v11.6M10.8 4.6c-.5-.9-1.6-1.4-2.8-1.4-1.6 0-2.8.9-2.8 2.1 0 2.9 5.8 1.6 5.8 4.6 0 1.2-1.2 2.1-2.9 2.1-1.3 0-2.5-.6-3-1.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="rev"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='8' cy='4.5' rx='5' ry='2'/%3E%3Cpath d='M3 4.5v3.5c0 1.1 2.2 2 5 2s5-.9 5-2V4.5M3 8v3.5c0 1.1 2.2 2 5 2s5-.9 5-2V8'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="sort"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3v10M2.8 10.8 5 13l2.2-2.2M11 13V3M8.8 5.2 11 3l2.2 2.2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="dir"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h8M4 8h5.5M4 12h3'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="limit"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 4h8M5.5 8h8M5.5 12h8'/%3E%3Ccircle cx='2.8' cy='4' r='.6' fill='%23686a78'/%3E%3Ccircle cx='2.8' cy='8' r='.6' fill='%23686a78'/%3E%3Ccircle cx='2.8' cy='12' r='.6' fill='%23686a78'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-filters select[name="acct"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 6.2h10.4l-.8 7.1a1.2 1.2 0 0 1-1.2 1H4.8a1.2 1.2 0 0 1-1.2-1z'/%3E%3Cpath d='M5.6 6.2V5a2.4 2.4 0 0 1 4.8 0v1.2'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="light"] .lgi-field--search input[type="search"] { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='4.3'/%3E%3Cpath d='M10.2 10.2 13.5 13.5'/%3E%3C/svg%3E") no-repeat left 11px center / 16px 16px; }
@media (min-width: 761px) and (max-width: 1399px) { [data-theme="light"] .lgi-filters--sticky.is-stuck select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
[data-theme="light"] .lgi-ss__btn { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.8' y='4.6' width='12.4' height='7.6' rx='3.6'/%3E%3Cpath d='M5.2 7.2v2.4M4 8.4h2.4'/%3E%3Ccircle cx='10.4' cy='7.6' r='.6' fill='%23686a78'/%3E%3Ccircle cx='11.8' cy='9.2' r='.6' fill='%23686a78'/%3E%3C/svg%3E") no-repeat left 11px center / 16px 16px; }
[data-theme="light"] .lgi-ss__btn::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23686a78' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 12px; }
[data-theme="light"] .lgi-ss__q { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23686a78' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14'/%3E%3C/svg%3E") no-repeat left 10px center / 15px 15px; }

/* Light / dark switch in the top bar */
.lgi-theme { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; background: var(--ink-2); transition: border-color .15s; }
.lgi-theme:hover { border-color: var(--line-2); color: var(--text); }
.lgi-theme__ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: color .15s, opacity .15s; }
.lgi-theme__ico--moon { fill: currentColor; stroke: none; }
.lgi-theme__track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line); transition: background .15s; }
.lgi-theme__knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--lav); transition: transform .18s ease; transform: translateX(14px); }
.lgi-theme[aria-checked="true"] .lgi-theme__knob { transform: translateX(0); background: #e0a800; }
.lgi-theme[aria-checked="true"] .lgi-theme__ico--sun { color: #b07c00; }
.lgi-theme[aria-checked="false"] .lgi-theme__ico--moon { color: var(--lav-text); }
.lgi-theme[aria-checked="true"] .lgi-theme__ico--moon, .lgi-theme[aria-checked="false"] .lgi-theme__ico--sun { opacity: .75; }
@media (max-width: 640px) { .lgi-theme { padding: 5px 7px; gap: 5px; } .lgi-theme__ico { width: 14px; height: 14px; } }
@media (prefers-reduced-motion: reduce) { .lgi-theme__knob, .lgi-theme__ico, .lgi-theme__track { transition: none; } }

/* 0.38.2 Phones & tablets: nothing wider than the screen, popups kept on screen, touch-sized targets */
.lgi-field--range, .lgi-daterange { min-width: 0; max-width: 100%; }
.lgi-daterange__btn { max-width: 100%; }
@media (max-width: 640px) {
	.lgi-daterange__btn { white-space: normal; text-align: left; }
	.lgi-daterange__btn > span { min-width: 0; }
	.lgi-picker { flex-wrap: wrap; }
	.lgi-picker > select, .lgi-picker .lgi-ss { max-width: 100%; }
}
/* WCAG 2.5.8: every tap target at least 24 × 24 px */
.lgi-sort { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 0; }
.lgi-conn__fix, .lgi-conn__all { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 2px; }
.lgi-ax__link { min-height: 28px; padding: 4px 6px; }
.lgi-link, .lgi-back, .lgi-login__back { display: inline-block; padding-top: 3px; padding-bottom: 3px; }
.lgi-details > summary, summary.lgi-link { min-height: 30px; padding-top: 5px; padding-bottom: 5px; }
/* Touch screens: comfortable 42 px controls */
@media (pointer: coarse) {
	.lgi-btn--sm, .lgi-iconbtn, .lgi-chip, .lgi-ax__segbtn, .lgi-ax__tool, .lgi-ax__chip, .lgi-ss__opt, .lgi-daterange__opt, .lgi-nav__link, .lgi-theme, .lgi-xop, .lgi-ichip, .lgi-gf-pop > summary { min-height: 42px; }
	.lgi-ax__segbtn, .lgi-ax__tool { display: inline-flex; align-items: center; }
	.lgi-ss__opt { display: flex; align-items: center; }
	.lgi-sort, .lgi-conn__fix, .lgi-ax__link, .lgi-link, .lgi-back { min-height: 36px; }
}
/* remaining small targets */
details > summary { min-height: 28px; }
.lgi-conn__ok summary { padding: 5px 0; }
.lgi-link { min-width: 24px; }
input[type="file"] { min-height: 36px; padding: 6px 0; font-size: var(--fs-sm); color: var(--text); }
input[type="file"]::file-selector-button { min-height: 32px; margin-right: 10px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-3); color: var(--text); font: inherit; cursor: pointer; }
.lgi-login input[type="checkbox"], .lgi-form input[type="checkbox"] { width: 18px; height: 18px; }
.lgi-check { min-height: 28px; }

/* 0.39.0 App-ads.txt */
.lgi-aa-kpis { margin-bottom: 18px; }
.lgi-aa-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lgi-cardhead .lgi-aa-actions { margin-top: 0; }
.lgi-aa-found { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--lime-edge) 40%, transparent); border-radius: 10px; background: var(--ink); }
.lgi-aa-found ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); }
.lgi-aa-found code, .lgi-aa-code code { font-size: var(--fs-meta); }
.lgi-aa-sites td { vertical-align: top; }
.lgi-aa-rowact { white-space: nowrap; text-align: right; }
.lgi-aa-rowact form, .lgi-aa-rowact details { display: inline-block; vertical-align: top; margin-left: 4px; }
.lgi-aa-rowact .lgi-gf-panel { text-align: left; white-space: normal; }
.lgi-aa-coderow td { background: var(--wash); }
.lgi-aa-code { display: grid; gap: 8px; font-size: var(--fs-sm); }
.lgi-aa-code__box { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--lime-edge); border-radius: 8px; background: var(--ink); overflow-wrap: anywhere; }
.lgi-aa-code__box code { flex: 1; min-width: 0; word-break: break-all; }
.lgi-aa-add { margin-top: 12px; }
.lgi-aa-add > form { margin-top: 10px; }
.lgi-aa-srcform { display: grid; gap: 6px; max-width: 640px; }
.lgi-aa-srcform input, .lgi-aa-srcform select, .lgi-aa-srcform textarea, .lgi-aa-edit textarea { width: 100%; padding: 8px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: var(--fs-sm); }
.lgi-aa-srcform textarea, .lgi-aa-edit textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-meta); }
.lgi-aa-srcform label, .lgi-aa-edit label { font-size: var(--fs-meta); color: var(--muted); margin-top: 4px; }
.lgi-aa-srcform button { justify-self: start; margin-top: 6px; }
.lgi-aa-steps { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: var(--fs-sm); }
.lgi-inline { display: inline-block; margin-left: 4px; }
.lgi-aa-hist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.lgi-aa-delta { margin-left: 4px; font-size: var(--fs-meta); font-weight: 600; color: var(--t-good); }
@media (max-width: 760px) { .lgi-aa-rowact { white-space: normal; text-align: left; } .lgi-aa-rowact form, .lgi-aa-rowact details { margin: 4px 4px 0 0; } }
/* A closed pop-out panel takes no space at all (its pinned phone layout could otherwise widen the page). */
.lgi-gf-pop:not([open]) > .lgi-gf-panel { display: none; }
#aa-pending input[type="checkbox"] { width: 20px; height: 20px; }
.lgi-tablewrap { position: relative; } /* hidden labels inside a scrolling table stay inside it */
.lgi-btn--dl { gap: 8px; } .lgi-btn--dl .lgi-ico { width: 17px; height: 17px; flex: none; }
/* 0.39.3 add-a-website form and the one-time connection code box */
.lgi-aa-addsite { display: grid; gap: 6px; max-width: 560px; }
.lgi-aa-addsite label { font-size: var(--fs-meta); color: var(--muted); }
.lgi-aa-addsite__row { display: flex; gap: 8px; flex-wrap: wrap; }
.lgi-aa-addsite__row input { flex: 1 1 220px; min-width: 0; min-height: 38px; padding: 6px 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); }
.lgi-aa-addsite__row input:focus { border-color: var(--lime-edge); outline: none; }
.lgi-aa-addsite .lgi-meta { margin: 0; }
.lgi-aa-code__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lgi-aa-coderow[hidden] { display: none; }
/* 0.39.4 App-ads.txt: grouped websites, Add website pop-out */
.lgi-aa-group th { padding: 14px 12px 8px; text-align: left; font-size: var(--fs-sm); font-weight: 600; color: var(--text); background: var(--ink-2); border-bottom: 1px solid var(--line); }
.lgi-aa-group small { margin-left: 6px; font-weight: 400; }
.lgi-aa-group__dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--muted); vertical-align: 1px; }
.lgi-aa-group.is-connected .lgi-aa-group__dot { background: var(--good); }
.lgi-aa-group.is-problem .lgi-aa-group__dot { background: var(--bad); }
.lgi-aa-group__n { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--ink-3); color: var(--text-2); font-size: var(--fs-meta); text-align: center; }
.lgi-aa-addpop > summary { list-style: none; }
.lgi-aa-addpop > summary::-webkit-details-marker { display: none; }
.lgi-aa-addpop .lgi-gf-panel { width: min(360px, calc(100vw - 32px)); }
.lgi-aa-addpop .lgi-aa-addsite { max-width: none; }
.lgi-aa-addpop .lgi-aa-addsite input { width: 100%; min-height: 38px; padding: 6px 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); }
.lgi-aa-addpop .lgi-aa-addsite input:focus { border-color: var(--lime-edge); outline: none; }
.lgi-aa-addpop .lgi-aa-addsite button { justify-self: start; }
.lgi-aa-addpop[open] > summary, .lgi-aa-addpop > summary:hover { color: var(--on-accent); border-color: var(--lime); background: var(--lime); filter: brightness(1.05); }
.lgi-aa-group th, .lgi-table .lgi-aa-group th { text-transform: none; letter-spacing: 0; }
/* 0.39.5 App-ads.txt: plain-language status per website */
.lgi-aa-group__ico { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; vertical-align: -6px; background: var(--ink-3); color: var(--muted); }
.lgi-aa-group__ico .lgi-ico { width: 14px; height: 14px; stroke-width: 2.2; }
.lgi-aa-group.is-auto .lgi-aa-group__ico { background: rgba(47, 191, 74, .14); color: var(--good); }
.lgi-aa-group.is-attention .lgi-aa-group__ico { background: rgba(208, 59, 59, .16); color: var(--t-bad); }
.lgi-aa-group.is-setup .lgi-aa-group__ico { background: rgba(244, 196, 106, .14); color: var(--t-warn); }
.lgi-aa-group.is-checkonly .lgi-aa-group__ico { background: rgba(154, 139, 244, .14); color: var(--lav-text); }
.lgi-aa-group__dot { display: none; }
.lgi-aa-status { min-width: 240px; max-width: 420px; }
.lgi-aa-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: var(--fs-meta); font-weight: 600; white-space: nowrap; background: var(--ink-3); color: var(--text-2); }
.lgi-aa-pill .lgi-ico { width: 13px; height: 13px; stroke-width: 2.4; }
.lgi-aa-pill.is-auto { background: rgba(47, 191, 74, .12); color: var(--good); }
.lgi-aa-pill.is-attention { background: rgba(208, 59, 59, .14); color: var(--t-bad); }
.lgi-aa-pill.is-setup { background: rgba(244, 196, 106, .12); color: var(--t-warn); }
.lgi-aa-pill.is-checkonly { background: rgba(154, 139, 244, .12); color: var(--t-lav-2); }
.lgi-aa-status__line { display: block; margin-top: 5px; font-size: var(--fs-meta); line-height: 1.45; color: var(--muted); }
.lgi-aa-row.is-attention > td { background: color-mix(in srgb, var(--bad) 7%, transparent); }
/* 0.40.0 push results on each row */
.lgi-aa-row.is-pushing .lgi-aa-status__line { color: var(--text); }
.lgi-aa-row.is-pushed-ok .lgi-aa-status__line { color: var(--good); font-weight: 600; }
.lgi-aa-row.is-pushed-fail .lgi-aa-status__line { color: var(--t-bad); font-weight: 600; }
/* 0.41.0 Networks panel */
.lgi-aa-nets td { vertical-align: top; }
.lgi-aa-net__src { max-width: 460px; line-height: 1.9; }
.lgi-aa-net__src a { overflow-wrap: anywhere; }
.lgi-aa-net.is-none > td { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.lgi-aa-short { color: var(--t-warn); }

/* 0.41.1 AdMob automatic source: publisher IDs */
.lgi-aa-pubs{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px}
.lgi-aa-pubs code{font-size: var(--fs-meta)}
.lgi-aa-paste textarea{width:100%;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}
.lgi-aa-netlink{margin-top:10px}
.lgi-aa-netlink>summary{cursor:pointer;color:var(--muted);font-size: var(--fs-meta)}
.lgi-aa-netlink[open]>summary{margin-bottom:6px}

/* 0.43.0 Bidding setup */
.lgi-bd-miss{display:inline-block;margin:2px 4px 2px 0;padding:2px 8px;border-radius:999px;font-size: var(--fs-meta);background:var(--hover-bg);color:var(--text);border:1px solid var(--line)}
.lgi-bd-games tr.is-missing td:not([rowspan]){background:color-mix(in srgb,var(--hover-bg) 60%,transparent)}

/* 0.44.0 ad network accounts */
.lgi-subhead{margin:28px 0 4px;font-size: var(--fs-h3)}

/* 0.46.0 Monetization tab: overview + collapsible network cards */
.lgi-subhead__note { margin: 0 0 12px; max-width: 900px; }
.lgi-monov__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lgi-monov__item a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.lgi-monov__item a:hover { border-color: var(--line-2); background: var(--hover-bg); }
.lgi-monov__item a:focus-visible { outline: 2px solid var(--focus, var(--lime)); outline-offset: 2px; }
.lgi-monov__top { display: flex; align-items: center; gap: 8px; }
.lgi-monov__state { font-size: var(--fs-meta); color: var(--muted); }
.lgi-monov__caps { font-size: var(--fs-meta); color: var(--muted-2); }
.lgi-monov__item.is-ok .lgi-monov__state { color: var(--t-good); }
.lgi-monov__item.is-problem .lgi-monov__state, .lgi-monov__item.is-check .lgi-monov__state { color: var(--t-bad); }
.lgi-monov__item.is-problem a { border-color: rgba(208, 59, 59, .45); }
.lgi-netcard__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 3px var(--hair); }
.is-ok > .lgi-netcard__sum .lgi-netcard__dot, .is-ok .lgi-monov__top .lgi-netcard__dot { background: var(--t-good); }
.is-new > .lgi-netcard__sum .lgi-netcard__dot, .is-new .lgi-monov__top .lgi-netcard__dot { background: var(--t-warn); }
.is-check > .lgi-netcard__sum .lgi-netcard__dot, .is-check .lgi-monov__top .lgi-netcard__dot, .is-problem > .lgi-netcard__sum .lgi-netcard__dot, .is-problem .lgi-monov__top .lgi-netcard__dot { background: var(--t-bad); }
.lgi-netcard { padding: 0; margin-bottom: 10px; }
.lgi-netcard__sum { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 16px 20px; cursor: pointer; border-radius: var(--radius); }
.lgi-netcard__sum::-webkit-details-marker { display: none; }
.lgi-netcard__sum:hover { background: var(--hover-bg); }
.lgi-netcard__sum:focus-visible { outline: 2px solid var(--focus, var(--lime)); outline-offset: -2px; }
.lgi-netcard__name { font-weight: 600; font-size: var(--fs-input); }
.lgi-netcard__state { font-size: var(--fs-sm); color: var(--muted); }
.lgi-netcard.is-ok .lgi-netcard__state { color: var(--t-good); }
.lgi-netcard.is-problem .lgi-netcard__state, .lgi-netcard.is-check .lgi-netcard__state { color: var(--t-bad); }
.lgi-netcard__chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.lgi-chip { font-size: var(--fs-meta); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.lgi-netcard__cta { margin-left: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--lime-text); display: inline-flex; align-items: center; gap: 6px; }
.lgi-netcard__cta::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .15s; }
.lgi-netcard[open] .lgi-netcard__cta::after { transform: rotate(-135deg); margin-top: 3px; }
.lgi-netcard[open] > .lgi-netcard__sum { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.lgi-netcard__body { padding: 16px 20px 20px; }
.lgi-netcard__body > .lgi-muted:first-child { margin-top: 0; }
@media (max-width: 640px) {
	.lgi-netcard__sum { padding: 14px 16px; }
	.lgi-netcard__body { padding: 14px 16px 16px; }
	.lgi-monov__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.lgi-monov__item a { padding: 10px 11px; gap: 2px; }
	.lgi-monov__top strong { font-size: var(--fs-sm); line-height: 1.25; }
	.lgi-monov__caps { display: none; }
	.lgi-netcard__chips { display: none; }
	.lgi-netcard__sum { gap: 6px 10px; }
}

/* 0.46.2 No scroll anchoring on LGI pages: the sticky filter bar changes height when it sticks, and
   Chrome's scroll anchoring then moved the page so the bar un-stuck again — a loop that froze the tab. */
html, body { overflow-anchor: none; }

/* 0.47.0 UA pivot: games with campaigns below */
.lgi-pv__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 12px; }
.lgi-pv__q { flex: 1 1 220px; min-width: 0; max-width: 320px; }
.lgi-pv__nets { display: flex; flex-wrap: wrap; gap: 6px; }
.lgi-pv__nets .lgi-chip { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: transparent; font: inherit; font-size: var(--fs-meta); padding: 4px 10px; }
.lgi-pv__nets .lgi-chip[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.lgi-pv__nets .lgi-chip[aria-pressed="true"] { border-color: var(--line-2); color: var(--text); }
.lgi-pv__table th[scope="row"] { font-weight: inherit; text-align: left; }
.lgi-pv__game { cursor: pointer; }
.lgi-pv__game:hover > * { background: var(--hover-bg); }
.lgi-pv__grp.is-open .lgi-pv__game > * { background: var(--wash); }
.lgi-pv__grp + .lgi-pv__grp .lgi-pv__game > * { border-top: 1px solid var(--line); }
.lgi-pv__tog { flex: none; width: 22px; height: 22px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.lgi-pv__tog::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.lgi-pv__tog[aria-expanded="true"]::before { transform: rotate(45deg); margin-top: -3px; }
.lgi-pv__tog:hover { color: var(--text); background: var(--hover-bg); }
.lgi-pv__tog:focus-visible { outline: 2px solid var(--focus, var(--lime)); outline-offset: 1px; }
.lgi-pv__camp > * { font-size: var(--fs-sm); border-top: 1px dashed var(--hair); }
.lgi-pv__camp > th { padding-left: 62px; }
.lgi-pv__cname { display: inline-flex; align-items: flex-start; gap: 8px; }
.lgi-pv__cname .lgi-key { margin-top: 5px; flex: none; }
.lgi-pv__cname small { display: block; font-size: var(--fs-meta); }
.lgi-pv__share { display: block; font-size: var(--fs-meta); color: var(--muted-2); }
.lgi-pv__grp.is-filtered .lgi-pv__game > td:nth-child(6), .lgi-pv__grp.is-filtered .lgi-pv__game > td:nth-child(7) { opacity: .45; }
@media (max-width: 760px) {
	.lgi-pv__camp > th { padding-left: 12px; }
	.lgi-pv__q { max-width: none; flex-basis: 100%; }
	.lgi-pv__blank { display: none; }
}
.lgi-pv__table tbody th { text-transform: none; letter-spacing: normal; font-size: var(--fs-sm); font-weight: 400; color: var(--text); white-space: normal; }
.lgi-pv__table tbody .lgi-pv__camp th { font-size: var(--fs-sm); }
.lgi-pv__bar input[type="search"], .lgi-pv__bar select { min-height: 34px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink-2, var(--ink)); color: var(--text); font: inherit; font-size: var(--fs-sm); }
.lgi-pv__bar select { padding-right: 30px; }
.lgi-pv__bar input[type="search"]:focus-visible, .lgi-pv__bar select:focus-visible { outline: 2px solid var(--focus, var(--lime)); outline-offset: 1px; border-color: transparent; }
.lgi-pv__bar input[type="search"]::placeholder { color: var(--muted-2); }

/* 0.47.1 UA: where the spend goes (by network / by account) */
.lgi-split { margin-bottom: 16px; }
.lgi-split__clear { font-size: var(--fs-sm); }
.lgi-split__table th[scope="row"] { text-transform: none; letter-spacing: normal; font-size: var(--fs-sm); font-weight: 400; color: var(--text); }
.lgi-split__name { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--text); text-decoration: none; }
.lgi-split__name .lgi-key { margin-top: 5px; }
.lgi-split__name small { display: block; font-size: var(--fs-meta); }
.lgi-split__name:hover span:not(.lgi-key) { text-decoration: underline; text-underline-offset: 3px; }
.lgi-split__name:focus-visible { outline: 2px solid var(--focus, var(--lime)); outline-offset: 2px; border-radius: 4px; }
.lgi-split__bar { display: block; height: 4px; margin-top: 7px; border-radius: 999px; background: var(--hair); overflow: hidden; max-width: 220px; }
.lgi-split__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--c, var(--series-1)); }
.lgi-split__share { display: block; font-size: var(--fs-meta); color: var(--muted-2); }
.lgi-split__table tr.is-on > * { background: var(--wash); }
.lgi-split__table tr.is-on .lgi-split__name { font-weight: 600; }
.lgi-split__bar .lgi-w1 { width: 1%; }
.lgi-split__bar .lgi-w2 { width: 2%; }
.lgi-split__bar .lgi-w3 { width: 3%; }
.lgi-split__bar .lgi-w4 { width: 4%; }
.lgi-split__bar .lgi-w5 { width: 5%; }
.lgi-split__bar .lgi-w6 { width: 6%; }
.lgi-split__bar .lgi-w7 { width: 7%; }
.lgi-split__bar .lgi-w8 { width: 8%; }
.lgi-split__bar .lgi-w9 { width: 9%; }
.lgi-split__bar .lgi-w10 { width: 10%; }
.lgi-split__bar .lgi-w11 { width: 11%; }
.lgi-split__bar .lgi-w12 { width: 12%; }
.lgi-split__bar .lgi-w13 { width: 13%; }
.lgi-split__bar .lgi-w14 { width: 14%; }
.lgi-split__bar .lgi-w15 { width: 15%; }
.lgi-split__bar .lgi-w16 { width: 16%; }
.lgi-split__bar .lgi-w17 { width: 17%; }
.lgi-split__bar .lgi-w18 { width: 18%; }
.lgi-split__bar .lgi-w19 { width: 19%; }
.lgi-split__bar .lgi-w20 { width: 20%; }
.lgi-split__bar .lgi-w21 { width: 21%; }
.lgi-split__bar .lgi-w22 { width: 22%; }
.lgi-split__bar .lgi-w23 { width: 23%; }
.lgi-split__bar .lgi-w24 { width: 24%; }
.lgi-split__bar .lgi-w25 { width: 25%; }
.lgi-split__bar .lgi-w26 { width: 26%; }
.lgi-split__bar .lgi-w27 { width: 27%; }
.lgi-split__bar .lgi-w28 { width: 28%; }
.lgi-split__bar .lgi-w29 { width: 29%; }
.lgi-split__bar .lgi-w30 { width: 30%; }
.lgi-split__bar .lgi-w31 { width: 31%; }
.lgi-split__bar .lgi-w32 { width: 32%; }
.lgi-split__bar .lgi-w33 { width: 33%; }
.lgi-split__bar .lgi-w34 { width: 34%; }
.lgi-split__bar .lgi-w35 { width: 35%; }
.lgi-split__bar .lgi-w36 { width: 36%; }
.lgi-split__bar .lgi-w37 { width: 37%; }
.lgi-split__bar .lgi-w38 { width: 38%; }
.lgi-split__bar .lgi-w39 { width: 39%; }
.lgi-split__bar .lgi-w40 { width: 40%; }
.lgi-split__bar .lgi-w41 { width: 41%; }
.lgi-split__bar .lgi-w42 { width: 42%; }
.lgi-split__bar .lgi-w43 { width: 43%; }
.lgi-split__bar .lgi-w44 { width: 44%; }
.lgi-split__bar .lgi-w45 { width: 45%; }
.lgi-split__bar .lgi-w46 { width: 46%; }
.lgi-split__bar .lgi-w47 { width: 47%; }
.lgi-split__bar .lgi-w48 { width: 48%; }
.lgi-split__bar .lgi-w49 { width: 49%; }
.lgi-split__bar .lgi-w50 { width: 50%; }
.lgi-split__bar .lgi-w51 { width: 51%; }
.lgi-split__bar .lgi-w52 { width: 52%; }
.lgi-split__bar .lgi-w53 { width: 53%; }
.lgi-split__bar .lgi-w54 { width: 54%; }
.lgi-split__bar .lgi-w55 { width: 55%; }
.lgi-split__bar .lgi-w56 { width: 56%; }
.lgi-split__bar .lgi-w57 { width: 57%; }
.lgi-split__bar .lgi-w58 { width: 58%; }
.lgi-split__bar .lgi-w59 { width: 59%; }
.lgi-split__bar .lgi-w60 { width: 60%; }
.lgi-split__bar .lgi-w61 { width: 61%; }
.lgi-split__bar .lgi-w62 { width: 62%; }
.lgi-split__bar .lgi-w63 { width: 63%; }
.lgi-split__bar .lgi-w64 { width: 64%; }
.lgi-split__bar .lgi-w65 { width: 65%; }
.lgi-split__bar .lgi-w66 { width: 66%; }
.lgi-split__bar .lgi-w67 { width: 67%; }
.lgi-split__bar .lgi-w68 { width: 68%; }
.lgi-split__bar .lgi-w69 { width: 69%; }
.lgi-split__bar .lgi-w70 { width: 70%; }
.lgi-split__bar .lgi-w71 { width: 71%; }
.lgi-split__bar .lgi-w72 { width: 72%; }
.lgi-split__bar .lgi-w73 { width: 73%; }
.lgi-split__bar .lgi-w74 { width: 74%; }
.lgi-split__bar .lgi-w75 { width: 75%; }
.lgi-split__bar .lgi-w76 { width: 76%; }
.lgi-split__bar .lgi-w77 { width: 77%; }
.lgi-split__bar .lgi-w78 { width: 78%; }
.lgi-split__bar .lgi-w79 { width: 79%; }
.lgi-split__bar .lgi-w80 { width: 80%; }
.lgi-split__bar .lgi-w81 { width: 81%; }
.lgi-split__bar .lgi-w82 { width: 82%; }
.lgi-split__bar .lgi-w83 { width: 83%; }
.lgi-split__bar .lgi-w84 { width: 84%; }
.lgi-split__bar .lgi-w85 { width: 85%; }
.lgi-split__bar .lgi-w86 { width: 86%; }
.lgi-split__bar .lgi-w87 { width: 87%; }
.lgi-split__bar .lgi-w88 { width: 88%; }
.lgi-split__bar .lgi-w89 { width: 89%; }
.lgi-split__bar .lgi-w90 { width: 90%; }
.lgi-split__bar .lgi-w91 { width: 91%; }
.lgi-split__bar .lgi-w92 { width: 92%; }
.lgi-split__bar .lgi-w93 { width: 93%; }
.lgi-split__bar .lgi-w94 { width: 94%; }
.lgi-split__bar .lgi-w95 { width: 95%; }
.lgi-split__bar .lgi-w96 { width: 96%; }
.lgi-split__bar .lgi-w97 { width: 97%; }
.lgi-split__bar .lgi-w98 { width: 98%; }
.lgi-split__bar .lgi-w99 { width: 99%; }
.lgi-split__bar .lgi-w100 { width: 100%; }
@media (max-width: 640px) {
	.lgi-split__table th, .lgi-split__table td { padding: 9px 6px; font-size: var(--fs-sm); }
	.lgi-split__table thead th { font-size: var(--fs-meta); letter-spacing: .4px; }
	.lgi-split__table th[scope="row"] { font-size: var(--fs-sm); }
	.lgi-split__card .lgi-card__head .lgi-muted { display: none; }
	.lgi-split__bar { max-width: 120px; }
}

/* ===== 0.48.0 Polish pass (UI/UX checklist: data-dense dashboard) ===== */
/* Keyboard focus: inputs and selects kept only a faint border change; give them the same clear ring as everything else. */
:is(input, select, textarea):focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 1px; }
.lgi-ax__svg:focus-visible, .lgi-xtip:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
/* Numbers line up in every table column. */
.lgi-table td, .lgi-table th[scope="row"] { font-variant-numeric: tabular-nums; }
/* Data-dense tables: the row under the pointer is easy to follow. */
.lgi-table tbody tr:hover > td, .lgi-table tbody tr:hover > th[scope="row"] { background: var(--wash); }
/* Reduced motion: stop animations too, not just transitions. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
/* Filter cards: "Reset" no longer takes a row of its own — it sits in the card's top-right corner. */
.lgi-filters:not(.lgi-filters--sticky) { position: relative; } /* the sticky bar is already positioned; overriding it broke sticking (0.48.0) */
.lgi-filters:not(.is-stuck) > .lgi-reset { position: absolute; top: 12px; right: 16px; margin: 0; line-height: 1.4; font-size: var(--fs-sm); }
/* Games page: search, account and sort on one row like the other pages. */
.lgi-gamefilters.lgi-filters { display: flex; align-items: flex-end; }
.lgi-gamefilters .lgi-field--wide { max-width: 420px; }
/* Clickable things look clickable; smooth, short hover feedback. */
summary, [role="button"], .lgi-chip, .lgi-iconbtn, .lgi-btn { cursor: pointer; }
.lgi-card { transition: border-color .15s ease; }
@media (max-width: 640px) {
	.lgi-filters:not(.is-stuck) > .lgi-reset { position: static; }
}
@media (max-width: 640px) {
	/* Phones: two filters per row instead of a long column of fixed-width boxes; the date range stays full width. */
	.lgi-filters--sticky:not(.is-stuck) .lgi-field:not(.lgi-field--range):not(.lgi-field--check):not(.lgi-field--custom) { flex: 1 1 calc(50% - 7px); width: auto; max-width: calc(50% - 7px); }
	.lgi-filters--sticky:not(.is-stuck) .lgi-field--range { flex: 1 1 100%; }
}
/* 0.48.1 Overview games filter on one row: search, sort, order, More filters, columns, apply. */
.lgi-gf-bar--one { margin-top: 0; padding-top: 0; border-top: 0; flex-wrap: wrap; justify-content: flex-start; align-items: flex-end; gap: 12px 14px; }
.lgi-gf-bar--one .lgi-field--search { flex: 1 1 200px; max-width: 300px; min-width: 180px; }
.lgi-gf-bar--one .lgi-field--search input[type="search"] { width: 100%; height: 38px; }
.lgi-gf-bar--one .lgi-gf-sort { display: flex; gap: 12px; flex: none; }
.lgi-gf-bar--one .lgi-gf-sort .lgi-field { min-width: 0; width: auto; }
.lgi-gf-bar--one .lgi-gf-sort select { width: 178px; }
.lgi-gf-bar--one .lgi-gf-sort .lgi-field--narrow select { width: 148px; }
.lgi-gf-bar--one .lgi-gf-actions { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; margin-left: auto; }
.lgi-gf-panel:has(.lgi-morefilters) { width: min(440px, calc(100vw - 32px)); }
.lgi-gf-panel .lgi-morefilters { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 12px 14px; }
.lgi-gf-panel .lgi-morefilters select, .lgi-gf-panel .lgi-morefilters input { width: 100%; }
@media (max-width: 640px) {
	.lgi-gf-bar--one { flex-direction: column; align-items: stretch; }
	.lgi-gf-bar--one .lgi-field--search { flex: none; width: 100%; max-width: none; min-width: 0; }
	.lgi-gf-bar--one .lgi-gf-sort { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.lgi-gf-bar--one .lgi-gf-sort select, .lgi-gf-bar--one .lgi-gf-sort .lgi-field--narrow select { width: 100%; }
	.lgi-gf-bar--one .lgi-gf-actions { flex-wrap: wrap; margin-left: 0; }
	.lgi-gf-panel .lgi-morefilters { grid-template-columns: 1fr; }
}
/* 0.48.1 Icons: sidebar navigation and Overview section headings */
.lgi-nav__link { display: flex; align-items: center; gap: 10px; }
.lgi-navico { flex: none; width: 18px; height: 18px; color: var(--muted); transition: color .15s ease; }
.lgi-nav__link:hover .lgi-navico { color: var(--text); }
.lgi-nav__link.is-active .lgi-navico { color: var(--lime-text); }
.lgi-xrow__head h2 { display: inline-flex; align-items: center; gap: 8px; }
.lgi-xrow__head h2 .lgi-navico { width: 16px; height: 16px; color: var(--lav-text); }

/* App-ads.txt: shared file box (read-only until Edit) */
.lgi-aa-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 6px; font-size: var(--fs-sm); color: var(--muted); }
.lgi-aa-stats strong { color: var(--text); font-variant-numeric: tabular-nums; }
.lgi-aa-stats strong.is-bad { color: var(--t-bad); }
.lgi-aa-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: var(--fs-meta); }
.lgi-aa-chip { padding: 2px 9px; border-radius: 999px; background: var(--ink-3); color: var(--text-2); white-space: nowrap; }
.lgi-aa-shared textarea { width: 100%; min-height: 280px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-meta); line-height: 1.6; resize: vertical; }
.lgi-aa-shared textarea[readonly] { background: var(--ink-3); color: var(--text-2); cursor: default; }
.lgi-aa-shared__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.lgi-aa-shared__bar [hidden] { display: none; }
.lgi-aa-pushing { color: var(--good); }
.lgi-aa-addlines { margin-top: 14px; }
.lgi-aa-addlines textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-meta); }

/* App-ads.txt: your account IDs (DIRECT lines), MAX gaps */
.lgi-aa-ids { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.lgi-aa-idchip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px 1px 8px; border-radius: 999px; background: var(--ink-3); }
.lgi-aa-idchip code { font-size: var(--fs-meta); }
.lgi-aa-idchip form { display: inline; margin: 0; }
.lgi-aa-idchip__x { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.lgi-aa-idchip__x:hover { color: var(--t-bad); background: var(--ink-2); }
.lgi-aa-idchip__x .lgi-ico { width: 12px; height: 12px; }
.lgi-aa-idform { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lgi-aa-gaps ul { margin: 6px 0 0; padding-left: 18px; }
.lgi-alert--warn { background: rgba(244, 196, 106, .1); border: 1px solid rgba(244, 196, 106, .4); color: var(--t-warn); margin: 10px 0 14px; }

/* App-ads.txt page: in-page nav, attention list, advanced (folded) sections */
.lgi-aa-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.lgi-aa-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.lgi-aa-nav a:hover, .lgi-aa-nav a:focus-visible { border-color: var(--lime-text); color: var(--text); }
.lgi-aa-nav__n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(244, 196, 106, .16); color: var(--t-warn); font-size: var(--fs-meta); text-align: center; }
.lgi-kpi--warn strong { color: var(--t-warn); }
.lgi-aa-todo { border-color: rgba(244, 196, 106, .4); }
.lgi-aa-todo h2 { margin: 0 0 8px; }
.lgi-aa-todo ul { list-style: none; margin: 0; padding: 0; }
.lgi-aa-todo li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.lgi-aa-todo li:first-child { border-top: 0; }
.lgi-aa-adv > .lgi-aa-adv__sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; cursor: pointer; list-style: none; }
.lgi-aa-adv > .lgi-aa-adv__sum::-webkit-details-marker { display: none; }
.lgi-aa-adv > .lgi-aa-adv__sum strong { font-size: var(--fs-input); }
.lgi-aa-adv > .lgi-aa-adv__sum::after { content: "+"; font-weight: 700; color: var(--muted); margin-left: auto; }
.lgi-aa-adv[open] > .lgi-aa-adv__sum::after { content: "−"; }
.lgi-aa-adv[open] > .lgi-aa-adv__sum { margin-bottom: 12px; }
.lgi-aa-adv__lead { margin-top: 0; }
@media (max-width: 640px) { .lgi-aa-todo li { flex-direction: column; align-items: flex-start; } }

/* App-ads.txt: a network's "Add lines" opens as a full-width row; dead lines grouped by ad system */
.lgi-aa-netedit > td { background: var(--ink-3); padding: 16px 18px 18px; }
.lgi-aa-netedit__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lgi-aa-netedit__head h3 { margin: 0; font-size: var(--fs-body); }
.lgi-aa-netedit__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.lgi-aa-netedit__main textarea { width: 100%; min-height: 150px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-meta); }
.lgi-aa-netedit__when { margin-top: 0; }
.lgi-aa-netedit__side .lgi-aa-idform { margin-top: 0; padding-top: 0; border-top: 0; }
.lgi-aa-netedit__side .lgi-aa-netlink { margin-top: 14px; }
.lgi-aa-netedit .lgi-aa-addsite { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lgi-aa-netedit .lgi-aa-addsite input[type="text"], .lgi-aa-netedit .lgi-aa-addsite input[type="url"] { width: 100%; }
@media (max-width: 900px) { .lgi-aa-netedit__grid { grid-template-columns: 1fr; } }
.lgi-aa-dead__bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.lgi-aa-dead__pick { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); cursor: pointer; }
.lgi-aa-dead__list { max-height: 460px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.lgi-aa-dead__grp { border-top: 1px solid var(--line); }
.lgi-aa-dead__grp:first-child { border-top: 0; }
.lgi-aa-dead__grp > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; cursor: pointer; }
.lgi-aa-dead__grp > summary .lgi-muted { margin-left: auto; font-size: var(--fs-meta); }
.lgi-aa-dead__grp[open] > summary { background: var(--ink-3); }
.lgi-aa-dead__grp ul { list-style: none; margin: 0; padding: 4px 14px 10px 40px; }
.lgi-aa-dead__grp li label { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: var(--fs-meta); cursor: pointer; }

/* Game setup: searchable games; each opens to its setup steps and MAX ad units by format */
.lgi-gs__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 14px; }
.lgi-gs__bar input[type="search"] { flex: 1 1 260px; min-width: 0; }
.lgi-gs__list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lgi-gs__game { border-top: 1px solid var(--line); }
.lgi-gs__game:first-child { border-top: 0; }
.lgi-gs__game > summary { display: grid; grid-template-columns: 40px minmax(0, 2fr) minmax(120px, 1fr) minmax(0, 2fr); align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.lgi-gs__game > summary::-webkit-details-marker { display: none; }
.lgi-gs__game > summary:hover, .lgi-gs__game[open] > summary { background: var(--ink-3); }
.lgi-gs__game .lgi-game__icon { width: 40px; height: 40px; font-size: var(--fs-sm); }
.lgi-gs__game .lgi-game__icon img { width: 40px; height: 40px; }
.lgi-gs__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lgi-gs__name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-gs__pfs { display: flex; gap: 4px; }
.lgi-gs__prog { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-meta); color: var(--muted); }
.lgi-gs__track { height: 6px; border-radius: 999px; background: var(--ink); overflow: hidden; }
.lgi-gs__fill { display: block; height: 100%; border-radius: 999px; background: var(--t-warn); }
.lgi-gs__fill.is-done { background: var(--good); }
.lgi-gs__chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.lgi-gs__body { padding: 4px 14px 16px 66px; }
.lgi-gs__pf + .lgi-gs__pf { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.lgi-gs__pf h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 10px 0; font-size: var(--fs-sm); }
.lgi-gs__pf h3 code { font-size: var(--fs-meta); color: var(--muted); }
.lgi-gs__cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; }
.lgi-gs__steps { list-style: none; margin: 0; padding: 0; }
.lgi-gs__steps li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.lgi-gs__steps li:first-child { border-top: 0; }
.lgi-gs__steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lgi-gs__steps small { color: var(--muted); font-size: var(--fs-meta); overflow-wrap: anywhere; }
.lgi-gs__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ink-3); color: var(--muted); }
.lgi-gs__ico .lgi-ico { width: 13px; height: 13px; stroke-width: 2.4; }
.lgi-gs__steps .is-ok .lgi-gs__ico { background: rgba(47, 191, 74, .14); color: var(--good); }
.lgi-gs__steps .is-todo .lgi-gs__ico { background: rgba(244, 196, 106, .16); color: var(--t-warn); }
.lgi-gs__mon h4 { margin: 4px 0 8px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.lgi-gs__id { font-size: var(--fs-cap); color: var(--muted); }
@media (max-width: 1000px) { .lgi-gs__cols { grid-template-columns: 1fr; } .lgi-gs__body { padding-left: 14px; } }
@media (max-width: 640px) { .lgi-gs__game > summary { grid-template-columns: 40px minmax(0, 1fr); } .lgi-gs__prog, .lgi-gs__chips { grid-column: 2; justify-content: flex-start; } }

/* Users & Permissions editor */
.lgi-perms { display: grid; gap: 14px; margin: 16px 0 18px; }
.lgi-perms select { max-width: 360px; }
.lgi-perm { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 0; }
.lgi-perm__title { display: block; width: 100%; text-align: center; padding: 14px 0 10px; font-weight: 600; color: var(--text); font-size: var(--fs-sm); }
.lgi-form .lgi-perm__opt { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--text-2); font-size: var(--fs-sm); cursor: pointer; }
.lgi-perm__opt:has(input:checked) { background: rgba(192, 237, 20, .08); color: var(--text); }
.lgi-perm__opt input { accent-color: var(--lime); width: 16px; height: 16px; }
.lgi-perm__caps { display: grid; gap: 8px; padding: 10px 14px 4px 40px; }
.lgi-perm__caps[hidden] { display: none; }
.lgi-form .lgi-perm__cap { align-items: flex-start; color: var(--text); }
.lgi-perm__cap input { margin-top: 2px; flex: none; }
.lgi-perm__cap small { display: block; color: var(--muted); font-size: var(--fs-meta); margin-top: 1px; }
.lgi-perm__cap:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.lgi-perm__page { display: grid; gap: 6px; }
.lgi-perm__sub { display: grid; gap: 6px; padding-left: 26px; }
.lgi-perm__sub[hidden] { display: none; }

/* Sign-in: brand panel left, form right (stacks on phones) */
.lgi-auth-page { background: var(--ink-2); }
.lgi-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 0 24px; padding: 24px; }
.lgi-auth__brand {
	--text: #f3f3f6; --muted: #c9c9d6;
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: 560px; padding: 56px; border-radius: 24px; color: var(--text);
	background:
		radial-gradient(70% 60% at 12% 8%, rgba(192, 237, 20, .30) 0%, rgba(192, 237, 20, 0) 60%),
		radial-gradient(65% 70% at 95% 100%, rgba(154, 139, 244, .55) 0%, rgba(154, 139, 244, 0) 65%),
		radial-gradient(50% 50% at 70% 35%, rgba(154, 139, 244, .18) 0%, rgba(154, 139, 244, 0) 70%),
		linear-gradient(150deg, #22222c 0%, #18181e 55%, #1d1830 100%);
}
.lgi-auth__brand .lgi-logo { position: absolute; top: 40px; left: 48px; height: 96px; }
.lgi-auth__headline { margin: 72px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5.4vw, 76px); line-height: .95; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.lgi-auth__sub { margin: 0; max-width: 420px; color: var(--muted); font-size: var(--fs-input); }
.lgi-auth__panel { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.lgi-auth__form { width: 100%; max-width: 440px; }
.lgi-auth__title { margin: 0 0 22px; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.lgi-auth__note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: var(--ink-3); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.lgi-auth__note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.lgi-auth .lgi-form label { color: var(--text); font-weight: 600; }
.lgi-auth .lgi-form input[type="text"], .lgi-auth .lgi-form input[type="password"], .lgi-auth .lgi-form input[type="email"], .lgi-auth .lgi-form input[type="url"] { min-height: 48px; background: var(--ink); }
.lgi-auth__submit { min-height: 50px; font-size: var(--fs-input); }
.lgi-auth__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 8px 0; color: var(--muted); font-size: var(--fs-sm); }
.lgi-auth__foot a { color: var(--muted); text-decoration: none; }
.lgi-auth__foot a:hover { color: var(--text); }
@media (max-width: 860px) {
	.lgi-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 12px; }
	.lgi-auth__brand { min-height: 0; padding: 28px 24px; gap: 10px; }
	.lgi-auth__brand .lgi-logo { position: static; height: 64px; width: auto; align-self: flex-start; }
	.lgi-auth__headline { margin: 8px 0 0; font-size: 34px; }
	.lgi-auth__sub { display: none; }
	.lgi-auth__panel { padding: 28px 4px; align-items: flex-start; }
	.lgi-auth__title { font-size: 34px; }
}

/* Game Development Manager */
.lgi-gdm-kpis { margin-bottom: 16px; }
.lgi-gdm-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 8px 0 4px; }
.lgi-gdm-filters .lgi-field--wide { flex: 1 1 220px; }
.lgi-gdm-filters input[type="search"] { min-height: 38px; padding: 6px 10px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); width: 100%; }
.lgi-gdm-arch { align-self: center; font-size: var(--fs-sm); }
.lgi-gdm-count { margin: 10px 0 0; font-size: var(--fs-sm); }
.lgi-table-wrap { overflow-x: auto; }
.lgi-gdm-table td { vertical-align: middle; }
.lgi-gdm-table .lgi-gdm-sub td { border-top: 0; }
.lgi-gdm-table .lgi-table__action { white-space: nowrap; }
.lgi-gdm-id { font-size: var(--fs-meta); word-break: break-all; background: var(--ink-3); padding: 2px 6px; border-radius: 6px; }
.lgi-gdm-copy { min-height: 28px; padding: 3px 10px; font-size: var(--fs-meta); }
.lgi-gdm-bar { display: inline-block; width: 70px; height: 8px; border-radius: 4px; background: var(--ink-3); overflow: hidden; vertical-align: middle; }
.lgi-gdm-bar i { display: block; height: 100%; background: var(--lime); width: 0; }
.lgi-gdm-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lgi-gdm-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lgi-gdm-head h2 { margin: 0; }
.lgi-gdm-head p { margin: 2px 0 0; }
.lgi-gdm-icon { width: 56px; height: 56px; border-radius: 14px; }
.lgi-gdm-progress { margin-left: auto; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: var(--fs-meta); color: var(--muted); }
.lgi-gdm-progress .lgi-gdm-bar { width: 160px; }
.lgi-gdm-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.lgi-gdm-steps { position: sticky; top: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.lgi-gdm-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lgi-gdm-steps a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.lgi-gdm-steps a b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-cap); background: var(--ink-3); color: var(--muted); }
.lgi-gdm-steps a:hover { background: var(--hover-bg); }
.lgi-gdm-steps a.is-on { background: rgba(192, 237, 20, .1); color: var(--text); font-weight: 600; }
.lgi-gdm-steps a.is-on b { background: var(--lime); color: var(--on-accent); }
.lgi-gdm-histlink { display: block; margin-top: 8px; padding: 8px 10px; border-top: 1px solid var(--line); color: var(--lav-text); font-size: var(--fs-sm); text-decoration: none; }
.lgi-gdm-histlink.is-on { font-weight: 600; }
.lgi-gdm-body { margin: 0; min-width: 0; }
.lgi-gdm-body > h2 { margin-top: 0; }
.lgi-gdm-pfs { display: flex; gap: 6px; float: right; }
.lgi-gdm-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.lgi-gdm-fs[disabled] input, .lgi-gdm-fs[disabled] select, .lgi-gdm-fs[disabled] textarea { opacity: .8; }
.lgi-gdm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.lgi-gdm-guide { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.lgi-gdm-units input[type="text"], .lgi-gdm-units select { width: 100%; min-width: 120px; }
.lgi-gdm-units .lgi-gdm-qty { width: 70px; }
.lgi-gdm-units td { vertical-align: top; }
.lgi-gdm-tpl { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.lgi-gdm-checks { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 4px; font-size: var(--fs-sm); }
.lgi-gdm-checks .is-ok { color: var(--t-good); }
.lgi-gdm-checks .is-todo { color: var(--muted); }
.lgi-gdm-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0 0 8px; font-size: var(--fs-sm); }
.lgi-gdm-dl dt { color: var(--muted); }
.lgi-gdm-dl dd { margin: 0; }
.lgi-gdm-dl-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.lgi-gdm-pkg { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lgi-gdm-tplcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.lgi-gdm-tplcard > summary { cursor: pointer; }
.lgi-gdm-new { border-color: var(--lime-edge); }
@media (max-width: 900px) {
	.lgi-gdm-layout { grid-template-columns: 1fr; }
	.lgi-gdm-steps { position: static; }
	.lgi-gdm-steps ol { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.lgi-gdm-pfs { float: none; margin-bottom: 10px; }
	.lgi-gdm-progress { margin-left: 0; align-items: flex-start; }
}
.lgi-gdm-bar .lgi-w5 { width: 5%; }
.lgi-gdm-bar .lgi-w10 { width: 10%; }
.lgi-gdm-bar .lgi-w15 { width: 15%; }
.lgi-gdm-bar .lgi-w20 { width: 20%; }
.lgi-gdm-bar .lgi-w25 { width: 25%; }
.lgi-gdm-bar .lgi-w30 { width: 30%; }
.lgi-gdm-bar .lgi-w35 { width: 35%; }
.lgi-gdm-bar .lgi-w40 { width: 40%; }
.lgi-gdm-bar .lgi-w45 { width: 45%; }
.lgi-gdm-bar .lgi-w50 { width: 50%; }
.lgi-gdm-bar .lgi-w55 { width: 55%; }
.lgi-gdm-bar .lgi-w60 { width: 60%; }
.lgi-gdm-bar .lgi-w65 { width: 65%; }
.lgi-gdm-bar .lgi-w70 { width: 70%; }
.lgi-gdm-bar .lgi-w75 { width: 75%; }
.lgi-gdm-bar .lgi-w80 { width: 80%; }
.lgi-gdm-bar .lgi-w85 { width: 85%; }
.lgi-gdm-bar .lgi-w90 { width: 90%; }
.lgi-gdm-bar .lgi-w95 { width: 95%; }
.lgi-gdm-bar .lgi-w100 { width: 100%; }
.lgi-gdm-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lgi-gdm-table .lgi-gdm-id { word-break: normal; white-space: nowrap; }
.lgi-gdm-table { min-width: 1100px; }
.lgi-gdm-units select, .lgi-gdm-filters select { min-height: 38px; padding: 6px 10px; background-color: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: var(--fs-sm); color-scheme: var(--scheme); }
.lgi-pill--bad { background: rgba(255, 122, 122, .14); color: var(--t-bad); }
.lgi-gdm-auto { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.lgi-gdm-auto h3 { margin: 0; }
.lgi-gdm-jobs td { vertical-align: top; }
.lgi-gdm-auto .lgi-gdm-actions form { margin: 0; }

.lgi-gdm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.lgi-gdm-tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.lgi-gdm-tabs a.is-on { color: var(--text); border-bottom-color: var(--lime); }
.lgi-gdm-pfpick { border: 0; padding: 0; margin: 14px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.lgi-gdm-pfpick legend { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; padding: 0; }
.lgi-form .lgi-gdm-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--ink); color: var(--text); }
.lgi-gdm-chip:has(input:checked) { border-color: var(--lime-edge); background: rgba(192, 237, 20, .08); }
.lgi-gdm-steps a.is-done b { background: rgba(125, 220, 138, .18); color: var(--t-good); }
.lgi-gdm-run { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.lgi-gdm-result { margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: var(--ink-3); font-size: var(--fs-sm); }
.lgi-gdm-result.is-ok { background: rgba(125, 220, 138, .1); }
.lgi-gdm-result.is-bad { background: rgba(255, 122, 122, .1); }
.lgi-gdm-result.is-warn { background: rgba(242, 193, 78, .1); }
.lgi-gdm-manual { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.lgi-gdm-manual > summary { cursor: pointer; color: var(--lav-text); font-size: var(--fs-sm); }
.lgi-gdm-pager { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px -24px -24px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--ink-2); border-radius: 0 0 var(--radius) var(--radius); }
.lgi-gdm-pager__pos { color: var(--muted); font-size: var(--fs-sm); }
.lgi-gdm-next { border-color: var(--lime-edge); }
.lgi-gdm-actions { align-items: center; }
.lgi-gdm-dirty { color: var(--muted); font-size: var(--fs-sm); }
.lgi-gdm-dirty::before { content: "\25CF\00a0"; color: var(--lime); }
@media (max-width: 640px) { .lgi-gdm-pager__pos { display: none; } .lgi-gdm-pager .lgi-btn { flex: 1; justify-content: center; text-align: center; } }
.lgi-gdm-static { margin: 6px 0 0; }
.lgi-gdm-medacc { margin: 8px 0 4px; }
.lgi-gdm-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.lgi-gdm-summary .lgi-card { margin: 0; }
.lgi-gdm-sheet { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.lgi-gdm-sheet .lgi-card__head { margin-bottom: 8px; }
.lgi-gdm-sheet .lgi-card__head span { display: flex; gap: 8px; flex-wrap: wrap; }
.lgi-gdm-sheet__t { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.lgi-gdm-sheet__t th, .lgi-gdm-sheet__t td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: middle; }
.lgi-gdm-sheet__t th[scope="row"] { width: 34%; font-weight: 500; color: var(--text-2); }
.lgi-gdm-sheet__t tr.is-group th { background: rgba(192, 237, 20, .12); color: var(--text); font-weight: 700; }
.lgi-gdm-sheet__t tr.is-head th, .lgi-gdm-sheet__t tr.is-head td { background: rgba(154, 139, 244, .14); font-weight: 700; }
.lgi-gdm-sheet__t .lgi-gdm-id { word-break: break-all; }
.lgi-gdm-units tr[hidden] { display: none !important; }
.lgi-gdm-new select, .lgi-gdm-body .lgi-form select { width: 100%; min-height: 44px; padding: 8px 12px; background-color: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: var(--fs-body); color-scheme: var(--scheme); }
.lgi-gdm-body .lgi-gdm-units select { min-height: 38px; font-size: var(--fs-sm); }

.lgi-bq-alert > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lgi-bq-link { margin-top: 6px; }
.lgi-bq-how { display: block; margin-top: 4px; max-width: 360px; }
.lgi-bq-check { margin-top: 10px; }

.lgi-gdm-found{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px}

.lgi-gdm-store { margin: 18px 0 4px; }
.lgi-gdm-store select { max-width: 480px; }
.lgi-gdm-store small { display: block; margin-top: 6px; }
.lgi-combo { position: relative; }
.lgi-combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 264px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--ink-3); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.lgi-combo__list [role=option] { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: var(--fs-sm); }
.lgi-combo__list [role=option] small { color: var(--muted); font-size: var(--fs-meta); white-space: nowrap; }
.lgi-combo__list [role=option]:hover, .lgi-combo__list [role=option].is-active { background: var(--hover-bg); }
.lgi-combo__none { padding: 9px 10px; color: var(--muted); font-size: var(--fs-sm); }
.lgi-combo__list [hidden], .lgi-combo__list[hidden] { display: none; }

/* Game Development: list page */
.lgi-gdm-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.lgi-gdm-ov { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.lgi-gdm-ov span { color: var(--muted); font-size: var(--fs-sm); }
.lgi-gdm-ov strong { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lgi-gdm-ov:hover { border-color: var(--lav-edge); }
.lgi-gdm-ov:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lgi-gdm-ov.is-on { border-color: var(--lime-edge); background: var(--hover-bg); }
.lgi-gdm-ov.is-on span { color: var(--text); }
.lgi-gdm-ov__bar { display: block; height: 4px; border-radius: 2px; background: var(--ink-3); overflow: hidden; margin-top: 2px; }
.lgi-gdm-ov__bar b { display: block; height: 100%; width: 0; background: var(--lav); }
.lgi-gdm-ov.is-on .lgi-gdm-ov__bar b { background: var(--lime); }
.lgi-gdm-search { position: relative; display: flex; gap: 8px; flex: 1 1 100%; align-items: center; }
.lgi-gdm-search .lgi-ico { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.lgi-gdm-filters .lgi-gdm-search input[type="search"] { padding-left: 36px; flex: 1; }
.lgi-gdm-filters .lgi-field { flex: 1 1 160px; min-width: 0; }
.lgi-gdm-filters .lgi-field select { width: 100%; }
.lgi-gdm-count { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.lgi-gdm-table tbody tr { transition: background-color .12s ease; }
.lgi-gdm-table tbody tr:hover { background: var(--hover-bg); }
.lgi-gdm-game { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 230px; }
.lgi-gdm-game img, .lgi-gdm-game__ph { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.lgi-gdm-game__ph { display: grid; place-items: center; background: var(--lav); color: var(--on-accent); font-size: var(--fs-sm); font-weight: 700; } /* same initials tile as the Apps page */
.lgi-gdm-game > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lgi-gdm-game strong { color: var(--lav-text); font-weight: 600; line-height: 1.3; }
.lgi-gdm-game:hover strong { text-decoration: underline; }
.lgi-gdm-game code { font-size: var(--fs-meta); color: var(--muted); background: none; border: 0; padding: 0; overflow-wrap: anywhere; }
.lgi-gdm-store { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgi-gdm-store .lgi-ico { width: 14px; height: 14px; }
.lgi-gdm-st { white-space: nowrap; }
.lgi-gdm-st--published { background: rgba(192, 237, 20, .14); color: var(--lime-text); }
.lgi-gdm-st--ready { background: rgba(154, 139, 244, .16); color: var(--lav-text); }
.lgi-gdm-st--testing { background: rgba(242, 193, 78, .16); color: var(--warn); }
.lgi-gdm-setup { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lgi-gdm-setup small { color: var(--muted); font-variant-numeric: tabular-nums; }
.lgi-gdm-setup.is-done small { color: var(--lime-text); }
.lgi-gdm-acts { display: flex; gap: 4px; justify-content: flex-end; }
.lgi-gdm-empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.lgi-gdm-ov__bar .lgi-w5 { width: 5%; }
.lgi-gdm-ov__bar .lgi-w10 { width: 10%; }
.lgi-gdm-ov__bar .lgi-w15 { width: 15%; }
.lgi-gdm-ov__bar .lgi-w20 { width: 20%; }
.lgi-gdm-ov__bar .lgi-w25 { width: 25%; }
.lgi-gdm-ov__bar .lgi-w30 { width: 30%; }
.lgi-gdm-ov__bar .lgi-w35 { width: 35%; }
.lgi-gdm-ov__bar .lgi-w40 { width: 40%; }
.lgi-gdm-ov__bar .lgi-w45 { width: 45%; }
.lgi-gdm-ov__bar .lgi-w50 { width: 50%; }
.lgi-gdm-ov__bar .lgi-w55 { width: 55%; }
.lgi-gdm-ov__bar .lgi-w60 { width: 60%; }
.lgi-gdm-ov__bar .lgi-w65 { width: 65%; }
.lgi-gdm-ov__bar .lgi-w70 { width: 70%; }
.lgi-gdm-ov__bar .lgi-w75 { width: 75%; }
.lgi-gdm-ov__bar .lgi-w80 { width: 80%; }
.lgi-gdm-ov__bar .lgi-w85 { width: 85%; }
.lgi-gdm-ov__bar .lgi-w90 { width: 90%; }
.lgi-gdm-ov__bar .lgi-w95 { width: 95%; }
.lgi-gdm-ov__bar .lgi-w100 { width: 100%; }
.lgi-gdm-table th { white-space: nowrap; }
.lgi-gdm-table th, .lgi-gdm-table td { padding-left: 8px; padding-right: 8px; }
.lgi-gdm-game__sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lgi-gdm-game__sub--alone { padding-left: 52px; }
.lgi-gdm-game__sub .lgi-pill { padding: 1px 7px; font-size: var(--fs-cap); }
.lgi-gdm-acts { gap: 2px; }
.lgi-gdm-acts .lgi-iconbtn { width: 34px; height: 34px; padding: 0; justify-content: center; }
.lgi-gdm-table .lgi-gdm-bar { width: 56px; }
.lgi-table.lgi-gdm-table { min-width: 960px; }

/* A part of a card (e.g. SolarEngine: Install feed / Account keys) */
.lgi-subcard { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.lgi-card > .lgi-card__head + .lgi-subcard { margin-top: 4px; border-top: 0; padding-top: 0; }
.lgi-subcard h3 { margin: 0; font-size: var(--fs-body); }

.lgi-gdm-refresh { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); }
.lgi-gdm-refresh .lgi-ico { width: 14px; height: 14px; }
.lgi-combo__list [role=option] small { overflow: hidden; text-overflow: ellipsis; max-width: 50%; }

/* Progress: spinners for running automation */
.lgi-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lgi-spin .8s linear infinite; vertical-align: -2px; }
.lgi-spinner--lg { width: 22px; height: 22px; border-width: 3px; color: var(--lime); flex: none; }
.lgi-gdm-working { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--lime-edge); border-radius: 10px; background: rgba(192, 237, 20, .06); }
.lgi-gdm-working small { display: block; color: var(--muted); font-size: var(--fs-meta); margin-top: 2px; }
.lgi-gdm-result.is-run { background: rgba(154, 139, 244, .1); }
.lgi-gdm-result .lgi-spinner { margin-right: 8px; color: var(--lav); }
.lgi-gdm-steps a.is-running b { background: transparent; color: var(--lime); }
.lgi-btn.is-busy { opacity: .75; cursor: progress; }
.lgi-btn.is-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lgi-spin .8s linear infinite; vertical-align: -2px; }
@media (prefers-reduced-motion: reduce) { .lgi-spinner, .lgi-btn.is-busy::before { animation-duration: 2.4s; } }

/* Platform area (0.77) */
.lgi-plat-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.lgi-plat-more { position: relative; }
.lgi-plat-more > summary { list-style: none; cursor: pointer; }
.lgi-plat-more > summary::-webkit-details-marker { display: none; }
.lgi-plat-more[open] > .lgi-form { margin-top: 8px; padding: 12px; min-width: 240px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; }
.lgi-plat-grant { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 420px; }
.lgi-plat-grant h3 { margin: 0 0 6px; font-size: var(--fs-h3); }
.lgi-plat-codeform { max-width: 320px; }
.lgi-plat-send { margin-top: 12px; }
.lgi-support-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 5; }
.lgi-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* spam trap: off-screen, never filled by people */
.lgi-orgchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-meta); color: var(--text-2); max-width: 200px; }
.lgi-orgchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgi-orgchip img { border-radius: 5px; object-fit: cover; }
.lgi-orgset { margin-bottom: 16px; }
.lgi-orgset > summary { list-style: none; cursor: pointer; }
.lgi-orgset > summary::-webkit-details-marker { display: none; }
.lgi-orgset__sum { display: inline-flex; align-items: center; gap: 10px; }
.lgi-orgset__sum img { border-radius: 7px; object-fit: cover; }
.lgi-orgset__form { max-width: 420px; margin-top: 12px; }
@media (max-width: 900px) { .lgi-orgchip { display: none; } }
.lgi-gconn__steps { margin: 8px 0 14px; padding-left: 20px; color: var(--text-2); }
.lgi-gconn__steps li { margin-bottom: 6px; }
.lgi-gconn__form { max-width: 420px; margin-bottom: 10px; }
.lgi-gconn__result { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 6px; }
.lgi-gconn__result li { display: flex; gap: 8px; align-items: flex-start; }
.lgi-gconn__result li.is-ok .lgi-ico { color: var(--t-good); }
.lgi-gconn__result li.is-bad .lgi-ico { color: var(--t-bad); }

/* UA: apps and campaigns table — grouped headers, readable names, quiet empty cells */
.lgi-pv__about { margin: 0 0 4px; }
.lgi-pv__about > summary { cursor: pointer; list-style: none; font-size: var(--fs-meta); color: var(--muted); }
.lgi-pv__about > summary::-webkit-details-marker { display: none; }
.lgi-pv__about[open] > summary .lgi-link { display: none; }
.lgi-pv__about > p { margin: 6px 0 0; max-width: 90ch; }
.lgi-pv__table { min-width: 980px; margin-top: 8px; }
.lgi-pv__table td, .lgi-pv__table th { padding: 10px 8px; }
.lgi-pv__table .lgi-num { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.lgi-pv__table thead th { white-space: nowrap; vertical-align: bottom; }
.lgi-pv__table thead abbr { text-decoration: none; }
.lgi-pv__groups > * { padding-top: 0; padding-bottom: 6px; border-bottom: 0; font-size: 11px; color: var(--muted-2); text-align: left; }
.lgi-pv__gs { border-left: 1px solid var(--line); }
.lgi-pv__table th[scope="row"], .lgi-pv__first { min-width: 230px; max-width: 320px; }
.lgi-pv__table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--ink-2); }
.lgi-pv__first { position: sticky; left: 0; z-index: 2; background: var(--ink-2); }
.lgi-pv__game .lgi-gamecell a { font-weight: 500; }
.lgi-pv__na { color: var(--muted-2); opacity: .55; }
@media (max-width: 760px) {
	.lgi-pv__table th[scope="row"], .lgi-pv__first { min-width: 170px; max-width: 200px; }
	.lgi-pv__camp > th { padding-left: 10px; }
}
.lgi-pv__grp.is-open .lgi-pv__game > th[scope="row"], .lgi-pv__game:hover > th[scope="row"] { background: linear-gradient(var(--wash), var(--wash)), var(--ink-2); }
.lgi-pv__game:hover > th[scope="row"] { background: linear-gradient(var(--hover-bg), var(--hover-bg)), var(--ink-2); }

/* Portfolio apps table: grouped headers, pinned app column, quiet empty cells */
.lgi-gt td, .lgi-gt th { padding: 10px 8px; }
.lgi-gt .lgi-num { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.lgi-gt thead th { white-space: nowrap; vertical-align: bottom; }
.lgi-gt .lgi-gt__first { position: sticky; left: 0; z-index: 1; background: var(--ink-2); min-width: 220px; max-width: 300px; }
.lgi-gt thead .lgi-gt__first { z-index: 2; }
.lgi-gt tbody tr:hover > .lgi-gt__first { background: linear-gradient(var(--hover-bg), var(--hover-bg)), var(--ink-2); }
@media (max-width: 760px) { .lgi-gt .lgi-gt__first { min-width: 160px; max-width: 190px; } }

/* UA → Delivery & budgets */
.lgi-uatabs { margin: 4px 0 14px; }
.lgi-fresh__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lgi-fresh__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lgi-dl { min-width: 1280px; }
.lgi-dl .lgi-gt__first { position: sticky; left: 0; z-index: 1; background: var(--ink-2); min-width: 200px; max-width: 260px; text-align: left; font-weight: 500; }
.lgi-dl__name { display: block; overflow-wrap: anywhere; }
.lgi-dl td, .lgi-dl th { vertical-align: top; }
.lgi-dl .lgi-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgi-dl__verdict { min-width: 260px; max-width: 340px; }
.lgi-dl__verdict small { display: block; margin-top: 4px; color: var(--text-2); line-height: 1.4; }
.lgi-dl__use { display: inline-block; min-width: 52px; padding-bottom: 3px; background: linear-gradient(var(--lime), var(--lime)) left bottom / var(--use) 2px no-repeat, linear-gradient(var(--line), var(--line)) left bottom / 100% 2px no-repeat; }
.lgi-dl tbody th { text-transform: none; letter-spacing: normal; font-size: var(--fs-sm); color: var(--text); }
.lgi-dl tbody th small { display: block; margin-top: 2px; font-weight: 400; }
.lgi-dl tbody td:nth-child(2) { min-width: 140px; }

/* UA V4 tabs, forecasts, Action Center, Profit Lab */
.lgi-uatabs { gap: 2px; }
.lgi-uatabs .lgi-tab { padding: 8px 12px 7px; }
.lgi-uah { font-size: var(--fs-sm); color: var(--text-2); margin: 6px 0 10px; font-weight: 600; }
.lgi-kpis--sub { margin-top: 12px; }
.lgi-kpis--sub .lgi-kpi strong { font-size: 20px; }
.lgi-kpi--fc { border-style: dashed; }
.lgi-pos { color: var(--t-good, #7ed957); }
.lgi-neg { color: var(--t-bad); }
.lgi-uanote { margin: 12px 0; }
.lgi-uat { min-width: 760px; }
.lgi-uat td, .lgi-uat th { vertical-align: top; }
.lgi-uat .lgi-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgi-uat tbody th { text-transform: none; letter-spacing: normal; font-size: var(--fs-sm); color: var(--text); font-weight: 500; }
.lgi-uat tbody th small { display: block; margin-top: 2px; font-weight: 400; }
.lgi-uat .lgi-gt__first { position: sticky; left: 0; z-index: 1; background: var(--ink-2); min-width: 170px; }
.lgi-uat td small { display: block; }
.lgi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lgi-recs { display: grid; gap: 12px; }
.lgi-rec { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--ink); }
.lgi-rec h3 { margin: 0 0 2px; font-size: var(--fs-md, 16px); }
.lgi-rec p { margin: 8px 0; line-height: 1.5; }
.lgi-rec__impact { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0; }
.lgi-rec__impact div { min-width: 110px; }
.lgi-rec__impact dt { font-size: var(--fs-meta); color: var(--muted); }
.lgi-rec__impact dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.lgi-rec__prop { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 8px; background: var(--wash); font-variant-numeric: tabular-nums; }
.lgi-rec form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.lgi-rec form input[type="text"] { flex: 1 1 220px; min-height: 38px; }
.lgi-rec__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lgi-rec__notes { white-space: normal; }
.lgi-factors { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.lgi-mixbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 6px 0 12px; gap: 2px; }
.lgi-mixbar span { background: var(--c); min-width: 2px; }
.lgi-matrix td { min-width: 130px; }
.lgi-band { fill: var(--series-1); opacity: .12; }
.lgi-line--dash { stroke-dasharray: 6 5; }
.lgi-key--dash { background: none !important; border-top: 2px dashed var(--c); height: 0 !important; }
.lgi-lab { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr); gap: 20px; align-items: start; }
.lgi-lab__in { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.lgi-lab input.is-changed { border-color: var(--warn); }
.lgi-uaform__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.lgi-uaform input[type="number"], .lgi-uaform input[type="date"], .lgi-uaform input[type="month"] { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; }
.lgi-plan__month { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
@media (max-width: 860px) { .lgi-lab { grid-template-columns: 1fr; } .lgi-lab__in { grid-template-columns: 1fr; } }

/* UA V4 phase 5 */
.lgi-sum__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; }
.lgi-sum__grid h3 { font-size: var(--fs-sm); margin: 12px 0 2px; color: var(--text-2); }
.lgi-journal { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lgi-journal__item { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; }
.lgi-journal__item--change { border-left-color: var(--series-1); }
.lgi-journal__item--decision { border-left-color: var(--lime); }
.lgi-journal__item--scenario { border-left-color: var(--series-4); }
.lgi-journal__item p { margin: 2px 0; }
.lgi-uaform textarea { width: 100%; padding: 10px 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.lgi-ask h3 { margin: 4px 0 8px; }

/* UA Performance UX pass: grouped navigation, table tool, compact cards, phones */
.lgi-uanav { margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.lgi-uanav__groups, .lgi-uanav__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lgi-uanav__groups::-webkit-scrollbar, .lgi-uanav__tabs::-webkit-scrollbar { display: none; }
.lgi-uanav__group { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); border: 1px solid transparent; }
.lgi-uanav__group:hover { color: var(--text); background: var(--wash); }
.lgi-uanav__group.is-on { color: var(--ink); background: var(--lime); }
.lgi-uanav__set { margin-left: auto; font-weight: 500; color: var(--muted); }
.lgi-uanav__set.is-on { color: var(--ink); }
.lgi-uanav__tabs { margin-top: 10px; }
.lgi-uanav__tab { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1px; padding: 8px 14px 9px; color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lgi-uanav__tab span { font-weight: 600; font-size: var(--fs-sm); }
.lgi-uanav__tab small { font-size: var(--fs-meta); color: var(--muted); white-space: nowrap; }
.lgi-uanav__tab:hover { color: var(--text); }
.lgi-uanav__tab.is-on { color: var(--lime-text); border-bottom-color: var(--lime); }
.lgi-uanav a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lgi-uascope { margin: 8px 0 14px; }
.lgi-tt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 10px; }
.lgi-tt__q { flex: 0 1 260px; min-height: 38px; padding: 8px 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.lgi-tt__q:focus { border-color: var(--lime-edge); outline: none; box-shadow: 0 0 0 3px rgba(192, 237, 20, .18); }
.lgi-tt__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lgi-tt__chips .lgi-chip { background: transparent; font: inherit; font-size: var(--fs-meta); cursor: pointer; }
.lgi-tt__n { margin-left: auto; }
.lgi-tt__more { margin: 10px 0 0; }
.lgi-tt__more[hidden] { display: none; }
th.lgi-tt__sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.lgi-tt__sort:hover { color: var(--text); }
th.lgi-tt__sort[aria-sort="ascending"]::after { content: " ↑"; color: var(--lime-text); }
th.lgi-tt__sort[aria-sort="descending"]::after { content: " ↓"; color: var(--lime-text); }
.lgi-dl__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lgi-sum > summary, .lgi-fresh > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lgi-sum > summary > span:first-child, .lgi-fresh > summary > span:first-child { font-weight: 600; margin-right: 4px; }
.lgi-sum__more { margin-left: auto; }
.lgi-sum[open] .lgi-sum__more, .lgi-fresh[open] .lgi-sum__more { display: none; }
.lgi-fresh { padding-top: 12px; padding-bottom: 12px; }
.lgi-dl td, .lgi-uat td { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 760px) {
	.lgi-uanav__set { margin-left: 0; }
	.lgi-uanav__tab small { display: none; }
	.lgi-tt__q { flex: 1 1 100%; }
	.lgi-tt__n { margin-left: 0; }
	.lgi-kpis--sub { grid-template-columns: 1fr 1fr; }
	.lgi-rec__impact div { min-width: 42%; }
	.lgi-rec form { flex-direction: column; align-items: stretch; }
}
.lgi-mfilters__btn { display: none; }
@media (max-width: 760px) {
	.lgi-mfilters__btn { display: inline-flex; margin: 0 0 10px; }
	.lgi-uafilters.is-folded { display: none; }
}
.lgi-uanote { margin: 12px 0; }
.lgi-uanote > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.lgi-uanote p { margin: 6px 0 0; }

/* UA: bigger navigation, app cells */
.lgi-uanav__group { padding: 9px 18px; font-size: 15px; }
.lgi-uanav__tab { padding: 10px 16px 11px; }
.lgi-uanav__tab span { font-size: 15px; }
.lgi-uanav__tab small { font-size: 12.5px; }
.lgi-gamecell__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; text-align: left; }
.lgi-gamecell__txt > small { font-weight: 400; overflow-wrap: anywhere; }
.lgi-uat th .lgi-gamecell, .lgi-dl th .lgi-gamecell { margin-top: 6px; }
.lgi-uat th .lgi-dl__name + .lgi-gamecell .lgi-mini, .lgi-dl td .lgi-gamecell .lgi-mini { width: 24px; height: 24px; }
.lgi-rec__app { margin: 6px 0 0; }
.lgi-uah2 { margin: 0; font-size: inherit; }
.lgi-uah2 .lgi-gamecell__txt > span { font-size: var(--fs-md, 16px); font-weight: 600; }
.lgi-be__link { text-decoration: none; color: inherit; }
.lgi-be__link:hover .lgi-gamecell__txt > span { text-decoration: underline; }
@media (max-width: 760px) { .lgi-uanav__group { padding: 8px 14px; font-size: 14px; } }
.lgi-uat .lgi-gt__first, .lgi-dl .lgi-gt__first { min-width: 240px; }
.lgi-gamecell__txt > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.lgi-gamecell__txt > span:first-child small { white-space: nowrap; }
.lgi-uat .lgi-gamecell__txt > span:first-child small, .lgi-dl .lgi-gamecell__txt > span:first-child small { display: inline; margin: 0; }

/* Performance table: SolarEngine revenue / ROAS and the organic row */
.lgi-pv__se::after { content: " ●"; font-size: 8px; vertical-align: middle; color: var(--lav, #9a8bf4); }
.lgi-pv__org th, .lgi-pv__org td { background: var(--wash); }
.lgi-pv__orgkey { background: var(--muted) !important; }
