/* VenSearch – basisstijl. Kleuren komen uit /theme.css (Beheer → Uiterlijk). */
:root {
  --bg: #000; --surface: #0b0b0d; --text: #f1f1f1; --muted: #9a9a9f;
  --accent: #b0001e; --link: #ff5468;
  --border: color-mix(in srgb, var(--text) 13%, transparent);
  --border-strong: color-mix(in srgb, var(--text) 24%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 28%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 55%, transparent);
  --hover: color-mix(in srgb, var(--text) 7%, transparent);
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; }
body.noscroll { overflow: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
code { background: var(--hover); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .85rem; margin: -.3rem 0 1rem; }
[hidden] { display: none !important; }

/* ---------- View transitions + animaties ---------- */
@view-transition { navigation: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes drift { 0% { transform: translate3d(-4%, -2%, 0) scale(1); } 50% { transform: translate3d(4%, 3%, 0) scale(1.15); } 100% { transform: translate3d(-4%, -2%, 0) scale(1); } }
@keyframes sheen { to { background-position: 200% 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 28px 0 var(--accent-soft); } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

html[data-anim="on"] .res, html[data-anim="on"] .tile, html[data-anim="on"] .chips a,
html[data-anim="on"] .answer, html[data-anim="on"] .pgroup { animation: fadeUp .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
html[data-anim="on"] .ai, html[data-anim="on"] .infobox, html[data-anim="on"] .card { animation: pop .45s var(--ease) both; }
html[data-anim="on"] .center > * { animation: fadeUp .7s var(--ease) both; }
html[data-anim="on"] .center > :nth-child(2) { animation-delay: .08s; }
html[data-anim="on"] .center > :nth-child(3) { animation-delay: .16s; }
html[data-anim="on"] .center > :nth-child(4) { animation-delay: .24s; }
html[data-anim="on"] .msg { animation: fadeUp .4s var(--ease) both; }
html[data-anim="on"] .menu-pop { animation: pop .18s var(--ease) both; transform-origin: top right; }
html[data-anim="on"] .imgpanel { animation: fadeIn .2s ease both; }
html[data-anim="on"] .imgpanel .info { animation: slideIn .35s var(--ease) both; }
html[data-anim="off"] *, html[data-anim="off"] *::before, html[data-anim="off"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none !important; }
.logo span {
  font-weight: 800; letter-spacing: -.03em; font-size: 1.7rem;
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 40%, var(--link) 60%, var(--accent) 80%, var(--text) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-anim="on"] .logo span { animation: sheen 9s linear infinite; }
.logo img { max-height: 40px; max-width: 220px; display: block; }
.logo.hero span { font-size: clamp(3rem, 12vw, 5.5rem); }
.logo.hero img { max-height: 110px; max-width: min(80vw, 420px); }
.logo.small span { font-size: 1.45rem; }

/* ---------- Startpagina ---------- */
.aurora { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora::before, .aurora::after { content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .22; }
.aurora::before { background: radial-gradient(circle, var(--accent) 0%, transparent 65%); top: -30vmax; left: -15vmax; }
.aurora::after { background: radial-gradient(circle, var(--accent) 0%, transparent 65%); bottom: -38vmax; right: -20vmax; opacity: .14; }
html[data-anim="on"] .aurora::before { animation: drift 24s ease-in-out infinite; }
html[data-anim="on"] .aurora::after { animation: drift 32s ease-in-out infinite reverse; }
body.home { display: flex; flex-direction: column; }
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; }
.center { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; padding: 0 1rem 12vh; text-align: center; width: 100%; }
.center.narrow { max-width: 460px; margin: 0 auto; padding-bottom: 6vh; }
.tagline { color: var(--muted); margin: 0; }
.nudge { margin: 0; font-size: .92rem; color: var(--muted); }
.foot { position: relative; z-index: 1; text-align: center; padding: 1.2rem; color: var(--muted); font-size: .85rem; }

/* ---------- Zoekveld ---------- */
.searchbox { position: relative; display: flex; align-items: center; gap: .6rem; width: min(100%, 640px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0 .5rem 0 1.1rem; transition: box-shadow .3s var(--ease), border-color .3s, transform .3s var(--ease); }
.searchbox.big { width: min(100%, 680px); padding: .2rem .5rem .2rem 1.3rem; }
.searchbox:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border-strong)); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 6px 40px var(--accent-soft); }
html[data-anim="on"] .searchbox.big:focus-within { transform: scale(1.015); }
.searchbox .ico { width: 20px; height: 20px; fill: var(--muted); flex: none; transition: fill .2s; }
.searchbox:focus-within .ico { fill: var(--link); }
.searchbox input[type=search] { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 1.05rem; padding: .8rem 0; -webkit-appearance: none; }
.searchbox.big input[type=search] { font-size: 1.2rem; padding: 1rem 0; }
.searchbox input[type=search]:focus { box-shadow: none; border: 0; }
.searchbox input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.searchbox .go { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; transition: filter .2s, transform .15s; }
.searchbox .go:hover { filter: brightness(1.25); }
.searchbox .go:active { transform: scale(.95); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: .4rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; text-align: left; box-shadow: 0 18px 50px rgb(0 0 0 / .8); }
.suggest li { padding: .55rem .9rem; border-radius: 10px; cursor: pointer; }
.suggest li.on, .suggest li:hover { background: var(--accent-soft); }

/* ---------- Resultatenpagina ---------- */
.results-top { gap: 1.2rem; padding-bottom: .4rem; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.results-top .searchbox { flex: 1; max-width: 640px; }
.tabs { display: flex; align-items: flex-end; gap: .25rem; padding: 0 1.25rem; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs > a { position: relative; padding: .6rem .9rem; color: var(--muted); white-space: nowrap; text-decoration: none; transition: color .2s; }
.tabs > a:hover { color: var(--text); }
.tabs > a::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs > a.on { color: var(--text); }
.tabs > a.on::after { transform: scaleX(1); box-shadow: 0 0 12px var(--accent-glow); }
.tabs > a.own { color: color-mix(in srgb, var(--link) 80%, var(--text)); }
.tools { margin-left: auto; position: relative; }
.tools summary, .menu summary { list-style: none; cursor: pointer; }
.tools summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.tools summary { padding: .6rem .8rem; color: var(--muted); border-radius: 8px; }
.tools summary:hover { color: var(--text); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: .4rem; box-shadow: 0 18px 50px rgb(0 0 0 / .8); display: flex; flex-direction: column; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: .5rem .8rem; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.menu-pop a:hover, .menu-pop button:hover, .menu-pop a.sel { background: var(--accent-soft); }
.menu-pop .who { padding: .5rem .8rem; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.usernav { position: relative; margin-left: auto; }
.menu { position: relative; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; transition: box-shadow .25s, transform .2s; }
.menu summary:hover .avatar { box-shadow: 0 0 0 3px var(--accent-soft); transform: scale(1.06); }

.layout { display: grid; grid-template-columns: minmax(0, 700px); gap: 2.5rem; padding: 1rem 1.25rem 2rem 8.5rem; }
.layout.has-side { grid-template-columns: minmax(0, 700px) 380px; }
.flash-wrap { padding: .5rem 1.25rem 0 8.5rem; }

.res { padding: .55rem 0 1rem; max-width: 700px; }
.res .site { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: .15rem; }
.res .fav { border-radius: 4px; background: var(--hover); }
.res h3 { font-size: 1.2rem; font-weight: 500; margin: 0 0 .25rem; }
.res h3 a { transition: color .2s; }
.res h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.res h3 a:visited { color: color-mix(in srgb, var(--link) 65%, var(--muted)); }
.res p { margin: 0; color: color-mix(in srgb, var(--text) 82%, var(--bg)); font-size: .95rem; overflow-wrap: anywhere; }
.res .date, .res .ago, .res .meta { color: var(--muted); }
.res mark { background: none; color: var(--text); font-weight: 700; }
.res .meta { font-size: .85rem; margin-top: .25rem; }
.res.vid { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; }
.thumb, .nthumb, .dthumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.thumb { aspect-ratio: 16/9; }
.thumb img, .nthumb img, .dthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.thumb:hover img, .nthumb:hover img, .dthumb:hover img { transform: scale(1.06); }
.play { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; background: rgb(0 0 0 / .65); border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: .8rem; padding-left: 3px; transition: background .2s, transform .2s; }
.play.sm { width: 28px; height: 28px; font-size: .6rem; inset: auto 8px 8px auto; margin: 0; }
.thumb:hover .play { background: var(--accent); transform: scale(1.1); }
.len { color: #fff; position: absolute; right: 6px; bottom: 6px; background: rgb(0 0 0 / .8); font-size: .75rem; padding: .05rem .4rem; border-radius: 5px; }
.res.news { display: grid; grid-template-columns: 1fr 120px; gap: 1rem; }
.nthumb { aspect-ratio: 1; align-self: start; }
.res.doc { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; }
.dthumb { aspect-ratio: 3/4; background: #fff; }

.answer { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem; max-width: 700px; }
.didyoumean { margin: 0 0 1rem; color: var(--muted); }
.empty { padding: 2rem 0; }
.related { margin-top: 1.5rem; max-width: 700px; }
.related h2 { font-size: 1.05rem; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { padding: .45rem .9rem; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); background: var(--surface); transition: background .2s, border-color .2s, transform .2s var(--ease); text-decoration: none; }
.chips a:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.pager { display: flex; align-items: center; gap: 1rem; justify-content: center; margin: 2rem 0 1rem; max-width: 700px; }
.pager a { padding: .55rem 1.2rem; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); transition: background .2s, border-color .2s; text-decoration: none; }
.pager a:hover { background: var(--accent-soft); border-color: var(--accent); }
.pager .cur { color: var(--muted); }

/* AI-overzicht */
.ai { position: relative; max-width: 700px; margin: .5rem 0 1.3rem; padding: 1rem 1.2rem 1.1rem; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 55%); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); overflow: hidden; }
html[data-anim="on"] .ai:not(.done)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--link) 12%, transparent) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; pointer-events: none; }
.ai-head { display: flex; align-items: center; gap: .5rem; font-weight: 600; margin-bottom: .6rem; }
.spark { color: var(--link); font-size: 1.1rem; }
html[data-anim="on"] .spark { display: inline-block; animation: pop 1.6s ease-in-out infinite alternate; }
.beta { margin-left: auto; font-weight: 400; font-size: .75rem; color: var(--muted); }
.ai-body p { margin: 0 0 .6rem; }
.ai-body ul { margin: 0 0 .6rem; padding-left: 1.2rem; }
.ai-body li { margin-bottom: .25rem; }
.cite { display: inline-grid; place-items: center; min-width: 1.25em; height: 1.25em; padding: 0 .3em; margin: 0 .1em; border-radius: 6px; background: var(--accent-soft); color: var(--text); font-size: .75em; font-weight: 700; vertical-align: .15em; text-decoration: none !important; }
.cite:hover { background: var(--accent); }
.ai-src { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.ai-src a { font-size: .78rem; padding: .2rem .6rem; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted); }
.ai-src a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.skel { height: .95rem; border-radius: 6px; margin: .55rem 0; background: linear-gradient(90deg, var(--hover) 25%, color-mix(in srgb, var(--text) 16%, transparent) 50%, var(--hover) 75%); background-size: 200% 100%; }
html[data-anim="on"] .skel { animation: shimmer 1.4s linear infinite; }
.skel.w80 { width: 80%; } .skel.w60 { width: 60%; }

/* Eigen apps onder "Alles" */
.personal { max-width: 700px; margin: 0 0 1.4rem; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.pgroup + .pgroup { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.phead { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: .6rem; }
.phead a { font-weight: 400; font-size: .9rem; }
.strip { display: flex; gap: .5rem; overflow-x: auto; }
.strip img { height: 110px; width: auto; border-radius: 10px; display: block; transition: transform .3s var(--ease); }
.strip a:hover img { transform: scale(1.05); }
.pdoc { display: flex; gap: .8rem; align-items: center; padding: .4rem; border-radius: 10px; color: var(--text); text-decoration: none; transition: background .2s; }
.pdoc:hover { background: var(--hover); text-decoration: none; }
.pdoc img { width: 38px; height: 52px; object-fit: cover; border-radius: 4px; background: #fff; }
.pdoc span { display: flex; flex-direction: column; min-width: 0; }
.pdoc strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--link); }
.pdoc small { color: var(--muted); }
.privacy { margin: .7rem 0 0; font-size: .75rem; color: var(--muted); }
.privacy::before { content: "🔒 "; }

/* Kennispaneel */
.col-side { position: relative; }
.infobox { position: sticky; top: 90px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 1.1rem 1.2rem; }
.infobox img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 12px; margin-bottom: .8rem; background: var(--bg); }
.infobox h2 { font-size: 1.35rem; }
.infobox p { color: color-mix(in srgb, var(--text) 85%, var(--bg)); font-size: .93rem; }
.infobox dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; font-size: .9rem; }
.infobox dt { color: var(--muted); } .infobox dd { margin: 0; }
.infobox .links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }

