/*
 * Links Pro Tools 2.0 — dashboard design layer.
 * Loaded last on every /dashboard/ page (customer, staff, merchant, log-in). It re-skins the
 * older stylesheets through design tokens and adds the lp-* components used by the new
 * customer pages. Light and dark themes: html[data-theme="dark"] (set by lp-ui.js).
 */

/* ───────────────────────── tokens ───────────────────────── */
:root {
	--lp-bg: #f3f5fb;
	--lp-surface: #ffffff;
	--lp-surface-2: #f7f9fd;
	--lp-ink: #0b1220;
	--lp-ink-2: #2b3547;
	--lp-muted: #5d6a80;
	--lp-faint: #94a0b6;
	--lp-line: #e4e9f3;
	--lp-line-2: #eef2f9;
	--lp-primary: #4f46e5;
	--lp-primary-2: #6d5dfc;
	--lp-primary-soft: #eceafe;
	--lp-primary-ink: #ffffff;
	--lp-high: #0f9f6e;  --lp-high-soft: #dcf6ea;  --lp-high-ink: #08704c;
	--lp-mid: #e08a00;   --lp-mid-soft: #fff0d3;   --lp-mid-ink: #915b00;
	--lp-low: #e5484d;   --lp-low-soft: #ffe3e4;   --lp-low-ink: #a8262b;
	--lp-da: #6d5dfc;
	--lp-dr: #f97316;
	--lp-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
	--lp-shadow-lg: 0 20px 50px -20px rgba(16, 24, 40, 0.28);
	--lp-radius: 16px;
	--lp-radius-sm: 10px;
	--lp-side-bg: linear-gradient(180deg, #111736 0%, #0b1024 100%);
	--lp-tabbar-h: 66px;
	--sto-side-w: 264px;
	--lp-ease: cubic-bezier(0.22, 1, 0.36, 1);

	/* older stylesheets read these */
	--sto-bg: var(--lp-bg);
	--sto-surface: var(--lp-surface);
	--sto-ink: var(--lp-ink);
	--sto-ink-2: var(--lp-ink-2);
	--sto-muted: var(--lp-muted);
	--sto-faint: var(--lp-faint);
	--sto-line: var(--lp-line);
	--sto-line-soft: var(--lp-line-2);
	--sto-blue: var(--lp-primary);
	--sto-blue-d: #4338ca;
	--sto-blue-soft: var(--lp-primary-soft);
	--sto-green: var(--lp-high);
	--sto-red: var(--lp-low);
	--sto-radius: 14px;
}

html[data-theme="dark"] {
	color-scheme: dark;
	--lp-bg: #0a0f1e;
	--lp-surface: #121a2f;
	--lp-surface-2: #17213b;
	--lp-ink: #e9edf8;
	--lp-ink-2: #c5cde0;
	--lp-muted: #92a0bd;
	--lp-faint: #66738f;
	--lp-line: #232f4d;
	--lp-line-2: #1b2640;
	--lp-primary: #7b72ff;
	--lp-primary-2: #9b8cff;
	--lp-primary-soft: #231f55;
	--lp-primary-ink: #0a0f1e;
	--lp-high: #2fd39a;  --lp-high-soft: #0f3a2d;  --lp-high-ink: #5ee6b6;
	--lp-mid: #ffb43a;   --lp-mid-soft: #3d2c0a;   --lp-mid-ink: #ffcb73;
	--lp-low: #ff6b72;   --lp-low-soft: #43161a;   --lp-low-ink: #ff9ca1;
	--lp-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
	--lp-shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
	--lp-side-bg: linear-gradient(180deg, #0e1430 0%, #070b19 100%);
	--sto-blue-d: #9b8cff;
}

/* ───────────────────────── base ───────────────────────── */
html { scroll-behavior: smooth; }
body.sto-body {
	background: var(--lp-bg);
	color: var(--lp-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.25s ease, color 0.25s ease;
}
body.sto-body a { color: inherit; }
body.sto-body :focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 2px; border-radius: 6px; }
body.sto-body ::selection { background: var(--lp-primary); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	body.sto-body *, body.sto-body *::before, body.sto-body *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ───────────────────────── app shell ───────────────────────── */
body.sto-body .sto-app { background: var(--lp-bg); grid-template-columns: 264px minmax(0, 1fr); }
body.sto-body .sto-app__main { background: var(--lp-bg); }
body.sto-body .sto-app__content { max-width: 1280px; padding: 28px 32px 64px; animation: lp-rise 0.45s var(--lp-ease) both; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

body.sto-body .sto-side {
	background: var(--lp-side-bg);
	border: 0;
	color: #aeb8d6;
	box-shadow: 1px 0 0 rgba(255, 255, 255, 0.04);
}
body.sto-body .sto-side__brand { padding: 22px 20px 14px; border: 0; }
body.sto-body .sto-side__logo, body.sto-body .sto-side .sto-logo { color: #fff; }
body.sto-body .sto-nav { padding: 6px 14px 14px; }
body.sto-body .sto-nav__group { color: #6573a0; font-size: 11px; letter-spacing: 0.12em; font-weight: 700; margin: 18px 10px 8px; }
body.sto-body .sto-nav__link {
	color: #b8c2de; border-radius: 12px; padding: 11px 12px; gap: 12px; font-weight: 550; font-size: 14px;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
body.sto-body .sto-nav__link .sto-icon { color: #7d8bb5; transition: color 0.18s ease; }
body.sto-body .sto-nav__link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
body.sto-body .sto-nav__link:hover .sto-icon { color: #fff; }
body.sto-body .sto-nav__link.is-active {
	background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-2) 100%);
	color: #fff; box-shadow: 0 8px 20px -8px rgba(99, 87, 255, 0.7);
}
body.sto-body .sto-nav__link.is-active .sto-icon { color: #fff; }
body.sto-body .sto-side__account { border-top: 1px solid rgba(255, 255, 255, 0.07); background: transparent; }
body.sto-body .sto-side__profile { color: #fff; }
body.sto-body .sto-side__identity small { color: #7d8bb5; }
body.sto-body .sto-side__avatar { background: linear-gradient(135deg, var(--lp-primary), #22d3ee); color: #fff; }
body.sto-body .sto-side__logout { color: #7d8bb5; }
body.sto-body .sto-side__logout:hover { color: #fff; }

body.sto-body .sto-top {
	background: color-mix(in srgb, var(--lp-bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--lp-line);
	position: sticky; top: 0; z-index: 30; min-height: 68px; padding: 0 32px;
}
body.sto-body .sto-top__heading b { color: var(--lp-ink); font-size: 16px; font-weight: 700; }
body.sto-body .sto-top__heading small { color: var(--lp-muted); }
body.sto-body .sto-top__search {
	background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 999px;
}
body.sto-body .sto-top__search input { color: var(--lp-ink); background: transparent; }
body.sto-body .sto-top__search:focus-within { border-color: var(--lp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 18%, transparent); }
body.sto-body .sto-pill {
	background: var(--lp-surface); border: 1px solid var(--lp-line); color: var(--lp-ink-2); border-radius: 999px; padding: 7px 14px; font-weight: 600;
	transition: transform 0.18s ease, border-color 0.18s ease;
}
body.sto-body .sto-pill:hover { border-color: var(--lp-primary); transform: translateY(-1px); }
body.sto-body .sto-pill b { color: var(--lp-ink); }
body.sto-body .sto-pill--buy { background: var(--lp-primary-soft); border-color: transparent; color: var(--lp-primary); }
body.sto-body .sto-pill--buy b { color: var(--lp-primary); }
body.sto-body .sto-top-help { color: var(--lp-muted); }
body.sto-body .sto-user__btn { color: var(--lp-ink); }
body.sto-body .sto-user__av { background: linear-gradient(135deg, var(--lp-primary), #22d3ee); color: #fff; }
body.sto-body .sto-user__txt small { color: var(--lp-muted); }
body.sto-body .sto-user__menu { background: var(--lp-surface); border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow-lg); border-radius: 14px; }
body.sto-body .sto-user__menu a { color: var(--lp-ink-2); }
body.sto-body .sto-user__menu a:hover { background: var(--lp-surface-2); }
body.sto-body .sto-app-footer { color: var(--lp-muted); border-top: 1px solid var(--lp-line); background: transparent; }
body.sto-body .sto-app-footer a { color: var(--lp-muted); }

.lp-theme {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
	background: var(--lp-surface); color: var(--lp-ink-2); border: 1px solid var(--lp-line);
	transition: transform 0.25s var(--lp-ease), border-color 0.18s ease, color 0.18s ease;
}
.lp-theme:hover { border-color: var(--lp-primary); color: var(--lp-primary); transform: rotate(14deg); }
.lp-theme .lp-theme__sun { display: none; }
html[data-theme="dark"] .lp-theme .lp-theme__sun { display: block; }
html[data-theme="dark"] .lp-theme .lp-theme__moon { display: none; }

/* ───────────────────────── buttons, cards, fields ───────────────────────── */
.lp-btn, body.sto-body .zt-seo-btn, body.sto-body .sto-auth__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
	border: 0; border-radius: 12px; cursor: pointer; font: 650 14px/1 inherit; font-family: inherit; text-decoration: none; white-space: nowrap;
	background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-2) 100%); color: #fff !important;
	box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--lp-primary) 80%, transparent);
	transition: transform 0.18s var(--lp-ease), box-shadow 0.18s ease, filter 0.18s ease;
}
.lp-btn:hover, body.sto-body .zt-seo-btn:hover, body.sto-body .sto-auth__btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--lp-primary) 85%, transparent); }
.lp-btn:active, body.sto-body .zt-seo-btn:active { transform: translateY(0) scale(0.98); }
.lp-btn[disabled], body.sto-body .zt-seo-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.lp-btn .sto-icon { width: 18px; height: 18px; }
.lp-btn--ghost, body.sto-body .sto-btn {
	background: var(--lp-surface) !important; color: var(--lp-ink-2) !important; border: 1px solid var(--lp-line); box-shadow: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.lp-btn--ghost:hover, body.sto-body .sto-btn:hover { border-color: var(--lp-primary); color: var(--lp-primary) !important; box-shadow: none; }
.lp-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.lp-btn--lg { min-height: 52px; padding: 0 26px; font-size: 15px; border-radius: 14px; }

.lp-card, body.sto-body .zsw2-card, body.sto-body .zt-card {
	background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); color: var(--lp-ink);
}
.lp-iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--lp-line); background: var(--lp-surface); color: var(--lp-muted); cursor: pointer; transition: all 0.18s ease; }
.lp-iconbtn:hover { color: var(--lp-primary); border-color: var(--lp-primary); }
.lp-iconbtn.is-done { color: var(--lp-high); border-color: var(--lp-high); }

.lp-field, body.sto-body .zt-seo-field {
	display: flex; align-items: center; gap: 10px; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 14px; padding: 5px 5px 5px 14px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lp-field:focus-within, body.sto-body .zt-seo-field:focus-within { border-color: var(--lp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 18%, transparent); }
.lp-field > .sto-icon, body.sto-body .zt-seo-field > .sto-icon, body.sto-body .zt-seo-field__icon { color: var(--lp-faint); flex: 0 0 auto; width: 20px; height: 20px; }
.lp-field input, body.sto-body .zt-seo-field input {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--lp-ink); font: 500 16px/1.2 inherit; font-family: inherit; padding: 12px 4px; box-shadow: none;
}
.lp-field input::placeholder, body.sto-body .zt-seo-field input::placeholder { color: var(--lp-faint); }
.lp-field--lg input { font-size: 17px; padding: 14px 4px; }

body.sto-body .zt-input, body.sto-body .zt-field input, body.sto-body .zt-field select, body.sto-body .zt-field textarea,
body.sto-body input[type=text], body.sto-body input[type=email], body.sto-body input[type=password], body.sto-body input[type=search],
body.sto-body input[type=number], body.sto-body input[type=url], body.sto-body select, body.sto-body textarea {
	background: var(--lp-surface); color: var(--lp-ink); border-color: var(--lp-line); border-radius: 12px;
}
body.sto-body .zt-field > span, body.sto-body label { color: var(--lp-ink-2); }
body.sto-body .lp-field input, body.sto-body .zt-seo-field input { border: 0; background: transparent; }

/* ───────────────────────── page header ───────────────────────── */
.lp-page { display: grid; gap: 22px; }
.lp-pagehead, body.sto-body .zt-seo-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0; }
.lp-pagehead h1, body.sto-body .zt-seo-title { margin: 0; font: 800 clamp(24px, 3vw, 32px)/1.15 "Plus Jakarta Sans", Inter, system-ui, sans-serif; letter-spacing: -0.025em; color: var(--lp-ink); }
.lp-pagehead p, body.sto-body .zt-seo-lede { margin: 6px 0 0; color: var(--lp-muted); font-size: 15px; }
.lp-pagehead__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-wave { display: inline-block; transform-origin: 70% 70%; animation: lp-wave 2.2s ease 0.4s 1; }
@keyframes lp-wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(14deg); } 20%,40% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }

/* ───────────────────────── KPI cards ───────────────────────── */
.lp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-kpi {
	position: relative; display: grid; gap: 4px; padding: 20px; overflow: hidden; text-decoration: none; color: var(--lp-ink);
	background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow);
	transition: transform 0.25s var(--lp-ease), box-shadow 0.25s ease;
	animation: lp-rise 0.5s var(--lp-ease) both;
}
.lp-kpi:nth-child(2) { animation-delay: 0.05s; } .lp-kpi:nth-child(3) { animation-delay: 0.1s; } .lp-kpi:nth-child(4) { animation-delay: 0.15s; }
.lp-kpi:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-lg); }
.lp-kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--kc, var(--lp-primary)); opacity: 0.09; }
.lp-kpi--blue { --kc: #3b82f6; } .lp-kpi--violet { --kc: #7c5cff; } .lp-kpi--orange { --kc: #f97316; } .lp-kpi--amber { --kc: #f59e0b; }
.lp-kpi__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 8px; background: color-mix(in srgb, var(--kc) 16%, transparent); color: var(--kc); }
.lp-kpi__k { font-size: 13px; font-weight: 600; color: var(--lp-muted); }
.lp-kpi__v { font: 800 34px/1.1 "Plus Jakarta Sans", Inter, system-ui, sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lp-kpi__s { font-size: 12.5px; color: var(--lp-faint); }
.lp-kpi .lp-bar { margin: 6px 0 2px; }

/* ───────────────────────── quick check ───────────────────────── */
.lp-quick { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 18px 26px; align-items: center; padding: 24px; background-image: radial-gradient(600px 160px at 100% 0, color-mix(in srgb, var(--lp-primary) 12%, transparent), transparent); }
.lp-quick h2 { margin: 0; font: 750 20px/1.2 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.02em; }
.lp-quick p { margin: 6px 0 0; color: var(--lp-muted); font-size: 13.5px; }
.lp-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-color: color-mix(in srgb, var(--lp-mid) 45%, var(--lp-line)); background: var(--lp-mid-soft); }
.lp-callout b { color: var(--lp-mid-ink); } .lp-callout p { margin: 2px 0 0; color: var(--lp-mid-ink); opacity: 0.85; font-size: 13.5px; }

