/* CPS Calendar Customizer – editorul clientului
   Culoarea de accent, forma butoanelor si fontul vin din tema site-ului (vezi detectTheme in editor.js). */

.cpsc {
  --cpsc-accent: #1a1a1a;
  --cpsc-on-accent: #fff;
  --cpsc-accent-soft: rgba(26, 26, 26, .1);
  --cpsc-btn-radius: 6px;
  --cpsc-ink: #1d1d1f;
  --cpsc-muted: #68686e;
  --cpsc-line: #e3e3e6;
  --cpsc-desk: #f0f0f2;
  --cpsc-ok: #1c8048;
  --cpsc-warn: #a8530a;
  --cpsc-danger: #b3261e;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.cpsc *, .cpsc *::before, .cpsc *::after { box-sizing: border-box; }
.cpsc [hidden] { display: none !important; }

/* temele stilizeaza global butoanele si imaginile: le aducem la zero in interiorul editorului */
.cpsc button[type="button"] {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; border-radius: 0; box-shadow: none; text-shadow: none;
  color: inherit; cursor: pointer; font: inherit; letter-spacing: normal; line-height: 1.2;
  margin: 0; padding: 0; min-width: 0; min-height: 0; width: auto; height: auto; max-width: none;
  text-align: center; text-decoration: none; text-transform: none; transform: none; transition: none;
  outline: 0; opacity: 1; display: inline-block; vertical-align: middle; float: none; position: static;
}
.cpsc button[type="button"]:disabled { cursor: default; opacity: .38; }
.cpsc button[type="button"]:focus-visible, .cpsc input:focus-visible { outline: 2px solid var(--cpsc-accent); outline-offset: 2px; }
.cpsc img { border: 0; border-radius: 0; box-shadow: none; margin: 0; padding: 0; display: block; max-width: none; height: auto; }
.cpsc p { margin: 0; padding: 0; }
.cpsc .cpsc-ic { display: block; flex: none; width: 1.35em; height: 1.35em; fill: none; }

/* ------------------------------------------------------------------ pagina de calendar */
.cpsc .cpsc-sheet {
  position: relative; display: block; width: 100%; overflow: hidden; background: #fff; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 12px 28px rgba(0, 0, 0, .16);
}
/* inaltimea vine din raportul paginii (merge si pe browsere fara aspect-ratio) */
.cpsc .cpsc-sheet::before { content: ""; display: block; padding-top: calc(100% / var(--cpsc-r, .7071)); }
.cpsc .cpsc-slot { position: absolute; overflow: hidden; background: #e7e7ea; }
.cpsc .cpsc-slot.is-busy { background: #e7e7ea linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%) 0 0 / 220% 100%; animation: cpsc-shimmer 1.3s linear infinite; }
.cpsc img.cpsc-photo {
  position: absolute; max-width: none !important; max-height: none !important; height: auto !important; min-width: 0;
  transform-origin: 50% 50%; pointer-events: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.cpsc img.cpsc-sheet__tpl {
  position: absolute; left: 0; top: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: fill;
  pointer-events: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.cpsc .cpsc-sheet--thumb { box-shadow: none; border-radius: 1px; }
@keyframes cpsc-shimmer { to { background-position: -220% 0; } }
@keyframes cpsc-spin { to { transform: rotate(360deg); } }
.cpsc .cpsc-spin { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .15); border-top-color: var(--cpsc-accent); animation: cpsc-spin .8s linear infinite; }
.cpsc .cpsc-spin--sm { width: 12px; height: 12px; border-width: 2px; }

/* ------------------------------------------------------------------ butoane */
.cpsc button.cpsc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.25em; border-radius: var(--cpsc-btn-radius);
  font-weight: 600; font-size: 1em; line-height: 1.15; border: 1.5px solid transparent;
}
.cpsc button.cpsc-btn--primary { background: var(--cpsc-accent); color: var(--cpsc-on-accent); border-color: var(--cpsc-accent); }
.cpsc button.cpsc-btn--primary:hover { filter: brightness(1.12); }
.cpsc button.cpsc-btn--ghost { background: #fff; color: var(--cpsc-ink); border-color: #c9c9ce; }
.cpsc button.cpsc-btn--ghost:hover { border-color: var(--cpsc-ink); }
.cpsc button.cpsc-btn--light { background: #fff; color: var(--cpsc-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.cpsc button.cpsc-round {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--cpsc-ink);
  border: 1px solid var(--cpsc-line); font-size: 15px;
}
.cpsc button.cpsc-round:hover:not(:disabled) { border-color: var(--cpsc-ink); }
.cpsc button.cpsc-round--sm { width: 36px; height: 36px; font-size: 13px; }

/* ------------------------------------------------------------------ cardul din pagina produsului */
.cpsc.cpsc-card { display: block; margin: 0 auto 2em; padding: 0; border: 0; background: none; max-width: 640px; clear: none; }
.cpsc .cpsc-card__view {
  position: relative; display: flex; justify-content: center; align-items: center;
  background: var(--cpsc-desk); border-radius: 10px; padding: 28px 56px;
}
.cpsc.cpsc-card:not(.is-ready) .cpsc-card__view > .cpsc-sheet { max-width: 420px; }
.cpsc button.cpsc-card__sheet { display: block; width: 100%; max-width: 420px; cursor: pointer; border-radius: 2px; }
.cpsc button.cpsc-card__nav { position: absolute; top: 50%; margin-top: -22px; }
.cpsc button.cpsc-card__nav--prev { left: 8px; }
.cpsc button.cpsc-card__nav--next { right: 8px; }
.cpsc .cpsc-card__info { padding: 14px 2px 0; }
.cpsc .cpsc-card__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1em; }
.cpsc .cpsc-card__label span { color: var(--cpsc-muted); font-size: .88em; font-variant-numeric: tabular-nums; }
.cpsc .cpsc-progress { height: 6px; border-radius: 3px; background: var(--cpsc-line); margin: 8px 0 6px; overflow: hidden; }
.cpsc .cpsc-progress span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--cpsc-accent); transition: width .25s ease; }
.cpsc .cpsc-progress.is-done span { background: var(--cpsc-ok); }
.cpsc .cpsc-card__status { font-size: .9em; color: var(--cpsc-muted); }
.cpsc.is-complete .cpsc-card__status { color: var(--cpsc-ok); font-weight: 600; }
.cpsc button.cpsc-card__cta { display: flex; width: 100%; margin: 12px 0 8px; min-height: 50px; }
.cpsc .cpsc-card__hint { font-size: .85em; color: var(--cpsc-muted); }
.cpsc .cpsc-noscript { margin-top: 10px; font-size: .9em; }

/* ------------------------------------------------------------------ butonul „Personalizează ONLINE” din descrierea produsului */
.cpsc.cpsc-launch { display: block; margin: 0 0 20px; padding: 0; clear: both; }
.cpsc button.cpsc-launch__btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 8px 16px;
  background: var(--cpsc-launch, #3bb54a); color: #fff; border-radius: var(--cpsc-btn-radius, 0);
  font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: 0;
}
.cpsc button.cpsc-launch__btn:hover { filter: brightness(1.07); }
.cpsc button.cpsc-launch__btn:active { filter: brightness(.95); }
.cpsc.cpsc-launch.is-started button.cpsc-launch__btn { font-size: 19px; }
.cpsc .cpsc-launch__info { margin-top: 10px; }
.cpsc .cpsc-launch__info .cpsc-progress { margin: 0 0 6px; }
.cpsc .cpsc-launch__info .cpsc-progress span { background: var(--cpsc-launch, #3bb54a); }
.cpsc .cpsc-launch__status { display: flex; align-items: center; gap: 6px; font-size: .92em; color: var(--cpsc-muted); }
.cpsc.cpsc-launch.is-complete .cpsc-launch__status { color: var(--cpsc-ok); font-weight: 600; }
.cpsc .cpsc-launch__status .cpsc-ic { width: 1.2em; height: 1.2em; }

/* ------------------------------------------------------------------ editorul */
.cpsc.cpsc-modal {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  color: var(--cpsc-ink); font-size: 15px; text-align: left; opacity: 0; transition: opacity .16s ease; outline: 0;
  touch-action: manipulation;
}
.cpsc.cpsc-modal.is-open { opacity: 1; }
.cpsc .cpsc-modal__backdrop { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(22, 22, 26, .6); }
.cpsc .cpsc-ed {
  position: relative; display: grid; overflow: hidden; background: #fff; border-radius: 12px;
  width: min(1180px, calc(100vw - 40px)); height: min(880px, calc(100vh - 40px));
  grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "bar bar" "side main";
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.cpsc .cpsc-upbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.cpsc .cpsc-upbar.is-on { opacity: 1; }
.cpsc .cpsc-upbar span { display: block; height: 100%; width: 0; background: var(--cpsc-accent); transition: width .2s ease; }
.cpsc .cpsc-ed__bar { position: relative; grid-area: bar; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--cpsc-line); background: #fff; }
.cpsc .cpsc-ed__title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cpsc .cpsc-ed__title strong { font-size: 1.1em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpsc .cpsc-ed__title span { font-size: .85em; color: var(--cpsc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpsc button.cpsc-ed__done { min-height: 42px; padding: 0 1.5em; }

.cpsc .cpsc-ed__side { grid-area: side; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--cpsc-line); background: #fafafb; }
.cpsc .cpsc-strip { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 12px 10px; padding: 14px; align-content: start; overscroll-behavior: contain; }
.cpsc button.cpsc-ed__addmore { margin: 0 14px 14px; min-height: 44px; font-size: .88em; padding: 0 .5em; gap: .4em; white-space: nowrap; }

.cpsc button.cpsc-thumb { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 0; text-align: center; }
.cpsc .cpsc-thumb__mini { position: relative; display: block; padding: 3px; border-radius: 4px; border: 2px solid transparent; background: #fff; box-shadow: 0 0 0 1px var(--cpsc-line); }
.cpsc .cpsc-thumb.is-current .cpsc-thumb__mini { border-color: var(--cpsc-accent); box-shadow: none; }
.cpsc .cpsc-thumb.is-over .cpsc-thumb__mini { border-color: var(--cpsc-accent); border-style: dashed; }
.cpsc .cpsc-thumb__label { display: block; font-size: 12px; line-height: 1.2; color: var(--cpsc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpsc .cpsc-thumb.is-current .cpsc-thumb__label { color: var(--cpsc-ink); font-weight: 600; }
.cpsc .cpsc-thumb__badge {
  position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 10px;
  background: #fff; color: var(--cpsc-muted); box-shadow: 0 0 0 1px var(--cpsc-line);
}
.cpsc .cpsc-thumb[data-state="ok"] .cpsc-thumb__badge { background: var(--cpsc-ok); color: #fff; box-shadow: none; }
.cpsc .cpsc-thumb[data-state="warn"] .cpsc-thumb__badge { background: var(--cpsc-warn); color: #fff; box-shadow: none; }
.cpsc .cpsc-thumb[data-state="err"] .cpsc-thumb__badge { background: var(--cpsc-danger); color: #fff; box-shadow: none; }

.cpsc .cpsc-ed__main { grid-area: main; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--cpsc-desk); }
.cpsc .cpsc-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 10px; padding: 20px 14px 6px; touch-action: none; user-select: none; -webkit-user-select: none; }
.cpsc .cpsc-stage__fit { flex: 1; align-self: stretch; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cpsc .cpsc-stage__holder { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.cpsc .cpsc-stage__holder .cpsc-sheet { height: 100%; }
.cpsc .cpsc-stage__holder .cpsc-sheet::before { display: none; }
.cpsc .cpsc-sheet.has-photo .cpsc-slot { cursor: grab; }
.cpsc .cpsc-stage.is-grabbing .cpsc-slot { cursor: grabbing; }

.cpsc button.cpsc-empty {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px;
  background: var(--cpsc-accent-soft); color: var(--cpsc-ink);
  outline: 2px dashed var(--cpsc-accent); outline-offset: -10px;
}
.cpsc button.cpsc-empty .cpsc-ic { width: 40px; height: 40px; color: var(--cpsc-accent); }
.cpsc button.cpsc-empty strong { font-size: 1.15em; }
.cpsc button.cpsc-empty span { font-size: .88em; color: var(--cpsc-muted); }
.cpsc button.cpsc-empty:hover { background: rgba(0, 0, 0, .04); }
.cpsc .cpsc-slotstate {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255, 255, 255, .55); font-size: .9em;
}
.cpsc .cpsc-slotstate em { font-style: normal; color: var(--cpsc-ink); }

.cpsc .cpsc-note { min-height: 2.9em; padding: 6px 18px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .87em; color: var(--cpsc-muted); }
.cpsc .cpsc-note__warn { display: inline-flex; align-items: center; gap: 8px; text-align: left; color: var(--cpsc-warn); font-weight: 500; }

.cpsc .cpsc-tools { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--cpsc-line); }
.cpsc .cpsc-zoom { display: flex; align-items: center; gap: 10px; flex: 1 1 240px; max-width: 360px; }
.cpsc .cpsc-tools__btns { display: flex; gap: 4px; }
.cpsc button.cpsc-tool { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: .92em; font-weight: 500; color: var(--cpsc-ink); }
.cpsc button.cpsc-tool:hover:not(:disabled) { background: var(--cpsc-desk); }

.cpsc input.cpsc-zoom__range {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; width: 100%; height: 28px; margin: 0; padding: 0;
  background: transparent; border: 0; box-shadow: none; cursor: pointer;
}
.cpsc input.cpsc-zoom__range:disabled { opacity: .38; cursor: default; }
.cpsc input.cpsc-zoom__range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #cfcfd4; }
.cpsc input.cpsc-zoom__range::-moz-range-track { height: 4px; border-radius: 2px; background: #cfcfd4; }
.cpsc input.cpsc-zoom__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--cpsc-accent); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.cpsc input.cpsc-zoom__range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--cpsc-accent); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }

.cpsc .cpsc-ed__nav { display: none; }
.cpsc input.cpsc-file { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }

/* lista "muta la alta pagina" */
.cpsc .cpsc-picker { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(22, 22, 26, .5); }
.cpsc .cpsc-picker__panel { background: #fff; border-radius: 12px; width: min(620px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 80px)); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.cpsc .cpsc-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 4px; font-size: 1.05em; }
.cpsc .cpsc-picker__panel > p { padding: 0 16px 10px; font-size: .87em; color: var(--cpsc-muted); }
.cpsc .cpsc-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 12px; padding: 8px 16px 18px; overflow: auto; overscroll-behavior: contain; }
.cpsc button.cpsc-picker__item { display: flex; flex-direction: column; gap: 4px; }
.cpsc button.cpsc-picker__item:hover .cpsc-thumb__mini { border-color: var(--cpsc-accent); box-shadow: none; }

.cpsc .cpsc-toast {
  position: absolute; left: 50%; bottom: 96px; z-index: 30; transform: translate(-50%, 12px);
  max-width: min(520px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 10px;
  background: #1d1d1f; color: #fff; font-size: .92em; line-height: 1.35; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.cpsc .cpsc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cpsc .cpsc-dropmark { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: center; background: rgba(255, 255, 255, .88); pointer-events: none; }
.cpsc.is-dropping .cpsc-dropmark { display: flex; }
.cpsc .cpsc-dropmark div { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 54px; border: 3px dashed var(--cpsc-accent); border-radius: 16px; font-size: 1.2em; color: var(--cpsc-ink); }
.cpsc .cpsc-dropmark .cpsc-ic { width: 48px; height: 48px; color: var(--cpsc-accent); }

.cpsc.cpsc-wait { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .86); color: #1d1d1f; font-size: 16px; }
.cpsc.cpsc-wait > div { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; }
.cpsc.cpsc-wait span:last-child { font-size: .88em; color: #68686e; }

/* ------------------------------------------------------------------ telefon si tableta: editorul ocupa tot ecranul */
@media (max-width: 860px) {
  .cpsc.cpsc-card { max-width: none; }
  .cpsc .cpsc-card__view { padding: 16px 56px; }
  .cpsc button.cpsc-card__sheet { max-width: 190px; }
  .cpsc .cpsc-ed {
    width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "bar" "main" "side" "nav";
  }
  .cpsc .cpsc-ed__bar { padding: 6px 10px; gap: 8px; }
  .cpsc button.cpsc-ed__done { min-height: 40px; padding: 0 1.1em; }
  .cpsc .cpsc-ed__side { flex-direction: row; align-items: stretch; border-right: 0; border-top: 1px solid var(--cpsc-line); background: #fff; }
  .cpsc .cpsc-strip { display: flex; grid-template-columns: none; gap: 10px; padding: 10px 12px 8px 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cpsc .cpsc-strip::-webkit-scrollbar { display: none; }
  .cpsc button.cpsc-thumb { flex: 0 0 46px; }
  .cpsc .cpsc-thumb__mini { padding: 2px; }
  .cpsc .cpsc-thumb__label { display: none; }
  .cpsc .cpsc-thumb__badge { width: 16px; height: 16px; right: -5px; top: -5px; font-size: 8px; }
  .cpsc button.cpsc-ed__addmore { order: -1; flex: none; margin: 10px 0 8px 12px; width: 46px; min-height: 0; padding: 0; border-style: dashed; }
  .cpsc button.cpsc-ed__addmore span { display: none; }
  .cpsc .cpsc-stage { padding: 12px 12px 2px; }
  .cpsc button.cpsc-stage__nav { display: none; }
  .cpsc .cpsc-note { min-height: 0; padding: 4px 14px 6px; font-size: 12.5px; line-height: 1.3; }
  .cpsc .cpsc-note:empty { display: none; }
  .cpsc .cpsc-tools { padding: 4px 8px 6px; gap: 0; }
  .cpsc .cpsc-zoom { flex: 1 1 100%; max-width: none; padding: 0 4px; gap: 8px; }
  .cpsc .cpsc-tools__btns { width: 100%; justify-content: space-around; gap: 0; }
  .cpsc button.cpsc-tool { flex: 1 1 0; flex-direction: column; gap: 2px; min-height: 48px; padding: 4px 2px; font-size: 11.5px; border-radius: 8px; }
  .cpsc button.cpsc-tool .cpsc-ic { width: 22px; height: 22px; }
  .cpsc .cpsc-ed__nav { grid-area: nav; display: flex; gap: 10px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--cpsc-line); background: #fff; }
  .cpsc .cpsc-ed__nav button.cpsc-btn { flex: 1 1 0; min-height: 48px; padding: 0 .6em; }
  .cpsc .cpsc-ed__nav button.cpsc-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cpsc .cpsc-picker { align-items: flex-end; }
  .cpsc .cpsc-picker__panel { width: 100vw; max-height: 78vh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .cpsc .cpsc-picker__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; }
  .cpsc .cpsc-toast { bottom: 150px; }
}
@media (max-width: 860px) and (max-height: 560px) {
  .cpsc .cpsc-ed__nav { display: none; }
  .cpsc button.cpsc-stage__nav { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .cpsc.cpsc-modal, .cpsc .cpsc-toast, .cpsc .cpsc-progress span { transition: none; }
  .cpsc .cpsc-slot.is-busy { animation: none; }
}
