/* VeVit Tools — statické styly (port vizuální identity z Next.js/Tailwind verze) */

:root {
  --background: #0d0d0d;
  --foreground: #f4f4f5;
  --card: #131316;
  --card-foreground: #f4f4f5;
  --popover: #131316;
  --popover-foreground: #f4f4f5;
  --primary: #10b981;
  --primary-foreground: #0d0d0d;
  --secondary: #1a1a1d;
  --secondary-foreground: #f4f4f5;
  --muted: #1a1a1d;
  --muted-foreground: #b1b1bd;
  --accent: #1a1a1d;
  --accent-foreground: #f4f4f5;
  --destructive: #ef4444;
  --border: rgba(255, 255, 255, 0.08);
  --input: rgba(255, 255, 255, 0.08);
  --ring: #10b981;
  --radius: 0.75rem;

  --color-emerald: #10b981;
  --color-sky: #0ea5e9;
  --color-amber: #f59e0b;
  --color-violet: #8b5cf6;
  --color-pink: #ec4899;
  --color-red: #ef4444;
  --color-cyan: #06b6d4;
  --color-gray: #6b7280;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Sora, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body { overflow-x: hidden; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Glassmorphism */
.glass {
  background: rgba(19, 19, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-strong {
  background: rgba(19, 19, 22, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Layout */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.main { flex: 1 0 auto; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  @supports not (backdrop-filter: blur(12px)) { background: var(--card); }
}
.site-header .bar { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo {
  width: 2rem; height: 2rem; border-radius: 0.5rem; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-emerald), var(--color-sky)); color: #fff;
}
.brand-mark { display: flex; align-items: baseline; gap: 0.5rem; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-suffix { font-size: 0.8rem; font-weight: 500; padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: rgba(14,165,233,0.15); color: #38bdf8; }
.header-left { display: flex; align-items: center; gap: 1.5rem; }
.header-right { display: flex; align-items: center; gap: 1rem; }

.cat-toggle {
  display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); padding: 0.375rem 0.5rem; border-radius: 0.5rem; border: 0; background: transparent;
  transition: color .15s, background .15s;
}
.cat-toggle:hover { color: var(--foreground); background: rgba(255,255,255,0.04); }
.cat-toggle svg { transition: transform .2s; }
.cat-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.cat-dropdown {
  position: absolute; left: 0; top: 100%; margin-top: 0.5rem; width: 14rem;
  border-radius: 0.75rem; padding: 0.5rem; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.cat-dropdown a {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; color: var(--muted-foreground); transition: color .15s, background .15s;
}
.cat-dropdown a:hover { color: var(--foreground); background: rgba(255,255,255,0.05); }
.cat-dropdown .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; }
.cat-dropdown .sep { height: 1px; background: var(--border); margin: 0.25rem 0; }

.login-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid var(--border); color: var(--foreground);
  background: transparent; transition: border-color .15s, color .15s;
}
.login-btn:hover { border-color: rgba(16,185,129,0.5); color: var(--primary); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; padding: 5rem 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; border-radius: 999px; opacity: 0.4; pointer-events: none;
  background: radial-gradient(ellipse, rgba(16,185,129,0.12) 0%, transparent 70%);
  filter: blur(60px);
}
.hero-inner { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(19,19,22,0.5); font-size: 0.75rem; font-weight: 500;
  color: var(--muted-foreground); margin-bottom: 2rem;
}
.hero h1 { font-size: 3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 1.5rem; }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }
.hero h1 .g-emerald { color: #34d399; }
.hero h1 .g-sky { color: #38bdf8; }
.hero h1 .g-white { color: #fff; }
.hero .subtitle { font-size: 1.125rem; color: var(--muted-foreground); max-width: 36rem; margin: 0 auto 2.5rem; line-height: 1.6; }

.pills { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pill {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(19,19,22,0.6); font-size: 0.875rem; color: var(--foreground);
}
.pill svg { width: 0.875rem; height: 0.875rem; }

.stats-row { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.stats-row strong { color: var(--foreground); font-weight: 600; }
.stats-row .sep { color: var(--border); }

/* Search */
.search-wrap { position: relative; max-width: 42rem; margin: 0 auto; }
.search-wrap .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.search-wrap input {
  width: 100%; padding: 1rem 1.5rem 1rem 3rem; border-radius: 1rem; font-size: 1rem;
  background: rgba(19,19,22,0.8); border: 1px solid rgba(16,185,129,0.2); color: var(--foreground);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-wrap input::placeholder { color: rgba(177,177,189,0.6); }
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.search-clear { position:absolute; right:.65rem; top:50%; transform:translateY(-50%); width:2.25rem; height:2.25rem; border:0; border-radius:.5rem; background:transparent; color:var(--muted-foreground); font-size:1.4rem; line-height:1; }
.search-clear:hover { background:var(--muted); color:var(--foreground); }
.hub-controls { padding-top: .5rem; padding-bottom: 1rem; }
.hub-control-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.75rem; align-items:end; }
.hub-control-grid label { display:grid; gap:.35rem; min-width:0; color:var(--muted-foreground); font-size:.8rem; }
.hub-control-grid .hub-checkbox { display:flex; align-items:center; gap:.5rem; min-height:2.5rem; color:var(--foreground); }
.hub-control-grid .btn { min-height:2.5rem; }
.hub-state { margin:0 0 1rem; color:var(--muted-foreground); }
.hub-card-badges { display:flex; gap:.25rem; flex-wrap:wrap; justify-content:flex-end; }
.tool-card.is-active { border-color:var(--primary); box-shadow:0 0 0 2px rgba(16,185,129,.25); }
.tool-card mark { color:inherit; background:rgba(16,185,129,.28); border-radius:.15rem; padding:0 .08em; }

/* ── Sticky category chips ───────────────────────────────── */
.cat-nav {
  position: sticky; top: 4rem; z-index: 30; padding: 0.75rem 1.5rem; margin: 0 -1.5rem 0.5rem;
  background: rgba(13,13,13,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cat-nav .scroll { display: flex; align-items: center; gap: 0.5rem; overflow-x: auto; }
.cat-nav .scroll::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem;
  border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; border: 1px solid transparent;
  color: var(--muted-foreground); background: transparent; transition: color .15s, background .15s;
}
.chip:hover { color: var(--foreground); background: rgba(255,255,255,0.04); }
.chip.active { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.1); color: var(--primary); }
.chip .dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; }

/* ── Pevný indikátor kategorií ─────────────────────────── */
.category-rail {
  position: fixed;
  top: 50%;
  right: clamp(0.5rem, 1.7vw, 1.75rem);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.42rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 999px;
  background: rgba(7, 11, 10, 0.48);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}
.category-rail:hover,
.category-rail:focus-within {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(7, 11, 10, 0.68);
}
.category-rail__track {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(148, 163, 184, 0.22) 12%, rgba(148, 163, 184, 0.22) 88%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.category-rail__dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  color: var(--rail-color, var(--color-emerald));
  outline: none;
}
.category-rail__dot > span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rail-color, var(--color-emerald)) 36%, #64748b 64%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0.48;
  transform: scale(1);
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.category-rail__dot:hover > span,
.category-rail__dot:focus-visible > span {
  opacity: 0.78;
  transform: scale(1.18);
}
.category-rail__dot.is-active > span {
  width: 0.58rem;
  height: 0.58rem;
  background: var(--rail-color, var(--color-emerald));
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--rail-color, var(--color-emerald)) 14%, transparent), 0 0 0.85rem color-mix(in srgb, var(--rail-color, var(--color-emerald)) 58%, transparent);
  opacity: 1;
  transform: scale(1.22);
}
.category-rail__dot::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: calc(100% + 0.65rem);
  width: max-content;
  max-width: 12rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.4rem;
  background: rgba(7, 11, 10, 0.92);
  color: var(--foreground);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(0.25rem, -50%);
  transition: opacity 150ms ease, transform 150ms ease;
}
.category-rail__dot:hover::after,
.category-rail__dot:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}
@media (max-width: 720px) {
  .category-rail { right: 0.22rem; gap: 0.38rem; padding: 0.58rem 0.25rem; background: rgba(7, 11, 10, 0.38); }
  .category-rail__dot { width: 1.15rem; height: 1.15rem; }
  .category-rail__dot::after { display: none; }
}

/* ── Category sections ──────────────────────────────────── */
.sections { padding: 0 1.5rem 3rem; max-width: 80rem; margin: 0 auto; }
.section { padding: 2.5rem 0; scroll-margin-top: 8rem; border-top: 1px solid rgba(255,255,255,0.06); }
.section:first-child { border-top: 0; }
.section-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.section-head .bar { width: 0.375rem; height: 1.75rem; border-radius: 999px; }
.section-head h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.section-head .count { font-size: 0.75rem; font-weight: 500; padding: 0.125rem 0.5rem; border-radius: 0.375rem; background: var(--muted); color: var(--muted-foreground); }
.section-desc { font-size: 0.875rem; color: var(--muted-foreground); margin: 0 0 1.5rem; }

/* ── Tool grid + cards ──────────────────────────────────── */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.tool-card {
  position: relative; display: flex; flex-direction: column; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--card); padding: 1.25rem;
  transition: border-color .3s, transform .3s, box-shadow .3s; height: 100%;
}
.tool-card:hover { border-color: rgba(16,185,129,0.3); transform: translateY(-4px); box-shadow: 0 10px 30px -10px rgba(16,185,129,0.1); }
.tool-card .accent { position: absolute; top: 0; left: 1rem; right: 1rem; height: 2px; border-radius: 0 0 999px 999px; opacity: 0.6; transition: opacity .3s; }
.tool-card:hover .accent { opacity: 1; }
.tool-card .top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.tool-card .icon-box { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: grid; place-items: center; }
.tool-card .name { font-size: 1rem; font-weight: 600; margin: 0 0 0.25rem; transition: color .2s; }
.tool-card:hover .name { color: var(--primary); }
.tool-card .desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.4; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card .footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.tool-card .open { font-size: 0.875rem; font-weight: 500; color: var(--primary); opacity: 0; transition: opacity .2s; }
.tool-card:hover .open { opacity: 1; }

/* Badge (NOVÉ, lokace) */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem; height: 1.25rem; padding: 0 0.5rem;
  border-radius: 999px; font-size: 0.625rem; font-weight: 500; white-space: nowrap; border: 1px solid transparent;
}
.badge svg { width: 0.75rem; height: 0.75rem; }
.badge-new { border-color: rgba(16,185,129,0.3); color: var(--primary); }
.badge-status-coming_soon, .badge-status-unavailable_on_wedos, .badge-status-broken { border-color: rgba(239,68,68,.35); color: #fca5a5; background: rgba(239,68,68,.1); }
.badge-status-limited, .badge-status-experimental { border-color: rgba(245,158,11,.35); color: #fcd34d; background: rgba(245,158,11,.1); }
.badge-loc-local { background: rgba(16,185,129,0.1); color: #34d399; border-color: rgba(16,185,129,0.2); }
.badge-loc-other { background: rgba(26,26,29,0.5); color: var(--muted-foreground); }
.badge-ai { background: rgba(16,185,129,0.1); color: #34d399; border-color: rgba(16,185,129,0.2); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  height: 2rem; padding: 0 0.625rem; border-radius: 0.5rem; border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 500; background: transparent; color: var(--foreground);
  transition: background .15s, color .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: rgba(16,185,129,0.8); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: #242428; }
.btn-ghost { color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-outline { border-color: var(--border); background: var(--background); }
.btn-outline:hover { background: var(--muted); color: var(--foreground); }
.btn-sm { height: 1.75rem; padding: 0 0.625rem; font-size: 0.8rem; border-radius: 0.5rem; }
.btn-icon { width: 2rem; height: 2rem; padding: 0; }
.btn-icon-sm { width: 1.75rem; height: 1.75rem; padding: 0; border-radius: 0.5rem; }
.btn-lg { height: 3.5rem; padding: 0 1rem; }
.btn-block { width: 100%; }

@media (max-width: 900px) { .hub-control-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .container, .sections { padding-left:1rem; padding-right:1rem; }
  .hero { padding-left:1rem; padding-right:1rem; }
  .hero h1 { font-size:2.35rem; overflow-wrap:anywhere; }
  .hero .subtitle { font-size:1rem; }
  .search-wrap { width:100%; }
  .hub-control-grid { grid-template-columns:1fr 1fr; }
  .hub-control-grid > * { min-width:0; }
  .tool-card { min-width:0; }
  .tool-card .name, .tool-card .desc { overflow-wrap:anywhere; }
  .header-left { gap:.5rem; min-width:0; }
  .cat-toggle { min-height:2.5rem; }
  .login-btn { min-height:2.5rem; padding:.5rem .65rem; }
}
@media (max-width: 380px) {
  .hub-control-grid { grid-template-columns:1fr; }
  .brand-mark, .cat-wrap { display:none; }
  .header-right { gap:.25rem; margin-left:auto; min-width:0; }
  .header-right .login-btn { width:2.5rem; padding:0; justify-content:center; font-size:0; }
  .site-header .bar { gap:.35rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; } }

/* ── Form controls ──────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%; border-radius: 0.5rem; border: 1px solid var(--input); background: transparent;
  color: var(--foreground); padding: 0.375rem 0.625rem; font-size: 0.875rem; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input, .select { min-height: 2.75rem; }
@media (min-width: 768px) { .input, .textarea, .select { font-size: 0.875rem; } }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.textarea { min-height: 4rem; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: rgba(177,177,189,0.6); }
.input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.input-lg { font-size: 1.125rem; }
.field-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); margin-bottom: 0.25rem; }

/* ── Tool page ─────────────────────────────────────────── */
.tool-page { padding: 2rem 1.5rem; max-width: 80rem; margin: 0 auto; width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 0.25rem; transition: color .15s; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb .sep { opacity: 0.5; }
.tool-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.tool-header .bar { width: 0.25rem; height: 1.5rem; border-radius: 999px; }
.tool-header h1 { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.tool-header .loc-tag { font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: 0.375rem; border: 1px solid; }
.tool-desc { color: var(--muted-foreground); margin: 0 0 2rem; }
.tool-shell { border-radius: 0.75rem; padding: 1.5rem; }
@media (min-width: 768px) { .tool-shell { padding: 2rem; } }
.tool-placeholder { max-width: 42rem; margin: 0 auto; text-align: center; padding: 5rem 0; color: var(--muted-foreground); }
.tool-placeholder .t { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--foreground); }
.tool-info-only { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; max-width: 48rem; margin: 0 auto; padding: 2rem 0; color: var(--muted-foreground); text-align: left; }
.tool-info-only .t { margin: 0 0 .35rem; color: var(--foreground); font-size: 1.1rem; font-weight: 650; }
.tool-info-only p { margin: 0; font-size: .86rem; line-height: 1.6; }
.tool-info-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem; color: var(--color-amber); background: rgba(245,158,11,.1); }
.tool-alternative { grid-column: 2; padding: 1rem; border: 1px solid var(--border); border-radius: .625rem; background: rgba(19,19,22,.45); }
.tool-alternative strong { display: block; margin-bottom: .3rem; color: var(--foreground); font-size: .8rem; }
@media (max-width: 520px) { .tool-info-only { grid-template-columns: 1fr; } .tool-alternative { grid-column: 1; } }
.tool-tool { max-width: 100%; }
.tool-tool .btn-primary { min-height: 2.75rem; }
.tool-tool > .stack { width: 100%; }
.tool-tool[data-tool-state="processing"] { cursor: progress; }
.tool-tool[data-tool-state="error"] .tool-auto-result { display: none; }
.tool-auto-result { margin-top: 1.25rem; }
.tool-tool fieldset { min-width: 0; }

.tool-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem;
  list-style: none; padding: 0; margin: 0 0 1rem; color: var(--muted-foreground);
}
.tool-steps li {
  position: relative; display: flex; align-items: center; gap: .5rem; min-width: 0;
  padding: .625rem .75rem; border: 1px solid var(--border); border-radius: .625rem;
  background: rgba(19,19,22,.36); font-size: .78rem; font-weight: 600;
}
.tool-steps li span {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: 0 0 auto;
  border-radius: 999px; background: var(--secondary); color: var(--muted-foreground);
}
.tool-steps li.is-current { border-color: rgba(16,185,129,.38); color: var(--foreground); background: rgba(16,185,129,.07); }
.tool-steps li.is-current span { background: var(--primary); color: var(--primary-foreground); }
.tool-trust {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  margin-top: 1rem; padding: 1rem 1.125rem; border: 1px solid rgba(16,185,129,.2);
  border-radius: .75rem; background: rgba(16,185,129,.045); color: var(--muted-foreground);
}
.tool-trust-main { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.tool-trust-main > svg { color: var(--primary); flex: 0 0 auto; }
.tool-trust strong { display: block; color: var(--foreground); font-size: .85rem; margin-bottom: .2rem; }
.tool-trust p { margin: 0; font-size: .78rem; line-height: 1.5; }
.tool-requirements { position: relative; }
.tool-requirements summary { display: flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--foreground); font-size: .78rem; white-space: nowrap; }
.tool-requirements summary::marker { content: ''; }
.tool-requirements[open] summary svg { transform: rotate(180deg); }
.tool-requirements ul { margin: .75rem 0 0; padding-left: 1.2rem; max-width: 34rem; font-size: .75rem; line-height: 1.55; }
.tool-requirements li + li { margin-top: .25rem; }

@media (max-width: 640px) {
  .tool-page { padding: 1.25rem 1rem; }
  .breadcrumb { margin-bottom: 1rem; }
  .tool-header { align-items: flex-start; flex-wrap: wrap; }
  .tool-header h1 { font-size: 1.5rem; flex: 1 1 calc(100% - 2rem); }
  .tool-desc { margin-bottom: 1.25rem; }
  .tool-shell { padding: 1rem; }
  .tool-steps li { justify-content: center; padding: .5rem .25rem; font-size: .7rem; }
  .tool-steps li span { width: 1.25rem; height: 1.25rem; }
  .tool-trust { grid-template-columns: 1fr; }
}

/* Tool layouts */
.row { display: flex; align-items: center; gap: 0.75rem; }
.row-end { display: flex; align-items: center; gap: 0.5rem; justify-content: flex-end; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }
.muted { color: var(--muted-foreground); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-destructive { color: var(--destructive); }
.error-text { font-size: 0.875rem; color: var(--destructive); }
.certificate-status { color: var(--primary); font-weight: 700; }
.certificate-status-expires_soon { color: #b45309; }
.tool-status-coming_soon, .tool-status-unavailable_on_wedos, .tool-status-broken { border-color: rgba(239,68,68,.38); color: #fca5a5; background: rgba(239,68,68,.1); }
.tool-status-limited, .tool-status-experimental { border-color: rgba(245,158,11,.38); color: #fcd34d; background: rgba(245,158,11,.1); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* UUID rows */
.uuid-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid var(--border); background: rgba(19,19,22,0.4); font-family: ui-monospace, monospace; font-size: 0.875rem; }
.uuid-row span { word-break: break-all; }

/* Password strength */
.strength-track { height: 0.5rem; border-radius: 999px; background: var(--secondary); overflow: hidden; }
.strength-fill { height: 100%; border-radius: 999px; transition: width .3s, background .3s; }

/* Password options panel */
.pw-options { display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: rgba(19,19,22,0.4); padding: 1.25rem; }
.pw-opt { cursor: pointer; font-size: 0.875rem; }
.pw-options.is-passphrase > .row-between, .pw-options.is-passphrase > .pw-opt { display: none; }

/* Regex highlight output */
.regex-out { padding: 0.75rem; border-radius: 0.5rem; border: 1px solid var(--border); background: rgba(19,19,22,0.3); font-size: 0.875rem; white-space: pre-wrap; word-break: break-word; }

/* Color converter swatch */
.swatch { width: 5rem; height: 5rem; border-radius: 0.75rem; border: 1px solid var(--border); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }

/* Number base rows */
.nb-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid var(--border); background: rgba(19,19,22,0.3); }
.nb-row .label { font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); width: 5rem; flex-shrink: 0; }
.nb-row .input { border: 0; background: transparent; }
.nb-row .btn-icon { flex-shrink: 0; }

/* range + checkbox accent */
input[type="range"] { accent-color: var(--primary); }
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--primary); }

/* native select used by number-base */
.select-native { height: 2.5rem; padding: 0 0.75rem; border-radius: 0.375rem; border: 1px solid var(--input); background: var(--card); color: var(--foreground); font-size: 0.875rem; }

/* ── AI chat ────────────────────────────────────────────── */
.ai-chat { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 12rem); }
.ai-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.ai-connection { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted-foreground); font-size: .7rem; }
.ai-connection > span { width: .45rem; height: .45rem; border-radius: 999px; background: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
.ai-connection.is-active > span { animation: ai-pulse 1.2s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .35; } }
.ai-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; padding-right: 0.5rem; margin-bottom: 1rem; }
.ai-empty { text-align: center; color: var(--muted-foreground); padding: 3rem 0; }
.ai-empty-icon svg { width: 2.5rem; height: 2.5rem; margin: 0 auto 1rem; opacity: 0.3; }
.ai-empty-title { font-size: 1.125rem; font-weight: 500; color: var(--foreground); margin: 0 0 0.25rem; }
.ai-starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1.25rem auto 0; max-width: 42rem; }
.ai-starter { min-height: 4.5rem; padding: .75rem; border: 1px solid var(--border); border-radius: .625rem; background: rgba(19,19,22,.55); color: var(--foreground); font: inherit; font-size: .78rem; line-height: 1.4; text-align: left; }
.ai-starter:hover { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.06); }
.msg { display: flex; gap: 0.75rem; }
.msg.user { justify-content: flex-end; }
.msg .avatar { width: 2rem; height: 2rem; border-radius: 0.5rem; display: grid; place-items: center; flex-shrink: 0; margin-top: 0.25rem; }
.msg .avatar.bot { background: rgba(16,185,129,0.1); color: #34d399; }
.msg .avatar.user { background: rgba(14,165,233,0.1); color: #38bdf8; }
.bubble { max-width: 80%; border-radius: 1rem; padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.6; }
.msg.user .bubble { background: var(--primary); color: var(--primary-foreground); border-bottom-right-radius: 0.375rem; }
.msg.bot .bubble { background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 0.375rem; }
.msg-actions { display: flex; gap: .25rem; margin: .5rem -.5rem -.4rem; opacity: .72; }
.ai-disclaimer { margin: .6rem 0 0; color: var(--muted-foreground); font-size: .7rem; line-height: 1.45; text-align: center; }
@media (max-width: 600px) { .ai-chat { height: calc(100dvh - 10rem); } .ai-starters { grid-template-columns: 1fr; } .bubble { max-width: 92%; } }
.ai-typing { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); padding: 0.75rem 0; }
.spinner { width: 1rem; height: 1rem; border: 2px solid rgba(16,185,129,0.2); border-top-color: var(--primary); border-radius: 999px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-error { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid rgba(239,68,68,0.2); background: rgba(239,68,68,0.05); color: var(--destructive); font-size: 0.875rem; }
.ai-error-icon { flex-shrink: 0; display: inline-flex; }
.ai-error-icon svg { width: 1rem; height: 1rem; }
.ai-input { display: flex; align-items: flex-end; gap: 0.5rem; }
.ai-input .textarea { min-height: 3.5rem; max-height: 10rem; background: rgba(19,19,22,0.8); }

/* markdown body in chat */
.markdown-body h1, .markdown-body h2, .markdown-body h3 { font-weight: 600; margin: 0.5rem 0; }
.markdown-body p { margin: 0 0 0.5rem; }
.markdown-body ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 0.5rem; }
.markdown-body code { background: rgba(255,255,255,0.06); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.85em; font-family: ui-monospace, monospace; }
.markdown-body pre { background: rgba(255,255,255,0.04); padding: 0.75rem; border-radius: 0.5rem; overflow-x: auto; margin: 0 0 0.5rem; }
.markdown-body pre { position: relative; padding-top: 2.5rem; }
.markdown-body pre .code-copy { position: absolute; top: .35rem; right: .35rem; }
.markdown-body pre code { background: transparent; padding: 0; }

/* ── Toast ──────────────────────────────────────────────── */
.toaster { position: fixed; bottom: 1rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--radius);
  background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); font-size: 0.875rem; animation: toast-in .2s ease;
  min-width: 16rem;
}
.toast.success svg { color: #34d399; }
.toast.error svg { color: var(--destructive); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.site-footer .bar { max-width: 80rem; margin: 0 auto; padding: 2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer a { display: inline-flex; align-items: center; gap: 0.5rem; transition: color .15s; }
.site-footer a:hover { color: var(--foreground); }
.site-footer .privacy { display: inline-flex; align-items: center; gap: 0.5rem; }
.site-footer .privacy svg { color: var(--color-emerald); }

/* empty search state */
.empty-state { text-align: center; padding: 5rem 0; color: var(--muted-foreground); }
.empty-state svg { width: 2.5rem; height: 2.5rem; margin: 0 auto 1rem; opacity: 0.3; }
.empty-state .t { font-size: 1.125rem; font-weight: 500; }
.hidden { display: none !important; }

/* ── Sdílené UI nástrojů (Fáze 1+) ──────────────────────────── */

/* Dropzone — drag&drop + klik */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 2.5rem 1.5rem; border-radius: 0.75rem;
  border: 1.5px dashed rgba(255,255,255,0.14); background: rgba(19,19,22,0.3);
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .1s;
  min-height: 11rem;
}
.dropzone:hover { border-color: rgba(16,185,129,0.4); background: rgba(19,19,22,0.5); }
.dropzone:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.dropzone.dragover { border-color: var(--primary); background: rgba(16,185,129,0.08); transform: scale(1.01); }
.dropzone .dz-ico { color: var(--muted-foreground); display: grid; place-items: center; margin-bottom: 0.25rem; }
.dropzone:hover .dz-ico { color: var(--primary); }
.dropzone .dz-title { font-size: 0.95rem; font-weight: 500; color: var(--foreground); }
.dropzone .dz-hint { font-size: 0.8rem; color: var(--muted-foreground); }
.dropzone .dz-accept { font-size: 0.75rem; color: var(--muted-foreground); opacity: 0.7; }

/* Seznam souborů */
.file-list { display: flex; flex-direction: column; gap: 0.5rem; }
.file-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem;
  border: 1px solid var(--border); background: rgba(19,19,22,0.4);
}
.file-item .fi-ico { color: var(--muted-foreground); flex-shrink: 0; display: inline-flex; }
.file-item .fi-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.file-item .fi-name { font-size: 0.875rem; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .fi-size { font-size: 0.75rem; color: var(--muted-foreground); }
.file-item .fi-remove { color: var(--muted-foreground); flex-shrink: 0; }
.file-item .fi-remove:hover { color: var(--destructive); background: rgba(239,68,68,0.08); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; }
.file-grid-card { display: grid; grid-template-columns: 1fr auto; gap: .35rem; align-items: center; min-width: 0; padding: .75rem; border: 1px solid var(--border); border-radius: .625rem; background: rgba(19,19,22,.42); }
.file-grid-preview { grid-column: 1 / -1; display: grid; place-items: center; min-height: 5rem; color: var(--muted-foreground); background: rgba(0,0,0,.12); border-radius: .45rem; }
.file-grid-card strong, .file-grid-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.file-grid-card span { color: var(--muted-foreground); }

/* Progress bar */
.progress-track { height: 0.5rem; border-radius: 999px; background: var(--secondary); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 999px; background: var(--primary); transition: width .25s ease; }
.progress-track.is-indeterminate .progress-fill { width: 35%; animation: tool-progress 1.2s ease-in-out infinite; }
@keyframes tool-progress { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
.progress-label { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.5rem; }

/* Výsledková karta (stažení) */
.result-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 0.75rem;
  border: 1px solid rgba(16,185,129,0.25); background: rgba(16,185,129,0.06);
}
.result-card .rc-meta { flex: 1; display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.result-card .rc-title { font-size: 0.95rem; font-weight: 500; color: var(--foreground); }
.result-card .rc-sub { font-size: 0.8rem; color: var(--muted-foreground); }
.result-card .rc-sub strong { color: #34d399; font-weight: 600; }
.result-card-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; border-radius: 999px; color: var(--primary); background: rgba(16,185,129,.12); }

@media (max-width: 560px) {
  .row, .row-end, .row-between { flex-wrap: wrap; }
  .result-card { align-items: stretch; flex-wrap: wrap; }
  .result-card .rc-meta { min-width: calc(100% - 3.25rem); }
  .result-card .btn { width: 100%; }
  .file-item { flex-wrap: wrap; }
  .file-item .fi-meta { min-width: calc(100% - 3rem); }
  .split-2 textarea, .split-2 .preview { min-height: 16rem; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track.is-indeterminate .progress-fill { animation-duration: 2.4s; }
}

/* Privacy poznámka uvnitř nástroje */
.privacy-note {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; border-radius: 0.5rem;
  border: 1px solid rgba(16,185,129,0.2); background: rgba(16,185,129,0.05);
  font-size: 0.8rem; color: #9fd9b8;
}
.privacy-note svg { color: var(--primary); flex-shrink: 0; }

/* Before/after náhled */
.before-after { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .before-after { grid-template-columns: 1fr 1fr; } }
.ba-pane { display: flex; flex-direction: column; gap: 0.5rem; }
.ba-pane .ba-label { font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }
.ba-frame { border-radius: 0.5rem; border: 1px solid var(--border); background: rgba(19,19,22,0.4); min-height: 8rem; display: grid; place-items: center; overflow: hidden; }
.ba-frame img { max-width: 100%; max-height: 24rem; object-fit: contain; }

/* Accordion (nativní <details>) */
details.accordion { border: 1px solid var(--border); border-radius: 0.5rem; background: rgba(19,19,22,0.3); overflow: hidden; }
details.accordion + details.accordion { margin-top: 0.5rem; }
details.accordion > summary {
  list-style: none; cursor: pointer; padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: var(--foreground); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  user-select: none;
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary .acc-chev { transition: transform .2s; color: var(--muted-foreground); }
details.accordion[open] > summary .acc-chev { transform: rotate(180deg); }
details.accordion > .acc-body { padding: 0 1rem 1rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Větší dotykový cíl pro hlavní akce souborových nástrojů (44px) */
.btn-touch { min-height: 2.75rem; height: auto; padding: 0.5rem 1rem; }

/* Segmented control (přepínač režimů) */
.seg { display: inline-flex; padding: 0.25rem; border-radius: 0.5rem; border: 1px solid var(--border); background: rgba(19,19,22,0.4); gap: 0.25rem; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; color: var(--muted-foreground); padding: 0.375rem 0.75rem;
  border-radius: 0.375rem; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap;
}
.seg button:hover { color: var(--foreground); }
.seg button.active { background: var(--primary); color: var(--primary-foreground); }

/* Klíč–hodnota řádek výsledků kalkulaček */
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: 0; }
.kv .k { font-size: 0.875rem; color: var(--muted-foreground); }
.kv .v { font-size: 1.125rem; font-weight: 600; color: var(--foreground); font-variant-numeric: tabular-nums; }
.kv .v.accent { color: var(--primary); }

/* Amortizační / výsledková tabulka */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 0.5rem 0.625rem; text-align: right; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--muted-foreground); font-weight: 500; text-align: right; position: sticky; top: 0; background: var(--card); }
.tbl td:first-child, .tbl th:first-child { text-align: left; }
.tbl-wrap { max-height: 22rem; overflow-y: auto; border-radius: 0.5rem; border: 1px solid var(--border); }

/* Nástrojové rozdělení (vstup | výstup / náhled) */
.split-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .split-2 { grid-template-columns: 1fr 1fr; } }
.split-2 textarea, .split-2 .preview { min-height: 24rem; }
.preview { border-radius: 0.5rem; border: 1px solid var(--border); background: rgba(19,19,22,0.3); padding: 1rem; overflow-y: auto; }
.editor-meta { align-self: flex-end; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.pdf-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .75rem; max-height: 31rem; overflow: auto; padding: .25rem; }
.pdf-page-card { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; padding: .5rem; border: 1px solid var(--border); border-radius: .625rem; background: rgba(19,19,22,.55); color: var(--muted-foreground); font: inherit; font-size: .72rem; transition: border-color .15s, background .15s, transform .15s; }
button.pdf-page-card { cursor: pointer; }
.pdf-page-card.is-selected { border-color: rgba(16,185,129,.42); background: rgba(16,185,129,.065); color: var(--foreground); }
.pdf-page-card.is-dragging { opacity: .5; transform: scale(.96); }
.pdf-page-card canvas, .pdf-page-thumb { display: grid; place-items: center; max-width: 100%; min-height: 5rem; transition: transform .2s; }
.pdf-page-card canvas { width: auto; height: 8rem; max-width: 100%; object-fit: contain; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.28); }
.pdf-page-thumb canvas { height: 8rem; }
.pdf-page-actions { display: flex; justify-content: center; gap: .15rem; width: 100%; }
.tool-action-bar { position: sticky; bottom: .5rem; z-index: 4; display: flex; justify-content: flex-end; margin-top: 1rem; padding: .625rem; border: 1px solid var(--border); border-radius: .75rem; background: rgba(13,13,13,.9); backdrop-filter: blur(12px); }
.field-help { min-height: 1.2em; margin: .25rem 0 0; color: var(--muted-foreground); font-size: .75rem; }
.crop-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .75rem 0 0; padding: 0; border: 0; }
.crop-fields label { display: flex; align-items: center; gap: .4rem; color: var(--muted-foreground); font-size: .75rem; }
.crop-fields .input { min-width: 0; }
@media (max-width: 480px) { .crop-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.media-preview { width: 100%; max-height: 28rem; border: 1px solid var(--border); border-radius: .75rem; background: #050505; }
.media-range { display: grid; grid-template-columns: 1fr; gap: .35rem; margin-top: 1rem; padding: .75rem; border: 1px solid var(--border); border-radius: .625rem; background: rgba(19,19,22,.4); }
.media-range output { justify-self: center; color: var(--muted-foreground); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
.loan-chart { padding: 1rem; border: 1px solid var(--border); border-radius: .75rem; background: rgba(19,19,22,.4); }
.loan-chart-bar { display: flex; height: .9rem; overflow: hidden; border-radius: 999px; background: var(--secondary); }
.loan-chart-bar span:first-child { width: 0; background: var(--primary); transition: width .3s; }
.loan-chart-bar span:last-child { width: 0; background: var(--color-amber); transition: width .3s; }
.loan-chart p { display: flex; justify-content: space-between; gap: 1rem; margin: .65rem 0 0; color: var(--muted-foreground); font-size: .75rem; }
.loan-chart strong { color: var(--foreground); font-variant-numeric: tabular-nums; }
@media print { .site-header, .site-footer, .breadcrumb, .tool-steps, .tool-trust, #ln-print { display: none !important; } body, .glass, .tool-shell { background: #fff !important; color: #111 !important; box-shadow: none !important; } .tool-page { max-width: none; padding: 0; } .tbl-wrap { max-height: none; overflow: visible; } }
@media (max-width: 560px) { .pdf-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tool-action-bar .btn { width: 100%; } }

/* Malý kódový strop pro jednorázové výsledky šifrování */
.outbox { position: relative; }
.outbox .textarea { min-height: 8rem; }
.outbox .out-copy { position: absolute; top: 0.5rem; right: 0.5rem; }

/* Range s popiskem hodnoty */
.range-row { display: flex; align-items: center; gap: 0.75rem; }
.range-row input[type="range"] { flex: 1; }
.range-row .range-val { font-size: 0.8rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; min-width: 4rem; text-align: right; }
/* ── Beta testing banner ─────────────────────────────────────────── */
.beta-section { padding: 2.5rem 0 4rem; scroll-margin-top: 8rem; }
.beta-card { max-width: 46rem; margin: 0 auto; padding: 1.75rem; border-radius: 1rem; }
.beta-head { display: flex; align-items: center; gap: 0.5rem; color: #10b981; }
.beta-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: #10b981; background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); padding: 0.2rem 0.55rem; border-radius: 999px; }
.beta-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 0.5rem 0 0.35rem; line-height: 1.1; }
.beta-sub { font-size: 0.95rem; color: var(--muted-foreground); margin: 0 0 1.25rem; max-width: 38rem; }
.beta-form { display: flex; flex-direction: column; gap: 0.75rem; }
.beta-form .textarea { min-height: 6rem; resize: vertical; }
.beta-note { font-size: 0.9rem; color: #34d399; margin: 1rem 0 0; }
.beta-note span { font-variant-numeric: tabular-nums; }
.beta-small { font-size: 0.78rem; color: var(--muted-foreground); line-height: 1.5; margin: 1.25rem 0 0; max-width: 42rem; }
.beta-small strong { color: #34d399; font-weight: 600; }
@media (max-width: 560px) { .beta-title { font-size: 1.7rem; } .beta-card { padding: 1.25rem; } }
