.new-wrap { max-width: 700px; margin: 2rem auto; padding: 0 1rem; position: relative; z-index: 1; }
.new-wrap h1 { font-size: 1.4rem; margin-bottom: .5rem; }

/* ── Wizard progress bar ─────────────────────────────────── */
.wizard-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 1.5rem; padding: .75rem 0;
}
.wizard-progress-item {
  display: flex; align-items: center; gap: 0;
}
.wizard-progress-circle {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #aaa;
  background: #f0f0f0; border: 2px solid #e0e0e0;
  transition: all .2s; flex-shrink: 0;
}
.wizard-progress-circle.active {
  background: #1a1a2e; color: #fff; border-color: #1a1a2e;
}
.wizard-progress-circle.done {
  background: #d1fae5; color: #065f46; border-color: #10b981;
}
.wizard-progress-label {
  font-size: .72rem; color: #aaa; margin-left: .4rem;
  white-space: nowrap; font-weight: 600;
  transition: color .2s;
}
.wizard-progress-label.active { color: #1a1a2e; }
.wizard-progress-label.done { color: #065f46; }
.wizard-progress-line {
  width: 40px; height: 2px; background: #e0e0e0;
  margin: 0 .5rem; flex-shrink: 0;
  transition: background .2s;
}
.wizard-progress-line.done { background: #10b981; }
@media (max-width: 480px) {
  .wizard-progress-label { display: none; }
  .wizard-progress-line { width: 28px; }
}

/* ── Test limit badge ────────────────────────────────────── */
.test-limit-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 0;
  padding: .2rem .7rem; font-size: .78rem; color: #6b7280;
  margin-bottom: 1rem;
}
.test-limit-badge strong { color: #374151; font-weight: 700; }

/* ── Wizard steps ────────────────────────────────────────── */
.wizard-step { display: none; }
.wizard-step.active { display: block; }

/* ── Wizard navigation ───────────────────────────────────── */
.wizard-nav {
  display: flex; gap: .75rem; margin-top: 1.25rem;
  justify-content: space-between; align-items: center;
}
.wizard-nav-right { display: flex; gap: .75rem; margin-left: auto; }
.btn-wizard-next {
  padding: .6rem 1.5rem;
  background: #1a1a2e; color: #fff; border: none;
  border-radius: 0; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.btn-wizard-next:hover { background: #2d2d5e; }
.btn-wizard-next:disabled { opacity: .45; cursor: default; }
.btn-wizard-back {
  padding: .6rem 1.2rem;
  background: transparent; color: #666; border: 1.5px solid #ddd;
  border-radius: 0; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-wizard-back:hover { border-color: #999; color: #333; }

/* ── Set cards grid ────────────────────────────────────────── */
.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .6rem;
  margin-bottom: .75rem;
}
.set-card { position: relative; }
.set-card input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.set-card label {
  display: flex; flex-direction: column;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 0;
  padding: .55rem .75rem;
  cursor: pointer;
  transition: border-color .13s, box-shadow .13s;
  height: 100%;
}
.set-card label:hover { border-color: #bbb; }
.set-card input[type=radio]:checked + label {
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26,26,46,.1);
}

.set-name  { font-size: .95rem; font-weight: 700; color: #1a1a2e; margin-bottom: .15rem; display: flex; align-items: center; gap: .4rem; }
.set-icon { flex-shrink: 0; width: 18px; height: 18px; color: #888; }
.set-count { font-size: .72rem; color: #aaa; margin-bottom: .2rem; }
.set-duration { font-size: .72rem; color: #888; margin-bottom: .3rem; }
.set-duration .dur-est { color: #ccc; font-size: .67rem; }
.set-preview { font-size: .72rem; color: #bbb; line-height: 1.4; flex: 1; }

.badge-ip {
  display: inline-block; font-size: .65rem; font-weight: 600;
  background: #fff3cd; color: #856404;
  border-radius: 0; padding: .1rem .4rem;
  margin-left: .35rem; vertical-align: middle;
}
.badge-anchors-small {
  display: inline-block; font-size: .63rem; font-weight: 700;
  background: #d1fae5; color: #065f46;
  border-radius: 0; padding: .1rem .4rem;
  margin-left: .35rem; vertical-align: middle;
}
.user-sets-section--top {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.user-sets-infobox {
  font-size: .8rem;
  color: #6b5b95;
  background: #f3f0ff;
  border-left: 3px solid #c4b5fd;
  padding: .55rem .9rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}
.sets-divider {
  font-size: .8rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 1.2rem 0 .8rem;
  border-top: 1px solid #ede9fe;
  padding-top: .9rem;
}
.guest-notice {
  font-size: .85rem;
  color: #4338ca;
  background: #eef2ff;
  border-left: 3px solid #818cf8;
  padding: .65rem 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}
.user-sets-section {
  margin-top: 2rem;
  background: linear-gradient(135deg, #f8f6ff 0%, #f0edff 100%);
  border: 1.5px solid #d8d0f0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,.08);
  padding: 1.3rem 1.4rem 2em 1.3em;
  min-height: 140px;
}
.section-collapsible {
  background: #fff; border-radius: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
  padding: 1.1rem 1.4rem;
  margin-top: 1rem;
}
.user-sets-hdr { font-size: .95rem; font-weight: 700; color: #4c1d95; margin-bottom: .8rem;
  display: flex; align-items: center; gap: .7rem; }
.badge-set-limit {
  font-size: .7rem; font-weight: 600; color: #6b5b95;
  background: #ede9fe; border-radius: 0; padding: .1rem .55rem;
  margin-left: auto;
}
.link-manage-sets { font-size: .78rem; color: #6c6ca8; text-decoration: none; font-weight: 400; }
.link-manage-sets:hover { text-decoration: underline; }
.user-sets-empty { font-size: .87rem; color: #888; }

/* ── Step 1 instruction ──────────────────────────────────── */
.wizard-instruction {
  font-size: 1rem; color: #333; font-weight: 600;
  margin: 0 0 .8rem; line-height: 1.5;
}

/* ── Experiment section (common sets) ────────────────────── */
.experiment-section {
  background: #faf8ff; border-radius: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 1.1rem 1.4rem;
  margin-top: 2em;
  border: 1.5px solid #e0d9ff;
}
.experiment-header {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer; padding: .4rem 0;
  border-bottom: 1px solid #ede8ff; margin-bottom: 0;
}
.experiment-icon { width: 18px; height: 18px; color: #6366f1; flex-shrink: 0; }
.experiment-title { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6366f1; }
.experiment-subtitle { font-size: .75rem; color: #999; }

/* ── Bottom form ───────────────────────────────────────────── */
.new-meta {
  background: #fff; border-radius: 0;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
}
.new-meta label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: .35rem; }
.new-meta input[type=text],
.new-meta textarea {
  width: 100%; padding: .5rem .75rem;
  border: 1px solid #ccc; border-radius: 0; font-size: 1rem;
  font-family: inherit; box-sizing: border-box;
}
.new-meta input:focus,
.new-meta textarea:focus { outline: none; border-color: #4a90d9; }
.new-meta textarea { resize: vertical; min-height: 80px; }

/* ── Symbol style picker ───────────────────────────────────── */
.sym-style-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.sym-style-btn {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .65rem; border-radius: 0;
  border: 1.5px solid #ddd; background: #fafafa;
  cursor: pointer; font-family: inherit; font-size: .78rem;
  color: #555; transition: border-color .12s, background .12s;
}
.sym-style-btn:hover { border-color: #aaa; background: #f0f0f0; }
.sym-style-btn.active { border-color: #1a1a2e; background: #f4f4fb; color: #1a1a2e; }
.sym-style-preview { display: flex; gap: 3px; align-items: center; }
.sym-style-preview img { width: 22px; height: 22px; object-fit: contain; }
.sym-style-preview .sym-svg { width: 18px; height: 18px; }
.sym-style-name { font-weight: 600; }

.btn-start {
  width: 100%; padding: .75rem;
  background: #1a1a2e; color: #fff; border: none;
  border-radius: 0; font-size: 1.05rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.btn-start:hover { background: #2d2d5e; }
.error { background: #fde8e8; color: #b00; border-radius: 0;
         padding: .6rem .9rem; margin-bottom: 1rem; font-size: .9rem; }
.upgrade-notice {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 0;
  padding: 1.1rem 1.4rem; margin-bottom: 1.25rem;
}
.upgrade-notice strong { display: block; color: #1d4ed8; margin-bottom: .4rem; }
.upgrade-notice p { font-size: .88rem; color: #374151; margin: 0 0 .9rem; }
.upgrade-notice .upgrade-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.btn-upgrade {
  background: #1a1a2e; color: #fff; border: none; border-radius: 0;
  padding: .55rem 1.1rem; font-size: .9rem; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn-upgrade:hover { background: #2d2d5e; }
.link-plans { font-size: .85rem; color: #4a90d9; text-decoration: none; }
.link-plans:hover { text-decoration: underline; }

/* ── Concept aliases (step 3) ──────────────────────────────── */
.alias-section-card {
  background: #fff; border-radius: 0;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
  margin-bottom: 1rem;
}
.alias-section-card h3 {
  font-size: .9rem; font-weight: 700; margin: 0 0 .1rem; color: #1a1a2e;
}
.alias-intro {
  font-size: .8rem; color: #aaa; margin-bottom: .8rem;
}
.alias-row {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem;
}
.alias-orig {
  width: 70px; font-size: .82rem; color: #888; flex-shrink: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.alias-personal-fields {
  display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 0;
}
.alias-input {
  flex: 1; padding: .32rem .6rem;
  border: 1px solid #ccc; border-radius: 0; font-size: .88rem; font-family: inherit;
  min-width: 0;
}
.alias-input:focus { outline: none; border-color: #4a90d9; }
.alias-gender {
  padding: .3rem .4rem; border: 1px solid #ddd; border-radius: 0;
  font-size: .78rem; background: #fff; cursor: pointer; flex-shrink: 0;
}
.alias-include-label {
  display: flex; align-items: center; gap: .3rem; flex-shrink: 0;
  font-size: .78rem; color: #555; cursor: pointer; white-space: nowrap;
}
.alias-include-label input { cursor: pointer; }
.alias-include-label .alias-include-text { font-weight: 600; }
@media (max-width: 480px) {
  .alias-row { flex-wrap: wrap; }
  .alias-orig { width: 60px; font-size: .78rem; }
  .alias-personal-fields { flex-basis: 100%; }
}

/* ── Show more ──────────────────────────────────────────────── */
.btn-show-more {
  background: none; border: none; padding: 0;
  font-size: .78rem; color: #7c6cb0; cursor: pointer;
  font-weight: 500; font-family: inherit;
}
.btn-show-more:hover { text-decoration: underline; color: #4c1d95; }

/* ── Question Clarifier ────────────────────────────────────── */
.btn-ai-helper {
  background: #f5f0ff; border: 1px solid #c4a8ff; color: #6b3fa0;
  border-radius: 0; padding: .3rem .75rem; font-size: .83rem;
  cursor: pointer; font-weight: 600; transition: background .15s;
}
.btn-ai-helper:hover { background: #ede5ff; }
.btn-ai-helper:disabled { opacity: .5; cursor: default; }
.clarifier-result-box {
  background: #f9f7ff; border: 1px solid #e0d4ff; border-radius: 0;
  padding: .75rem 1rem; font-size: .85rem;
}
.clarifier-result-box .cr-label { font-weight: 600; color: #6b3fa0; margin-bottom: .4rem; }
.clarifier-result-box ul { margin: .3rem 0 0 1rem; padding: 0; }
.clarifier-result-box ul li { margin-bottom: .3rem; }
.clarifier-result-box ul li a { color: #1a1a2e; cursor: pointer; text-decoration: underline dotted; }
.clarifier-suggestions {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 0;
  padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.clarifier-suggestions p {
  font-size: .88rem; font-weight: 600; color: #92400e; margin: 0 0 .5rem;
}
.clarifier-suggestions ul {
  margin: 0; padding: 0 0 0 1rem; list-style: disc;
}
.clarifier-suggestions ul li { font-size: .87rem; margin-bottom: .25rem; }
.clarifier-suggestions ul li a { color: #1a1a2e; text-decoration: none; }
.clarifier-suggestions ul li a:hover { text-decoration: underline; }

.question-clarifier-block { margin-bottom: .9rem; }
.question-clarifier-block label {
  font-size: .85rem; font-weight: 600; display: block; margin-bottom: .35rem;
}
.question-clarifier-block input[type=text] {
  width: 100%; padding: .5rem .75rem;
  border: 1px solid #ccc; border-radius: 0; font-size: 1rem;
  font-family: inherit; box-sizing: border-box;
}
.question-clarifier-block input:focus { outline: none; border-color: #4a90d9; }
.question-clarifier-block small { font-size: .78rem; color: #aaa; display: block; margin-top: .25rem; }

/* ── Symbol style in step 3 ──────────────────────────────── */
.sym-style-section {
  background: #fff; border-radius: 0;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
  margin-bottom: 1rem;
}
.sym-style-section h3 {
  font-size: .9rem; font-weight: 700; margin: 0 0 .6rem; color: #1a1a2e;
}

/* ── Info popup ──────────────────────────────────────────── */
.info-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.info-overlay[hidden] { display: none; }
.info-dialog {
  background: #fff; border-radius: 0; padding: 2rem 1.8rem;
  max-width: 480px; width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.info-dialog h2 { font-size: 1.15rem; margin: 0 0 1rem; color: #1a1a2e; }
.info-dialog ol { margin: 0 0 1.2rem 1.2rem; padding: 0; }
.info-dialog ol li {
  font-size: .9rem; line-height: 1.55; margin-bottom: .7rem;
  color: #333;
}
.info-dialog ol li strong { color: #1a1a2e; }
.info-dialog .info-note {
  font-size: .82rem; color: #888; line-height: 1.5;
  margin-bottom: 1.2rem;
}
.info-dialog .btn-info-close {
  display: block; width: 100%; padding: .65rem 1rem;
  background: #1a1a2e; color: #fff; border: none; border-radius: 0;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.info-dialog .btn-info-close:hover { background: #2a2a4e; }
.btn-info-open {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 1px solid #ddd; border-radius: 0;
  padding: .3rem .7rem; font-size: .78rem; color: #888;
  cursor: pointer; font-family: inherit; margin-left: .5rem;
  vertical-align: middle;
}
.btn-info-open:hover { border-color: #aaa; color: #555; }
.new-wrap > h1 { display: inline; }

/* Astro set highlight */
.set-card--astro label {
  border-color: #6366f1;
  background: #faf5ff;
}
.set-card--astro label:hover { border-color: #4f46e5; }
.set-card--astro input[type=radio]:checked + label {
  border-color: #4f46e5;
  background: #ede9fe;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.badge-astro {
  display: inline-block; font-size: .6rem; font-weight: 700;
  background: #ede9fe; color: #4f46e5;
  padding: .1rem .4rem; border-radius: 3px; white-space: nowrap;
}

/* ── Vlastní konstelace CTA card ─────────────────────────── */
.own-constel-card {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, #f0edff 0%, #e8e4f8 100%);
  border: 1.5px solid #c4b5fd;
  padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.own-constel-body { flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.own-constel-body strong { font-size: 1rem; color: #1a1a2e; }
.own-constel-body span   { font-size: .82rem; color: #6b5b95; }
.btn-own-constel {
  display: inline-block; padding: .6rem 1.3rem;
  background: #7c3aed; color: #fff;
  border: none; border-radius: 0;
  font-size: .92rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; text-decoration: none; font-family: inherit;
  transition: background .15s;
}
.btn-own-constel:hover     { background: #6d28d9; color: #fff; }
.btn-own-constel--gate     { background: #9ca3af; }
.btn-own-constel--gate:hover { background: #6b7280; }
@media (max-width: 480px) {
  .own-constel-card { flex-direction: column; align-items: flex-start; }
  .btn-own-constel  { width: 100%; text-align: center; display: block; }
}
