:root {
  --paper: #edeae1;
  --card: #fffdf6;
  --ink: #0b0b0b;
  --acid: #c8ff00;
  --red: #ff4d1f;
  --blue: #4a3aff;
  --pink: #ff9ad5;
  --line: 2px solid var(--ink);
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .9, .2, 1.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  overflow-x: hidden;
  padding-bottom: 96px;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
::selection { background: var(--acid); color: var(--ink); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.ticker__track { display: inline-flex; padding: 8px 0; animation: ticker 60s linear infinite; }
.ticker__track > span { padding-right: 2.5em; }
.ticker__track i { font-style: normal; color: var(--paper); opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: end;
  gap: 24px;
  padding: 12px 200px 0 16px;
  border-bottom: var(--line);
  overflow: hidden;
}
.logo {
  margin: 0;
  font-size: clamp(84px, 17vw, 280px);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75, 'opsz' 96;
  line-height: .8;
  letter-spacing: -.02em;
  text-transform: uppercase;
  padding: .14em 0 .06em;
  user-select: none;
}
.logo__row { display: block; white-space: nowrap; }
.logo__row--2 { padding-left: .9em; }
.logo .ch { display: inline-block; }
.logo .ch:nth-child(odd) { color: var(--ink); }
.logo__row--2 .ch:nth-child(2) { color: var(--red); }
.hero__aside { padding-bottom: 22px; }
.tagline { margin: 0 0 12px; font-size: 20px; line-height: 1.2; font-weight: 500; }
.tagline--mono { font-family: var(--mono); font-size: 12px; text-transform: uppercase; line-height: 1.5; }
.tagline--mono b { background: var(--acid); padding: 0 4px; }

/* ---------- add button ---------- */
.add-btn {
  position: fixed;
  top: 46px;
  right: 18px;
  z-index: 60;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: var(--acid);
  border: var(--line);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s, background .2s;
}
.add-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.add-btn text { font-family: var(--mono); font-size: 15.2px; font-weight: 700; letter-spacing: .06em; fill: var(--ink); }
.add-btn__plus { font-size: 76px; font-weight: 300; line-height: 1; transform: translateY(-4px); transition: transform .4s var(--ease); }
.add-btn.is-small { transform: scale(.62); transform-origin: top right; }
.add-btn:hover { transform: scale(1.08) rotate(-8deg); box-shadow: 10px 10px 0 var(--ink); background: var(--pink); }
.add-btn.is-small:hover { transform: scale(.7) rotate(-8deg); }
.add-btn:hover .add-btn__plus { transform: translateY(-4px) rotate(180deg); }
.add-btn:hover svg { animation-duration: 4s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- filters ---------- */
.filters { display: grid; gap: 18px; padding: 18px 16px 20px; border-bottom: var(--line); }
.search { display: flex; align-items: baseline; gap: 16px; border-bottom: var(--line); padding-right: 180px; }
.search__label { font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 300;
  font-variation-settings: 'wdth' 90;
  padding: 4px 0 8px;
  outline: none;
}
.search input::placeholder { color: rgba(11, 11, 11, .3); }
.search input:focus::placeholder { color: rgba(11, 11, 11, .15); }
.search:focus-within { border-bottom-color: var(--blue); }

.facet { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.facet__label { font-size: 12px; text-transform: uppercase; padding-top: 8px; }
.facet--topics .facet__label { padding-top: 1.2em; }

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .05em .3em;
  font-size: clamp(30px, 5.2vw, 82px);
  line-height: 1.02;
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75, 'opsz' 96;
  text-transform: uppercase;
}
.topic {
  position: relative;
  border: 0;
  background: none;
  padding: 0 .1em;
  color: var(--ink);
  font-variation-settings: 'wght' 260, 'wdth' 75, 'opsz' 96;
  text-transform: inherit;
  line-height: inherit;
  letter-spacing: -.01em;
  transition: font-variation-settings .35s var(--ease), background .15s, transform .35s var(--ease);
}
.topic:hover { font-variation-settings: 'wght' 800, 'wdth' 75, 'opsz' 96; transform: skewX(-8deg); }
.topic[aria-pressed='true'] { font-variation-settings: 'wght' 800, 'wdth' 75, 'opsz' 96; background: var(--c); transform: rotate(-2.5deg); box-shadow: 4px 4px 0 var(--ink); }
.topic sup {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  vertical-align: top;
  position: relative;
  top: .4em;
  margin-left: 2px;
}
.topic.is-zero { opacity: .22; }
.topic-sep { font-family: var(--mono); font-size: .35em; font-weight: 400; opacity: .5; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.2;
  transition: background .15s, transform .2s var(--ease);
}
.chip:hover { background: var(--acid); transform: translateY(-2px) rotate(-2deg); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--acid); }
.chip .n { opacity: .55; margin-left: 4px; font-size: 11px; }
.chip.is-zero { opacity: .35; }

.more-filters { display: grid; gap: 14px; }
.more-filters summary { font-size: 12px; text-transform: uppercase; cursor: pointer; list-style: none; width: max-content; border-bottom: var(--line); padding-bottom: 2px; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters[open] summary span { display: inline-block; transform: rotate(45deg); }
.more-filters[open] { gap: 14px; }
.more-filters[open] > .facet { margin-top: 14px; }

.filters__status { font-size: 12px; text-transform: uppercase; min-height: 1em; }
.filters__status button { border: 0; background: var(--red); padding: 2px 8px; margin-left: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.filters__status button:hover { background: var(--ink); color: var(--paper); }

/* ---------- views ---------- */
.view { min-height: 60vh; }

/* hromada */
.pile {
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(11, 11, 11, .2) 1px, transparent 1.5px);
  background-size: 24px 24px;
  border-bottom: var(--line);
  transition: height .6s var(--ease);
}
.pcard {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w, 200px);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .8s var(--ease), opacity .4s;
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}
.pcard.is-dragging { transition: none; cursor: grabbing; }
.pcard.is-dragging .pcard__body { transform: scale(1.06); box-shadow: 0 30px 50px rgba(0, 0, 0, .35); }
.pcard.is-out { opacity: 0; pointer-events: none; transform: translate(var(--x, 0), var(--y, 0)) rotate(calc(var(--r, 0deg) * 4)) scale(.3); }
.pcard__body {
  position: relative;
  display: block;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22), 0 2px 4px rgba(0, 0, 0, .18);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pcard:hover .pcard__body { transform: scale(1.04) rotate(1deg); box-shadow: 0 20px 34px rgba(0, 0, 0, .3); }
.pcard img { display: block; width: 100%; height: auto; min-height: 80px; background: #d8d4c8; pointer-events: none; }
.pcard__tape {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -12px;
  padding: 5px 8px;
  background: rgba(200, 255, 0, .88);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
  transform: rotate(var(--tr, -3deg));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.pcard__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  aspect-ratio: 3 / 4;
  padding: 14px;
  background: var(--c);
  color: var(--ink);
  border: var(--line);
}
.pcard__text h3 {
  margin: 0;
  font-size: calc(var(--w, 200px) * .13);
  line-height: .92;
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.pcard__mark, .pcard__fmt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; }

/* mřížka */
.grid { columns: 4 250px; column-gap: 18px; padding: 18px 16px; }
.gcard {
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  border: var(--line);
  background: var(--card);
  text-decoration: none;
  transition: transform .3s var(--ease), background .15s, box-shadow .3s;
}
.gcard:hover { transform: rotate(-1.5deg) translateY(-4px); background: var(--c); box-shadow: 8px 8px 0 var(--ink); }
.gcard img { display: block; width: 100%; height: auto; border-bottom: var(--line); background: #d8d4c8; }
.gcard__ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--c);
  border-bottom: var(--line);
  font-size: 44px;
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75;
  text-transform: uppercase;
  overflow: hidden;
}
.gcard__body { padding: 12px 14px 14px; }
.gcard__mark { font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.gcard h3 { margin: 6px 0 4px; font-size: 27px; line-height: .98; font-weight: 800; font-variation-settings: 'wght' 750, 'wdth' 80; }
.gcard__author { font-size: 15px; margin-bottom: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tag { background: var(--c); border: 1.5px solid var(--ink); padding: 1px 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }

/* katalog */
.catalog { overflow-x: auto; font-family: var(--mono); font-size: 13px; }
.catalog table { width: 100%; border-collapse: collapse; }
.catalog th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  font-weight: 400;
  padding: 10px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.catalog th[data-sort] { cursor: pointer; }
.catalog th[data-sort]:hover, .catalog th.is-sorted { color: var(--acid); }
.catalog td { padding: 12px; border-bottom: 1px solid var(--ink); vertical-align: top; }
.catalog tbody tr { cursor: pointer; transition: background .1s; }
.catalog tbody tr:hover { background: var(--acid); }
.catalog tbody tr:nth-child(4n+2):hover { background: var(--pink); }
.catalog .t { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.05; text-decoration: none; font-variation-settings: 'wdth' 85; }
.catalog .m { white-space: nowrap; }

/* prázdné stavy */
.empty { padding: 60px 16px 80px; text-align: left; }
.empty h2 {
  margin: 0 0 20px;
  font-size: clamp(56px, 11vw, 180px);
  line-height: .85;
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75;
  text-transform: uppercase;
}
.empty p { font-family: var(--mono); max-width: 520px; }
.empty .btn { margin-top: 12px; }

/* ---------- footer + viewbar ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px;
  font-size: 12px;
  text-transform: uppercase;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer button { border: 0; background: none; padding: 0; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.footer button:hover { background: var(--acid); }
.footer button.is-on { background: var(--ink); color: var(--acid); text-decoration: none; padding: 0 6px; }

.viewbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 24px);
  padding: 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.viewbar__count { padding: 0 10px 0 12px; white-space: nowrap; }
.viewbar__count b { color: var(--acid); font-weight: 400; }
.viewbar__views { display: flex; gap: 2px; }
.viewbar button {
  border: 0;
  background: none;
  color: inherit;
  padding: 9px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 12px;
}
.viewbar button:hover { background: rgba(255, 255, 255, .14); }
.viewbar button[aria-pressed='true'] { background: var(--acid); color: var(--ink); }
.viewbar select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}
.viewbar select option { color: var(--ink); }
.viewbar__up {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}
.viewbar__up:hover { background: var(--acid); }

/* ---------- overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
}
.overlay.is-entering { animation: reveal .6s var(--ease) both; }
@keyframes reveal {
  from { clip-path: circle(0 at var(--ox, 100%) var(--oy, 0%)); }
  to { clip-path: circle(150vmax at var(--ox, 100%) var(--oy, 0%)); }
}
.close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: var(--line);
  background: var(--acid);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  transition: transform .4s var(--ease), background .15s;
  box-shadow: 4px 4px 0 var(--ink);
}
.close:hover { transform: rotate(90deg) scale(1.08); background: var(--red); }

.btn {
  display: inline-block;
  border: var(--line);
  background: var(--card);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s, background .15s;
}
.btn:hover { background: var(--acid); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--danger:hover { background: var(--red); }
.btn--ink { background: var(--ink); color: var(--acid); }

/* detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr); min-height: 100vh; }
.detail__media {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: var(--ink);
}
.detail__media img { display: block; width: 100%; height: auto; background: #222; }
.detail__media a { display: block; transition: transform .3s var(--ease); }
.detail__media a:hover { transform: rotate(-.6deg) scale(1.01); }
.detail__ph {
  display: grid;
  place-items: center;
  min-height: 70vh;
  background: var(--c);
  font-size: clamp(60px, 10vw, 160px);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75;
  text-transform: uppercase;
  overflow: hidden;
  text-align: center;
  line-height: .85;
  padding: 20px;
}
.detail__info { padding: 22px 24px 120px; min-width: 0; }
.detail__nav { display: flex; gap: 16px; align-items: center; font-size: 12px; text-transform: uppercase; margin: 0 80px 36px 0; }
.detail__nav a { text-decoration: none; border-bottom: 2px solid; }
.detail__nav a:hover { background: var(--acid); }
.detail__kicker { font-size: 12px; text-transform: uppercase; margin-bottom: 10px; }
.detail__title {
  margin: 0 0 18px;
  font-size: clamp(42px, 5.6vw, 96px);
  line-height: .88;
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75, 'opsz' 96;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.detail__info .tags { margin-bottom: 28px; }
.detail__section { margin: 28px 0 0; }
.detail__section h3 { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; background: var(--ink); color: var(--paper); display: inline-block; padding: 2px 8px; }
.detail__section p { margin: 0 0 10px; font-size: 19px; line-height: 1.4; max-width: 62ch; }
.detail__section a { overflow-wrap: anywhere; }
.detail__by { margin-top: 36px; font-size: 12px; text-transform: uppercase; }
.detail__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* katalogizační lístek */
.cat-card {
  position: relative;
  max-width: 560px;
  padding: 7px 22px 50px 46px;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 32px, rgba(255, 77, 31, .55) 32px, rgba(255, 77, 31, .55) 34px, transparent 34px),
    repeating-linear-gradient(transparent 0 23px, rgba(74, 58, 255, .16) 23px 24px);
  border: 1.5px solid #9b927d;
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 24px;
  transform: rotate(-.6deg);
}
.cat-card::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #9b927d;
  background: var(--paper);
  transform: translateX(-50%);
}
.cat-card__top { display: flex; justify-content: space-between; font-weight: 700; }
.cat-card__head { font-weight: 700; }
.cat-card__body { padding-left: 2.5em; }

.editbox {
  margin: 0 0 28px;
  padding: 16px;
  border: var(--line);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 13px;
  box-shadow: 6px 6px 0 var(--ink);
}
.editbox strong { display: block; font-family: var(--display); font-size: 28px; line-height: 1; margin-bottom: 8px; }
.editbox__row { display: flex; gap: 8px; margin-top: 10px; }
.editbox input { flex: 1; min-width: 0; border: var(--line); background: var(--card); padding: 8px; font-family: var(--mono); font-size: 12px; }

/* ---------- formulář ---------- */
.form { max-width: 1040px; margin: 0 auto; padding: 22px 16px 140px; }
.form__head { margin: 0 80px 28px 0; }
.form__head h2 {
  margin: 8px 0 16px;
  padding-top: .12em;
  font-size: clamp(60px, 11vw, 168px);
  line-height: .9;
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75, 'opsz' 96;
  text-transform: uppercase;
}
.form__head h2 em { display: inline-block; margin-top: .04em; padding: .1em .06em 0; line-height: .82; font-style: normal; font-variation-settings: 'wght' 250, 'wdth' 75, 'opsz' 96; background: var(--acid); }
.form__head p { font-family: var(--mono); font-size: 13px; margin: 0; max-width: 560px; }
.field { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: var(--line); }
.field__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding-top: 10px; }
.field__label b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; margin-bottom: 4px; font-variation-settings: 'wght' 800, 'wdth' 75; }
.field__hint { font-family: var(--mono); font-size: 12px; opacity: .65; margin-top: 8px; }
.field input[type='text'], .field input[type='url'], .field input[type='number'], .field textarea {
  width: 100%;
  border: 0;
  border-bottom: var(--line);
  border-radius: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 28px;
  font-variation-settings: 'wdth' 90;
  outline: none;
  transition: background .15s;
}
.field input[name='title'] { font-size: clamp(30px, 4vw, 48px); font-weight: 700; }
.field textarea { font-size: 20px; line-height: 1.4; resize: vertical; min-height: 120px; border: var(--line); padding: 10px 12px; background: var(--card); }
.field input:focus, .field textarea:focus { background: rgba(200, 255, 0, .35); }
.field input::placeholder, .field textarea::placeholder { color: rgba(11, 11, 11, .28); }
.field input[type='number'] { max-width: 220px; -moz-appearance: textfield; }
.field input[type='number']::-webkit-inner-spin-button { display: none; }

