/* Unsafe Products: "signal glass" theme */
:root {
  --bg: #f3ece3;
  --ink: #15171d;
  --ink-2: #3a3e49;
  --muted: #6a6f7b;
  --accent: #ff5a1f;
  --accent-ink: #c8410d;
  --teal: #0c9a89;
  --glass: rgba(255, 255, 255, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.78);
  --hi: rgba(255, 255, 255, 0.95);
  --shadow: rgba(60, 35, 10, 0.22);
  --media-bg: rgba(255, 255, 255, 0.72);
  --line: rgba(21, 23, 29, 0.09);
  --b1: #ff7a3d; --b2: #2cc7b0; --b3: #ffc94d; --b4: #ff4d6d;
  --r: 22px;
  --font-d: "Unbounded", "Onest", system-ui, sans-serif;
  --font-b: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090c13; --ink: #eef1f6; --ink-2: #c9cfda; --muted: #8f98a8;
    --accent: #ff6a2b; --accent-ink: #ff8d5c; --teal: #34d6c1;
    --glass: rgba(255, 255, 255, 0.055); --glass-strong: rgba(255, 255, 255, 0.09);
    --glass-edge: rgba(255, 255, 255, 0.13); --hi: rgba(255, 255, 255, 0.22);
    --shadow: rgba(0, 0, 0, 0.6); --media-bg: rgba(255, 255, 255, 0.92); --line: rgba(255, 255, 255, 0.08);
    --b1: #ff5a1f; --b2: #0fb5a0; --b3: #b9790b; --b4: #c2183f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090c13; --ink: #eef1f6; --ink-2: #c9cfda; --muted: #8f98a8;
  --accent: #ff6a2b; --accent-ink: #ff8d5c; --teal: #34d6c1;
  --glass: rgba(255, 255, 255, 0.055); --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-edge: rgba(255, 255, 255, 0.13); --hi: rgba(255, 255, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.6); --media-bg: rgba(255, 255, 255, 0.92); --line: rgba(255, 255, 255, 0.08);
  --b1: #ff5a1f; --b2: #0fb5a0; --b3: #b9790b; --b4: #c2183f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font-b); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-m); font-size: 0.86em; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Atmosphere: drifting light behind the glass */
.atmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.atmos::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.atmos i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.atmos .b1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--b1); animation: drift1 38s ease-in-out infinite alternate; }
.atmos .b2 { width: 40vw; height: 40vw; right: -10vw; top: 18vh; background: var(--b2); animation: drift2 44s ease-in-out infinite alternate; }
.atmos .b3 { width: 34vw; height: 34vw; left: 26vw; bottom: -18vw; background: var(--b3); animation: drift3 52s ease-in-out infinite alternate; }
.atmos .b4 { width: 22vw; height: 22vw; left: 54vw; top: -6vw; background: var(--b4); opacity: 0.32; animation: drift2 60s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(14vw, 18vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 22vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -26vh) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .atmos i { animation: none; } }