/* ───────────────────────── panels / charts ───────────────────────── */
.lp-grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.lp-panel { padding: 22px; }
.lp-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lp-panel__head h2 { margin: 0; font: 700 17px/1.25 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.01em; }
.lp-panel__head p { margin: 3px 0 0; font-size: 13px; color: var(--lp-muted); }
.lp-chart { position: relative; height: 260px; }
.lp-chart--donut { height: 190px; width: 190px; flex: 0 0 auto; }
.lp-legend { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--lp-muted); }
.lp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-faint); margin: 0 2px 0 8px; }
.lp-dot--da { background: var(--lp-da); } .lp-dot--dr { background: var(--lp-dr); }
.lp-dot--high { background: var(--lp-high); } .lp-dot--mid { background: var(--lp-mid); } .lp-dot--low { background: var(--lp-low); }
.lp-donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.lp-donut__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; flex: 1; min-width: 150px; }
.lp-donut__legend li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--lp-ink-2); }
.lp-donut__legend .lp-dot { margin: 0; } .lp-donut__legend span { flex: 1; } .lp-donut__legend b { font-variant-numeric: tabular-nums; }

/* ───────────────────────── badges, bars, rings ───────────────────────── */
.lp-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 28px; padding: 0 10px; border-radius: 999px; font: 750 13px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; background: var(--lp-surface-2); color: var(--lp-muted); }
.lp-badge--high { background: var(--lp-high-soft); color: var(--lp-high-ink); }
.lp-badge--mid { background: var(--lp-mid-soft); color: var(--lp-mid-ink); }
.lp-badge--low { background: var(--lp-low-soft); color: var(--lp-low-ink); }
.lp-na { color: var(--lp-faint); }
.lp-score { display: inline-flex; align-items: center; gap: 10px; min-width: 130px; }
.lp-bar { display: block; height: 7px; border-radius: 999px; background: var(--lp-line-2); overflow: hidden; flex: 1; min-width: 56px; }
.lp-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--lp-primary), var(--lp-primary-2)); transform-origin: left; animation: lp-grow 0.9s var(--lp-ease) both; }
.lp-score--high .lp-bar i, .lp-scorecard--high .lp-bar i { background: linear-gradient(90deg, #12b981, #34d399); }
.lp-score--mid .lp-bar i, .lp-scorecard--mid .lp-bar i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.lp-score--low .lp-bar i, .lp-scorecard--low .lp-bar i { background: linear-gradient(90deg, #ef4444, #fb7185); }
.lp-kpi--violet .lp-bar i { background: linear-gradient(90deg, #7c5cff, #a78bfa); }
.lp-kpi--orange .lp-bar i { background: linear-gradient(90deg, #f97316, #fbbf24); }
.lp-bar--lg { height: 9px; }
@keyframes lp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.lp-ring { --rc: var(--lp-primary); position: relative; display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; flex: 0 0 auto;
	background: conic-gradient(var(--rc) calc(var(--p, 0) * 1%), var(--lp-line-2) 0); animation: lp-ring 1.1s var(--lp-ease) both; }
.lp-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--lp-surface); }
.lp-ring b { position: relative; font: 800 38px/1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lp-ring--high { --rc: var(--lp-high); } .lp-ring--mid { --rc: var(--lp-mid); } .lp-ring--low { --rc: var(--lp-low); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes lp-ring { from { --p: 0; } }

.lp-fav { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; font: 750 14px/1 Inter, sans-serif; color: var(--lp-primary); background: var(--lp-primary-soft); }
.lp-fav--lg { width: 52px; height: 52px; font-size: 21px; border-radius: 14px; }

/* ───────────────────────── tables → cards on phones ───────────────────────── */
.lp-tablewrap { overflow-x: auto; }
.lp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.lp-table th { text-align: left; padding: 10px 14px; font: 650 12px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lp-muted); border-bottom: 1px solid var(--lp-line); white-space: nowrap; background: transparent; }
.lp-table td, .lp-table tbody th { padding: 13px 14px; border-bottom: 1px solid var(--lp-line-2); vertical-align: middle; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--lp-ink-2); }
.lp-table tbody tr { transition: background 0.15s ease; }
.lp-table tbody tr:hover { background: var(--lp-surface-2); }
.lp-table tbody tr:last-child > * { border-bottom: 0; }
.lp-table[hidden], .lp-table tr[hidden] { display: none !important; }
.lp-table__domain a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; color: var(--lp-ink); }
.lp-table__domain a:hover .lp-table__name { color: var(--lp-primary); }
.lp-table__time { color: var(--lp-muted); white-space: nowrap; }
.lp-table__go { text-align: right; white-space: nowrap; }
.lp-table__go > * { margin-left: 6px; vertical-align: middle; }
.lp-table abbr { text-decoration: none; cursor: help; }
.lp-table button[data-lp-sort] { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.lp-table button[data-lp-sort]:hover, .lp-table th[aria-sort="ascending"] button, .lp-table th[aria-sort="descending"] button { color: var(--lp-primary); }
.lp-table button[data-lp-sort] i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.35; }
.lp-table th[aria-sort="ascending"] i { border-top: 0; border-bottom: 5px solid currentColor; opacity: 1; }
.lp-table th[aria-sort="descending"] i { opacity: 1; }
.lp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lp-toolbar .lp-field { flex: 1 1 260px; max-width: 420px; padding: 2px 10px; }
.lp-toolbar .lp-field input { font-size: 14.5px; padding: 10px 2px; }
.lp-count { margin-left: auto; font-size: 13px; color: var(--lp-muted); font-weight: 600; }
.lp-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--lp-surface-2); border: 1px solid var(--lp-line); color: var(--lp-muted); font-size: 13.5px; }
.lp-note--warn { background: var(--lp-mid-soft); color: var(--lp-mid-ink); border-color: transparent; }
.lp-fine { margin: 0; color: var(--lp-faint); font-size: 12.5px; }

/* ───────────────────────── empty / loading ───────────────────────── */
.lp-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 56px 24px; }
.lp-empty__ic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--lp-primary-soft); color: var(--lp-primary); margin-bottom: 6px; }
.lp-empty__ic .sto-icon { width: 30px; height: 30px; }
.lp-empty h2 { margin: 0; font: 750 20px/1.2 "Plus Jakarta Sans", Inter, sans-serif; }
.lp-empty p { margin: 0 0 12px; color: var(--lp-muted); max-width: 420px; }
.lp-skel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.lp-skel i, body.sto-body .zt-skel i { display: block; height: 170px; border-radius: 16px; background: linear-gradient(100deg, var(--lp-line-2) 30%, var(--lp-surface-2) 50%, var(--lp-line-2) 70%); background-size: 300% 100%; animation: lp-shimmer 1.3s linear infinite; }
@keyframes lp-shimmer { to { background-position: -100% 0; } }

