/* Creator Finder — светлый «воздушный» стиль: белые карточки, большие скругления, таблетки */
:root {
  --bg: #f4f5fa;
  --card: #ffffff;
  --ink: #15161c;
  --muted: #7a7d8c;
  --line: #e9eaf2;
  --accent: #5b5bf6;          /* основной — индиго */
  --accent-soft: #ecebff;
  --coral: #ff4d6d;           /* для акцентных кнопок */
  --coral-soft: #ffe8ec;
  --ok: #17a673; --ok-soft: #e3f7ef;
  --warn: #e0820b; --warn-soft: #fff1dc;
  --bad: #e5484d; --bad-soft: #ffe7e8;
  --info: #3b82f6; --info-soft: #e6efff;
  --grey-soft: #f0f1f5;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 22, 40, .04), 0 8px 24px rgba(20, 22, 40, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* каркас */
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; margin: 0 8px 26px; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--coral));
  color: #fff; display: grid; place-items: center; font-size: 16px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink);
  font-weight: 500; margin-bottom: 2px; }
.nav a:hover { background: var(--grey-soft); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .ic { width: 20px; text-align: center; }
.side .foot { position: absolute; bottom: 18px; left: 24px; right: 16px; color: var(--muted); font-size: 12px; }
main { padding: 28px 32px 60px; max-width: 1680px; min-width: 0; }

h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 19px; margin: 0 0 14px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* шапка-градиент с поиском, как у сервисов проверки */
.hero { background: linear-gradient(120deg, #e7ebff 0%, #f1e9ff 55%, #ffe9ef 100%); border-radius: 28px;
  padding: 30px 32px; margin-bottom: 24px; }
.hero h1 { font-size: 30px; }
.search { display: flex; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow); max-width: 720px; align-items: center; }
.search input, .search textarea { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; resize: none; }

/* карточки и сетки */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px; }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.kpi .l { color: var(--muted); font-size: 13px; }
.kpi .h { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* кнопки и таблетки */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px;
  font: inherit; font-weight: 600; cursor: pointer; background: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn.coral { background: var(--coral); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: var(--grey-soft); color: var(--ink); }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.p-ok { background: var(--ok-soft); color: var(--ok); }
.p-suspicious { background: var(--bad-soft); color: var(--bad); }
.p-insufficient { background: var(--grey-soft); color: var(--muted); }
.p-info { background: var(--info-soft); color: var(--info); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-seg { background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--grey-soft); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.chip.on { background: var(--ink); color: #fff; }
.chip:hover { text-decoration: none; filter: brightness(.97); }

/* таблица */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.compact td { padding: 10px 8px; }
.compact th { padding: 10px 8px; }
.compact .who b { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact .who .muted { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
th a { color: var(--muted); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafaff; }
.who { display: flex; align-items: center; gap: 12px; }
.ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.ava.lg { width: 84px; height: 84px; font-size: 30px; }
.ava { position: relative; overflow: hidden; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flag { font-size: 16px; line-height: 1; }
.tops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #ecebff, #ffe8ec);
  aspect-ratio: 4 / 5; display: block; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; font-size: 12.5px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.tile .kind { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.45); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.tile.noimg { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 10px; }
.mailbox textarea { min-height: 260px; font: 14px/1.5 inherit; }
.who b { display: block; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* полоса-индикатор */
.bar { height: 8px; border-radius: 999px; background: var(--grey-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.stack { display: flex; height: 26px; border-radius: 10px; overflow: hidden; }
.stack span { display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* проверки в карточке */
.check { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.check .top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.check .t { font-weight: 700; }
.check ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; }
.check .alt { font-size: 13px; color: var(--muted); margin-top: 6px; }
.verdict { display: flex; gap: 6px; align-items: center; }
.verdict form { margin: 0; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 6px; }
pre { background: var(--grey-soft); border-radius: 12px; padding: 12px; font-size: 12px; overflow-x: auto; }

/* формы */
label { font-size: 13px; color: var(--muted); display: block; margin: 10px 0 4px; }
input[type=text], input[type=date], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font: inherit; background: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters select, .filters input { width: auto; min-width: 150px; }
.note { background: var(--warn-soft); color: #7a4a05; border-radius: 14px; padding: 12px 16px; font-size: 14px; }
.okbox { background: var(--ok-soft); color: #0b6b49; border-radius: 14px; padding: 12px 16px; }
.log { background: #12131a; color: #d6d8e6; border-radius: 16px; padding: 16px; font: 13px/1.6 ui-monospace, Consolas, monospace;
  max-height: 420px; overflow-y: auto; white-space: pre-wrap; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side .foot { position: static; margin-top: 12px; }
  .g4, .g3, .g2 { grid-template-columns: 1fr 1fr; }
  main { padding: 20px 16px; }
}
