/* Stránky okolo editora: ukážka, Moje obrazy, sprievodca nahraním, administrácia. */

.page { max-width: 1280px; margin: 0 auto; padding: 8px 16px 40px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 6px; }
.page-head h1 { margin: 0; font-size: 30px; }
.hint { color: var(--muted); margin: 6px 0; }
.error { color: var(--danger); font-weight: 700; }

/* zoznam fotiek */
.photo-grid {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.photo-card { display: flex; flex-direction: column; overflow: hidden; }
/* náhľad: všetky rovnako vysoké, celá fotka vycentrovaná (nie orezaná) */
.photo-card a.cover { display: block; height: 220px; padding: 8px; background: var(--card); overflow: hidden; }
.photo-card .cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo-card .meta { padding: 10px 12px 4px; }
.photo-card .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-card .sub { color: var(--muted); font-size: 13px; }
.photo-card .actions { display: flex; gap: 8px; padding: 8px 12px 12px; }
.photo-card .actions .btn { flex: 1; }
.empty-list { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--muted); font-size: 17px; }

/* sprievodca */
dialog.card { padding: 22px; color: var(--text); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(2px); }
.wizard { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.wizard h2 { margin: 4px 0 12px; font-size: 24px; }
.wizard-close { position: absolute; top: 12px; right: 12px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.wizard-steps { display: flex; gap: 6px; list-style: none; margin: 0 32px 12px 0; padding: 0; counter-reset: step; }
.wizard-steps li {
  counter-increment: step;
  flex: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.wizard-steps li::before { content: counter(step) ". "; }
.wizard-steps li.active { background: var(--accent); color: var(--accent-text); }
.wizard-steps li.done { background: var(--accent-soft); color: var(--accent-ink); }
.tips { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; }
.drop {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.drag, .drop.busy { border-color: var(--accent); background: var(--accent-soft); }
.drop small { color: var(--muted); }
/* načítavanie: hľadanie tvárí a kontrola obsahu (moje.js) – fotku nejde vybrať znova (pole vypnuté, pustenie sa ignoruje) */
.drop.busy { cursor: progress; }
.drop-busy { display: grid; justify-items: center; gap: 8px; }
.drop-busy[hidden], .drop.busy .drop-idle { display: none; }
.spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn .spinner { width: 16px; height: 16px; border-width: 2px; border-color: currentColor; border-top-color: transparent; }
.btn.busy:disabled { opacity: 1; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.faces-preview { display: grid; place-items: center; background: var(--card); border-radius: 14px; overflow: hidden; }
.faces-preview canvas { display: block; max-width: 100%; max-height: 50dvh; }
.nsfw {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--danger-line);
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger-text);
}
.nsfw[hidden] { display: none; }
.nsfw p { margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.5; }
/* odstránenie omylom nájdenej tváre (moje.js) */
.face-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.face-chips[hidden] { display: none; }
.face-chips > .hint { flex-basis: 100%; margin: 0; }
.face-chip-list { display: contents; }
.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: 700 13px/1.2 var(--font);
  cursor: pointer;
}
.chip b { color: var(--muted); }
.chip:hover, .chip:hover b { border-color: var(--danger); color: var(--danger); }
.faces-preview canvas.removable { cursor: pointer; }
.warnings { margin: 6px 0; padding-left: 20px; color: var(--warn-text); }
.warnings:empty { display: none; }
.notice { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--warn-line); border-radius: 14px; background: var(--warn-soft); }
.notice p { margin: 0 0 8px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.wizard-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.confirm { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
.confirm img { width: 100%; border-radius: 12px; display: block; }
@media (max-width: 520px) { .confirm { grid-template-columns: 1fr; } }
.confirm-delete { width: min(420px, calc(100vw - 24px)); }
.confirm-delete h2 { margin: 0 0 8px; }

/* účet: hláška bez prihlásenia a prihlásený používateľ (okno prihlásenia je v site.css) */
.account-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 10px 0 4px;
  padding: 14px 18px;
  border: 1px solid var(--warn-line);
  border-radius: 14px;
  background: var(--warn-soft);
}
.account-note p { flex: 1 1 420px; margin: 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-bar { margin: 8px 0 4px; color: var(--muted); }
.account-bar b { color: var(--text); }

/* úzke textové stránky: môj účet, ochrana osobných údajov, podmienky */
.page.narrow { max-width: 760px; }
.page.narrow > h1 { font-size: 30px; margin: 14px 0 12px; }
.account-section { padding: 18px 20px; margin: 0 0 16px; }
.account-section h2 { margin: 0 0 10px; font-size: 21px; }
.account-section .account-form { max-width: 420px; }
.account-message { font-weight: 700; }
.account-data { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.account-data dt { color: var(--muted); }
.account-data dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.badge-state { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--warn-soft); color: var(--warn-text); }
.badge-state.ok { background: var(--accent-soft); color: var(--accent-ink); }
.verify-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--warn-line); border-radius: 14px; background: var(--warn-soft); }
.verify-box p { margin: 0 0 8px; }
.danger-zone { border-color: var(--danger-line); }
.legal { padding: 22px 26px; margin-top: 12px; line-height: 1.6; }
.legal h1 { margin: 0 0 4px; font-size: 30px; }
.legal h2 { margin: 22px 0 6px; font-size: 20px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }

/* úvodná stránka spájame.sk: rozcestník s dlaždicami funkcií (home.js) */
.page.home { max-width: 1100px; }
.home-hero { padding: 34px 0 14px; text-align: center; }
.home-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 46px); }
.home-hero p { max-width: 620px; margin: 0 auto 16px; color: var(--muted); font-size: 18px; }
.home-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-trust li { padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
.home-trust li::before { content: "✓ "; }
.home-tiles { display: grid; gap: 18px; margin: 22px 0 30px; }
/* hlavné funkcie (so živou ukážkou) – mriežka; menšie dlaždice pod nimi rovnomerne vedľa seba na celú šírku */
.tiles-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tiles-small { display: flex; flex-wrap: wrap; gap: 18px; }
.tiles-small > .tile { flex: 1 1 260px; }
.tile { display: grid; grid-template-rows: auto 1fr; overflow: hidden; color: inherit; text-decoration: none; transition: transform 0.15s, border-color 0.15s; }
.tile.active:hover { transform: translateY(-3px); border-color: var(--accent); }
.tile-preview { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--card); overflow: hidden; }
.tile-icon { font-size: 64px; }
.tile-icon-img { width: 96px; height: 96px; object-fit: contain; }
.tile.compact .tile-icon-img { width: 64px; height: 64px; }
.tile-preview.live .tile-icon { display: none; }
.tile-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.tile-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; background: transparent; }
.tile-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; }
.tile-body h2 { margin: 0; font-size: 24px; }
.tile-body p { margin: 0 0 6px; color: var(--muted); }
.tile-soon { padding: 4px 12px; border-radius: 999px; background: var(--card); color: var(--muted); font-size: 13px; font-weight: 800; }
.tile.soon { border-style: dashed; opacity: 0.8; }
/* dlaždice len s ikonou (podpora, pripravujeme…) – menší náhľad */
.tile.compact .tile-preview { aspect-ratio: auto; min-height: 110px; }
.tile.compact .tile-icon { font-size: 40px; }
/* jedna hlavná funkcia: veľká dlaždica cez celú šírku – živá ukážka vedľa textu */
.tiles-main.single .tile.main { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.tiles-main.single .tile.main .tile-preview { aspect-ratio: auto; min-height: 360px; }
.tiles-main.single .tile.main .tile-body { justify-content: center; padding: 28px 32px; }
.tiles-main.single .tile.main h2 { font-size: 34px; }
.tiles-main.single .tile.main p { font-size: 17px; }
@media (max-width: 759px) {
  .tiles-main.single .tile.main { grid-template-columns: 1fr; }
  .tiles-main.single .tile.main .tile-preview { min-height: 240px; }
  .tiles-main.single .tile.main .tile-body { padding: 20px; }
}

/* podporte projekt: QR kód PAY by square a IBAN */
.support { margin-top: 14px; padding: 24px 26px; }
.support h1 { margin: 0 0 8px; font-size: 32px; }
.support > p:first-of-type { font-size: 17px; }
.support-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 18px 0; }
.support-qr { margin: 0; display: grid; justify-items: center; gap: 8px; max-width: 240px; text-align: center; }
.support-qr img { display: block; width: 220px; height: 220px; padding: 8px; border-radius: 14px; background: #fff; }
.support-qr figcaption { color: var(--muted); font-size: 13px; }
.support-data { flex: 1 1 260px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.support-data dt { color: var(--muted); }
.support-data dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.support-data dd .btn { margin-left: 8px; vertical-align: middle; }
#iban { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.02em; }
@media (max-width: 520px) { .support-pay { justify-content: center; } .support-data { grid-template-columns: 1fr; } }

/* obraz poslaný známym: živý obraz a pod ním ponuka vytvoriť si vlastný */
.page.shared { max-width: 980px; }
.page.shared > h1 { text-align: center; font-size: 30px; margin: 14px 0 12px; }
.shared-frame { width: min(100%, calc(78dvh * var(--ratio, 1.33))); max-height: 78dvh; margin: 0 auto; overflow: hidden; background: var(--card); }
.shared-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.shared-frame video { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* pozvánka (/zive-obrazy/o/<kód>): len živý obraz čo najväčší s jemným okrajom a pod ním tlačidlo (obraz.html) */
body.invitation { margin: 0; min-height: 100dvh; }
.invitation-main {
  box-sizing: border-box;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px;
}
.invitation .shared-frame {
  /* (celá šírka, výška obrazovky mínus okraje a tlačidlo; pomer strán fotky z obraz.js) */
  width: min(100%, calc((100dvh - 104px) * var(--ratio, 1.33)));
  max-height: none;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.invitation-cta { flex: none; }
.invitation .shared-error { margin: 0; }
.invitation .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.shared-error { text-align: center; font-size: 17px; }
.shared-cta { max-width: 560px; margin: 22px auto 0; padding: 20px 22px; text-align: center; }
.shared-cta h2 { margin: 0 0 6px; font-size: 24px; }
.shared-cta p { margin: 0 0 14px; color: var(--muted); }

/* úvodný text (ukážka aj náhľad v administrácii) */
.intro { padding: 22px 26px; margin: 10px 0 18px; overflow-wrap: anywhere; }
.intro > :first-child { margin-top: 0; }
.intro > :last-child { margin-bottom: 0; }
.intro h1 { font-size: 34px; margin: 0 0 10px; }
.intro img { max-width: 100%; height: auto; border-radius: 12px; }
.intro a { color: var(--accent-ink); font-weight: 700; }

/* ukážka: jedna fotka na obrazovku – vľavo pôvodná, vpravo živá */
.showcase { display: grid; gap: 12px; }
.slide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.slide figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.slide figcaption { font: 700 16px/1.2 var(--display); color: var(--muted); }
.slide .frame {
  display: grid;
  place-items: center;
  width: 100%;
  max-height: 72dvh;
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}
.slide .frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slide .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.slide .frame video { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
@media (max-width: 759px) {
  .slide { grid-template-columns: 1fr; padding: 12px; }
}
.switcher { display: flex; align-items: center; justify-content: center; gap: 14px; }
.switcher .btn { width: 44px; height: 44px; padding: 0; font-size: 24px; border-radius: 50%; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }
.cta { text-align: center; margin: 22px 0 0; }

/* administrácia */
.login { max-width: 380px; margin: 40px auto; padding: 24px; }
.login h1 { margin: 0 0 14px; font-size: 26px; }
.login form { display: grid; gap: 12px; }
.login label, .intro-source { display: grid; gap: 4px; font-weight: 700; }
.login input, .intro-edit textarea {
  font: 15px/1.4 var(--font);
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
}
.login input:focus, .intro-edit textarea:focus { outline: none; border-color: var(--accent); }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-section { margin: 16px 0; }
.admin-section.card { padding: 18px 20px; }
.admin-section h2 { margin: 0 0 4px; font-size: 22px; }
.finisher-check { margin-top: 12px; }
/* štatistiky (admin.js showStats) */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.stats-card { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.stats-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.stats-value { font: 800 28px/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.stats-sub { font-size: 12px; color: var(--muted); }
.stats-chart { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.stats-bar { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: var(--accent); opacity: 0.85; }
.stats-bar:hover { opacity: 1; }
.stats-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.stats-lists h3 { margin: 0 0 6px; font-size: 15px; }
.stats-lists ol { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.stats-lists li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.stats-lists li span { overflow-wrap: anywhere; }
.stats-lists li b { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .stats-lists { grid-template-columns: 1fr; } }
/* video náhľad: editor v skrytom rámci mimo obrazovky (admin.js makePreview) */
.preview-state { color: var(--muted); font-weight: 400; }
/* rad jobov – súhrn a odkaz na stránku spracovania (admin.js showJobs) */
.job-summary { margin: 8px 0 0; font-size: 14px; }
.job-summary:empty { display: none; }
/* spracovanie – kto počíta, aktívne, čakajúce a pozastavené joby (admin-jobs.js) */
.admin-section h2 .count { color: var(--muted); font-size: 18px; }
.job-workers { margin: 8px 0; padding-left: 22px; font-size: 14px; }
.job-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.job-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.job-item.active { border-color: var(--accent); }
.job-item.paused { opacity: 0.8; }
.job-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; display: block; background: var(--line); }
.job-body { display: grid; gap: 4px; min-width: 0; }
.job-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.job-title b { overflow-wrap: anywhere; }
.job-position { font-weight: 800; color: var(--muted); }
.job-tag { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); }
.job-facts, .job-now { font-size: 13px; color: var(--muted); }
.job-now { color: var(--text); font-weight: 600; }
.job-bar { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.job-bar > span { display: block; height: 100%; background: var(--accent); transition: width 0.4s; }
.job-empty { padding: 4px 0; }
@media (max-width: 600px) {
  .job-item { grid-template-columns: 56px 1fr; }
  .job-thumb { width: 56px; height: 42px; }
  .job-item .btn { grid-column: 1 / -1; justify-self: start; }
}
/* pracovníci mimo servera (admin.js showWorkers) */
.workers-head { margin: 18px 0 4px; font-size: 16px; }
.workers { margin: 8px 0; padding-left: 22px; font-size: 14px; }
.workers .link { margin-left: 8px; }
.worker-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.worker-add input { flex: 1 1 200px; max-width: 320px; }
.worker-key { margin-top: 10px; font-size: 14px; word-break: break-all; }
.worker-key code { background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }
.intro-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.intro-edit textarea { width: 100%; min-height: 280px; resize: vertical; font: 13px/1.5 ui-monospace, Consolas, monospace; }
.intro-edit .label { display: block; font-weight: 700; margin-bottom: 4px; }
.intro-preview { margin: 0; border: 1px dashed var(--line); border-radius: 12px; min-height: 280px; background: var(--bg); }
@media (max-width: 859px) { .intro-edit { grid-template-columns: 1fr; } }
.featured-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: featured; }
.featured-item {
  counter-increment: featured;
  display: grid;
  grid-template-columns: auto 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.featured-item::before { content: counter(featured) "."; font-weight: 800; color: var(--muted); min-width: 1.5em; }
.featured-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.featured-item .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-actions { display: flex; gap: 6px; }
.featured-empty { color: var(--muted); padding: 8px 2px; }
.featured-check { padding: 4px 12px 12px; }
.featured-check.no-consent { color: var(--muted); font-weight: 600; }
#all-photos .photo-card .actions { padding-top: 0; }
/* administrácia: dlaždice úvodnej stránky */
.tile-editor-list { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 10px; }
.tile-editor { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tile-editor[data-status="hidden"] { opacity: 0.6; }
.tile-editor-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tile-editor-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 8px 12px; }
.tile-editor-grid label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tile-editor-grid label.wide { grid-column: 1 / -1; }
.tile-editor input, .tile-editor textarea, .tile-editor select {
  font: 14px/1.4 var(--font);
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 0;
}
.tile-editor textarea { resize: vertical; }
/* ikona: emoji alebo obrázok (admin.js iconField) */
.tile-editor-grid .icon-field { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); }
.icon-row { display: flex; align-items: center; gap: 6px; }
.icon-row input { width: 100%; }
.icon-preview { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: var(--panel); flex: none; }
.icon-row .btn { flex: none; }
@media (max-width: 600px) { .tile-editor-grid { grid-template-columns: 1fr; } }