/* ───────────────────────── toasts ───────────────────────── */
.lp-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.lp-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 14px; background: var(--lp-ink); color: var(--lp-bg); box-shadow: var(--lp-shadow-lg); font-size: 14px; font-weight: 550; animation: lp-toast-in 0.35s var(--lp-ease) both; }
.lp-toast::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--lp-faint); }
.lp-toast--ok::before { background: #34d399; } .lp-toast--err::before { background: #fb7185; }
.lp-toast.is-out { animation: lp-toast-out 0.25s ease forwards; }
@keyframes lp-toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes lp-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ───────────────────────── checker page ───────────────────────── */
body.sto-body .zt-seo { color: var(--lp-ink); }
body.sto-body .zt-toolbar { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow); padding: 22px; margin-bottom: 18px; background-image: radial-gradient(600px 160px at 100% 0, color-mix(in srgb, var(--lp-primary) 12%, transparent), transparent); }
body.sto-body .zt-toolbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
body.sto-body .zt-toolbar__title { margin: 0; font: 800 clamp(22px, 2.6vw, 28px)/1.15 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.025em; color: var(--lp-ink); }
body.sto-body .zt-toolbar__title span { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--lp-primary-soft); color: var(--lp-primary); font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
body.sto-body .zt-seo-wallet { display: flex; align-items: center; gap: 8px; }
body.sto-body .zt-seo-quota { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--lp-surface-2); border: 1px solid var(--lp-line); color: var(--lp-ink-2); font-weight: 650; font-size: 13px; }
body.sto-body .zt-seo-quota svg { width: 16px; height: 16px; }
body.sto-body .zt-seo-quota.is-low { background: var(--lp-low-soft); color: var(--lp-low-ink); border-color: transparent; }
body.sto-body .zt-seo-buy { padding: 8px 14px; border-radius: 999px; background: var(--lp-primary-soft); color: var(--lp-primary); font-weight: 650; font-size: 13px; text-decoration: none; }
body.sto-body .zt-searchbar { margin: 0; }
body.sto-body .zt-seo-btn { min-height: 48px; }
body.sto-body .zt-seo-btn svg { width: 18px; height: 18px; }
body.sto-body .zt-seo-error { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--lp-low-soft); color: var(--lp-low-ink); font-size: 14px; font-weight: 550; }
body.sto-body .zt-seo-error__link { color: var(--lp-low-ink); font-weight: 700; text-decoration: underline; }
body.sto-body .zt-toolbar__foot { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-top: 14px; }
body.sto-body .zt-seo-recent { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.sto-body .zt-seo-recent__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lp-faint); }
body.sto-body .zt-seo-chip { border: 1px solid var(--lp-line); background: var(--lp-surface-2); color: var(--lp-ink-2); border-radius: 999px; padding: 6px 12px; font: 600 13px/1 Inter, sans-serif; cursor: pointer; transition: all 0.15s ease; }
body.sto-body .zt-seo-chip:hover { border-color: var(--lp-primary); color: var(--lp-primary); }
body.sto-body .zt-seo-hint { margin: 0; font-size: 13px; color: var(--lp-muted); }
body.sto-body .zt-loading { padding: 22px; margin-bottom: 18px; }
body.sto-body .zt-loading__head { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; font-weight: 650; }
body.sto-body .zt-seo-steps { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
body.sto-body .zt-seo-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--lp-surface-2); border: 1px solid var(--lp-line); font-size: 13px; color: var(--lp-muted); }
body.sto-body .zt-seo-steps__state { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--lp-faint); border-top-color: var(--lp-primary); animation: lp-spin 0.8s linear infinite; }
body.sto-body .zt-seo-steps li.is-done { color: var(--lp-high-ink); background: var(--lp-high-soft); border-color: transparent; }
body.sto-body .zt-seo-steps li.is-done .zt-seo-steps__state { animation: none; border: 0; background: var(--lp-high); }
body.sto-body .zt-seo-steps li.is-fail { color: var(--lp-low-ink); background: var(--lp-low-soft); border-color: transparent; }
body.sto-body .zt-seo-steps li.is-fail .zt-seo-steps__state { animation: none; border: 0; background: var(--lp-low); }
@keyframes lp-spin { to { transform: rotate(360deg); } }