/* Afbeeldingen */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; grid-column: 1 / -1; }
.layout:has(.grid) { grid-template-columns: 1fr; padding-left: 1.25rem; padding-right: 1.25rem; }
.layout:has(.grid) .col-main { max-width: none; }
.flash-wrap { padding-left: 1.25rem; }
.tile { position: relative; display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 34px var(--accent-soft); }
.tile:hover img { transform: scale(1.07); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .6rem .4rem; font-size: .75rem; color: #ddd; background: linear-gradient(transparent, rgb(0 0 0 / .85)); opacity: 0; transition: opacity .25s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover .cap { opacity: 1; }
.imgpanel { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1fr 340px; background: rgb(0 0 0 / .94); }
.imgpanel .stage { display: grid; place-items: center; padding: 1.5rem; min-width: 0; }
.imgpanel .stage img { max-width: 100%; max-height: 92vh; border-radius: 8px; object-fit: contain; }
.imgpanel .info { padding: 4rem 1.5rem 1.5rem; border-left: 1px solid var(--border); background: var(--surface); overflow: auto; }
.imgpanel .acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.imgpanel .close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 1.5rem; cursor: pointer; transition: background .2s, transform .2s; }
.imgpanel .close:hover { background: var(--accent); transform: rotate(90deg); }

