/* SheetSlide — vizuál inšpirovaný Hungry Studio (krém + čierny hero + fialové akcenty) */

:root {
  --cream: #fff6e8;
  --ink: #0a0a0a;
  --purple: #6b2cff;
  --purple-soft: #c9b3ff;
  --purple-softer: #e4d9ff;
  --purple-light: #8f5cff;
  --yellow: #ffe14a;
  --muted: #5c5668;
  --white: #ffffff;
  --radius: 28px;
  --radius-sm: 18px;
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --parsenn-h: 72px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px calc(var(--parsenn-h) + 40px);
  text-align: center;
}

.page--center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

/* Logo ako hlavička */
.top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.top--nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.top--nav .brand {
  justify-self: center;
}

.nav-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-back:hover,
.nav-back:focus-visible {
  background: var(--purple-soft);
  border-color: var(--purple-light);
}

.nav-spacer {
  width: 44px;
  height: 44px;
}

.top:has(.back-link) {
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.brand:hover,
.brand:focus-visible {
  opacity: 0.88;
  transform: scale(1.02);
}

.brand__logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  background: transparent;
  mix-blend-mode: normal;
}

.brand__logo--sm {
  width: min(120px, 36vw);
}

.back-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
}

/* Hero (vedľajšie stránky) */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 28px 42px;
  margin-bottom: 22px;
  text-align: center;
}

