/* FAIN – Fair Attention Incentive Network */

@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bebas-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/bebas-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	/* značka */
	--blue: #0041F5;
	--blue-deep: #0029B8;
	--blue-night: #000F4D;
	--lime: #D4FA55;
	--lime-deep: #B9E62A;
	--ink: #070A1F;

	/* aplikace – světlý režim */
	--bg: #F2F4FB;
	--surface: #FFFFFF;
	--surface-2: #EEF1FA;
	--border: #E0E5F2;
	--text: #0B1030;
	--muted: #5E6688;
	--primary: var(--blue);
	--primary-soft: #E5ECFF;
	--ok: #0E9F68;
	--ok-soft: #DDF6EB;
	--bad: #E5304A;
	--bad-soft: #FDE6EA;
	--warn: #C27406;
	--warn-soft: #FDF0D9;
	--out: var(--blue);
	--out-soft: #E5ECFF;
	--shadow: 0 1px 2px rgba(11, 16, 48, .04), 0 6px 20px rgba(11, 16, 48, .06);
	--shadow-lg: 0 18px 50px rgba(0, 41, 184, .16);
	--radius: 20px;
	--display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #050817;
		--surface: #0C112B;
		--surface-2: #131A3B;
		--border: #1D2550;
		--text: #EEF1FF;
		--muted: #8E97C4;
		--primary: #5C86FF;
		--primary-soft: #16224F;
		--ok: #3BD69A;
		--ok-soft: #0E2E24;
		--bad: #FF6B80;
		--bad-soft: #3A1622;
		--warn: #F5B544;
		--warn-soft: #382A10;
		--out: #7FA0FF;
		--out-soft: #16224F;
		--shadow: 0 1px 2px rgba(0, 0, 0, .35);
		--shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display {
	font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: .92;
	text-transform: uppercase;
}

/* ---------- horní lišta ---------- */
.topbar {
	position: sticky; top: 0; z-index: 1000;
	background: color-mix(in srgb, var(--ink) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: #fff;
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; }
.brand img { height: 24px; width: auto; display: block; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: rgba(255, 255, 255, .66); font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.active { background: var(--lime); color: var(--ink); }
.logout { color: rgba(255, 255, 255, .66); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 550; }
.logout:hover { color: #fff; text-decoration: none; }

/* přepínač jazyka */
.lang { position: relative; }
.lang summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
	padding: 7px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .04em;
	color: inherit; border: 1px solid rgba(255, 255, 255, .16); opacity: .85; transition: opacity .15s, border-color .15s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { opacity: 1; border-color: rgba(255, 255, 255, .4); }
.lang-menu {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; z-index: 50;
	background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
	animation: pop .16s ease-out;
}
.lang-menu a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--text); font-size: 14px; }
.lang-menu a b { font-size: 12px; width: 24px; color: var(--muted); }
.lang-menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a.active { background: var(--primary-soft); color: var(--primary); }
.lang-menu a.active b { color: var(--primary); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

main.wrap { padding-top: 28px; padding-bottom: 70px; }

/* ---------- typografie ---------- */
h1 { font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 800; }
h1.display { font-size: 52px; letter-spacing: .01em; font-weight: 400; }
h2 { font-size: 17px; margin: 0 0 14px; font-weight: 750; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head p { margin: 8px 0 0; }

.kicker {
	display: inline-flex; align-items: center; gap: 10px; margin: 0;
	font-family: var(--display); font-size: 19px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
}
.kicker-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--lime); transform: skewX(-20deg); box-shadow: 0 0 18px var(--lime); }

/* ---------- banner na přehledu ---------- */
.banner {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 34px 36px; margin-bottom: 18px; border-radius: 28px; color: #fff;
	background:
		radial-gradient(600px 300px at 85% -20%, rgba(212, 250, 85, .22), transparent 60%),
		radial-gradient(700px 400px at -10% 120%, rgba(0, 15, 77, .7), transparent 60%),
		linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
	box-shadow: 0 24px 60px -20px rgba(0, 65, 245, .55);
}
.banner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
	background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.banner .kicker { font-size: 17px; }
.banner h1.display { font-size: clamp(54px, 8vw, 92px); margin: 10px 0 8px; }
.banner p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 520px; }
.banner-copy { position: relative; z-index: 1; }
.banner .btn { position: relative; z-index: 1; }
.banner-mark {
	position: absolute; right: -40px; bottom: -70px; width: 330px; z-index: -1; opacity: .13;
	color: #fff; transform: rotate(-8deg);
}

/* ---------- karty a statistiky ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { padding: 18px 20px 16px; position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .value { font-family: var(--display); font-size: 54px; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.stat:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat:first-child .label { color: rgba(255, 255, 255, .6); }
.stat:first-child .value { color: var(--lime); }
.stat:first-child .dot { background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.dot { width: 8px; height: 8px; border-radius: 3px; background: var(--primary); display: inline-block; transform: skewX(-15deg); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }
.dot.ok { background: var(--ok); }

/* ---------- telefony ---------- */
.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.device {
	display: block; color: inherit; padding: 22px; position: relative; overflow: hidden;
	transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s;
}
.device::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: linear-gradient(90deg, var(--blue), var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.device:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); text-decoration: none; }
.device:hover::after { transform: scaleX(1); }
.device-head { display: flex; gap: 14px; align-items: center; }
.device-arrow { margin-left: auto; color: var(--muted); transition: transform .2s, color .2s; align-self: flex-start; }
.device:hover .device-arrow { color: var(--primary); transform: translate(2px, -2px); }
.avatar {
	width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center;
	font-family: var(--display); font-size: 26px; color: #fff; padding-top: 2px;
	background: linear-gradient(135deg, hsl(calc(205 + var(--h) * .12) 95% 52%), hsl(calc(225 + var(--h) * .12) 90% 34%));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.avatar.lg { width: 66px; height: 66px; border-radius: 20px; font-size: 36px; }
.device-title { font-weight: 750; font-size: 16.5px; line-height: 1.3; }
.device-sub { color: var(--muted); font-size: 13px; }
.online { display: inline-flex; align-items: center; gap: 6px; }
.online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; }
.online.on::before { background: var(--ok); opacity: 1; box-shadow: 0 0 0 3px var(--ok-soft); }