/* ---------- Pagina's, formulieren, knoppen ---------- */
.top.simple { border-bottom: 1px solid var(--border); }
.page { max-width: 880px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.page.narrow-page { max-width: 560px; }
.page h1 { font-size: 1.7rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.form { text-align: left; width: 100%; }
.card.form { max-width: 440px; }
.card.wide-form { max-width: none; flex: 1; min-width: 0; }
.field { display: block; margin-bottom: .9rem; }
.lbl { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
input:not([type=checkbox]):not([type=color]):not([type=search]), select, textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; padding: .6rem .8rem; font: inherit; transition: border-color .2s, box-shadow .2s; }
textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=file] { padding: .5rem; }
.check { display: flex; align-items: center; gap: .6rem; margin: .5rem 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, transform .15s var(--ease), box-shadow .25s; }
.btn:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.25); box-shadow: 0 4px 24px var(--accent-glow); }
.btn.danger:hover { background: #7a0014; border-color: #c00; }
.btn.ghost { background: none; }
.btn.sm { padding: .3rem .75rem; font-size: .85rem; }
.btn.wide { width: 100%; margin-top: .4rem; padding: .75rem; }
.msg { padding: .7rem 1rem; border-radius: 12px; margin: .5rem 0 1rem; border: 1px solid var(--border-strong); background: var(--surface); }
.msg.ok { border-color: #1f7a3a; } .msg.err { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
em.ok { color: #4ade80; font-style: normal; }
.center-t { text-align: center; }
.conn { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.acts { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.acts form { margin: 0; }
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.kind { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border: 1px solid var(--border-strong); border-radius: 14px; color: var(--text); background: var(--bg); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; text-decoration: none; }
.kind:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px var(--accent-soft); text-decoration: none; }
.kind .big { font-size: 1.8rem; } .kind .muted { font-size: .85rem; }
.how { margin-top: 1rem; color: var(--muted); } .how summary { cursor: pointer; }
.steps li { margin-bottom: 1rem; } .kv { display: grid; grid-template-columns: 9rem 1fr; gap: .4rem 1rem; margin: .7rem 0; } .kv dd { margin: 0; }
.copy { display: flex; gap: .5rem; }
.stats { display: flex; gap: 1rem; margin-bottom: 1rem; } .stat { min-width: 140px; display: flex; flex-direction: column; } .stat strong { font-size: 2rem; color: var(--link); }
.admin-tabs { padding-left: max(1.25rem, calc((100vw - 880px) / 2 + 1.25rem)); }
.split { display: flex; gap: 1.2rem; align-items: flex-start; }
.sidenav { display: flex; flex-direction: column; min-width: 130px; position: sticky; top: 1rem; }
.sidenav a { padding: .55rem .9rem; border-radius: 10px; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.sidenav a:hover { background: var(--hover); color: var(--text); }
.sidenav a.on { background: var(--accent-soft); color: var(--text); }
.colorgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 1.2rem; }
.colorgrid .fw:has(textarea), .colorgrid .fw:has(.check) { grid-column: 1 / -1; }
.colorrow { display: flex; gap: .5rem; } .colorrow input[type=color] { width: 46px; height: 40px; padding: 2px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer; }
.logoset { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; }
.logoprev { max-height: 60px; background: repeating-conic-gradient(#222 0 25%, #111 0 50%) 0 0 / 14px 14px; border-radius: 8px; padding: 6px; }
.sticky { position: sticky; bottom: 0; padding: .9rem 0 .2rem; margin-top: 1rem; background: linear-gradient(transparent, var(--surface) 30%); }
.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: .85rem; }
.tbl th, .tbl td { padding: .6rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr.off { opacity: .55; } .tbl .inline { display: flex; gap: .3rem; } .tbl .inline input { width: 150px; padding: .3rem .6rem; font-size: .85rem; }

@media (max-width: 1100px) { .layout.has-side { grid-template-columns: minmax(0, 700px); } .col-side { display: none; } .layout, .flash-wrap { padding-left: 1.25rem; } }
@media (max-width: 760px) {
  .results-top { flex-wrap: wrap; } .results-top .searchbox { order: 3; flex-basis: 100%; max-width: none; } .results-top .usernav { order: 2; }
  .res.vid { grid-template-columns: 130px 1fr; } .res.news { grid-template-columns: 1fr 84px; } .res.doc { grid-template-columns: 70px 1fr; }
  .imgpanel { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .imgpanel .info { border-left: 0; border-top: 1px solid var(--border); padding-top: 1rem; max-height: 40vh; }
  .split { flex-direction: column; } .sidenav { flex-direction: row; overflow-x: auto; position: static; }
  .tbl { display: block; overflow-x: auto; } .kv { grid-template-columns: 1fr; }
  .searchbox .go span { display: none; } .searchbox .go::before { content: "→"; }
}