.cg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cg .chip { font-size: 15px; padding: 8px 14px; }
.cg .chip[aria-pressed='true'] { background: var(--ink); color: var(--acid); }
.cg .chip[style][aria-pressed='true'] { background: var(--c); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.field input.cg__custom {
  width: 170px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.2;
  font-variation-settings: normal;
}
.field input.cg__custom:focus { background: var(--acid); border-style: solid; }

.dropzone {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 24px;
  border: 2px dashed var(--ink);
  background: var(--card);
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, transform .2s var(--ease);
}
.dropzone strong { font-family: var(--display); font-size: 30px; font-variation-settings: 'wght' 800, 'wdth' 75; text-transform: uppercase; }
.dropzone:hover, .dropzone.is-over { background: var(--acid); transform: rotate(-.5deg); }
.dropzone input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 14px; }
.thumbs:empty { display: none; }
.thumb { position: relative; border: var(--line); background: #d8d4c8; }
.thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.thumb.is-busy { display: grid; place-items: center; aspect-ratio: 3 / 4; font-family: var(--mono); font-size: 11px; text-transform: uppercase; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { background: var(--acid); } }
.thumb__cover { position: absolute; left: -2px; top: -2px; background: var(--ink); color: var(--acid); font-family: var(--mono); font-size: 10px; padding: 2px 6px; text-transform: uppercase; }
.thumb__actions { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.thumb__actions button { width: 30px; height: 30px; border: var(--line); border-radius: 50%; background: var(--card); font-size: 14px; line-height: 1; padding: 0; }
.thumb__actions button:hover { background: var(--acid); }
.thumb__actions button[data-act='img-del']:hover { background: var(--red); }

.form__error:not(:empty) { margin: 18px 0; padding: 14px 16px; background: var(--red); border: var(--line); font-family: var(--mono); font-size: 14px; }
.submit {
  width: 100%;
  margin-top: 18px;
  padding: 22px 16px 26px;
  border: 0;
  background: var(--ink);
  color: var(--acid);
  font-size: clamp(34px, 6vw, 84px);
  line-height: .9;
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 75;
  text-transform: uppercase;
  transition: background .15s, color .15s, letter-spacing .4s var(--ease);
}
.submit:hover:not(:disabled) { background: var(--acid); color: var(--ink); letter-spacing: .03em; }
.submit:disabled { cursor: progress; background: #444; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: var(--line);
  background: var(--acid);
  font-size: 13px;
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-50%, -160%) rotate(-2deg);
  transition: transform .4s var(--ease);
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0) rotate(-1deg); }
.toast.is-err { background: var(--red); }