.lp-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; padding: 28px; align-items: center; }
.lp-intro h2 { margin: 0 0 8px; font: 780 22px/1.25 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.02em; }
.lp-intro p { margin: 0; color: var(--lp-muted); }
.lp-intro__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-intro__list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--lp-surface-2); border: 1px solid var(--lp-line); }
.lp-intro__list .lp-badge { min-width: 52px; height: 34px; font-size: 14px; }
.lp-intro__list b { display: block; font-size: 14.5px; } .lp-intro__list small { color: var(--lp-muted); font-size: 12.5px; }

/* ───────────────────────── report ───────────────────────── */
.lp-report { display: grid; gap: 16px; animation: lp-rise 0.5s var(--lp-ease) both; }
.lp-report__head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.lp-report__id { flex: 1; min-width: 160px; }
.lp-report__id h2 { margin: 0; font: 780 22px/1.2 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.02em; word-break: break-all; }
.lp-report__id p { margin: 2px 0 0; color: var(--lp-muted); font-size: 13px; }
.lp-report__actions { display: flex; gap: 8px; }
.lp-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-scorecard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; align-items: center; padding: 26px; }
.lp-scorecard .lp-bar { grid-column: 1 / -1; margin-top: 6px; }
.lp-scorecard__abbr { font: 800 12px/1 Inter, sans-serif; letter-spacing: 0.14em; color: var(--lp-faint); }
.lp-scorecard h3 { margin: 4px 0 8px; font: 750 19px/1.2 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.01em; }
.lp-scorecard p { margin: 10px 0 0; color: var(--lp-muted); font-size: 13.5px; }
.lp-report__foot { display: flex; gap: 10px; flex-wrap: wrap; }