/* Liquid glass */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(155deg, var(--glass-strong), var(--glass) 46%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  backdrop-filter: blur(22px) saturate(175%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 0 var(--hi),
    inset 0 -1px 1px rgba(255, 255, 255, 0.06),
    inset 1px 0 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 18px 40px -18px var(--shadow);
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx, 18%) var(--my, -10%), rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 30%);
  opacity: 0.75; mix-blend-mode: soft-light; transition: opacity 0.4s;
}
/* Refraction (Chromium); other engines drop this declaration and keep the blur above */
.lg {
  backdrop-filter: url(#lg-refract) blur(16px) saturate(185%) brightness(1.04);
}

/* Header */
.topbar { position: sticky; top: 12px; z-index: 50; padding: 0 16px; }
.nav {
  max-width: 1240px; margin: 12px auto 0; display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 16px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 0.98rem/1 var(--font-d); letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 16px -6px rgba(255, 90, 31, 0.55); }
.brand-mark img { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { text-decoration: none; padding: 7px 12px; border-radius: 999px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { background: var(--glass-strong); color: var(--ink); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--line); }
.lang a { text-decoration: none; font: 600 0.78rem/1 var(--font-m); padding: 7px 10px; border-radius: 999px; color: var(--muted); }
.lang a.on { background: var(--glass-strong); color: var(--ink); box-shadow: inset 0 1px 0 var(--hi), 0 2px 8px -4px var(--shadow); }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.theme-btn svg { width: 18px; height: 18px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 64px 4px 34px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 0.78rem/1 var(--font-m); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }
.hero h1 { font: 800 clamp(2.1rem, 5.4vw, 4.6rem)/1.02 var(--font-d); letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.lead { max-width: 640px; font-size: 1.08rem; color: var(--ink-2); margin: 20px 0 0; }
.hero-stat { padding: 26px 30px; min-width: 260px; text-align: right; animation: rise 0.8s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-stat .big { font: 800 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--font-d); letter-spacing: -0.04em; background: linear-gradient(120deg, var(--accent), var(--b4) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat .cap { font-weight: 600; margin-top: 8px; }
.hero-stat .upd { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }

/* Search & filters */
.finder { margin: 6px 0 26px; }
.search { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 12px; padding: 10px 10px 12px 20px; border-radius: 28px; }
.search-ico { width: 22px; height: 22px; color: var(--muted); }
.search input {
  width: 100%; border: 0; background: transparent; color: var(--ink); font: 500 1.08rem/1.2 var(--font-b);
  padding: 12px 0; outline: none; min-width: 0;
}
.search input::placeholder { color: var(--muted); }
.search button {
  border: 0; cursor: pointer; padding: 13px 22px; border-radius: 18px; font: 700 0.95rem/1 var(--font-b);
  background: linear-gradient(180deg, #ff7a45, var(--accent)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 22px -10px var(--accent);
}
.search button:hover { filter: brightness(1.06); }
.filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.sel { position: relative; }
.sel::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.6px 1.6px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sel select {
  appearance: none; -webkit-appearance: none; max-width: 240px; cursor: pointer;
  font: 500 0.88rem/1 var(--font-b); color: var(--ink); padding: 10px 32px 10px 14px; border-radius: 14px;
  border: 1px solid var(--glass-edge); background: var(--glass); text-overflow: ellipsis;
}
.sel select:hover { background: var(--glass-strong); }
.reset { align-self: center; font-weight: 600; color: var(--accent-ink); text-decoration: none; padding: 8px 10px; }
.riskbar { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; }
.riskbar::-webkit-scrollbar { display: none; }

/* Risk chips */
.risk {
  --rc: #8a8f9b;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 0.74rem/1 var(--font-b); padding: 6px 9px 6px 8px; border-radius: 999px; text-decoration: none;
  color: var(--ink); background: color-mix(in srgb, var(--rc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc) 34%, transparent);
}
.risk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.risk.big { font-size: 0.84rem; padding: 9px 13px 9px 11px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.risk.big small { font: 500 0.72rem/1 var(--font-m); color: var(--muted); }
.risk.big:hover { background: color-mix(in srgb, var(--rc) 26%, transparent); }
.risk.on { background: var(--rc); color: #fff; }
.risk.on::before { background: #fff; }
.risk.on small { color: rgba(255, 255, 255, 0.8); }
.risk[data-risk="chemical"] { --rc: #9bbf1a; }
.risk[data-risk="choking"] { --rc: #ff7a1a; }
.risk[data-risk="injuries"] { --rc: #f2a516; }
.risk[data-risk="electric.shock"] { --rc: #2f7bff; }
.risk[data-risk="fire"], .risk[data-risk="burns"] { --rc: #ef3b2d; }
.risk[data-risk="strangulation"], .risk[data-risk="suffocation"], .risk[data-risk="asphyxiation"] { --rc: #b14be0; }
.risk[data-risk="drowning"] { --rc: #1aa6d9; }
.risk[data-risk="environment"] { --rc: #18a95e; }
.risk[data-risk="microbiological"] { --rc: #d9468f; }
.risk[data-risk="cuts"], .risk[data-risk="entrapment"] { --rc: #e2603a; }
.risk[data-risk="damage.to.hearing"], .risk[data-risk="damage.to.sight"] { --rc: #6a64f0; }
.risk[data-risk="health.risk.or.other"] { --rc: #c25b7a; }
.risk[data-risk="security"], .risk[data-risk="electromagnetic.disturbance"] { --rc: #3d8f9e; }

/* Results */
.res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 4px 16px; }
.res-head h2 { font: 700 1.15rem/1.2 var(--font-d); letter-spacing: -0.02em; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 8px;
  animation: rise 0.6s calc(var(--i, 0) * 32ms) cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--hi), 0 28px 50px -22px var(--shadow); }
.card:hover .card-media img { transform: scale(1.04); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--media-bg); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--accent) 7%, transparent) 14px 28px); }
.noimg svg { width: 64px; height: 64px; }
.cat-chip {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 0.72rem/1 var(--font-b); padding: 7px 10px; border-radius: 999px; color: #15171d; text-decoration: none;
  background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.25);
}
.cat-chip.static { position: static; display: inline-flex; background: var(--glass-strong); color: var(--ink); border-color: var(--glass-edge); }
.card-body { padding: 12px 8px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.card h3 { font: 700 1rem/1.25 var(--font-b); margin: 2px 0 0; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub { margin: 0; color: var(--ink-2); font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.risks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.origin { margin-top: auto; padding-top: 6px; font-size: 0.8rem; color: var(--ink-2); }
.origin span { color: var(--muted); }
.empty { padding: 48px 28px; text-align: center; color: var(--ink-2); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 30px 0 10px; padding: 8px; border-radius: 999px; }
.pg { text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
a.pg:hover { background: var(--glass-strong); }
.pg.dis { opacity: 0.35; }
.pg-nums { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pg-nums a, .pg-nums b, .pg-nums span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; text-decoration: none; font: 600 0.85rem/1 var(--font-m); padding: 0 8px; }
.pg-nums a:hover { background: var(--glass-strong); }
.pg-nums b { background: var(--ink); color: var(--bg); }

/* Detail */
.detail { padding-top: 26px; }
.backlink { display: inline-block; text-decoration: none; font-weight: 600; color: var(--ink-2); margin: 0 4px 16px; }
.backlink:hover { color: var(--accent-ink); }
.d-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gallery { margin: 0; padding: 10px; animation: rise 0.6s both; }
.stage { aspect-ratio: 1 / 1; background: var(--media-bg); border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.stage img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.stage.noimg svg { width: 110px; height: 110px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; }
.thumbs button { flex: 0 0 68px; height: 68px; padding: 3px; border-radius: 12px; border: 2px solid transparent; background: var(--media-bg); cursor: pointer; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery figcaption { font-size: 0.75rem; color: var(--muted); padding: 8px 6px 2px; }
.d-head { padding: 26px 26px 22px; position: sticky; top: 90px; animation: rise 0.6s 0.08s both; }
.d-head h1 { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1.08 var(--font-d); letter-spacing: -0.03em; margin: 10px 0 8px; text-wrap: balance; }
.d-head .sub { -webkit-line-clamp: 3; font-size: 1rem; margin-bottom: 8px; }
.d-head .risks { margin: 14px 0 6px; gap: 6px; }
.d-head .risk { font-size: 0.8rem; padding: 7px 11px 7px 9px; }
.facts { margin: 16px 0 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.88rem; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts dd.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 8px; border-radius: 8px; background: var(--line); }
.src-btn {
  display: flex; justify-content: center; margin-top: 20px; padding: 14px 18px; border-radius: 16px; text-decoration: none;
  font-weight: 700; color: #fff; background: linear-gradient(180deg, #1d2230, #0f121a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}
:root[data-theme="dark"] .src-btn { background: linear-gradient(180deg, #fff, #e8eaef); color: #0f121a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .src-btn { background: linear-gradient(180deg, #fff, #e8eaef); color: #0f121a; } }
.src-btn:hover { filter: brightness(1.1); }
.d-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.block { padding: 22px 24px; animation: rise 0.6s 0.12s both; }
.block h2 { font: 700 0.95rem/1.2 var(--font-d); letter-spacing: -0.01em; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.block p { margin: 0 0 10px; color: var(--ink-2); }
.block .facts { margin: 0; }
.block .facts > div:first-child { border-top: 0; }
.block.source { border-color: color-mix(in srgb, var(--accent) 40%, var(--glass-edge)); }
.block.source a { color: var(--accent-ink); }
.en-badge { display: inline-block; font: 600 0.62rem/1 var(--font-m); padding: 4px 6px; border-radius: 6px; background: var(--line); color: var(--muted); letter-spacing: 0.04em; vertical-align: middle; }
.measures { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: m; }
.measures li { position: relative; padding: 2px 0 10px 34px; border-bottom: 1px solid var(--line); counter-increment: m; }
.measures li:last-child { border-bottom: 0; padding-bottom: 0; }
.measures li::before { content: counter(m); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: 700 0.72rem/1 var(--font-m); }
.measures strong { display: block; font-weight: 600; }
.mrow { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 0.84rem; color: var(--muted); }
.pill { padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); font-weight: 600; }
.related { margin-top: 40px; }
.related h2 { font: 700 1.15rem/1.2 var(--font-d); margin: 0 4px 16px; }

.prose { max-width: 820px; margin: 40px auto 0; padding: 36px 40px; }
.prose h1 { font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.05 var(--font-d); letter-spacing: -0.03em; margin: 0 0 18px; }
.prose h2 { font: 700 1.05rem/1.2 var(--font-d); margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--accent-ink); }

.foot { padding: 60px 16px 28px; }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 20px 24px; font-size: 0.84rem; color: var(--muted); border-radius: 20px; }
.foot-inner p { margin: 4px 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 22px; }
  .hero-stat { text-align: left; }
  .d-top, .d-body { grid-template-columns: 1fr; }
  .d-head { position: static; }
}
@media (max-width: 640px) {
  .topbar { top: 8px; padding: 0 10px; }
  .nav { gap: 8px; padding: 8px 8px 8px 12px; }
  .brand span:last-child { display: none; }
  .nav-links { margin-left: 0; }
  .nav-links a { padding: 7px 9px; font-size: 0.9rem; }
  .search { grid-template-columns: 1fr auto; padding: 8px 8px 10px 14px; }
  .search-ico { display: none; }
  .search button { padding: 12px 16px; }
  .sel { flex: 1 1 calc(50% - 8px); }
  .sel select { max-width: none; width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 6px; }
  .card-body { padding: 10px 4px 4px; }
  .card h3 { font-size: 0.92rem; }
  .card-meta time { display: none; }
  .cat-chip { font-size: 0.66rem; padding: 6px 8px; }
  .pager { border-radius: 22px; flex-wrap: wrap; justify-content: center; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .prose { padding: 26px 20px; }
  .block, .d-head { padding: 20px 18px; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

/* Report form */
.report { margin-top: 20px; }
.report summary { cursor: pointer; font: 700 0.95rem/1.2 var(--font-d); list-style: none; display: flex; align-items: center; gap: 10px; }
.report summary::-webkit-details-marker { display: none; }
.report summary::before { content: "!"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: 800 0.8rem/1 var(--font-m); flex: none; }
.report details[open] summary { margin-bottom: 14px; }
.report-form { display: grid; gap: 12px; max-width: 640px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.fld input, .fld select, .fld textarea, .rep-actions input, .rep-actions select {
  font: 500 0.95rem/1.4 var(--font-b); color: var(--ink); padding: 11px 14px; border-radius: 14px;
  border: 1px solid var(--glass-edge); background: var(--glass); width: 100%;
}
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .rep-actions input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.report-form button, .auth button, .rep-actions button {
  justify-self: start; border: 0; cursor: pointer; padding: 12px 20px; border-radius: 14px; font: 700 0.92rem/1 var(--font-b);
  background: linear-gradient(180deg, #ff7a45, var(--accent)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 22px -10px var(--accent);
}
.report-form .small { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-thanks { padding: 14px 16px; border-radius: 14px; margin-bottom: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--teal) 16%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); }
.report-thanks.bad { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* Admin */
.admin { max-width: 980px; margin: 30px auto 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 4px 18px; }
.admin-head h1 { font: 800 clamp(1.3rem, 3vw, 1.9rem)/1.1 var(--font-d); letter-spacing: -0.02em; margin: 0; }
.ghost { border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink); padding: 9px 14px; border-radius: 12px; font: 600 0.88rem/1 var(--font-b); cursor: pointer; }
.tabs { display: flex; gap: 4px; padding: 6px; border-radius: 18px; margin-bottom: 16px; overflow-x: auto; }
.tab { text-decoration: none; padding: 10px 14px; border-radius: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.tab small { font: 600 0.75rem/1 var(--font-m); color: var(--muted); margin-left: 4px; }
.tab.on { background: var(--ink); color: var(--bg); }
.tab.on small { color: var(--bg); opacity: .7; }
.rep { padding: 18px 20px; margin-bottom: 12px; animation: rise .4s both; }
.rep header { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.rep-kind { font: 700 0.75rem/1 var(--font-b); padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.rep-alert { margin: 0 0 8px; font-weight: 600; }
.rep-alert a { color: var(--ink); }
.rep-msg { margin: 0 0 10px; color: var(--ink-2); white-space: normal; overflow-wrap: anywhere; }
.rep-actions { display: grid; grid-template-columns: 160px 1fr auto auto; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.rep-actions button { padding: 11px 14px; }
.rep-actions .danger { background: transparent; color: var(--accent-ink); box-shadow: none; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.auth { max-width: 420px; margin: 60px auto 0; padding: 30px; display: grid; gap: 14px; }
.auth h1 { font: 800 1.4rem/1.15 var(--font-d); margin: 0; }
.auth button { justify-self: stretch; }
.err { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); font-weight: 600; }
@media (max-width: 640px) { .rep-actions { grid-template-columns: 1fr 1fr; } .rep-actions input { grid-column: 1 / -1; order: -1; } }
.admin-head .admin-nav { margin: 0; flex: 1; min-width: 0; }
.admin-title { font: 800 clamp(1.3rem, 3vw, 1.9rem)/1.1 var(--font-d); letter-spacing: -0.02em; margin: 6px 4px 16px; }
.admin .card-ish, .admin .panel { padding: 20px 22px; margin-bottom: 14px; }
