/* ============================================================
   inovace.javori.cz — design „Laboratoř"
   Tmavý editorial základ, světlá varianta, akcent podle kategorie.
   ============================================================ */

:root {
  --ink:        #eef0f6;
  --ink-soft:   #b9c0d0;
  --muted:      #8a92a6;
  --faint:      #5c6478;
  --bg:         #07080b;
  --bg-2:       #0b0d12;
  --panel:      rgba(255, 255, 255, .028);
  --panel-2:    rgba(255, 255, 255, .05);
  --line:       rgba(255, 255, 255, .085);
  --line-soft:  rgba(255, 255, 255, .05);
  --line-strong:rgba(255, 255, 255, .16);

  --indigo:  #818cf8;
  --emerald: #34d399;
  --amber:   #fbbf24;
  --cyan:    #22d3ee;
  --violet:  #c084fc;
  --rose:    #fb7185;

  --a: var(--indigo);            /* akcent kategorie, přepisuje se na kartě */
  --a-soft: color-mix(in oklab, var(--a) 18%, transparent);
  --a-line: color-mix(in oklab, var(--a) 42%, transparent);

  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -30px rgba(0,0,0,.9);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

html[data-theme="light"] {
  --ink:        #10131a;
  --ink-soft:   #3c4354;
  --muted:      #5f677a;
  --faint:      #8d94a5;
  --bg:         #f6f6f8;
  --bg-2:       #ffffff;
  --panel:      rgba(255, 255, 255, .82);
  --panel-2:    rgba(16, 19, 26, .035);
  --line:       rgba(16, 19, 26, .1);
  --line-soft:  rgba(16, 19, 26, .06);
  --line-strong:rgba(16, 19, 26, .2);

  --indigo:  #5b60e8;
  --emerald: #0f9d70;
  --amber:   #b7791f;
  --cyan:    #0e8fa8;
  --violet:  #8b46d6;
  --rose:    #d8455f;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 20px 40px -28px rgba(16,19,26,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ---------------------------------------------------------- pozadí */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow--a {
  width: 900px; height: 620px; top: -320px; left: -180px;
  background: radial-gradient(closest-side, rgba(99,102,241,.5), transparent 70%);
}
.bg-glow--b {
  width: 820px; height: 560px; top: 38%; right: -280px;
  background: radial-gradient(closest-side, rgba(34,211,238,.28), transparent 70%);
}
html[data-theme="light"] .bg-glow { opacity: .3; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, #000 25%, transparent 75%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------- hlavička */

.head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.head.is-stuck { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 22px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 26px; height: 26px; }
.bm-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.bm-hand { fill: none; stroke: var(--indigo); stroke-width: 2; stroke-linecap: round; }
.bm-dot  { fill: var(--ink); }
.brand-text { font-size: 15px; letter-spacing: -.01em; }
.brand-text b { font-weight: 620; }
.brand-dim { color: var(--faint); font-weight: 400; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 13.5px; color: var(--muted); padding: 7px 11px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--panel-2); }
@media (max-width: 720px) { .nav { display: none; } }

.theme {
  margin-left: auto; width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .2s, background .2s, transform .15s;
}
@media (min-width: 721px) { .theme { margin-left: 8px; } }
.theme:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; }
.theme .ico-sun { display: none; }
html[data-theme="light"] .theme .ico-sun { display: block; }
html[data-theme="light"] .theme .ico-moon { display: none; }

/* ---------------------------------------------------------- hero */

.hero { padding: 88px 24px 56px; max-width: 1160px; }
@media (max-width: 640px) { .hero { padding: 52px 18px 40px; } }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
  padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--panel);
}
.kicker .sep { color: var(--faint); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--emerald); opacity: .5; animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.7); opacity: .7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