/* ───────────────────────── bulk checker ───────────────────────── */
body.sto-body .sto-bulk__input, body.sto-body .sto-bulk__progress, body.sto-body .sto-bulk__runs { padding: 22px; margin-bottom: 18px; }
body.sto-body .sto-bulk__label { font: 700 15px/1 Inter, sans-serif; color: var(--lp-ink); }
body.sto-body .sto-bulk__hint, body.sto-body .sto-bulk__cost, body.sto-body .sto-bulk__count, body.sto-body .sto-bulk__rules { color: var(--lp-muted); font-size: 13px; }
body.sto-body .sto-bulk__area { width: 100%; min-height: 160px; padding: 14px 16px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-surface-2); color: var(--lp-ink); font: 500 14.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
body.sto-body .sto-bulk__area:focus { outline: 0; border-color: var(--lp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 18%, transparent); }
body.sto-body .sto-bulk__labelrow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
body.sto-body .sto-bulk__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
body.sto-body .sto-bulk__meta { display: grid; gap: 2px; }
body.sto-body .sto-bulk__count.is-over { color: var(--lp-low); font-weight: 700; }
body.sto-body .sto-bulk__steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
body.sto-body .sto-bulk__steps li { display: grid; grid-template-columns: auto 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
body.sto-body .sto-bulk__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-da); }
body.sto-body .sto-bulk__dot--ahrefs { background: var(--lp-dr); } body.sto-body .sto-bulk__dot--moz { background: var(--lp-da); }
body.sto-body .sto-bulk__track { height: 8px; border-radius: 999px; background: var(--lp-line-2); overflow: hidden; display: block; }
body.sto-body .sto-bulk__track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lp-primary), var(--lp-primary-2)); transition: width 0.4s var(--lp-ease); }
body.sto-body .sto-bulk__steps li.is-done .sto-bulk__track i { background: linear-gradient(90deg, #12b981, #34d399); }
body.sto-body .sto-bulk__steps li.is-fail .sto-bulk__track i { background: var(--lp-low); }
body.sto-body .sto-bulk__state { color: var(--lp-muted); font-size: 13px; min-width: 70px; text-align: right; }
body.sto-body .sto-bulk__progress-head { display: flex; justify-content: space-between; gap: 10px; }
body.sto-body .sto-bulk__sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
body.sto-body .sto-bulk__tile { padding: 18px; border-radius: var(--lp-radius); background: var(--lp-surface); border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow); display: grid; gap: 3px; }
body.sto-body .sto-bulk__tile span { font-size: 13px; font-weight: 600; color: var(--lp-muted); }
body.sto-body .sto-bulk__tile b { font: 800 30px/1.1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; }
body.sto-body .sto-bulk__tile small { color: var(--lp-faint); font-size: 12.5px; }
body.sto-body .sto-bulk__note { padding: 12px 14px; border-radius: 12px; background: var(--lp-mid-soft); color: var(--lp-mid-ink); font-size: 13.5px; margin: 0 0 14px; }
body.sto-body .sto-bulk__tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
body.sto-body .sto-bulk__tools input { flex: 1 1 240px; max-width: 380px; min-height: 44px; padding: 0 14px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-surface); color: var(--lp-ink); font-size: 14.5px; }
body.sto-body .sto-bulk__tablecard { padding: 8px; overflow: hidden; }
body.sto-body .sto-bulk__scroll { overflow-x: auto; }
body.sto-body .sto-bulk__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
body.sto-body .sto-bulk__table th { text-align: left; padding: 12px 14px; font: 650 12px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lp-muted); border-bottom: 1px solid var(--lp-line); background: transparent; white-space: nowrap; }
body.sto-body .sto-bulk__table th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; }
body.sto-body .sto-bulk__table th button:hover, body.sto-body .sto-bulk__table th[aria-sort="ascending"] button, body.sto-body .sto-bulk__table th[aria-sort="descending"] button { color: var(--lp-primary); }
body.sto-body .sto-bulk__arrow { font-size: 9px; opacity: 0.6; }
body.sto-body .sto-bulk__table td, body.sto-body .sto-bulk__table tbody th { padding: 12px 14px; border-bottom: 1px solid var(--lp-line-2); color: var(--lp-ink-2); font-size: 14px; text-transform: none; letter-spacing: 0; }
body.sto-body .sto-bulk__table tbody tr:hover { background: var(--lp-surface-2); }
body.sto-body .sto-bulk__table tbody tr:last-child > * { border-bottom: 0; }
body.sto-body .sto-bulk__domain { font-weight: 650; color: var(--lp-ink); }
body.sto-body .sto-bulk__domain small { display: block; font-weight: 500; color: var(--lp-faint); font-size: 12px; }
body.sto-body .sto-bulk__td--link { text-align: right; }
body.sto-body .sto-bulk__td--link a { color: var(--lp-primary); font-weight: 650; text-decoration: none; white-space: nowrap; }
body.sto-body .sto-bulk__sticky { position: sticky; left: 0; background: var(--lp-surface); z-index: 1; }
body.sto-body .sto-bulk__empty, body.sto-body .sto-bulk__status, body.sto-body .sto-note { color: var(--lp-muted); font-size: 13px; padding: 10px 14px; margin: 0; }
body.sto-body .sto-bulk__runlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body.sto-body .sto-bulk__runlist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-surface-2); }
body.sto-body .sto-bulk__runinfo { display: grid; gap: 2px; min-width: 0; } body.sto-body .sto-bulk__runinfo span, body.sto-body .sto-bulk__runinfo time { color: var(--lp-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-th-short { display: none; }

/* ───────────────────────── log in / sign up ───────────────────────── */
body.sto-body .sto-auth { background: var(--lp-bg); min-height: 100vh; }
body.sto-body .sto-auth__brand {
	background: radial-gradient(700px 400px at 0 0, rgba(124, 92, 255, 0.55), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(34, 211, 238, 0.3), transparent 60%), #0b1024;
	color: #c9d2ee;
}
body.sto-body .sto-auth__pitch h2 { color: #fff; font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; }
body.sto-body .sto-auth__eyebrow { color: #a8b7ff; }
body.sto-body .sto-auth__tools { list-style: none; padding: 0; display: grid; gap: 12px; margin: 22px 0 0; }
body.sto-body .sto-auth__tools li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.sto-body .sto-auth__tools b { display: block; color: #fff; font-size: 14.5px; } body.sto-body .sto-auth__tools small { color: #9eabd1; font-size: 12.5px; }
body.sto-body .sto-auth__tools .lp-badge { min-width: 50px; height: 34px; }
body.sto-body .sto-auth__fine { color: #6f7ca8; }
body.sto-body .sto-auth__main { background: var(--lp-bg); }
body.sto-body .sto-auth__card { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 22px; box-shadow: var(--lp-shadow-lg); animation: lp-rise 0.5s var(--lp-ease) both; }
body.sto-body .sto-auth__title { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.03em; color: var(--lp-ink); }
body.sto-body .sto-auth__lede, body.sto-body .sto-auth__hint, body.sto-body .sto-auth__privacy, body.sto-body .sto-auth__back a { color: var(--lp-muted); }
body.sto-body .sto-auth__tabs { background: var(--lp-surface-2); border: 1px solid var(--lp-line); border-radius: 14px; padding: 4px; }
body.sto-body .sto-auth__tab { color: var(--lp-muted); border-radius: 10px; font-weight: 650; }
body.sto-body .sto-auth__tab.is-active { background: var(--lp-surface); color: var(--lp-ink); box-shadow: var(--lp-shadow); }
body.sto-body .sto-auth__row input { background: var(--lp-surface); color: var(--lp-ink); border: 1px solid var(--lp-line); border-radius: 12px; min-height: 48px; }
body.sto-body .sto-auth__row input:focus { border-color: var(--lp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-primary) 18%, transparent); outline: 0; }
body.sto-body .sto-auth__row label, body.sto-body .sto-auth__remember { color: var(--lp-ink-2); }
body.sto-body .sto-auth a { color: var(--lp-primary); }
body.sto-body .sto-auth__btn { width: 100%; min-height: 50px; }

/* ───────────────────────── older pages (credits, buy, invoices, profile, merchant) ───────────────────────── */
body.sto-body .zsw2-panel, body.sto-body .zt-admin-card { background: var(--lp-surface); border-color: var(--lp-line); }
body.sto-body .zsw2-panel__title, body.sto-body h1, body.sto-body h2, body.sto-body h3 { color: var(--lp-ink); }
body.sto-body .zsw2-panel__sub, body.sto-body p { color: inherit; }
body.sto-body .zsw2-ctable, body.sto-body .zt-ledger, body.sto-body table { color: var(--lp-ink-2); }
body.sto-body .zsw2-ctable th, body.sto-body .zt-ledger th, body.sto-body table th { color: var(--lp-muted); border-color: var(--lp-line); background: transparent; }
body.sto-body .zsw2-ctable td, body.sto-body .zt-ledger td, body.sto-body table td { border-color: var(--lp-line-2); }
body.sto-body .zt-flash { border-radius: 12px; }
body.sto-body .zt-flash--ok { background: var(--lp-high-soft); color: var(--lp-high-ink); border-color: transparent; }
body.sto-body .zt-flash--err { background: var(--lp-low-soft); color: var(--lp-low-ink); border-color: transparent; }
body.sto-body .sto-tile, body.sto-body .sto-quick-links a { color: var(--lp-ink); }
html[data-theme="dark"] body.sto-body [class*="zsw2-"], html[data-theme="dark"] body.sto-body [class*="zt-"], html[data-theme="dark"] body.sto-body [class*="sto-"] { border-color: var(--lp-line); }
html[data-theme="dark"] body.sto-body .sto-tile__s, html[data-theme="dark"] body.sto-body small, html[data-theme="dark"] body.sto-body .zt-seo-lede { color: var(--lp-muted); }
html[data-theme="dark"] body.sto-body .zt-pack, html[data-theme="dark"] body.sto-body .sto-pack, html[data-theme="dark"] body.sto-body [class*="pack"], html[data-theme="dark"] body.sto-body [class*="gateway"] { background-color: var(--lp-surface); color: var(--lp-ink); }
body.sto-body .sto-empty-state { color: var(--lp-muted); }

/* ───────────────────────── tablet ───────────────────────── */
@media (max-width: 1180px) {
	.lp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lp-grid2 { grid-template-columns: minmax(0, 1fr); }
}

/* ───────────────────────── phone / app-like ───────────────────────── */
.lp-tabbar { display: none; }
@media (max-width: 991.98px) {
	body.sto-body .sto-app { grid-template-columns: minmax(0, 1fr); }
	body.sto-body .sto-app__content { padding: 18px 16px calc(var(--lp-tabbar-h) + 34px + env(safe-area-inset-bottom)); }
	body.sto-body .sto-top { padding: 0 14px; min-height: 60px; }
	body.sto-body .sto-top__menu { display: none; }
	body.sto-body .sto-top__logo { display: inline-flex; }
	body.sto-body .sto-top-help, body.sto-body .sto-user__txt, body.sto-body .sto-app-footer, body.sto-body .sto-top__heading small { display: none; }
	body.sto-body .sto-top__heading { flex: 1; }
	body.sto-body .sto-app-footer { display: none; }
	body.sto-body .sto-side { background: var(--lp-side-bg); }
	.lp-tabbar {
		position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; height: var(--lp-tabbar-h);
		display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px;
		background: color-mix(in srgb, var(--lp-surface) 88%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
		border: 1px solid var(--lp-line); border-radius: 22px; box-shadow: var(--lp-shadow-lg);
	}
	.lp-tabbar__item {
		display: grid; place-items: center; align-content: center; gap: 3px; min-height: 52px; border: 0; background: transparent; border-radius: 16px; cursor: pointer;
		color: var(--lp-muted); font: 650 11px/1 Inter, sans-serif; text-decoration: none; transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
	}
	.lp-tabbar__item .sto-icon { width: 22px; height: 22px; }
	.lp-tabbar__item:active { transform: scale(0.92); }
	.lp-tabbar__item.is-active { color: var(--lp-primary); background: var(--lp-primary-soft); }
	.lp-toasts { right: 12px; left: 12px; width: auto; bottom: calc(var(--lp-tabbar-h) + 26px + env(safe-area-inset-bottom)); }
}

@media (max-width: 720px) {
	.lp-pagehead { align-items: flex-start; flex-direction: column; }
	.lp-pagehead__actions { width: 100%; } .lp-pagehead__actions .lp-btn { flex: 1; }
	.lp-kpis { gap: 12px; }
	.lp-kpi { padding: 16px; } .lp-kpi__v { font-size: 28px; } .lp-kpi__ic { width: 36px; height: 36px; margin-bottom: 4px; }
	.lp-quick { grid-template-columns: minmax(0, 1fr); padding: 18px; }
	.lp-quick .lp-field { flex-wrap: wrap; padding: 8px; } .lp-quick .lp-field input { flex: 1 1 60%; }
	.lp-quick .lp-btn--lg, body.sto-body .zt-searchbar .zt-seo-btn { width: 100%; min-height: 52px; }
	body.sto-body .zt-searchbar .zt-seo-field { flex-wrap: wrap; padding: 8px; }
	body.sto-body .zt-searchbar .zt-seo-field input { flex: 1 1 70%; }
	.lp-panel { padding: 16px; } .lp-chart { height: 220px; }
	.lp-intro { grid-template-columns: minmax(0, 1fr); padding: 20px; }
	.lp-scores { grid-template-columns: minmax(0, 1fr); }
	.lp-scorecard { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 6px 18px; } .lp-ring { width: 104px; height: 104px; } .lp-ring b { font-size: 30px; } .lp-ring::before { inset: 9px; }
	.lp-report__head { padding: 16px; } .lp-report__actions { width: 100%; } .lp-report__actions .lp-btn { flex: 1; min-height: 44px; }
	.lp-report__foot .lp-btn { flex: 1; min-height: 50px; }
	.lp-toolbar .lp-field { flex-basis: 100%; max-width: none; } .lp-toolbar .lp-btn { flex: 1; min-height: 46px; } .lp-count { order: -1; margin: 0; width: 100%; }
	.lp-skel { grid-template-columns: minmax(0, 1fr); }

	/* tables become cards */
	.lp-table--cards thead { display: none; }
	.lp-table--cards, .lp-table--cards tbody { display: block; }
	.lp-table--cards tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px; margin: 0 0 12px; border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-surface-2); }
	.lp-table--cards tbody tr:hover { background: var(--lp-surface-2); }
	.lp-table--cards td, .lp-table--cards tbody th { display: block; padding: 0; border: 0 !important; }
	.lp-table--cards tbody th { grid-column: 1 / -1; }
	.lp-table--cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; font: 700 11px/1 Inter, sans-serif; letter-spacing: 0.08em; color: var(--lp-faint); text-transform: uppercase; }
	.lp-table--cards .lp-score { min-width: 0; width: 100%; }
	.lp-table--cards .lp-table__time { grid-column: 1 / -1; }
	.lp-table--cards .lp-table__go { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: stretch; }
	.lp-table--cards .lp-table__go .lp-btn { flex: 1; min-height: 46px; } .lp-table--cards .lp-iconbtn { width: 46px; height: 46px; }
	.lp-table--cards tr[hidden] { display: none !important; }

	/* bulk */
	body.sto-body .sto-bulk__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.sto-body .sto-bulk__bar .zt-seo-btn { width: 100%; min-height: 52px; }
	body.sto-body .sto-bulk__steps li { grid-template-columns: auto minmax(0, 1fr) auto; } body.sto-body .sto-bulk__steps li .sto-bulk__track { grid-column: 1 / -1; grid-row: 2; }
	body.sto-body .sto-bulk__tablecard { padding: 0; background: transparent; border: 0; box-shadow: none; }
	body.sto-body .sto-bulk__table thead { display: none; }
	body.sto-body .sto-bulk__table, body.sto-body .sto-bulk__table tbody { display: block; }
	body.sto-body .sto-bulk__table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-surface); box-shadow: var(--lp-shadow); }
	body.sto-body .sto-bulk__table td, body.sto-body .sto-bulk__table tbody th { display: block; padding: 0; border: 0; }
	body.sto-body .sto-bulk__table tbody th { grid-column: 1 / -1; position: static; }
	body.sto-body .sto-bulk__table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 5px; font: 700 11px/1 Inter, sans-serif; letter-spacing: 0.08em; color: var(--lp-faint); text-transform: uppercase; }
	body.sto-body .sto-bulk__td--link { grid-column: 1 / -1; text-align: center; padding-top: 4px; } body.sto-body .sto-bulk__td--link a { display: block; padding: 12px; border-radius: 12px; background: var(--lp-primary-soft); }
	body.sto-body .lp-score { width: 100%; min-width: 0; }
	body.sto-body .sto-bulk__tools .sto-btn { flex: 1; }
	body.sto-body .sto-auth__card { border-radius: 18px; }
}