/* ---------- mobil ---------- */
@media (max-width: 860px) {
  .add-btn.is-small { transform: none; }
  .hero { grid-template-columns: 1fr; padding: 10px 14px 0; gap: 8px; }
  .logo { font-size: clamp(84px, 30vw, 200px); }
  .hero__aside { padding-bottom: 16px; }
  .tagline { font-size: 17px; }
  .search { padding-right: 0; }
  .facet { grid-template-columns: 1fr; gap: 6px; }
  .facet__label, .facet--topics .facet__label { padding-top: 0; }
  .add-btn { top: auto; bottom: 78px; right: 12px; width: 92px; height: 92px; box-shadow: 4px 4px 0 var(--ink); }
  .add-btn text { font-size: 17px; }
  .add-btn__plus { font-size: 46px; }
  .viewbar { left: 8px; right: 8px; transform: none; bottom: 8px; max-width: none; justify-content: space-between; }
  .viewbar__count { display: none; }
  .viewbar button { padding: 9px 10px; font-size: 11px; }
  .viewbar select { padding: 8px 6px; font-size: 11px; max-width: 98px; }
  .viewbar__up { display: none; }
  .catalog .opt { display: none; }
  .detail { grid-template-columns: 1fr; }
  .detail__ph { min-height: 42vh; }
  .detail__info { padding: 22px 16px 120px; }
  .field { grid-template-columns: 1fr; gap: 6px; }
  .field__label { padding-top: 0; }
  .field__label b { display: inline; font-size: 20px; margin-right: 8px; }
  .field input[type='text'], .field input[type='url'], .field input[type='number'] { font-size: 22px; }
  .close { width: 52px; height: 52px; font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
