:root {
  --bg: #ffffff; --panel: #f4f5f7; --line: #d7dbe1; --text: #1a1d23; --muted: #5b6472;
  --accent: #008e96; --md-primary: #00696f; --md-primary-hover: #007b82;
  --radius: 12px; --content-max: 1180px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); }
a { color: var(--md-primary); }

header.top { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 5; }
.bar { max-width: var(--content-max); margin: 0 auto; padding: 14px 20px; display: flex; gap: 16px; align-items: center; }
.brand { font-weight: 700; color: var(--md-primary); white-space: nowrap; display: flex; gap: 9px; align-items: center; font-size: 16px; }
.brand .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
form.search { flex: 1; display: flex; gap: 8px; }
.search input { flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.search button { padding: 0 20px; border: none; border-radius: 999px; background: var(--md-primary); color: #fff; font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--md-primary-hover); }

main { max-width: var(--content-max); margin: 0 auto; padding: 22px 20px 60px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 880px) { .cols { grid-template-columns: 1fr; gap: 22px; } }
.col h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 2px solid var(--line); padding-bottom: 8px; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: baseline; }
.col h2 .count { color: var(--accent); font-size: 13px; }

.card { display: flex; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.card:hover { border-color: var(--accent); }
.card .thumb { width: 86px; height: 86px; flex: none; border-radius: 8px; overflow: hidden; background: var(--panel); position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb.sensitive img { filter: blur(15px); }
.card .thumb.none { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; text-align: center; }
.card .body { min-width: 0; flex: 1; }
.card .t { font-weight: 600; margin: 0 0 3px; line-height: 1.3; }
.card .t a { color: var(--text); text-decoration: none; }
.card .t a:hover { color: var(--md-primary); text-decoration: underline; }
.card .mi { color: var(--muted); font-style: italic; font-size: 13px; margin-bottom: 4px; }
.card .d { color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--panel); color: var(--muted); margin-right: 6px; margin-top: 4px; }
.badge.type { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--md-primary); font-weight: 600; }
.chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--md-primary); }
.chip b { color: var(--accent); font-weight: 600; }

.empty { color: var(--muted); padding: 40px 10px; text-align: center; line-height: 1.6; }
.examples { margin-top: 8px; }
.examples button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 14px; padding: 0 5px; }
.examples button:hover { text-decoration: underline; }

.ents { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ents-label { font-size: 11px; color: var(--muted); margin-right: 2px; }
.ent { font-size: 11px; padding: 3px 9px; border-radius: 999px; text-decoration: none; color: var(--md-primary); background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
.ent:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.enr { margin-top: 6px; font-size: 13px; color: var(--text); }
.enr b { color: var(--accent); font-weight: 600; }

.site-foot { max-width: var(--content-max); margin: 0 auto; padding: 26px 20px 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.site-foot a { color: var(--md-primary); }