.display {
  font-size: clamp(2.5rem, 6.4vw, 4.9rem);
  line-height: .98; letter-spacing: -.042em; font-weight: 640;
  max-width: 17ch; text-wrap: balance;
}
.display-dim { color: var(--faint); }
.lead {
  margin-top: 26px; max-width: 62ch; font-size: 17px; color: var(--ink-soft); line-height: 1.62;
}
.lead--tight { margin-top: 14px; font-size: 15.5px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: 46px;
  background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: color-mix(in oklab, var(--bg) 80%, var(--panel)); padding: 18px 20px; }
.stat dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 7px;
}
.stat dd { font-size: 25px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.stat dd small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* ---------------------------------------------------------- filtr */

.filterbar {
  position: sticky; top: 64px; z-index: 30; padding: 12px 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.filterbar-in { display: flex; align-items: center; gap: 14px; }
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; cursor: pointer; white-space: nowrap;
  font-size: 13px; padding: 7px 13px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.is-on { color: var(--bg); background: var(--ink); border-color: var(--ink); font-weight: 550; }
html[data-theme="light"] .chip.is-on { color: #fff; }
.chip small { opacity: .6; margin-left: 5px; font-variant-numeric: tabular-nums; }
.chip--ghost { margin-left: auto; color: var(--ink); border-color: var(--a-line); background: var(--a-soft); }
@media (max-width: 720px) { .chip--ghost { display: none; } }

/* ---------------------------------------------------------- sekce */

.board { padding: 8px 0 20px; }
.section { padding: 62px 0 8px; }
.section-head {
  display: flex; gap: 26px; align-items: flex-start;
  padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line-soft);
}
.section-num {
  font-family: var(--mono); font-size: 12px; color: var(--a); padding-top: 8px;
  letter-spacing: .08em;
}
.section-title { display: flex; flex-direction: column; gap: 6px; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.032em; font-weight: 620; line-height: 1.12; }
.section-kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--a);
}
.section-desc { color: var(--muted); font-size: 14.5px; max-width: 58ch; margin-top: 4px; }
.section-count {
  margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; flex-shrink: 0;
}
.label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--a); margin-bottom: 10px;
}

/* ---------------------------------------------------------- karty */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html[data-theme="light"] .card { background: var(--bg-2); }

.proj { display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), border-color .35s var(--ease); }
.proj::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--a), transparent); opacity: .55;
}
.proj:hover { transform: translateY(-3px); border-color: var(--a-line); }
@media (prefers-reduced-motion: reduce) { .proj:hover { transform: none; } }
.proj.is-idea { border-style: dashed; opacity: .82; }
.proj.is-idea:hover { opacity: 1; }

/* náhled */
.preview {
  position: relative; aspect-ratio: 16 / 8.4; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 120% at 22% -20%, color-mix(in oklab, var(--a) 22%, transparent), transparent 70%),
    color-mix(in oklab, var(--bg) 88%, var(--panel-2));
  border-bottom: 1px solid var(--line-soft);
}
.preview svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--bg) 55%, transparent), transparent 55%);
  pointer-events: none;
}

/* barvy uvnitř náhledů */
.p-stroke { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.p-fill   { fill: var(--panel-2); }
.p-fill-2 { fill: color-mix(in oklab, var(--ink) 12%, transparent); }
.p-a      { fill: var(--a); }
.p-a-soft { fill: color-mix(in oklab, var(--a) 30%, transparent); }
.p-a-line { fill: none; stroke: var(--a); stroke-width: 1.4; stroke-linecap: round; }
.p-txt    { fill: var(--faint); font-family: var(--mono); font-size: 7px; letter-spacing: .06em; }
.p-txt-2  { fill: var(--ink-soft); font-family: var(--font); font-size: 8px; font-weight: 600; }
.p-dim    { fill: color-mix(in oklab, var(--ink) 7%, transparent); }

/* status pill */
.pill {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 550; padding: 5px 11px 5px 9px; border-radius: 100px;
  background: color-mix(in oklab, var(--bg) 78%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--faint); }
.dot--up   { background: var(--emerald); box-shadow: 0 0 0 3px color-mix(in oklab, var(--emerald) 22%, transparent); }
.dot--down { background: var(--rose);    box-shadow: 0 0 0 3px color-mix(in oklab, var(--rose) 22%, transparent); }
.dot--none { background: var(--faint); }

.proj-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 15px; flex: 1; }
.proj-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.proj-name { font-size: 21px; font-weight: 620; letter-spacing: -.028em; }
.proj-tagline { font-family: var(--mono); font-size: 11px; color: var(--a); letter-spacing: .01em; }
.proj-phase {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted);
}
.proj-phase b { color: var(--ink-soft); font-weight: 550; }
.proj-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.goal {
  position: relative; padding: 13px 16px 13px 17px; border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--a) 7%, transparent);
  border: 1px solid color-mix(in oklab, var(--a) 16%, transparent);
  font-size: 14px; color: var(--ink-soft);
}
.goal-label {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--a); margin-bottom: 5px;
}

