/* Socotitoare (abac) — ajutor vizual pentru adunare / scădere */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Inter:wght@600;700&display=swap');

html:has(.soco-page) {
  height: 100%;
}

.soco-page {
  --soco-blue: #4954e2;
  --soco-blue-deep: #3a44c9;
  --soco-lavender: #e6e8fb;
  --soco-wood: #c4a574;
  --soco-wood-dark: #8b6914;
  --soco-bar: #5c4030;
  --soco-bead: #e85d4c;
  --soco-bead-earth: #3d8bfd;
  --soco-muted: #6b74b8;
  --u-base: min(1px, 100vw / 1280, 100dvh / 820);
  --u: var(--u-base);
  --exit-space: max(72px, calc(110 * var(--u)));

  margin: 0;
  width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--soco-blue);
  background:
    radial-gradient(120% 90% at 20% 0%, #fff6e8 0%, transparent 55%),
    radial-gradient(100% 80% at 90% 100%, #ebe8ff 0%, transparent 50%),
    linear-gradient(160deg, #fff9f0 0%, #f7f5ff 48%, #ebe9fb 100%);
}

.soco-page * {
  box-sizing: border-box;
}

.soco-exit {
  position: fixed;
  top: max(8px, calc(18 * var(--u)));
  left: max(8px, calc(18 * var(--u)));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  padding: clamp(6px, calc(10 * var(--u)), 12px) clamp(10px, calc(14 * var(--u)), 18px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(40, 50, 120, 0.08);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(12px, calc(16 * var(--u)), 16px);
  color: var(--soco-blue);
  text-decoration: none;
}

.soco-exit:hover {
  background: #fff;
}

.soco-exit__icon {
  width: clamp(14px, calc(18 * var(--u)), 18px);
  height: clamp(14px, calc(18 * var(--u)), 18px);
}

.soco-header {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: max(12px, calc(24 * var(--u))) var(--exit-space) 0;
  text-align: center;
}

.soco-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: var(--soco-blue-deep);
}

.soco-lead {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: var(--soco-muted);
  line-height: 1.35;
}

.soco-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
  padding: 16px var(--exit-space) 32px;
}

.soco-value {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  letter-spacing: -0.03em;
  color: var(--soco-blue-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.soco-value__label {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soco-muted);
}

.soco-frame {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(14px, 3vw, 24px) clamp(20px, 4vw, 36px);
  background: linear-gradient(180deg, #e8d4b0 0%, var(--soco-wood) 40%, #b8956a 100%);
  border: 4px solid var(--soco-wood-dark);
  border-radius: 16px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    0 12px 28px rgba(60, 40, 20, 0.18);
}

#soco-rods,
[data-soco-rods] {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 4vw, 40px);
}

.soco-rod {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(44px, 12vw, 64px);
  user-select: none;
}

.soco-rod__label {
  margin-top: 8px;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  font-weight: 800;
  color: var(--soco-blue-deep);
  text-align: center;
}

.soco-rod__track {
  --bead-w: clamp(34px, 9vw, 48px);
  --bead-h: clamp(26px, 7vw, 36px);
  --track-h: calc(var(--bead-h) * 8.2 + 48px);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: var(--track-h);
  min-height: var(--track-h);
}

.soco-rod__pole {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 6px;
  margin-left: -3px;
  background: linear-gradient(90deg, #8a6230, #e2c59a 45%, #8a6230);
  border-radius: 3px;
  z-index: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(80, 50, 10, 0.18);
}

.soco-rod__heaven-zone {
  position: relative;
  z-index: 2;
  flex: 0 0 calc(var(--bead-h) * 2.35 + 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* inactivă sus */
  padding: 2px 0;
}

.soco-rod__heaven-zone.is-active {
  justify-content: flex-end; /* activă lângă bară */
}

.soco-rod__bar {
  position: relative;
  z-index: 2;
  flex: 0 0 12px;
  margin: 4px 0;
  background: var(--soco-bar);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.soco-rod__earth-zone {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(var(--bead-h) * 5.2 + 28px);
  padding: 2px 0;
}

.soco-rod__earth-active,
.soco-rod__earth-rest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.soco-rod__earth-active {
  flex: 0 0 auto;
  justify-content: flex-start; /* active lipite de bară */
}

.soco-rod__earth-gap {
  flex: 1 1 auto;
  min-height: calc(var(--bead-h) * 0.85);
  margin: 2px 0;
  position: relative;
  pointer-events: none;
}

.soco-rod__earth-gap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 15%;
  bottom: 15%;
  width: 0;
  margin-left: -1px;
  border-left: 2px dashed rgba(92, 64, 48, 0.35);
}

.soco-rod__earth-rest {
  flex: 0 0 auto;
  justify-content: flex-end; /* inactive jos */
  min-height: 0;
}

.soco-heaven,
.soco-earth {
  position: relative;
  z-index: 3;
  flex: 0 0 var(--bead-h);
  width: var(--bead-w);
  height: var(--bead-h);
  border: 2px solid transparent;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    inset 0 3px 4px rgba(255, 255, 255, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.15);
}

.soco-heaven {
  background: radial-gradient(circle at 35% 30%, #ff8f7a, var(--soco-bead) 55%, #b83228);
}

.soco-earth {
  background: radial-gradient(circle at 35% 30%, #7eb6ff, var(--soco-bead-earth) 55%, #1a5bb8);
}

/* Mutate = lângă bară: mai vii + contur */
.soco-heaven.is-on,
.soco-earth.is-on {
  transform: scale(1.06);
  filter: saturate(1.25) brightness(1.06);
  box-shadow:
    inset 0 -2px 5px rgba(0, 0, 0, 0.18),
    inset 0 3px 5px rgba(255, 255, 255, 0.45),
    0 0 0 2px rgba(255, 255, 255, 0.85),
    0 3px 8px rgba(40, 30, 10, 0.28);
}

.soco-heaven.is-on {
  border-color: #ffd2c4;
  background: radial-gradient(circle at 35% 28%, #ffb39f, #ff6a52 48%, #c6281c);
}

.soco-earth.is-on {
  border-color: #cfe3ff;
  background: radial-gradient(circle at 35% 28%, #a8d0ff, #4d9cff 48%, #1557c7);
}

/* Nemutate = pe locul de odihnă: mai pale */
.soco-heaven.is-off,
.soco-earth.is-off {
  filter: saturate(0.55) brightness(0.92);
  opacity: 0.78;
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, 0.16),
    inset 0 2px 3px rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.soco-heaven.is-off {
  background: radial-gradient(circle at 35% 30%, #e8a89a, #c56b5e 55%, #8a4038);
}

.soco-earth.is-off {
  background: radial-gradient(circle at 35% 30%, #9bb8d8, #5a7fa8 55%, #3a5678);
}

.soco-heaven:focus-visible,
.soco-earth:focus-visible {
  outline: 3px solid var(--soco-blue);
  outline-offset: 2px;
}

.soco-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.soco-btn {
  appearance: none;
  border: 2px solid #b4bbf0;
  background: #fff;
  color: var(--soco-blue);
  border-radius: 16px;
  min-height: 48px;
  padding: 10px 22px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.soco-btn:hover {
  background: var(--soco-lavender);
}

.soco-btn--primary {
  background: var(--soco-blue);
  border-color: var(--soco-blue);
  color: #fff;
}

.soco-btn--primary:hover {
  background: var(--soco-blue-deep);
}

.soco-hint {
  margin: 0;
  max-width: 26rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--soco-muted);
  line-height: 1.4;
}

@media (max-width: 480px) {
  .soco-frame {
    gap: 12px;
    padding: 12px 14px;
  }

  .soco-rod {
    width: 40px;
  }
}

/* ——— Instrument în pagină (quiz / fișă) ——— */

.soco-dock {
  --soco-blue: #4954e2;
  --soco-blue-deep: #3a44c9;
  --soco-lavender: #e6e8fb;
  --soco-wood: #c4a574;
  --soco-wood-dark: #8b6914;
  --soco-bar: #5c4030;
  --soco-bead: #e85d4c;
  --soco-bead-earth: #3d8bfd;
  --soco-muted: #6b74b8;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--soco-blue);
  background: #fffdf8;
  border-top: 2px solid rgba(180, 187, 240, 0.65);
  box-shadow: 0 -8px 24px rgba(40, 50, 120, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.soco-dock__toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--soco-blue-deep);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 12px;
  cursor: pointer;
}

.soco-dock__value-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--soco-lavender);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.soco-dock__chevron {
  display: inline-block;
  transition: transform 0.18s ease;
}

.soco-dock.is-open .soco-dock__chevron {
  transform: rotate(180deg);
}

.soco-dock__panel {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px 10px 8px;
  max-height: none;
  overflow: visible;
}

.soco-dock.is-open .soco-dock__panel {
  display: flex;
}

.soco-dock__toggle-hide {
  display: none;
}

.soco-dock.is-open .soco-dock__toggle-label {
  display: none;
}

.soco-dock.is-open .soco-dock__toggle-hide {
  display: inline;
}

.soco-dock.is-open .soco-dock__value-chip {
  display: none;
}

/* Quiz / fișă: bară discretă, se poate ascunde; abac mai mare când e deschis */
.soco-dock--quiz {
  background: rgba(255, 253, 248, 0.94);
  border-top: 1px solid rgba(180, 187, 240, 0.5);
  box-shadow: 0 -4px 16px rgba(40, 50, 120, 0.08);
}

.soco-dock--quiz .soco-dock__toggle {
  padding: 5px 12px;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--soco-muted);
}

.soco-dock--quiz .soco-dock__value-chip {
  min-width: 1.75rem;
  padding: 1px 8px;
  font-size: 0.8rem;
  background: rgba(230, 232, 251, 0.85);
}

.soco-dock--quiz .soco-dock__chevron {
  font-size: 0.7rem;
  opacity: 0.7;
}

.soco-dock--quiz.is-open .soco-dock__toggle {
  justify-content: flex-end;
  padding: 4px 12px 2px;
  color: var(--soco-muted);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

.soco-dock--quiz.is-open .soco-dock__panel {
  gap: 4px;
  padding: 2px 10px 10px;
}

/* coach: ecuație + buton pe un rând; pasul lung ascuns */
.soco-dock--quiz .soco-coach {
  gap: 4px 10px;
  padding: 5px 8px;
}

.soco-dock--quiz .soco-coach__eq {
  flex: 1 1 auto;
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
}

.soco-dock--quiz .soco-coach__step {
  display: none !important;
}

.soco-dock--quiz .soco-coach__action {
  flex: 0 0 auto;
  margin: 0;
}

.soco-dock--quiz .soco-progress {
  flex: 1 0 100%;
}

.soco-dock--quiz .soco-frame {
  gap: 16px;
  padding: 12px 16px 10px;
}

.soco-dock--quiz #soco-rods-embed,
.soco-dock--quiz [data-soco-rods] {
  gap: 16px;
}

.soco-dock--quiz .soco-rod {
  width: 48px;
}

.soco-dock--quiz .soco-rod__track {
  --bead-w: 40px;
  --bead-h: 28px;
  --track-h: calc(var(--bead-h) * 8.4 + 48px);
}

.soco-dock--quiz .soco-rod__heaven-zone {
  flex: 0 0 calc(var(--bead-h) * 2.4 + 14px);
}

.soco-dock--quiz .soco-rod__earth-zone {
  min-height: calc(var(--bead-h) * 5.4 + 24px);
}

.soco-dock--quiz .soco-rod__earth-active,
.soco-dock--quiz .soco-rod__earth-rest {
  gap: 5px;
}

.soco-dock--quiz .soco-rod__earth-gap {
  min-height: calc(var(--bead-h) * 0.75);
}

.soco-dock__main {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 12px 16px;
}

.soco-dock .soco-value {
  margin: 0;
  min-width: 3rem;
  align-self: center;
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
  color: var(--soco-blue-deep);
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.soco-dock .soco-value__label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soco-muted);
}

.soco-dock .soco-frame {
  transform: none;
  margin: 0;
  gap: 14px;
  padding: 10px 14px 8px;
  border-radius: 12px;
  border-width: 3px;
}

.soco-dock #soco-rods-embed,
.soco-dock [data-soco-rods] {
  gap: 14px;
}

.soco-dock .soco-rod {
  width: 42px;
}

.soco-dock .soco-rod__track {
  --bead-w: 36px;
  --bead-h: 26px;
  --track-h: calc(var(--bead-h) * 7.6 + 40px);
}

.soco-dock .soco-rod__pole {
  width: 5px;
  margin-left: -2.5px;
}

.soco-dock .soco-rod__bar {
  flex-basis: 10px;
  margin: 3px 0;
}

.soco-dock .soco-rod__heaven-zone {
  flex: 0 0 calc(var(--bead-h) * 2.35 + 12px);
}

.soco-dock .soco-rod__earth-zone {
  min-height: calc(var(--bead-h) * 5 + 20px);
}

.soco-dock .soco-rod__earth-active,
.soco-dock .soco-rod__earth-rest {
  gap: 4px;
}

.soco-dock .soco-rod__earth-gap {
  min-height: calc(var(--bead-h) * 0.55);
  margin: 2px 0;
}

.soco-dock .soco-rod__earth-gap::before {
  border-left-width: 2px;
  opacity: 0.55;
}

.soco-dock .soco-rod__label {
  margin-top: 4px;
  font-size: 0.65rem;
}

.soco-dock .soco-actions {
  margin: 0;
  align-self: center;
}

.soco-dock .soco-btn {
  min-height: 34px;
  padding: 5px 12px;
  font-size: 0.85rem;
}

.soco-dock .soco-btn--chip {
  min-height: 30px;
  padding: 3px 9px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.soco-dock .soco-quick {
  flex-direction: column;
  gap: 4px;
  align-self: center;
}

.soco-dock__hint,
.soco-dock .soco-legend {
  display: none !important;
}

.soco-dock .soco-coach {
  flex: 0 0 auto;
  gap: 4px 8px;
  padding: 6px 8px;
  border-radius: 10px;
}

.soco-dock .soco-coach__eq {
  font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  margin: 0;
}

.soco-dock .soco-coach__step {
  flex: 1 1 100%;
  font-size: 0.75rem;
  line-height: 1.25;
}

.soco-dock .soco-progress {
  margin-top: 0;
}

.soco-dock .soco-progress__text:empty {
  display: none;
}

.soco-dock .soco-progress__text {
  margin: 0 0 2px;
  font-size: 0.72rem;
}

.soco-dock .soco-progress__track {
  height: 5px;
}

.soco-dock .soco-tip {
  margin-top: 0;
  padding: 4px 6px;
  font-size: 0.7rem;
  line-height: 1.25;
}

.soco-dock .soco-heaven,
.soco-dock .soco-earth {
  flex: 0 0 var(--bead-h);
  width: var(--bead-w);
  height: var(--bead-h);
  min-height: var(--bead-h);
}

.soco-coach {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 8px 10px;
  background: var(--soco-lavender);
  border-radius: 12px;
  text-align: center;
}

.soco-coach__eq {
  flex: 1 0 100%;
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--soco-blue-deep);
  font-variant-numeric: tabular-nums;
}

.soco-coach__eq.is-hidden {
  display: none !important;
}

.soco-coach__step {
  margin: 0;
  flex: 1 1 12rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--soco-blue-deep);
  line-height: 1.35;
}

.soco-coach__action.is-hidden {
  display: none !important;
}

.soco-progress {
  flex: 1 0 100%;
  margin-top: 6px;
  text-align: center;
}

.soco-progress.is-hidden {
  display: none !important;
}

.soco-progress__text {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--soco-blue-deep);
}

.soco-progress.is-complete .soco-progress__text {
  color: #15803d;
}

.soco-progress__track {
  height: 10px;
  border-radius: 999px;
  background: #dbe1fb;
  overflow: hidden;
}

.soco-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b7cf0, #4954e2);
  transition: width 0.2s ease;
}

.soco-progress.is-complete .soco-progress__fill {
  background: linear-gradient(90deg, #34d399, #15803d);
}

.soco-tip {
  flex: 1 0 100%;
  margin: 4px 0 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.soco-tip.is-hidden {
  display: none !important;
}

.soco-dock .soco-tip {
  margin-top: 2px;
  padding: 5px 8px;
  font-size: 0.75rem;
}

.soco-legend {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--soco-muted);
}

.soco-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.soco-legend__note {
  flex: 1 0 100%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--soco-muted);
  opacity: 0.9;
}

.soco-legend__dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.soco-legend__dot--red {
  background: radial-gradient(circle at 35% 30%, #ff8f7a, #e85d4c 55%, #b83228);
}

.soco-legend__dot--blue {
  background: radial-gradient(circle at 35% 30%, #7eb6ff, #3d8bfd 55%, #1a5bb8);
}

.soco-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-self: center;
}

.soco-btn--chip {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 12px;
}

.soco-page .soco-coach,
.soco-page .soco-legend,
.soco-page .soco-quick {
  width: min(100%, 28rem);
  margin: 0 auto;
}

.soco-page .soco-coach {
  margin-bottom: 4px;
}

.soco-practice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  width: min(100%, 28rem);
  margin: 0 auto 10px;
}

.soco-practice__row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.soco-practice__chip {
  appearance: none;
  border: 2px solid #b4bbf0;
  background: #fff;
  color: var(--soco-blue);
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 14px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.soco-practice__chip:hover {
  background: var(--soco-lavender);
}

.soco-practice__chip.is-active {
  background: var(--soco-blue);
  border-color: var(--soco-blue);
  color: #fff;
}

.soco-practice .soco-btn {
  min-height: 40px;
}

.soco-page .soco-legend {
  margin: 4px auto 8px;
}

.soco-page .soco-quick {
  margin-top: 8px;
}

.is-hidden {
  display: none !important;
}

.adun-page--quiz-list.adun-page--has-soco {
  padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}

.adun-page--quiz-list.adun-page--has-soco.adun-page--soco-open {
  padding-bottom: calc(320px + env(safe-area-inset-bottom, 0px));
}

/* Pe fișă: socotitoarea stă deasupra barei Verifică */
.soco-dock--above-bar {
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  padding-bottom: 0;
  z-index: 55;
}

body.has-soco-fisa .actions-bar {
  z-index: 60;
}

body.has-soco-fisa {
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
}

body.has-soco-fisa.soco-fisa-open {
  padding-bottom: calc(340px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 520px) {
  .soco-dock__panel {
    gap: 4px;
    padding: 4px 8px 6px;
  }

  .soco-dock__main {
    gap: 8px;
  }

  .soco-dock .soco-frame {
    gap: 10px;
    padding: 8px 10px 6px;
  }

  .soco-dock #soco-rods-embed,
  .soco-dock [data-soco-rods] {
    gap: 10px;
  }

  .soco-dock .soco-rod {
    width: 36px;
  }

  .soco-dock .soco-rod__track {
    --bead-w: 30px;
    --bead-h: 22px;
    --track-h: calc(var(--bead-h) * 7.2 + 32px);
  }

  .soco-dock .soco-rod__heaven-zone {
    flex-basis: calc(var(--bead-h) * 2.2 + 8px);
  }

  .soco-dock .soco-rod__earth-zone {
    min-height: calc(var(--bead-h) * 4.6 + 14px);
  }

  .soco-dock .soco-rod__earth-gap {
    min-height: calc(var(--bead-h) * 0.45);
  }

  /* pe quiz: păstrează bile mai mari, fără suprapunere */
  .soco-dock--quiz.is-open .soco-dock__panel {
    padding: 2px 8px 8px;
  }

  .soco-dock--quiz .soco-frame {
    gap: 12px;
    padding: 8px 12px 6px;
  }

  .soco-dock--quiz #soco-rods-embed,
  .soco-dock--quiz [data-soco-rods] {
    gap: 12px;
  }

  .soco-dock--quiz .soco-rod {
    width: 42px;
  }

  .soco-dock--quiz .soco-rod__track {
    --bead-w: 34px;
    --bead-h: 24px;
    --track-h: calc(var(--bead-h) * 8.2 + 40px);
  }

  .soco-dock--quiz .soco-rod__heaven-zone {
    flex-basis: calc(var(--bead-h) * 2.35 + 12px);
  }

  .soco-dock--quiz .soco-rod__earth-zone {
    min-height: calc(var(--bead-h) * 5.2 + 20px);
  }

  .soco-dock--quiz .soco-rod__earth-gap {
    min-height: calc(var(--bead-h) * 0.7);
  }

  .soco-dock--quiz .soco-coach__eq {
    font-size: 1.15rem;
  }

  .soco-dock .soco-rod__label {
    font-size: 0.58rem;
  }

  .soco-dock .soco-value {
    min-width: 2.5rem;
    font-size: 1.25rem;
  }

  .soco-dock .soco-quick {
    gap: 3px;
  }

  .soco-dock .soco-btn--chip {
    min-height: 26px;
    min-width: 2.2rem;
    padding: 2px 7px;
    font-size: 0.72rem;
  }

  .soco-dock .soco-coach {
    padding: 4px 6px;
    gap: 3px 6px;
  }

  .soco-dock .soco-coach__eq {
    font-size: 1.05rem;
  }

  .soco-dock .soco-coach__step {
    font-size: 0.7rem;
  }

  .soco-dock .soco-btn.soco-coach__action {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  .soco-dock .soco-tip {
    font-size: 0.64rem;
    padding: 3px 5px;
  }

  .adun-page--quiz-list.adun-page--has-soco.adun-page--soco-open {
    padding-bottom: calc(300px + env(safe-area-inset-bottom, 0px));
  }

  body.has-soco-fisa.soco-fisa-open {
    padding-bottom: calc(320px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