.device-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 14px; }
.device-stats div { background: var(--surface-2); border-radius: 13px; padding: 10px 12px 8px; }
.device-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.device-stats span { font-size: 12px; color: var(--muted); font-weight: 550; }
.device-stats div:first-child { background: var(--lime); color: var(--ink); }
.device-stats div:first-child span { color: rgba(7, 10, 31, .65); }
.device-last { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; border-top: 1px dashed var(--border); padding-top: 12px; }
.device-last .num { font-weight: 650; }

.empty { text-align: center; padding: 56px 24px; }
.empty .icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.empty h2 { margin-bottom: 6px; }
.empty p { max-width: 560px; margin: 0 auto; }
.empty code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* ---------- filtr ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; margin-bottom: 14px; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.segmented a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13.5px; transition: color .15s, background .15s; }
.segmented a:hover { color: var(--text); text-decoration: none; }
.segmented a.active { background: var(--ink); color: var(--lime); }
.toolbar form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; justify-content: flex-end; }

input[type=text], input[type=search], input[type=date], input[type=password] {
	font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
	border-radius: 12px; padding: 9px 13px; outline: none; min-width: 0;
	transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
input[type=search] { width: 230px; }

.btn {
	font: inherit; font-weight: 650; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
	color: var(--text); cursor: pointer; white-space: nowrap; transition: transform .12s, filter .15s, background .15s, box-shadow .2s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); border-color: transparent; color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-lime { background: var(--lime); border-color: transparent; color: var(--ink); box-shadow: 0 8px 24px -8px rgba(212, 250, 85, .8); }
.btn-lime:hover { background: #E2FF7A; box-shadow: 0 10px 30px -6px rgba(212, 250, 85, .9); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); }

/* ---------- tabulka hovorů ---------- */
.table-wrap { overflow-x: auto; }
table.calls { width: 100%; border-collapse: collapse; }
.calls th {
	text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
	font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.calls td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.calls tr:last-child td { border-bottom: 0; }
.calls tbody tr:not(.day-row):hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
.calls .who { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.calls .num { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.calls .name { font-size: 13px; color: var(--muted); }
.calls .time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.calls .right { text-align: right; }
.day-row td { background: var(--surface-2); font-family: var(--display); font-size: 17px; color: var(--muted); padding: 7px 16px 5px; letter-spacing: .08em; }

.call-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.call-icon.in { background: var(--ok-soft); color: var(--ok); }
.call-icon.missed { background: var(--bad-soft); color: var(--bad); }
.call-icon.out { background: var(--out-soft); color: var(--out); }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.in { background: var(--ok-soft); color: var(--ok); }
.pill.missed { background: var(--bad-soft); color: var(--bad); }
.pill.out { background: var(--out-soft); color: var(--out); }
.pill.unknown { background: var(--warn-soft); color: var(--warn); }
.pill.neutral { background: var(--surface-2); color: var(--muted); }

.loc { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; font-weight: 600; }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.cur { min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 999px; font-weight: 650; font-size: 14px; }
.pagination a { color: var(--muted); }
.pagination a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.pagination span.cur { background: var(--ink); color: var(--lime); }

/* ---------- detail telefonu ---------- */
.device-card-hero { margin-bottom: 18px; position: relative; overflow: hidden; }
.device-card-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--blue), var(--lime)); }
.device-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.device-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.device-hero .meta span { display: inline-flex; align-items: center; gap: 5px; }
.rename-hint { color: var(--muted); font-size: 13px; font-weight: 550; letter-spacing: 0; }
.hero-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
details.rename summary { list-style: none; cursor: pointer; }
details.rename summary::-webkit-details-marker { display: none; }
details.rename[open] summary { display: none; }
details.rename form { display: flex; gap: 8px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
#map { height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); z-index: 1; }

.flash { padding: 12px 16px; border-radius: 14px; background: var(--lime); color: var(--ink); font-weight: 650; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.danger-zone { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.form-error { background: var(--bad-soft); color: var(--bad); padding: 10px 14px; border-radius: 12px; font-weight: 650; font-size: 14px; margin-bottom: 12px; }

/* =========================================================
   PŘIHLÁŠENÍ
   ========================================================= */
.landing-body { background: var(--blue-night); color: #fff; }
.landing {
	position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100dvh;
	display: flex; flex-direction: column;
	background:
		radial-gradient(1000px 600px at 50% -10%, #1E5BFF 0%, transparent 60%),
		linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 55%, var(--blue-night) 100%);
}
.bg-grid {
	position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
}
.bg-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.bg-glow.g1 { width: 460px; height: 460px; left: 50%; top: 30%; margin-left: -230px; background: rgba(212, 250, 85, .22); animation: float 14s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-30px, 40px) scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.landing-top { display: flex; justify-content: flex-end; padding: 22px 24px 0; }
.landing .lang summary { border-color: rgba(255, 255, 255, .28); }

.signin { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 24px 20px 80px; }
.signin-logo { width: min(240px, 60vw); height: auto; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; filter: drop-shadow(0 10px 40px rgba(0, 10, 60, .4)); }

.glass {
	background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
	border: 1px solid rgba(255, 255, 255, .18);
	backdrop-filter: blur(18px) saturate(1.3);
	box-shadow: 0 20px 50px -20px rgba(0, 10, 60, .5);
}
.login {
	width: min(400px, 100%); border-radius: 24px; padding: 22px; color: #fff;
	display: flex; flex-direction: column; gap: 10px;
	animation: rise .8s .1s cubic-bezier(.2, .8, .2, 1) both;
}
.login input {
	width: 100%; padding: 14px 18px; font-size: 16px; border-radius: 999px;
	background: rgba(0, 10, 50, .35); border-color: rgba(255, 255, 255, .22); color: #fff;
}
.login input::placeholder { color: rgba(255, 255, 255, .55); }
.login input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(212, 250, 85, .25); }
.login .btn { width: 100%; padding: 14px 20px; font-size: 15.5px; }
.login .form-error { margin: 0; background: rgba(229, 48, 74, .2); color: #FFD1D8; border: 1px solid rgba(255, 107, 128, .4); }

/* ---------- mobil ---------- */
@media (max-width: 860px) {
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.toolbar form { justify-content: flex-start; }
	input[type=search] { width: 100%; flex: 1 1 100%; }
	.hide-sm { display: none; }
	.calls td, .calls th { padding: 10px 12px; }
	.calls .who { min-width: 0; }
	.banner { padding: 28px 24px; }
}
@media (max-width: 560px) {
	.wrap { padding: 0 14px; }
	.topbar .wrap { gap: 12px; }
	.brand img { height: 20px; }
	.nav a { padding: 7px 10px; font-size: 13.5px; }
	.devices { grid-template-columns: 1fr; }
	.stat .value { font-size: 44px; }
	.hide-xs { display: none; }
	.banner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- přihlášení uživatelů ---------- */
.login-note { margin: 0 0 4px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .82); text-align: center; }
.login .form-ok { padding: 10px 14px; border-radius: 12px; font-weight: 650; font-size: 14px; background: rgba(212, 250, 85, .16); color: var(--lime); border: 1px solid rgba(212, 250, 85, .4); }
.login .code-input { text-align: center; font-size: 28px; letter-spacing: .45em; padding: 12px 18px 12px calc(18px + .45em); font-variant-numeric: tabular-nums; font-weight: 700; }
.login .code-input::placeholder { letter-spacing: .3em; }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 13.5px; }
.login-links a { color: rgba(255, 255, 255, .75); font-weight: 600; }
.login-links a:hover { color: var(--lime); }
h1.welcome { font-size: clamp(72px, 14vw, 160px); margin: 0; color: var(--lime); text-shadow: 0 0 60px rgba(212, 250, 85, .35); animation: rise .8s .1s cubic-bezier(.2, .8, .2, 1) both; }
.welcome-email { margin: -16px 0 0; font-size: 17px; color: rgba(255, 255, 255, .8); font-weight: 550; }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-inv:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.avatar.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 19px; }
.signin-badge { margin-top: -18px; }

/* ---------- typ a level uživatele ---------- */
.user-form { display: flex; gap: 6px; align-items: center; }
.user-form select {
	font: inherit; font-size: 13px; font-weight: 650; color: var(--text); background: var(--surface-2);
	border: 1px solid var(--border); border-radius: 999px; padding: 5px 26px 5px 12px; cursor: pointer;
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235E6688' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center;
}
.user-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.user-form .sel-level { padding-right: 24px; min-width: 0; }
.user-form[data-type=customer] .sel-type { background-color: var(--primary-soft); color: var(--primary); border-color: transparent; }
.user-form[data-type=agency] .sel-type { background-color: var(--ink); color: var(--lime); border-color: transparent; }
.user-form.auto .btn { display: none; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* =========================================================
   KAMPANĚ A REKLAMY (zákazníci a agentury)
   ========================================================= */
.account-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); font-weight: 550; }
.account-type { background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.flash-error { background: var(--bad-soft); color: var(--bad); }
.back { display: inline-block; font-size: 13.5px; font-weight: 650; color: var(--muted); margin-bottom: 8px; }
.back:hover { color: var(--primary); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 14px; }
.section-head h2 { margin: 0; font-size: 20px; }
.spacer { flex: 1; }

/* stav */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-active { background: var(--ok-soft); color: var(--ok); }
.status-active::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.status-draft { background: var(--surface-2); color: var(--muted); }
.status-paused { background: var(--warn-soft); color: var(--warn); }
.status-scheduled { background: var(--primary-soft); color: var(--primary); }
.status-ended { background: var(--surface-2); color: var(--muted); }

/* regiony */
.regions { display: flex; flex-wrap: wrap; gap: 5px; }
.region { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 7px; background: var(--ink); color: var(--lime); }

/* seznam kampaní */
.campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.campaign-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: inherit; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s; }
.campaign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); text-decoration: none; }
.campaign-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.campaign-name { font-weight: 800; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.campaign-card .regions { margin: 8px 0 4px; }
.campaign-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; margin-top: auto; }
.campaign-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.campaign-summary > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.campaign-summary .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* formuláře */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 750; font-size: 17px; margin-bottom: 12px; padding: 0; letter-spacing: -.01em; }
.fieldset-hint { margin: -6px 0 12px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 700; color: var(--text); }
.field .hint { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.field .error, fieldset > .error { color: var(--bad); font-size: 12.5px; font-weight: 650; }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
input[type=number], input[type=url], input[type=email], input[type=tel], textarea, .field select {
	font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
	border-radius: 12px; padding: 9px 13px; outline: none; min-width: 0; width: 100%;
	transition: border-color .15s, box-shadow .15s;
}
.field input[type=text], .field input[type=date] { width: 100%; }
textarea { resize: vertical; line-height: 1.45; }
textarea:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
input[type=color] { width: 100%; height: 42px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
input[type=file] { font: inherit; font-size: 13px; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: 650; font-size: 13px; padding: 6px 12px; margin-right: 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }

.region-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.region-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.region-option input { position: absolute; opacity: 0; pointer-events: none; }
.region-option .flag { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 7px; background: var(--surface-2); color: var(--muted); transition: background .15s, color .15s; }
.region-option:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.region-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.region-option:has(input:checked) .flag { background: var(--ink); color: var(--lime); }
.region-option:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }

/* editor reklamy */
.ad-editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.ad-form { display: flex; flex-direction: column; gap: 16px; }
.ad-form section h2 { margin-bottom: 16px; }
.ad-form section[hidden] { display: none; }
.kind-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kind-option { position: relative; cursor: pointer; }
.kind-option input { position: absolute; opacity: 0; pointer-events: none; }
.kind-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s, background .15s; }
.kind-card small { font-size: 12.5px; line-height: 1.4; }
.kind-option:hover .kind-card { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.kind-option input:checked + .kind-card { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.kind-option input:focus-visible + .kind-card { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.upload { display: flex; gap: 12px; align-items: flex-start; }
.upload-thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; border: 1px solid var(--border); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.remove-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bad); font-weight: 600; cursor: pointer; }

.ad-preview { position: sticky; top: 84px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 8px; }
.phone {
	--bezel: 10px;
	position: relative; padding: var(--bezel); border-radius: 44px; background: #0B0D1A;
	box-shadow: 0 0 0 1px #2A2F4A, 0 30px 60px -20px rgba(7, 10, 31, .55), inset 0 0 0 2px #1A1E33;
	transition: width .35s cubic-bezier(.2, .8, .2, 1), aspect-ratio .35s cubic-bezier(.2, .8, .2, 1);
}
.phone.portrait { width: 300px; aspect-ratio: 9 / 19.5; }
.phone.landscape { width: 100%; aspect-ratio: 19.5 / 9; border-radius: 34px; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone.landscape .phone-screen { border-radius: 25px; }
.spec { width: 100%; }
.spec h2 { font-size: 15px; margin-bottom: 10px; }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; font-size: 13px; }
.spec dt { color: var(--muted); font-weight: 600; }
.spec dd { margin: 0; font-weight: 600; }

/* reklamy v kampani */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.ad-card { display: flex; gap: 16px; padding: 14px; align-items: center; }
.ad-card.paused .ad-thumb { opacity: .5; filter: grayscale(.6); }
.ad-thumb { flex: none; display: block; }
.ad-thumb:hover { text-decoration: none; }
.phone-mini { width: 112px; aspect-ratio: 9 / 19.5; border-radius: 18px; overflow: hidden; border: 4px solid #0B0D1A; box-shadow: 0 10px 24px -10px rgba(7, 10, 31, .5); pointer-events: none; }
.ad-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ad-card-name { font-weight: 800; font-size: 16px; }
.ad-card-name a { color: var(--text); }
.ad-card-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; }

/* celoobrazovkový náhled */
.ad-fullscreen { margin: 0; height: 100vh; height: 100dvh; background: #000; overflow: hidden; }
.ad-fullscreen > .ad-creative { position: fixed; inset: 0; }
.ad-closed { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.ad-closed[hidden] { display: none; }

@media (max-width: 1000px) {
	.ad-editor { grid-template-columns: 1fr; }
	.ad-preview { position: static; order: -1; }
}
@media (max-width: 640px) {
	.row-2, .row-3, .kind-picker { grid-template-columns: 1fr; }
	.phone.portrait { width: 260px; }
}

/* =========================================================
   KREATIVA – celoobrazovková reklama (interstitial)
   škáluje se podle kontejneru (cqmin), na výšku i na šířku
   ========================================================= */
.ad-creative {
	position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
	container-type: size; container-name: ad;
	background: var(--ad-bg); color: var(--ad-fg);
	font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.3; text-align: left;
	-webkit-user-select: none; user-select: none;
}
.ad-creative [hidden] { display: none !important; }
.ad-creative[data-kind=template] .ad-full { display: none; }
.ad-creative[data-kind=image] .ad-tpl { display: none; }

/* hotová reklama z obrázku */
.ad-full { position: absolute; inset: 0; background: var(--ad-bg); }
.ad-full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-full .ad-full-bg { filter: blur(28px) brightness(.65); transform: scale(1.25); display: none; }
.ad-full .ad-img-l { display: none; }

/* šablona */
.ad-tpl { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ad-visual { position: relative; flex: 1 1 48%; min-height: 0; overflow: hidden; }
.ad-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--ad-bg) 98%); pointer-events: none; }
.ad-hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ad-zoom 9s ease-out both; }
.ad-shapes { position: absolute; inset: 0; }
.ad-shapes i { position: absolute; display: block; border-radius: 50%; }
.ad-shapes i:nth-child(1) { width: 95cqmin; height: 95cqmin; right: -28cqmin; top: -30cqmin; background: var(--ad-accent); animation: ad-float 7s ease-in-out infinite; }
.ad-shapes i:nth-child(2) { width: 52cqmin; height: 52cqmin; left: -14cqmin; bottom: 0; border: 3.2cqmin solid var(--ad-accent); opacity: .55; animation: ad-float 9s ease-in-out infinite reverse; }
.ad-shapes i:nth-child(3) {
	width: 34cqmin; height: 34cqmin; left: 40%; top: 46%; border-radius: 6cqmin; transform: rotate(18deg);
	background: repeating-linear-gradient(135deg, var(--ad-fg) 0 1.2cqmin, transparent 1.2cqmin 3.4cqmin); opacity: .16;
}
.ad-copy {
	position: relative; flex: none; display: flex; flex-direction: column; gap: 3cqmin;
	padding: 0 7cqmin calc(26cqmin) 7cqmin; min-height: 40%;
}
.ad-brand { display: flex; align-items: center; gap: 2.6cqmin; font-weight: 750; font-size: 3.8cqmin; animation: ad-rise .6s .05s cubic-bezier(.2, .8, .2, 1) both; }
.ad-logo {
	flex: none; width: 10cqmin; height: 10cqmin; border-radius: 2.6cqmin; overflow: hidden;
	display: grid; place-items: center; background: var(--ad-accent); color: var(--ad-on-accent);
	font-family: var(--display, "Bebas Neue"), sans-serif; font-size: 6.4cqmin; font-weight: 400;
}
.ad-logo img { width: 100%; height: 100%; object-fit: cover; }
.ad-logo b { font-weight: 400; padding-top: .4cqmin; }
.ad-advertiser { opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-headline {
	margin: 0; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; text-transform: uppercase;
	font-size: 14cqmin; line-height: .9; letter-spacing: .005em; text-wrap: balance; overflow-wrap: anywhere;
	animation: ad-rise .6s .12s cubic-bezier(.2, .8, .2, 1) both;
}
.ad-body { margin: 0; font-size: 4.3cqmin; line-height: 1.4; opacity: .82; text-wrap: pretty; animation: ad-rise .6s .2s cubic-bezier(.2, .8, .2, 1) both; }

/* tlačítko akce */
.ad-cta {
	position: absolute; left: 7cqmin; right: 7cqmin; bottom: 8cqmin; z-index: 2;
	height: 14cqmin; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 2.4cqmin;
	background: var(--ad-accent); color: var(--ad-on-accent); font-weight: 800; font-size: 4.8cqmin; letter-spacing: -.005em;
	box-shadow: 0 2cqmin 6cqmin -1cqmin color-mix(in srgb, var(--ad-accent) 70%, transparent);
	animation: ad-rise .6s .28s cubic-bezier(.2, .8, .2, 1) both, ad-pulse 2.4s 1.2s ease-in-out infinite;
	text-decoration: none !important;
}
.ad-cta svg { width: 5cqmin; height: 5cqmin; }

/* štítek a zavírání */
.ad-label {
	position: absolute; top: 4cqmin; left: 4cqmin; z-index: 3;
	font-size: 2.6cqmin; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
	padding: .9cqmin 2.2cqmin; border-radius: 999px; background: rgba(0, 0, 0, .42); color: #fff;
	backdrop-filter: blur(8px);
}
.ad-close {
	position: absolute; top: 3cqmin; right: 3cqmin; z-index: 3;
	width: 10cqmin; height: 10cqmin; min-width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer;
	backdrop-filter: blur(8px); transition: transform .15s, background .15s;
}
.ad-close > * { grid-area: 1 / 1; }
.ad-close:disabled { cursor: default; }
.ad-creative.can-close .ad-close:hover { background: rgba(0, 0, 0, .7); transform: scale(1.06); }
.ad-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ad-ring circle { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100.6; stroke-dashoffset: 100.6; }
.ad-creative.counting .ad-ring circle { animation: ad-ring var(--ad-close-ms, 5s) linear forwards; }
.ad-count { font-size: max(3.8cqmin, 11px); font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-x { width: 50%; height: 50%; display: none; }
.ad-creative.can-close .ad-x { display: block; }
.ad-creative.can-close .ad-count, .ad-creative.can-close .ad-ring { display: none; }

/* na šířku */
@container ad (orientation: landscape) {
	.ad-tpl { flex-direction: row; }
	.ad-visual { flex: 0 0 46%; }
	.ad-copy { flex: 1; min-height: 0; }
	.ad-visual::after { background: linear-gradient(90deg, transparent 55%, var(--ad-bg) 99%); }
	.ad-copy { justify-content: center; padding: 8cqmin 8cqmin 26cqmin 4cqmin; gap: 2.6cqmin; }
	.ad-headline { font-size: 13cqmin; }
	.ad-body { font-size: 3.8cqmin; }
	.ad-cta { left: calc(46% + 4cqmin); right: 8cqmin; bottom: 8cqmin; height: 12cqmin; font-size: 4.2cqmin; }
	.ad-creative[data-kind=image] .ad-cta { left: auto; width: 42cqw; right: 5cqmin; bottom: 5cqmin; }
	.ad-full .ad-img-p { display: none; }
	.ad-full .ad-img-l { display: block; }
	.ad-full .ad-img-l.contain { object-fit: contain; }
	.ad-full:has(.ad-img-l.contain) .ad-full-bg { display: block; }
	.ad-shapes i:nth-child(1) { width: 80cqmin; height: 80cqmin; right: -20cqmin; top: -24cqmin; }
}

@keyframes ad-rise { from { opacity: 0; transform: translateY(4cqmin); } }
@keyframes ad-zoom { from { transform: scale(1.12); } }
@keyframes ad-float { 50% { transform: translate(-3cqmin, 4cqmin) scale(1.04); } }
@keyframes ad-pulse { 50% { transform: scale(1.03); } }
@keyframes ad-ring { to { stroke-dashoffset: 0; } }

/* přidělení reklam */
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-reach { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 7px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s; }
.ad-reach b { color: var(--text); font-size: 14px; }
.ad-reach:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
@media (max-width: 560px) { .stats-3 { grid-template-columns: 1fr; } }
.dev-login { display: block; margin-top: 6px; padding: 9px 14px; border-radius: 999px; border: 1px dashed rgba(212, 250, 85, .55); color: var(--lime); font-size: 13.5px; font-weight: 650; text-align: center; }
.dev-login:hover { background: rgba(212, 250, 85, .1); text-decoration: none; }
.ad-creative.counting .ad-ring circle { animation-play-state: var(--ad-ring-state, running); }
.ad-credit {
	position: fixed; left: 50%; top: 14%; z-index: 10; transform: translateX(-50%);
	display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
	background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; white-space: nowrap;
	box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .6); animation: credit-pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.ad-credit b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 30px; line-height: 1; color: var(--lime); }
.ad-credit[hidden] { display: none; }
@keyframes credit-pop { from { opacity: 0; transform: translate(-50%, -12px) scale(.9); } }
.device-stats { grid-template-columns: repeat(4, 1fr); }
.device-stats .credits { background: var(--ink); color: var(--lime); }
.device-stats .credits span { color: rgba(255, 255, 255, .6); }
.credit-pill { background: var(--ink); color: var(--lime); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
button.dev-login { width: 100%; background: transparent; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }

/* karta reklamy v kampani (v2) */
.ad-list { display: flex; flex-direction: column; gap: 14px; }
.ad-list .ad-card { display: flex; gap: 22px; align-items: stretch; padding: 18px; }
.ad-list .phone-mini { width: 96px; border-width: 3px; border-radius: 16px; }
/* náhled v kartě je statický – bez odpočtu, štítku a animací */
.phone-mini .ad-close, .phone-mini .ad-label { display: none; }
.phone-mini .ad-creative, .phone-mini .ad-creative * { animation: none !important; }
.ad-list .ad-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ad-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ad-list .ad-card-name { margin: 0 0 2px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.ad-list .ad-card-name a { color: var(--text); }
.ad-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: inherit; transition: border-color .15s; }
.ad-metrics:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); text-decoration: none; }
.ad-metrics span { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-width: 0; }
.ad-metrics span + span { border-left: 1px solid var(--border); }
.ad-metrics b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.ad-metrics small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-metrics span:first-child { background: var(--ink); }
.ad-metrics span:first-child b { color: var(--lime); }
.ad-metrics span:first-child small { color: rgba(255, 255, 255, .6); }
.ad-list .ad-card-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: auto 0 0; }
@media (max-width: 640px) {
	.ad-list .ad-card { flex-direction: column; }
	.ad-list .ad-thumb { align-self: center; }
	.ad-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ad-metrics span:nth-child(3) { border-left: 0; }
	.ad-metrics span:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* klienti agentury, profil */
.narrow-form { max-width: 820px; }
.client-list { display: flex; flex-direction: column; gap: 12px; }
.client-card { display: flex; align-items: center; gap: 20px; padding: 16px 18px; flex-wrap: wrap; }
.client-main { display: flex; align-items: center; gap: 14px; flex: 1 1 260px; min-width: 0; color: inherit; }
.client-main:hover { text-decoration: none; }
.client-main:hover b { color: var(--primary); }
.client-name { display: flex; flex-direction: column; min-width: 0; }
.client-name b { font-size: 16.5px; font-weight: 800; }
.client-stats { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.client-stats span { display: flex; flex-direction: column; padding: 8px 14px; }
.client-stats span + span { border-left: 1px solid var(--border); }
.client-stats b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.client-stats small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.client-actions { display: flex; gap: 6px; }
.own-link { margin-top: 18px; }
.acting-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; margin-bottom: 18px; border-radius: 14px; background: var(--ink); color: #fff; }
.acting-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 3px 9px; border-radius: 999px; }
.acting-bar .muted { color: rgba(255, 255, 255, .6); }
.acting-link { margin-left: auto; color: rgba(255, 255, 255, .8); font-weight: 650; font-size: 13.5px; }
.acting-exit { color: var(--lime); font-weight: 700; font-size: 13.5px; }
a.account-chip:hover { color: #fff; text-decoration: none; }
.field select { appearance: auto; }
/* admin */
.relations { display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.relations .pill:hover, .agency-pill:hover { text-decoration: none; filter: brightness(.95); }
.agency-pill { background: var(--ink); color: var(--lime); }
.user-form .sel-agency { display: none; }
.user-form[data-type=customer] .sel-agency { display: inline-block; max-width: 170px; }
.user-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.user-side { display: flex; flex-direction: column; gap: 14px; }
.user-side h2 { font-size: 15px; }
.user-form-stack { flex-wrap: wrap; }
.client-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.client-mini li { display: flex; flex-direction: column; }
@media (max-width: 900px) { .user-detail { grid-template-columns: 1fr; } }

/* úzké formuláře vystředěné i s nadpisem */
.narrow-page { max-width: 820px; margin: 0 auto; }
.narrow-page .narrow-form { max-width: none; }
.field input[type=tel] { width: 100%; }
.vivi-pill { background: #F4ECF6; color: #874A94; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.vivi-pill.sm { display: inline-block; margin-top: 4px; font-size: 11.5px; padding: 1px 8px; }

/* levely */
.level-num { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--ink); color: var(--lime); font-family: var(--display); font-size: 20px; }
.level-form { display: flex; gap: 6px; align-items: center; }
.level-form input { flex: 1; min-width: 140px; }
.level-add { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); }
.level-add input { flex: 1; }
.level-note { margin-top: 14px; }
.credit-rows { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.credit-row { display: grid; grid-template-columns: auto 1fr 110px auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 14px; }
.credit-row[hidden] { display: none; }
.credit-row .credit-name { font-weight: 700; font-size: 14px; }
.credit-row input { width: 100%; text-align: right; font-weight: 700; }
.credit-row .level-num { min-width: 30px; height: 30px; font-size: 18px; }
.credit-remove { font-size: 18px; line-height: 1; padding: 4px 10px; }
.credit-add { display: flex; gap: 8px; align-items: center; }
.credit-add[hidden] { display: none; }
.credit-add select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* šablony e-mailů */
.email-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px; }
.email-card { padding: 20px; }
.email-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.email-head h2 { margin: 0 0 2px; }
.email-head p { margin: 0; }
.email-subject { margin: 14px 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.email-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.email-frame { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #EEF1FA; }
.email-frame iframe { display: block; width: 100%; height: 560px; border: 0; }
.email-side { display: flex; flex-direction: column; gap: 14px; }
.email-side summary { cursor: pointer; font-weight: 650; font-size: 14px; }
.email-side pre { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; background: var(--surface-2); padding: 12px; border-radius: 12px; margin: 8px 0 0; max-height: 320px; overflow: auto; }
.email-test { display: flex; flex-direction: column; gap: 6px; }
.email-test-row { display: flex; gap: 6px; }
.email-test-row input { flex: 1; min-width: 0; }
.invite-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 4px 0 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.invite-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); }
.invite-check span { flex: 1; }
[data-only-customer][hidden] { display: none; }
@media (max-width: 900px) { .email-body { grid-template-columns: 1fr; } }

/* e-maily v2: seznam vlevo, detail vpravo */
.mail-admin { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 12px; }
.mail-list { display: flex; flex-direction: column; padding: 6px; position: sticky; top: 84px; }
.mail-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.mail-item:hover { background: var(--surface-2); text-decoration: none; }
.mail-item b { font-size: 14px; display: flex; justify-content: space-between; gap: 6px; }
.mail-item small { font-size: 12px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-item.active { background: var(--ink); color: #fff; }
.mail-item.active small { color: rgba(255, 255, 255, .6); }
.mail-edited { color: var(--lime-deep); font-size: 10px; }
.mail-detail { padding: 18px; }
.mail-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mail-detail-head h2 { margin: 0 0 6px; }
.mail-subject { font-size: 14px; }
.mail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.mail-columns .email-frame iframe { height: calc(100vh - 260px); min-height: 460px; }
.mail-edit { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 260px); min-height: 460px; overflow-y: auto; padding-right: 2px; }
.mail-text-form { display: flex; flex-direction: column; gap: 10px; }
.mail-edit-head { display: flex; justify-content: space-between; align-items: center; }
.mail-field { display: flex; flex-direction: column; gap: 4px; }
.mail-field label { font-size: 12.5px; font-weight: 700; }
.mail-field input, .mail-field textarea { width: 100%; font-size: 13.5px; padding: 8px 11px; }
.mail-field.changed input, .mail-field.changed textarea { border-color: var(--lime-deep); box-shadow: inset 3px 0 0 var(--lime-deep); }
.mail-changed { color: var(--muted); font-size: 11.5px; }
.mail-vars code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; margin-left: 4px; font-size: 12px; }
.mail-plain summary { cursor: pointer; font-weight: 650; font-size: 13.5px; }
.mail-plain pre { white-space: pre-wrap; font-size: 12px; background: var(--surface-2); padding: 10px; border-radius: 10px; }
@media (max-width: 1100px) { .mail-columns { grid-template-columns: 1fr; } .mail-edit { max-height: none; } }
@media (max-width: 800px) { .mail-admin { grid-template-columns: 1fr; } .mail-list { position: static; } }

/* historie změn */
.history { padding: 18px 20px; margin-top: 18px; }
.history-wrap { margin-top: 18px; }
.history-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.history-head h2 { margin: 0; }
.history-filter { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; cursor: pointer; }
.history-empty { margin: 0; }
.history-list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.history-item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 10px 4px; border-top: 1px solid var(--border); }
.history-item:first-child { border-top: 0; }
.history-item[hidden] { display: none; }
.history-when { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.history-when .time { font-weight: 650; font-variant-numeric: tabular-nums; }
.history-field { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.history-change { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 3px; font-size: 13.5px; }
.history-old { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.history-arrow { color: var(--muted); }
.history-new { font-weight: 650; }
.history-tag { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 800; }
.history-item.price .history-new { color: var(--primary); }
@media (max-width: 640px) { .history-item { grid-template-columns: 1fr; gap: 4px; } }

/* rozpočet kreditů */
.budget-bar { display: flex; width: 100%; max-width: 180px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.budget-bar i { display: block; height: 100%; background: var(--primary); }
.budget-bar i.reserved { background: color-mix(in srgb, var(--primary) 35%, transparent); }
.status-exhausted { background: var(--bad-soft); color: var(--bad); }
.text-bad { color: var(--bad); }

/* kalendář (datepicker.js) */
.dp { position: relative; display: block; }
.dp-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; bottom: 0; left: 12px; }
.dp-field {
	width: 100%; display: flex; align-items: center; gap: 9px; text-align: left;
	font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
	border-radius: 12px; padding: 9px 13px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.dp-field svg { color: var(--primary); flex: none; }
.dp-field.empty span { color: var(--muted); }
.dp-field:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.dp-field:focus-visible, .dp-field[aria-expanded=true] { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.toolbar .dp { display: inline-block; }
.toolbar .dp-field { width: auto; min-width: 150px; }
.dp-pop {
	position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 296px; padding: 12px;
	background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px;
	box-shadow: var(--shadow-lg); animation: pop .14s ease-out;
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { font-size: 15px; text-transform: capitalize; }
.dp-nav { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.dp-nav:hover { background: var(--primary-soft); color: var(--primary); }
.dp-week, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-week span { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 0; }
.dp-day { height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-day:hover:not(:disabled) { background: var(--surface-2); }
.dp-day.other { color: var(--muted); opacity: .55; }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.dp-day.selected, .dp-day.selected:hover { background: var(--ink); color: var(--lime); box-shadow: none; }
.dp-day:disabled { opacity: .25; cursor: not-allowed; text-decoration: line-through; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.dp-link { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--primary); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.dp-link.muted { color: var(--muted); }
.dp-link:hover { background: var(--surface-2); }

/* Telefon v adminu: souhlasy, údaje o zařízení, aplikace a profil */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-bottom: 18px; }
.audience-card h2 { font-size: 15px; margin: 0 0 12px; letter-spacing: .02em; }
.consent-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.consent-list li { display: flex; align-items: center; gap: 9px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.2); }
.consent-list li.on { color: inherit; text-decoration: none; font-weight: 600; }
.consent-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: none; }
.consent-list li.on .dot { background: var(--lime); box-shadow: 0 0 0 2px var(--ink); }
.consent-history summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.app-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.app-cat b { font-size: 12.5px; min-width: 100%; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Zásady ochrany osobních údajů */
.legal-page { max-width: 820px; margin: 0 auto; padding: 22px 16px 60px; }
.legal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.legal-top .lang summary { border-color: rgba(255, 255, 255, .28); }
.legal { color: var(--ink); padding: clamp(22px, 5vw, 44px); line-height: 1.6; }
.legal h1 { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: clamp(34px, 6vw, 48px); line-height: 1; margin: 0 0 6px; color: var(--blue); }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.legal th { background: var(--surface-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.legal-apps { margin-top: 26px; }
.legal-apps summary { cursor: pointer; font-weight: 700; }
@media (max-width: 640px) { .legal table, .legal tbody, .legal tr, .legal td, .legal th { display: block; } .legal thead { display: none; } .legal tr { border-bottom: 1px solid var(--border); padding: 6px 0; } .legal td { border: 0; padding: 3px 0; } }
@media (max-width: 640px) { .legal td:first-child { font-weight: 600; } }

/* Cílení kampaně */
.targeting .reach { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 20px; padding: 16px 18px; margin: 4px 0 14px; border-radius: 16px; background: var(--ink); color: #fff; position: sticky; top: 8px; z-index: 5; box-shadow: var(--shadow); }
.targeting .reach .muted { color: rgba(255,255,255,.65); }
.reach-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); font-weight: 700; }
.reach-num b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 38px; line-height: 1; color: var(--lime); }
.reach-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.reach-bar span { display: block; height: 100%; background: var(--lime); border-radius: 99px; transition: width .3s; }
.reach #reach-exact { grid-column: 1 / -1; }
.tg-group { border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; background: var(--surface); }
.tg-group > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.tg-group > summary::-webkit-details-marker { display: none; }
.tg-group > summary::after { content: "›"; margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .15s; }
.tg-group[open] > summary::after { transform: rotate(90deg); }
.tg-count:not(:empty) { background: var(--primary); color: #fff; font-size: 12px; min-width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.tg-group > :not(summary) { margin-left: 18px; margin-right: 18px; }
.tg-group > :last-child { margin-bottom: 16px; }
.tg-field { margin-bottom: 14px; }
.tg-label { font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.chip-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-option { position: relative; cursor: pointer; }
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option span { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; font-size: 13.5px; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.chip-option:hover span { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.chip-option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.chip-option input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.tg-map { height: 320px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); cursor: crosshair; }
.tg-geo-actions { display: flex; align-items: flex-end; }
.tg-strict { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border: 1px dashed var(--border); border-radius: 16px; cursor: pointer; margin-top: 4px; }
.tg-strict input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary); }

/* Přehled kampaní – tabulka */
.list-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.seg-n { font-size: 11.5px; opacity: .7; margin-left: 3px; }
.list-search { min-width: 220px; max-width: 320px; flex: 1 1 220px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: inherit; }
.campaign-table td { vertical-align: middle; }
.campaign-row { cursor: pointer; }
.campaign-row:hover td { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.campaign-title { font-weight: 750; color: var(--ink); }
.campaign-table .num { text-align: right; white-space: nowrap; }
.campaign-table .nowrap { white-space: nowrap; }
.campaign-table .regions { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.credits-cell { min-width: 130px; }
.mini-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.mini-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.row-actions { text-align: right; white-space: nowrap; }
.tg-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--ink); color: var(--lime); }
.list-empty { padding: 18px 20px; margin: 0; }

/* Telefony v adminu – tabulka */
.device-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; margin-bottom: 14px; }
.device-toolbar input[type=search] { flex: 1 1 240px; }
.device-toolbar select, .device-toolbar input[type=search] { padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 0 6px; cursor: pointer; }
.device-table td { vertical-align: middle; }
.device-row { cursor: pointer; }
.device-row:hover td { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.device-cell { display: flex; gap: 12px; align-items: center; color: inherit; }
.device-cell:hover { text-decoration: none; }
.device-cell > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; flex: none; }
.device-table .num { text-align: right; white-space: nowrap; }
.device-table .nowrap { white-space: nowrap; }
.muted-region { opacity: .55; }
.sort-link { color: inherit; }
.sort-link.active { color: var(--primary); }
.data-flags { white-space: nowrap; }
.data-flags .flag { opacity: .18; filter: grayscale(1); font-size: 15px; }
.data-flags .flag.on { opacity: 1; filter: none; }