.metrics { display: flex; gap: 8px; flex-wrap: wrap; }
.metric {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; background: var(--panel-2);
  min-width: 96px;
}
.metric span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); }
.metric b { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }

.tech { display: flex; gap: 6px; flex-wrap: wrap; }
.tech span {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 3px 7px;
}

/* health + progress */
.health {
  display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px;
  color: var(--muted); padding-top: 3px;
}
.health b { color: var(--ink-soft); font-weight: 500; }
.health .sep { color: var(--faint); }

.progress { display: flex; flex-direction: column; gap: 8px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.progress-top b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 100px; background: var(--panel-2); overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--a) 55%, transparent), var(--a));
  transition: width .9s var(--ease);
}

/* todo */
.todo { border-top: 1px solid var(--line-soft); margin-top: 3px; }
.todo summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  padding: 13px 0 3px; font-size: 13px; color: var(--muted); transition: color .2s;
}
.todo summary::-webkit-details-marker { display: none; }
.todo summary:hover { color: var(--ink); }
.todo summary .caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; transition: transform .25s var(--ease); }
.todo[open] summary .caret { transform: rotate(90deg); }
.todo-list { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 10px 0 4px; }
.todo-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft);
  padding: 5px 0; line-height: 1.5;
}
.todo-list .box {
  flex-shrink: 0; width: 15px; height: 15px; border-radius: 4px; margin-top: 3px;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
}
.todo-list .box svg { width: 9px; height: 9px; fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; opacity: 0; }
.todo-list li.done { color: var(--faint); }
.todo-list li.done .box { background: var(--a); border-color: var(--a); }
.todo-list li.done .box svg { opacity: 1; }
html[data-theme="light"] .todo-list li.done .box svg { stroke: #fff; }
.todo-list li.done span { text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* akce */
.actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 550; padding: 10px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  transition: transform .16s var(--ease), border-color .2s, background .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary {
  background: color-mix(in oklab, var(--a) 88%, var(--bg)); border-color: transparent; color: #0a0b0f;
  font-weight: 600;
}
html[data-theme="light"] .btn--primary { color: #fff; }
.btn--primary:hover { background: var(--a); }
.actions .btn--quiet { margin-left: auto; }   /* „Nápad" drží pravý okraj řádku */
.btn--quiet { color: var(--muted); }
.btn--quiet:hover { color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.url-note { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* featured (produkt v provozu) */
.proj--featured { grid-column: 1 / -1; }
@media (min-width: 901px) {
  .proj--featured { flex-direction: row; }
  .proj--featured .preview { aspect-ratio: auto; width: 44%; border-bottom: none; border-right: 1px solid var(--line-soft); }
  .proj--featured .proj-body { width: 56%; padding: 28px 30px 28px; }
  .proj--featured .proj-name { font-size: 25px; }
}

/* ---------------------------------------------------------- tým */

.team { padding: 78px 24px 8px; }
.team-head { max-width: 62ch; margin-bottom: 32px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }

.person {
  display: flex; gap: 20px; padding: 20px; align-items: stretch;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.person:hover { transform: translateY(-3px); border-color: var(--a-line); }
@media (prefers-reduced-motion: reduce) { .person:hover { transform: none; } }
@media (max-width: 520px) { .person { flex-direction: column; gap: 16px; } }

.person-photo {
  flex-shrink: 0; width: 128px; border-radius: 14px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  position: relative;
}
.person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.person-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklab, var(--a) 22%, transparent), transparent 62%);
  opacity: .8;
}
@media (max-width: 520px) { .person-photo { width: 108px; } }

.person-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.person-name { font-size: 18px; font-weight: 620; letter-spacing: -.025em; }
.person-role {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--a); line-height: 1.5;
}
.person-bio { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.person-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.person-links .btn { padding: 8px 12px; font-size: 12.5px; }
.person-links .btn svg { width: 15px; height: 15px; }
.ico-slack { stroke: none !important; fill: currentColor !important; }

/* ---------------------------------------------------------- nápady */

.ideas { padding: 78px 24px 20px; }
.ideas-head { max-width: 62ch; margin-bottom: 34px; }
.ideas-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .ideas-grid { grid-template-columns: 1fr; } }

.form { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 640px) { .form { padding: 22px 20px; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .label-as-legend {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.req { color: var(--rose); }
input[type="text"], textarea, select {
  width: 100%; background: color-mix(in oklab, var(--bg) 60%, var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px;
  font-size: 14.5px; transition: border-color .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 118px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--indigo); background: var(--bg-2); }
.select-wrap { position: relative; }
.select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px;
  fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
select { padding-right: 36px; cursor: pointer; }
.hint { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: right; }

.segmented { display: flex; gap: 4px; background: var(--panel-2); padding: 4px; border-radius: 11px; border: 1px solid var(--line-soft); }
.seg {
  flex: 1; cursor: pointer; background: transparent; border: none; border-radius: 8px;
  padding: 9px 6px; font-size: 13.5px; color: var(--muted); transition: color .2s, background .2s;
}
.seg:hover { color: var(--ink); }
.seg.is-on { background: var(--bg-2); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
html[data-theme="light"] .seg.is-on { box-shadow: 0 1px 3px rgba(16,19,26,.12); }

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { font-size: 13px; color: var(--muted); }
.form-msg.is-ok { color: var(--emerald); }
.form-msg.is-err { color: var(--rose); }
.btn-ico { transition: transform .2s var(--ease); }
.btn--primary:hover .btn-ico { transform: translateX(3px); }

.feed { padding: 22px 24px 12px; }
.feed-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.feed-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.badge {
  margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 2px 9px;
}
.feed-list { list-style: none; max-height: 460px; overflow-y: auto; }
.feed-list li { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-soft); }
.feed-list li:last-child { border-bottom: none; }
.feed-empty { color: var(--faint); font-size: 13.5px; }
.feed-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
}
.feed-meta .tag { color: var(--indigo); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.feed-text { line-height: 1.55; }

/* ---------------------------------------------------------- vysvětlivky + patička */

.howto { padding: 70px 24px 90px; }
.howto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  border-top: 1px solid var(--line-soft); padding-top: 34px;
}
@media (max-width: 720px) { .howto-grid { grid-template-columns: 1fr; gap: 30px; } }
.legend { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.legend li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); }
.legend li .dot { align-self: center; }
.legend b { color: var(--ink-soft); font-weight: 550; white-space: nowrap; }
.howto-text { font-size: 14px; color: var(--muted); max-width: 52ch; }

.foot { border-top: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 60%, transparent); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; padding: 30px 24px; flex-wrap: wrap; align-items: flex-end; }
.foot-brand { font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
.foot-note { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .02em; }

/* ---------------------------------------------------------- toast + animace */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 22px);
  z-index: 60; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 100px; font-size: 14px; font-weight: 550;
  background: color-mix(in oklab, var(--bg-2) 92%, transparent); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); backdrop-filter: blur(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse::after { animation: none; }
}