.hero--sm { padding: 36px 24px 32px; }

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(42px, 12vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

.hero-sub {
  margin: 0 auto;
  max-width: 28ch;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  font-style: italic;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero > * { position: relative; z-index: 1; }

/* PROMOTER / KLIENT — jednoduchý fialový rámček */
.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 96px;
  padding: 20px 24px;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  background: var(--purple-soft);
  border: 2px solid var(--purple-soft);
  border-radius: var(--radius-sm);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.card-btn:hover,
.card-btn:focus-visible {
  background: var(--purple-softer);
  border-color: var(--purple-softer);
  color: var(--ink);
}

.card-btn:active {
  background: #d5c6ff;
}

.card-btn strong {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 900;
}

.note {
  margin: 28px 8px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Parsenn — fixed footer cez celú šírku */
.parsenn-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: var(--parsenn-h);
  padding: 12px 20px;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border-top: 2px solid var(--ink);
  transition: background 0.15s ease;
}

.parsenn-bar:hover,
.parsenn-bar:focus-visible {
  background: #ffe96a;
}

.parsenn-bar__brand {
  font-family: var(--font-display);
  font-size: clamp(14px, 2.4vw, 22px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.parsenn-bar__text {
  margin: 0;
  font-size: clamp(12px, 1.6vw, 15px);
  line-height: 1.35;
  font-weight: 500;
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  border: 2px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: rgba(255, 255, 255, 0.45);
}

.panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.muted {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 16px;
}

.small { font-size: 13px; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--ink);
}

.pill-btn--ghost {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.pill-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.loading-msg {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Formulár zápisu — 2 kroky + animácie */
.page--form {
  max-width: 560px;
  text-align: left;
}

.page--form .top {
  margin-bottom: 14px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.steps__item {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}

.steps__item.is-active {
  color: var(--purple);
  opacity: 1;
}

.steps__item.is-done {
  color: var(--ink);
  opacity: 0.75;
}

.steps__line {
  width: 28px;
  height: 2px;
  background: rgba(107, 44, 255, 0.25);
  border-radius: 2px;
}

.form-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.form-view.is-active {
  display: block;
  animation: formIn 0.35s ease forwards;
}

@keyframes formIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-panel {
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(107, 44, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 20px 18px 24px;
}

.form-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.form-section-title {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.form-sub,
.form-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.form-hint { margin-top: 10px; font-size: 13px; }

.form-hint a {
  color: var(--purple, #6b2cff);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 2px solid rgba(107, 44, 255, 0.35);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-family: var(--font-body);
}

.btn-primary {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  background: var(--purple);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--purple-light);
  box-shadow: 0 6px 18px rgba(107, 44, 255, 0.28);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}

.session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  margin-bottom: 14px;
}

.session-bar strong { display: block; font-size: 15px; }
.session-bar small { display: block; color: rgba(255,255,255,0.7); font-size: 12px; margin-top: 2px; }

.link-btn {
  background: none;
  border: 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-body);
}

.mechgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mech {
  position: relative;
  padding: 20px 12px 16px;
  border-radius: 16px;
  border: 2px solid rgba(107, 44, 255, 0.35);
  background: var(--cream);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mech:active { transform: scale(0.98); }

.mech__check {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 10, 0.2);
  display: grid;
  place-items: center;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  color: var(--white);
}

.mech__label { display: block; text-align: center; }

.mech.sel {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 44, 255, 0.18);
}

.mech.sel .mech__check {
  opacity: 1;
  transform: scale(1);
  background: var(--ink);
  border-color: var(--ink);
}

.m-vym.sel { border-color: #2e7d32; background: #d9f0dd; }
.m-pre.sel { border-color: #00838f; background: #d5f1f3; }
.m-reg.sel { border-color: #ef6c00; background: #ffe4c7; }
.m-osl.sel { border-color: #7e57c2; background: #e8defe; }

.m-vym.sel .mech__check { background: #2e7d32; border-color: #2e7d32; }
.m-pre.sel .mech__check { background: #00838f; border-color: #00838f; }
.m-reg.sel .mech__check { background: #ef6c00; border-color: #ef6c00; }
.m-osl.sel .mech__check { background: #7e57c2; border-color: #7e57c2; }

.fields-host {
  margin-top: 8px;
  min-height: 48px;
}

.empty-mech {
  margin-top: 16px;
  padding: 18px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  border: 2px dashed rgba(107, 44, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
}

.empty-mech.is-hidden { display: none; }

.reveal {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.reveal.is-open {
  display: block;
  animation: revealIn 0.3s ease forwards;
}

@keyframes revealIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.block {
  margin-top: 14px;
  padding: 4px 14px 14px;
  border-radius: 12px;
  border-left: 6px solid var(--purple);
  background: rgba(255, 255, 255, 0.7);
}

.blktitle {
  font-weight: 800;
  font-size: 14px;
  margin: 12px 0 2px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.blk-vym { border-left-color: #2e7d32; }
.blk-pre { border-left-color: #00838f; }
.blk-reg { border-left-color: #ef6c00; }
.blk-osl { border-left-color: #7e57c2; }
.blk-demo { border-left-color: var(--purple); }
.blk-chut { border-left-color: #c62828; }
.blk-chut .blktitle { color: #c62828; }

.seg {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.seg button {
  flex: 1;
  min-width: 90px;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid rgba(107, 44, 255, 0.3);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.seg button.sel {
  border-color: var(--purple);
  background: var(--purple-soft);
  transform: scale(1.02);
}

.chut-row__score button { min-width: 0; flex: 1 1 0; padding: 10px 0; }
.chut-row__score { flex-wrap: nowrap !important; gap: 6px; }
.chut-list { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 12px; }
.chut-row { padding: 12px; border-radius: 12px; border: 1px solid rgba(198, 40, 40, 0.25); background: #fff8f8; }
.chut-row__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.chut-row__title { font-size: 13px; font-weight: 700; color: #8e0000; }
.chut-row__remove { border: none; background: transparent; color: #c62828; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 6px; }
.chut-row__flavor { margin-top: 10px; }
.chut-row__flavor.is-hidden { display: none; }
.btn-add-chut { width: 100%; margin-top: 4px; padding: 12px 14px; border-radius: 12px; border: 2px dashed rgba(198, 40, 40, 0.45); background: #fff; color: #c62828; font-size: 14px; font-weight: 700; font-family: var(--font-body); cursor: pointer; }
.panel--chut .panel__title { background: #c62828; }
.report-group--chut .report-group__title { background: #c62828; }

.chks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.chk {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid rgba(107, 44, 255, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}

.chk input { width: 20px; height: 20px; }

.err {
  color: #c62828;
  font-size: 13px;
  margin-top: 10px;
  min-height: 1.2em;
}

.count {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

/* SEDITA admin: KIT/POD sa mažú v JS (stripBluKitPodDom).
   CSS hide podľa .admin-sedita NIE — pri BLU by mohol ostať stuck class a skryť chuťe. */

.report-group__row--tables {
  display: grid;
  gap: 12px;
}

.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.modal-bg[hidden] { display: none !important; }

/* Kartový dialóg v zápise — nesmie zdediť admin .modal (full-screen) */
.modal-bg > .modal {
  position: relative;
  inset: auto;
  z-index: 1;
  display: block;
  align-items: initial;
  justify-content: initial;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 28px 22px 18px;
  width: 100%;
  max-width: 320px;
  max-height: none;
  text-align: center;
  pointer-events: auto;
}

.modal-bg > .modal h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
}

.modal-bg > .modal p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.modal-bg > .modal .btn-primary { margin-top: 0; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.auth-tab.is-on {
  background: var(--ink);
  color: #fff;
}

.field--area {
  min-height: 72px;
  resize: vertical;
  line-height: 1.4;
}

.wizard-theme {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--white);
}

.wizard-theme__head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.wizard-q {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.15);
}

.wizard-block {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.btn-sm {
  padding: 8px 10px !important;
  font-size: 12px !important;
  width: auto;
}

.page--formular .form-panel {
  margin-bottom: 14px;
}

.page--projekty .btn-primary {
  margin-bottom: 14px;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
}

.profile-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.profile-card__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-card__meta strong {
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card__meta span {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-panel {
  max-width: 420px;
  margin: 0 auto;
}

.page--projekty {
  text-align: center;
}

.projekty-panel {
  text-align: center;
}

.projekty-panel .form-title,
.projekty-panel .form-sub,
.projekty-panel .err {
  text-align: center;
}

.btn-logout {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-logout:hover,
.btn-logout:focus-visible {
  background: rgba(10, 10, 10, 0.06);
  outline: none;
}

.project-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.project-card {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: center;
  justify-items: center;
  padding: 18px 16px;
  border: 2px solid var(--ink, #0a0a0a);
  border-radius: 16px;
  background: #fff;
  color: var(--ink, #0a0a0a);
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 var(--purple, #6b2cff);
  outline: none;
}

.project-card strong {
  font-family: var(--font-display, inherit);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.project-card span {
  color: var(--muted, #5c5668);
  font-size: 13px;
}

.filter-panel {
  margin-bottom: 18px;
  text-align: left;
}

.admin-top-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-top-row .filter-panel {
  margin-bottom: 0;
}

.project-tools {
  margin: 0;
  text-align: left;
}

.project-tools__actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.project-tools .btn-secondary {
  width: 100%;
  text-align: center;
}

.modal__sheet--sm {
  max-width: 420px;
}

.modal__body {
  padding: 0 18px 8px;
}

.modal__body .field-label {
  margin-top: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 12px;
}

.filter-group {
  margin-bottom: 4px;
}

.filter-group .field-label {
  display: block;
  margin: 0 0 10px;
}

.filter-group__hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chip-list {
  display: block;
}

.chip-list__all {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip-list__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list__empty {
  margin: 0;
}

.chip {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.chip:hover {
  background: var(--purple-softer);
  border-color: var(--purple);
  color: var(--ink);
}

.chip.is-on {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.chip.is-on:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
  color: #fff;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.btn-danger {
  display: block;
  width: 100%;
  padding: 15px;
  border: 2px solid #c62828;
  border-radius: 14px;
  background: transparent;
  color: #c62828;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-danger:hover {
  background: rgba(198, 40, 40, 0.08);
}

.btn-danger--quiet {
  max-width: 280px;
  margin: 0 auto;
  padding: 12px 14px;
  font-size: 12px;
  border-color: rgba(198, 40, 40, 0.45);
  color: rgba(198, 40, 40, 0.85);
}

.danger-zone {
  margin: 40px auto 8px;
  max-width: 420px;
  padding: 18px 16px 20px;
  text-align: center;
  border-top: 1px dashed rgba(10, 10, 10, 0.18);
}

.danger-zone__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.danger-zone__hint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* Modal — vymazať dáta */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
}

.modal[hidden] { display: none !important; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
}

.modal__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: calc(100vh - 24px);
  margin: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  text-align: left;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  background: #faf7f0;
}

.modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal__x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.modal__mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.mode-chip {
  border: 2px solid rgba(10, 10, 10, 0.15);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--ink);
}

.mode-chip.is-on {
  border-color: var(--purple);
  background: var(--purple-softer);
  color: var(--ink);
}

.modal__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.modal__search {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}

.modal__checkall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.sheet-wrap {
  flex: 1 1 auto;
  overflow: auto;
  margin: 0 16px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  max-height: min(55vh, 520px);
  -webkit-overflow-scrolling: touch;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.sheet-table th,
.sheet-table td {
  padding: 6px 8px;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle;
}

.sheet-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f3f3;
  font-weight: 700;
  color: #333;
}

.sheet-table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.sheet-table tbody tr:hover td {
  background: #e8f0fe;
}

.sheet-table tbody tr.is-checked td {
  background: #d2e3fc;
}

.sheet-col-check { width: 36px; text-align: center !important; }
.sheet-col-n { width: 40px; color: #888; font-variant-numeric: tabular-nums; }

.sheet-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.modal__meta {
  margin: 8px 16px 0;
  font-size: 12px;
  color: var(--muted);
}

.modal__warn {
  margin: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff3e0;
  border: 1px solid #ffcc80;
  color: #5c5668;
  font-size: 14px;
  line-height: 1.45;
}

.modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  background: #faf7f0;
  margin-top: auto;
}

.btn-secondary {
  padding: 12px 16px;
  border: 2px solid rgba(10, 10, 10, 0.2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--ink);
}

#deletePickPane,
#deleteAllPane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

#deletePickPane[hidden],
#deleteAllPane[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .modal {
    padding: 0;
  }
  .modal__sheet {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
  }
  .sheet-wrap {
    max-height: 50vh;
  }
}

.recent-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

button.nav-back {
  background: var(--cream);
  cursor: pointer;
  font-family: inherit;
}

@media (min-width: 640px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Admin štatistiky */
.admin-status {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.report {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.report-overview,
.report-more {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Kategórie + boxíky vyplnia šírku */
.report-mechs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 18px;
  width: 100%;
}

.report-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

.report-group__title {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}

.report-group__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.report-group--vym .report-group__title { background: #2e7d32; }
.report-group--pre .report-group__title { background: #00838f; }
.report-group--reg .report-group__title { background: #ef6c00; }
.report-group--chut .report-group__title { background: #c62828; }

.report-group .panel {
  margin: 0;
  flex: 1 1 100%;
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: auto !important;
  align-self: flex-start;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

.report-group--vym .panel {
  border-color: #2e7d32;
  background: #f1f8f2;
}
.report-group--pre .panel {
  border-color: #00838f;
  background: #eefafb;
}
.report-group--reg .panel {
  border-color: #ef6c00;
  background: #fff8f0;
}
.report-group--reg .panel--koleso {
  border-color: #6a1b9a;
  background: #f7f0fa;
}
.report-group--chut .panel,
.report-group--chut .panel--chut {
  border-color: #c62828;
  background: #fff8f8;
}

.report-group .panel__title {
  font-size: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.report-group .panel__note {
  font-size: 11px;
}

.report-group .mech-table {
  font-size: 11px;
  width: 100%;
}

.report-group .bar-list {
  min-width: 0;
  width: 100%;
}

/* Admin: na PC panely vedľa seba, na mobile pod sebou */
.page--admin {
  max-width: 720px;
}

@media (min-width: 900px) {
  .page--admin {
    max-width: min(1400px, calc(100vw - 48px));
  }

  .page--admin .admin-top-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
  }

  .page--admin .admin-top-row .filter-panel {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 12px 14px 14px;
  }

  .page--admin .admin-top-row .project-tools {
    position: static;
    width: 100%;
    padding: 12px 14px 14px;
  }

  .page--admin .filter-panel .form-section-title,
  .page--admin .project-tools .form-section-title {
    font-size: 14px;
    margin: 0 0 4px;
  }

  .page--admin .filter-panel .filter-group__hint,
  .page--admin .project-tools .filter-group__hint {
    margin: 0 0 8px;
    font-size: 11px;
  }

  .page--admin .filter-panel .filter-group .field-label {
    margin: 0 0 6px;
    font-size: 12px;
  }

  .page--admin .filter-panel .chip {
    padding: 6px 10px;
    font-size: 12px;
  }

  .page--admin .filter-panel .chip-list__all,
  .page--admin .filter-panel .chip-list__opts {
    gap: 6px;
  }

  .page--admin .filter-panel .chip-list__all {
    margin-bottom: 8px;
  }

  .page--admin .filter-panel .admin-actions {
    margin-top: 10px;
    gap: 8px;
  }

  .page--admin .filter-panel .btn-primary,
  .page--admin .filter-panel .btn-danger {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Prehľad: Spoločné vedľa tímu (nie cez celú šírku) */
  .page--admin .report {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .page--admin .report-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  /* SEDITA: Relácia je dlhá — panely pod sebou, bez prekrytia */
  body.admin-sedita .report-overview {
    grid-template-columns: 1fr;
  }

  .page--admin .report-overview > .panel {
    height: auto;
    align-self: start;
    min-width: 0;
    overflow: auto;
  }

  /* Kategórie + boxíky vyplnia šírku stránky */
  .page--admin .report-mechs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px 20px;
    width: 100%;
  }

  .page--admin .report-group {
    flex: 1 1 420px;
    width: auto;
    max-width: 100%;
  }

  .page--admin .report-group__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .page--admin .report-group__row > .panel {
    flex: 1 1 260px;
    width: auto;
    max-width: 100%;
    min-width: 240px;
    height: auto !important;
    align-self: flex-start;
    padding: 18px 16px 16px;
  }

  .page--admin .report-overview > .panel,
  .page--admin .report-more > .panel {
    padding: 20px 18px;
  }

  .page--admin .report-more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .page--admin .report-more > .panel {
    height: auto;
    align-self: start;
  }

  .page--admin .report-more > .panel--recent {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .page--admin {
    max-width: min(1600px, calc(100vw - 64px));
  }
}

.panel__title {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #1a237e;
  color: #fff;
}

.panel__sub {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.panel__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.panel--common .panel__title { background: #1a237e; }
.panel--vym .panel__title { background: #2e7d32; }
.panel--pre .panel__title { background: #00838f; }
.panel--reg .panel__title { background: #ef6c00; }
.panel--koleso .panel__title { background: #6a1b9a; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.stats-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card {
  background: #fff;
  border: 2px solid rgba(10, 10, 10, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
}

.stat-card--osl { border-color: #1a237e; background: #e8eaf6; }
.stat-card--len { border-color: #7e57c2; background: #efe8f8; }
.stat-card--vym { border-color: #2e7d32; background: #e8f5e9; }
.stat-card--pre { border-color: #00838f; background: #e0f7fa; }
.stat-card--reg { border-color: #ef6c00; background: #fff3e0; }
.stat-card--koleso { border-color: #6a1b9a; background: #f3e5f5; }
.stat-card--shot { border-color: #c62828; background: #ffebee; }

.stat-card small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}

.mech-table th,
.mech-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  text-align: left;
  white-space: nowrap;
}

.mech-table th {
  background: #f5f5f5;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mech-table th.col-osl,
.mech-table td.col-osl { color: #1a237e; font-weight: 700; }
.mech-table th.col-vym,
.mech-table td.col-vym { color: #2e7d32; font-weight: 700; }
.mech-table th.col-pre,
.mech-table td.col-pre { color: #00838f; font-weight: 700; }
.mech-table th.col-reg,
.mech-table td.col-reg { color: #ef6c00; font-weight: 700; }
.mech-table th.col-koleso,
.mech-table td.col-koleso { color: #6a1b9a; font-weight: 700; }
.mech-table th.col-shot,
.mech-table td.col-shot { color: #c62828; font-weight: 700; }
.mech-table th.col-sum,
.mech-table td.col-sum { font-weight: 800; }

.mech-table tr:last-child td {
  border-bottom: 0;
}

.panel--vym .bar-row__track span { background: #2e7d32; }
.panel--pre .bar-row__track span { background: #00838f; }
.panel--reg .bar-row__track span { background: #ef6c00; }
.panel--koleso .bar-row__track span { background: #6a1b9a; }

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(10, 10, 10, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--purple);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.list-more:hover {
  background: var(--purple-softer);
  border-color: var(--purple);
  color: var(--ink);
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap .mech-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.bar-row__label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 4px;
}

.bar-row__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(107, 44, 255, 0.12);
  overflow: hidden;
}

.bar-row__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
}

.recent-box {
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  padding: 10px;
}

.recent-box.is-expanded {
  max-height: min(70vh, 640px);
}

.recent-toggle {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.recent-list { display: flex; flex-direction: column; gap: 10px; }

.recent-item {
  padding: 12px 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid rgba(107, 44, 255, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.recent-item:hover {
  background: var(--purple-softer);
  border-color: var(--purple);
}

.recent-item strong { display: block; font-size: 15px; }
.recent-item small { display: block; color: var(--muted); font-size: 12px; margin: 2px 0 4px; }
.recent-item span { font-size: 13px; font-weight: 600; }

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  :root { --parsenn-h: 96px; }

  .parsenn-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brandL brandR"
      "text text";
    gap: 6px 12px;
    padding: 12px 14px 14px;
  }

  .parsenn-bar__brand:first-child { grid-area: brandL; justify-self: start; }
  .parsenn-bar__brand:last-child { grid-area: brandR; justify-self: end; }
  .parsenn-bar__text { grid-area: text; }
}

@media (min-width: 640px) {
  .page { padding: 36px 24px calc(var(--parsenn-h) + 48px); }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .brand__logo { width: 240px; }
  .brand__logo--sm { width: 140px; }
}
