:root {
	--bg: #f4f6f8; --card: #fff; --ink: #1c2733; --muted: #6b7b8b;
	--accent: #1f7a6d; --accent-soft: #e3f1ee; --line: #e1e7ec;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--bg); color: var(--ink); line-height: 1.55; }

.topbar { display: flex; align-items: center; gap: 24px; background: #145c52;
	color: #fff; padding: 12px 24px; }
.topbar .brand a { color: #fff; font-weight: 700; text-decoration: none; font-size: 18px; }
.topbar nav { display: flex; gap: 16px; }
.topbar nav a { color: #cfe9e3; text-decoration: none; }
.topbar nav a:hover { color: #fff; }
.topbar .env { margin-left: auto; font-size: 12px; opacity: .7; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }
h1 { font-size: 24px; margin: 0 0 20px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.muted { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.card.big { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card.big.accent { background: var(--accent-soft); border-color: #bfe0d9; }
.card .num { font-size: 32px; font-weight: 700; color: var(--accent); }
.card .lbl { font-size: 13px; color: var(--muted); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv th { text-align: left; color: var(--muted); font-weight: 500; }
table.kv td { text-align: right; font-weight: 600; }
table.list th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase;
	border-bottom: 1px solid var(--line); padding: 6px 8px; }
table.list td { padding: 7px 8px; border-bottom: 1px solid #f0f3f5; }
table.list a { color: var(--accent); }

.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef1f3; color: var(--muted); }
.badge.running { background: #fff3d6; color: #946200; }
.badge.done { background: #e6f4ec; color: #2f8a5b; }
.badge.error { background: #fde4e4; color: #b53636; }
.badge.new { background: #e7f0fb; color: #2b6cb0; }
.badge.p-high { background: #e6f4ec; color: #2f8a5b; font-weight: 600; }
.badge.p-medium { background: #fff3d6; color: #946200; }
.badge.p-low { background: #eef1f3; color: var(--muted); }
.badge.p-exclude { background: #fde4e4; color: #b53636; }

.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input, .filters select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.filters button { padding: 7px 16px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; cursor: pointer; }
.filters .clear { align-self: center; color: var(--muted); }

pre.cmd, pre { background: #1c2733; color: #d7e0e8; padding: 12px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
code { background: #eef1f3; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* flash zprávy */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash.success { background: #e6f4ec; color: #2f8a5b; border: 1px solid #bfe0d9; }
.flash.error { background: #fde4e4; color: #b53636; border: 1px solid #f0c0c0; }

/* skóre relevance */
.score { display: inline-block; min-width: 34px; text-align: center; padding: 2px 8px;
	border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: help; }
.score.good { background: #e6f4ec; color: #2f8a5b; }
.score.bad { background: #fde4e4; color: #b53636; }
.score.zero { background: #eef1f3; color: var(--muted); }
tr.row-bad { background: #fff7f7; }
td.reason code { font-size: 11.5px; background: #f3f6f8; color: #5b6b7b; }
.src-badge { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
	padding: 1px 6px; border-radius: 4px; margin: 1px; letter-spacing: .02em; }
.src-badge.src-osm { background: #e6f0fb; color: #2b6cb0; }
.src-badge.src-web { background: #e6f4ec; color: #2f8a5b; }
.src-badge.src-gas, .src-badge.src-schools, .src-badge.src-fairs { background: #f3eafc; color: #7a4cb0; }
.src-badge.src-places, .src-badge.src-enrich { background: #fcf1dd; color: #946200; }
.src-badge.src-manual { background: #eef1f3; color: #5b6b7b; }
.src-badge.src-brand, .src-badge.src-csv { background: #f3eafc; color: #7a4cb0; }
/* brand radar: značky zastupované prospektem */
.brand-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
	margin: 1px; cursor: help; white-space: nowrap; }
.brand-badge.brand-locator { background: #ece7fb; color: #5b3fb0; }          /* potvrzeno dealer-listem */
.brand-badge.brand-site_mention { background: #eef1f3; color: #5b6b7b; }     /* jen zmínka na webu */
.brand-badge.brand-parent_network { background: #e6f0fb; color: #2b6cb0; }   /* zděděno z rodiče */
.brand-fit { display: inline-block; font-size: 12px; font-weight: 700; color: #7a4cb0;
	cursor: help; font-variant-numeric: tabular-nums; }
.fit-col { text-align: center; font-variant-numeric: tabular-nums; font-size: 12.5px; color: #5b6b7b; }
/* jen brand signál, AI nevyhodnoceno (typicky brand-dealer bez webu) — orientační, ne plné skóre */
.fit-tentative { display: inline-block; min-width: 30px; text-align: center; font-size: 12px; font-weight: 600;
	padding: 2px 7px; border-radius: 6px; cursor: help; font-variant-numeric: tabular-nums;
	color: #8a94a0; background: transparent; border: 1px dashed #c7cfd6; }
.ai-badge { display: inline-block; min-width: 30px; text-align: center; font-size: 12px; font-weight: 700;
	padding: 2px 7px; border-radius: 6px; cursor: help; font-variant-numeric: tabular-nums; }
.ai-badge.ai-relevant { background: #e6f4ec; color: #2f8a5b; }
.ai-badge.ai-maybe { background: #fff3d6; color: #946200; }
.ai-badge.ai-irrelevant { background: #fde4e4; color: #b53636; }
.crm-badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.crm-badge.yes { background: #e6f4ec; color: #2f8a5b; }
.crm-badge.no { background: #eef1f3; color: #6b7b8b; }
.crm-badge.unk { background: #fff3d6; color: #946200; cursor: help; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filters label { display: inline-flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
/* kontingenční tabulka — kompaktní, čitelná */
table.pivot { width: auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.pivot th, table.pivot td { padding: 8px 18px; border-bottom: 1px solid #eef1f3; white-space: nowrap; }
table.pivot thead th { text-align: right; }                 /* hlavičky hodnotových sloupců nad čísly */
table.pivot thead th:first-child, table.pivot th.rowhead { text-align: left; }
table.pivot th.rowhead { background: #f7f9fa; font-weight: 600; color: var(--ink); }
table.pivot td { text-align: right; font-variant-numeric: tabular-nums; }
table.pivot tbody tr:nth-child(even) td,
table.pivot tbody tr:nth-child(even) th.rowhead { background: #fafbfc; }
table.pivot td.zero { color: #cfd6dd; }
table.pivot .tot { font-weight: 700; background: #f3f6f8; }
table.pivot tfoot th, table.pivot tfoot td { border-top: 2px solid var(--line); }
table.pivot .grand { background: var(--accent-soft); color: var(--accent); }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
td.addr { font-size: 13px; line-height: 1.4; min-width: 180px; }
td.addr .cc { color: var(--muted); }
.mailable { color: #2f8a5b; margin-left: 4px; }
.addr-warn { color: #b9770e; font-size: 11px; margin-left: 4px; white-space: nowrap; }
.reason-inline { color: #9aa7b2; font-size: 12px; cursor: help; }
.crawl-wait { font-size: 11px; cursor: help; opacity: .7; }
.pager { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.legend { margin-top: 14px; font-size: 13px; }
.legend .score { min-width: 0; padding: 1px 6px; font-size: 12px; }

/* nastavení grabberu */
.panel.help ol { margin: 0 0 8px; padding-left: 20px; }
.panel.help li { margin-bottom: 6px; }
.settings-form { margin-top: 16px; }
.settings-form .field { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.settings-form label { font-weight: 600; display: block; margin-bottom: 2px; }
.settings-form .hint { font-size: 12.5px; color: var(--muted); margin: 0 0 8px;
	white-space: normal; overflow-wrap: anywhere; cursor: auto; }
.settings-form textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.settings-form .plus { color: #2f8a5b; font-weight: 400; }
.settings-form .minus { color: #b53636; font-weight: 400; }
.settings-form .actions { margin-top: 16px; display: flex; align-items: center; gap: 16px; }
.settings-form button.primary { padding: 10px 22px; background: var(--accent); color: #fff; border: 0;
	border-radius: 8px; cursor: pointer; font-size: 15px; }

/* zdroje dat */
.src-status { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; }
.src-status.active { background: #e6f4ec; color: #2f8a5b; }
.src-status.planned { background: #e7f0fb; color: #2b6cb0; }
.src-status.optional { background: #f3eafc; color: #7a4cb0; }
.src-status.manual { background: #fdeede; color: #a85f17; }
.src-cost { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.src-cost.free { background: #e6f4ec; color: #2f8a5b; }
.src-cost.paid { background: #fcf1dd; color: #946200; }
.sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.source-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.source-card.active { border-color: #bfe0d9; box-shadow: 0 0 0 1px #bfe0d9 inset; }
.source-card.optional { opacity: .92; }
.source-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.source-card h3 { margin: 0 0 2px; font-size: 16px; }
.src-cat { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.src-gives { font-size: 14px; margin: 0 0 6px; }
.src-how { font-size: 13px; margin: 0 0 10px; }
.src-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; border-top: 1px solid #f0f3f5; padding-top: 8px; }
.src-count { color: #2f8a5b; font-weight: 600; }
.src-foot a { color: var(--accent); }

/* monitoring */
.live { font-size: 14px; color: #2f8a5b; font-weight: 600; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.start-panel .start-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn { padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.run-panel .run-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.run-panel .run-head h2 { margin: 0; }
.progress { position: relative; background: #eef1f3; border-radius: 999px; height: 26px; overflow: hidden; margin-bottom: 16px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #1f7a6d, #2fa58f); transition: width .4s ease; }
.progress-bar.done { background: linear-gradient(90deg, #2f8a5b, #45b06f); }
.progress-bar.error { background: linear-gradient(90deg, #b53636, #d35656); }
.progress-label { position: absolute; top: 0; left: 0; right: 0; line-height: 26px; text-align: center; font-size: 13px; font-weight: 700; color: #1c2733; }
.run-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.run-stats > div { background: #f7f9fa; border-radius: 8px; padding: 10px 12px; }
.run-stats .k { display: block; font-size: 12px; color: var(--muted); }
.run-stats .v { font-size: 18px; font-weight: 700; }

/* sběr dat — task karty */
.intro { max-width: 780px; margin: -6px 0 18px; }
.section-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em;
	color: var(--muted); font-weight: 700; margin: 24px 0 10px; }
.tasks { display: grid; gap: 10px; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 18px;
	background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.task.primary { border-color: #bfe0d9; box-shadow: 0 0 0 1px #bfe0d9 inset; }
.task-body { min-width: 0; }
.task-body h3 { margin: 0 0 3px; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-body p { margin: 0; font-size: 13px; }
.task-action { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.task-action select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; }
.task-action button.btn { cursor: pointer; font-family: inherit; }
.task-action.run-form { flex-direction: column; align-items: flex-end; gap: 10px; }
.run-row { display: flex; align-items: center; gap: 8px; }
.run-force { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
details.advanced { margin-top: 24px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--card); padding: 0 16px 16px; }
details.advanced > summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 14px; color: var(--muted); }
details.advanced[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
@media (max-width: 640px) { .task { flex-direction: column; align-items: stretch; } .task-action { justify-content: flex-start; } }

/* zápisník */
.notes { display: grid; gap: 10px; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line);
	border-radius: 10px; padding: 12px 14px; }
.note.note-zjisteni { border-left-color: #2b6cb0; }
.note.note-vylepseni { border-left-color: #946200; }
.note.note-napad { border-left-color: #2f8a5b; }
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.note-kind { font-size: 12px; font-weight: 700; }
.kind-zjisteni { color: #2b6cb0; } .kind-vylepseni { color: #946200; } .kind-napad { color: #2f8a5b; }
.note-del { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 14px; }
.note-del:hover { color: #b53636; }
.note-text { white-space: pre-wrap; line-height: 1.5; font-size: 14px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; }

@media (max-width: 800px) { .cards, .grid2 { grid-template-columns: 1fr 1fr; } }
/* Prospekti — širší kontejner (vyjede z .wrap 1100px na šířku tabulky) */
.prospects-page { position:relative; left:50%; transform:translateX(-50%); width:95vw; max-width:1440px; }
@media (max-width:1180px) { .prospects-page { left:auto; transform:none; width:100%; } }

/* Prospekti — filtr + akční pruh (Export) */
.filterbar { display:flex; flex-direction:column; gap:10px; padding:12px 14px; background:#f8fafc; border:1px solid var(--line); border-radius:12px; margin-bottom:12px; box-sizing:border-box; }
.filterbar select, .filterbar input[type=text], .filterbar input[type=number] { height:38px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:14px; box-sizing:border-box; font-family:inherit; }
.fb-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.fb-search-wrap { position:relative; flex:1 1 260px; min-width:200px; }
.fb-search-wrap .fb-search { width:100%; }
.fb-country { position:relative; flex:0 0 210px; }
.fb-country-input { width:100%; }
.fb-country-list { position:absolute; z-index:20; top:calc(100% + 4px); left:0; right:0; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 24px rgba(20,92,82,.14); max-height:280px; overflow:auto; }
.fb-ci { padding:8px 12px; font-size:14px; cursor:pointer; display:flex; justify-content:space-between; gap:8px; }
.fb-ci:hover { background:#eef6f4; }
.fb-ci-cc { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.fb-sort { flex:0 0 auto; color:var(--muted); }
.fb-presets, .fb-more, .fb-chips { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fb-chips { font-size:13px; gap:6px; }
.pill { display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:999px; background:#fff; border:1px solid var(--line); font-size:13px; font-weight:600; color:var(--ink); text-decoration:none; cursor:pointer; }
.pill:hover { border-color:var(--accent); color:var(--accent); }
.filterbar .chk { display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:13px; color:var(--ink); white-space:nowrap; cursor:pointer; }
.filterbar .chk input { margin:0; }
/* dual-range slider (total fit od–do) */
.fb-range { display:flex; flex-direction:column; gap:3px; padding:5px 12px 7px; border:1px solid var(--line); border-radius:8px; background:#fff; min-width:200px; }
.fb-range-cap { font-size:12px; color:var(--muted); white-space:nowrap; }
.fb-range-cap b { color:var(--ink); font-variant-numeric:tabular-nums; }
.fb-range-track { position:relative; height:18px; }
.fb-range-track::before { content:''; position:absolute; top:7px; left:0; right:0; height:4px; background:#e2e8f0; border-radius:2px; }
.fb-range-fill { position:absolute; top:7px; height:4px; background:var(--accent); border-radius:2px; }
.fb-range-track input[type=range] { position:absolute; top:0; left:0; width:100%; height:18px; margin:0; background:none; pointer-events:none; -webkit-appearance:none; appearance:none; }
.fb-range-track input[type=range]::-webkit-slider-thumb { pointer-events:auto; -webkit-appearance:none; appearance:none; width:16px; height:16px; border-radius:50%; background:#fff; border:2px solid var(--accent); cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.fb-range-track input[type=range]::-moz-range-thumb { pointer-events:auto; width:14px; height:14px; border-radius:50%; background:#fff; border:2px solid var(--accent); cursor:pointer; }
.fb-range-track input[type=range]::-webkit-slider-runnable-track { height:18px; background:none; }
.fb-range-track input[type=range]::-moz-range-track { height:18px; background:none; }
.chip { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:999px; background:#e6f0fb; color:#2b6cb0; border:0; font-size:12.5px; cursor:pointer; font-family:inherit; }
.chip:hover { background:#d6e6f8; }
.chip-clear { color:var(--muted); text-decoration:underline; font-size:12.5px; margin-left:4px; }

/* Statistiky dashboard */
.stat-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin-bottom:16px; }
.stat-tile { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.stat-tile.ok { border-color:#bfe0d9; box-shadow:0 0 0 1px #bfe0d9 inset; }
.stat-tile .stv { font-size:26px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; line-height:1.1; }
.stat-tile .stl { font-size:12.5px; color:var(--muted); margin-top:2px; }
.stat-cols { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
@media (max-width:800px){ .stat-cols { grid-template-columns:1fr; } }
.funnel, .bars { display:flex; flex-direction:column; gap:8px; }
.fn-row, .bar-row { display:grid; grid-template-columns:160px 1fr auto; align-items:center; gap:10px; }
.fn-l, .brl { font-size:13px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fn-t { position:relative; height:22px; background:#eef2f5; border-radius:6px; overflow:hidden; }
.brt { position:relative; height:16px; background:#eef2f5; border-radius:6px; overflow:hidden; }
.fn-f { height:100%; background:var(--accent); border-radius:6px; display:flex; align-items:center; padding:0 8px; color:#fff; font-size:12px; font-weight:600; min-width:2px; font-variant-numeric:tabular-nums; }
.brf { position:absolute; top:0; left:0; height:100%; background:var(--accent); border-radius:6px; min-width:2px; }
.brf-rel { background:#2f8a5b; }
.brf-brand { background:#7a4cb0; }
.brf-src { background:#2b6cb0; }
.brf.v-relevant { background:#2f8a5b; }
.brf.v-maybe { background:#d9a441; }
.brf.v-irrelevant { background:#c15b5b; }
.brf.v-unknown { background:#9aa7b2; }
.fn-p, .brv { font-size:12.5px; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; text-align:right; min-width:44px; }
.btn.ghost { background:transparent; border-color:transparent; color:var(--muted); }
.btn.ghost:hover { color:var(--accent); }

.actionbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; background:#ecfdf5; border:1px solid #c9efe0; border-radius:10px; margin-bottom:12px; box-sizing:border-box; }
.act-group { display:flex; align-items:center; gap:8px; }
.act-group input[name="tag"] { height:36px; padding:0 10px; border:1px solid var(--line); border-radius:8px; min-width:300px; box-sizing:border-box; }
.act-group .btn { height:36px; display:inline-flex; align-items:center; }
.hint { font-size:12px; color:var(--muted); cursor:help; white-space:nowrap; }

.list.prospects td.sel, .list.prospects th:first-child { text-align:center; width:28px; }
.list.prospects td.acctype select { padding:3px 4px; border:1px solid var(--line); border-radius:6px; font-size:12px; max-width:140px; }
.list.prospects input.selbox:disabled { opacity:.3; }

/* Generování e-mailu (Prospekti) */
.genmail-cell { white-space:nowrap; }
.btn-mini { font-size:12px; padding:4px 9px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); cursor:pointer; }
.btn-mini:hover { border-color:var(--accent); color:var(--accent); }
.btn-mini.done { background:#ecfdf5; border-color:#c9efe0; color:#0a7d52; }

.gm-modal { position:fixed; inset:0; background:rgba(15,23,42,.5); display:flex; align-items:flex-start; justify-content:center; padding:40px 16px; z-index:1000; overflow:auto; }
.gm-modal[hidden] { display:none; }
.gm-dialog { background:#fff; border-radius:12px; width:min(900px,100%); box-shadow:0 20px 60px rgba(0,0,0,.3); overflow:hidden; }
.gm-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--line); }
.gm-close { border:0; background:none; font-size:18px; cursor:pointer; color:var(--muted); }
.gm-progress { padding:28px 18px; text-align:center; }
.gm-spinner { width:36px; height:36px; margin:0 auto 14px; border:3px solid #e2e8f0; border-top-color:var(--accent); border-radius:50%; animation:gmspin .8s linear infinite; }
@keyframes gmspin { to { transform:rotate(360deg); } }
.gm-status { font-weight:600; margin-bottom:10px; }
.gm-log { list-style:none; padding:0; margin:0; font-size:13px; color:var(--muted); text-align:left; max-width:520px; margin:0 auto; }
.gm-log li { padding:3px 0; border-bottom:1px dashed #eef1f3; }
.gm-log li:before { content:"› "; color:var(--accent); }
.gm-error { padding:24px 18px; color:#b91c1c; }
.gm-result { padding:16px 18px; }
.gm-label { display:block; font-size:12px; color:var(--muted); margin:8px 0 3px; }
.gm-subject { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; box-sizing:border-box; }
.gm-cols { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:6px; }
.gm-cols textarea { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; box-sizing:border-box; font-family:inherit; font-size:13px; line-height:1.5; }
.gm-actions { display:flex; align-items:center; gap:8px; margin-top:14px; }
.gm-actions .grow { flex:1; }
@media (max-width:680px){ .gm-cols { grid-template-columns:1fr; } }

/* Nastavení — čitelnější šířka */
.settings-page { max-width: 900px; margin: 0 auto; }

/* Sloupec e-mailů (více adres s popisem vztahu) */
.list.prospects td.emails { font-size:12px; line-height:1.4; max-width:260px; }
.email-row { margin-bottom:3px; }
.email-rel { color:var(--muted); font-size:11px; }
.email-rel:before { content:" · "; }

/* Detail prospekta */
.detail-page { max-width: 1000px; margin: 0 auto; }
.back { display:inline-block; margin-bottom:12px; text-decoration:none; }
.detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.detail-head h1 { margin:0 0 6px; }
.detail-sub { display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--muted); }
.detail-badges { display:flex; align-items:center; gap:10px; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px; }
.detail-grid .panel h2 { font-size:14px; }
.detail-kv { width:100%; }
.detail-kv th { padding:3px 0; font-weight:500; }
.detail-kv td { padding:3px 0; }
.detail-reason { margin:8px 0 0; font-style:italic; color:#5b6b7b; font-size:13px; }
.research-panel .research-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.research-panel button[disabled] { opacity:.55; cursor:not-allowed; }
.prospect-link { text-decoration:none; color:inherit; }
.prospect-link:hover strong { color:var(--accent); text-decoration:underline; }
@media (max-width:760px){ .detail-grid { grid-template-columns:1fr; } }

/* Průzkum firmy (web search) */
.research-block { margin-top:12px; }
.research-block h3 { font-size:13px; margin:0 0 4px; color:var(--ink); }
.research-block ul { margin:0; padding-left:20px; font-size:14px; }
.research-block li { margin-bottom:3px; }
#researchBody .gm-spinner { margin:16px auto 8px; }
.gm-error { color:#b91c1c; }

/* Průběh průzkumu */
.rp-steps { list-style:none; padding:0; margin:10px 0; max-width:440px; }
.rp-steps li { padding:5px 0; font-size:14px; color:#9aa7b2; display:flex; align-items:center; gap:8px; }
.rp-steps li.rp-done { color:#0a7d52; }
.rp-steps li.rp-active { color:var(--ink); font-weight:600; }
.rp-spin { display:inline-block; width:14px; height:14px; border:2px solid #e2e8f0; border-top-color:var(--accent); border-radius:50%; animation:gmspin .8s linear infinite; }
.rp-el { font-size:12px; margin-top:6px; }
.research-sources { font-size:13px; }
.research-sources a { word-break:break-all; }