/* fixes */
body.sto-body .sto-app-footer { background: transparent !important; }
.lp-report__foot .lp-btn { flex: 0 0 auto; padding: 0 22px; }

/* dark mode: legacy surfaces that hard-code white */
html[data-theme="dark"] body.sto-body input.zt-input,
html[data-theme="dark"] body.sto-body textarea.zt-input,
html[data-theme="dark"] body.sto-body .sto-buy__sum,
html[data-theme="dark"] body.sto-body .sto-buy__closed,
html[data-theme="dark"] body.sto-body .zsw2-empty,
html[data-theme="dark"] body.sto-body .zt-state--off,
html[data-theme="dark"] body.sto-body .zt-kind,
html[data-theme="dark"] body.sto-body .sto-pref-master,
html[data-theme="dark"] body.sto-body .sto-bulk__count,
html[data-theme="dark"] body.sto-body .sto-bulk__area,
html[data-theme="dark"] body.sto-body .sto-buy label span,
html[data-theme="dark"] body.sto-body .sto-buy [class*="amount"] span,
html[data-theme="dark"] body.sto-body .sto-buy [class*="preset"] span,
html[data-theme="dark"] body.sto-body .sto-buy [class*="quick"] span,
html[data-theme="dark"] body.sto-body .zsw2-ctable th { background: var(--lp-surface-2) !important; color: var(--lp-ink) !important; border-color: var(--lp-line) !important; }
html[data-theme="dark"] body.sto-body .sto-buy__sum b, html[data-theme="dark"] body.sto-body .sto-buy__sum strong { color: var(--lp-primary-2) !important; }
html[data-theme="dark"] body.sto-body input::placeholder, html[data-theme="dark"] body.sto-body textarea::placeholder { color: var(--lp-faint); }
