/* assets/app.css
 * PebWeb Color Tool – minimal, ruhig, dark UI (Overlay)
 * Klassen/DOM passend zu assets/app.js
 */

/* -----------------------------
   Variables
----------------------------- */
:root {
  --pebct-bg: rgba(0, 0, 0, 0.86);
  --pebct-panel: rgba(20, 20, 20, 0.92);
  --pebct-panel-2: rgba(28, 28, 28, 0.92);
  --pebct-border: rgba(255, 255, 255, 0.10);
  --pebct-border-2: rgba(255, 255, 255, 0.14);
  --pebct-text: rgba(255, 255, 255, 0.92);
  --pebct-muted: rgba(255, 255, 255, 0.72);
  --pebct-muted2: rgba(255, 255, 255, 0.55);
  --pebct-shadow: 0 10px 40px rgba(0,0,0,0.45);

  --pebct-radius: 16px;
  --pebct-radius-sm: 12px;

  --pebct-pad: 18px;
  --pebct-pad-sm: 14px;

  --pebct-btn-h: 44px;
  --pebct-stop-h: 92px;

  --pebct-font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.pebweb-ct-scrolllock {
  overflow: hidden !important;
}

/* -----------------------------
   PWA Wordpress Page (Show nothing but the App)
----------------------------- */
body.pebweb-ct-app-page {
  margin: 0;
  background: #111;
  overflow: hidden;
}

body.pebweb-ct-app-page .brxe-section,
body.pebweb-ct-app-page header,
body.pebweb-ct-app-page footer,
body.pebweb-ct-app-page h1 {
  display: none !important;
}

/* -----------------------------
   Open Button (shortcode)
----------------------------- */
.pebweb-ct-open-btn {
  font-family: var(--pebct-font);
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
}

/* -----------------------------
   Overlay
----------------------------- */
.pebweb-ct-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--pebct-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.pebweb-ct-app-page .pebweb-ct-overlay {
  z-index: 900;
}

.pebweb-ct-hidden {
  display: none !important;
}

.pebweb-ct-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--pebct-font);
  color: var(--pebct-text);
}

/* -----------------------------
   Topbar / Stage / Bottom
----------------------------- */
.pebweb-ct-topbar {
  flex: 0 0 auto;
  padding: 10px 12px;
	max-height: 180px;
}

.pebweb-ct-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pebweb-ct-topbar-left {
  min-height: 32px;
}

.pebweb-ct-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pebweb-ct-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pebweb-ct-bottom {
  flex: 0 0 auto;
  padding: 12px;
	max-height: 120px;
}

/* Focus mode during applying */
.pebweb-ct-overlay.pebweb-ct-focus-hidden .pebweb-ct-topbar,
.pebweb-ct-overlay.pebweb-ct-focus-hidden .pebweb-ct-bottom,
.pebweb-ct-overlay.pebweb-ct-focus-hidden .pebweb-ct-settings {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
	max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.pebweb-ct-topbar,
.pebweb-ct-bottom,
.pebweb-ct-settings {
  transition:
    opacity 320ms ease,
		background 320ms ease,
    transform 320ms ease,
		max-height 320ms ease,
		padding-top 320ms ease,
		padding-bottom 320ms ease;
}
/*
.pebweb-ct-overlay.pebweb-ct-focus-hidden .pebweb-ct-topbar,
.pebweb-ct-overlay.pebweb-ct-focus-hidden .pebweb-ct-bottom {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.pebweb-ct-overlay.pebweb-ct-focus-hidden .pebweb-ct-bottom {
  transform: translateY(10px);
}*/

/* -----------------------------
   Actions + Buttons
----------------------------- */
.pebweb-ct-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pebweb-ct-primary,
.pebweb-ct-secondary {
  height: var(--pebct-btn-h);
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--pebct-border);
  background: rgba(255,255,255,0.08);
  color: var(--pebct-text);
  cursor: pointer;
	text-align: center;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pebweb-ct-primary {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
}

.pebweb-ct-primary:hover,
.pebweb-ct-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.22);
}

.pebweb-ct-primary:active,
.pebweb-ct-secondary:active {
  transform: translateY(1px);
}

.pebweb-ct-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pebweb-ct-primary.is-disabled,
.pebweb-ct-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(20%);
}

.pebweb-ct-primary.is-disabled:hover,
.pebweb-ct-primary:disabled:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
}

/* -----------------------------
   Icon button (close)
----------------------------- */
.pebweb-ct-iconbtn {
  height: 34px;
  width: 34px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--pebct-border);
  background: rgba(255,255,255,0.06);
  color: var(--pebct-text);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pebweb-ct-iconbtn:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--pebct-border-2);
}

.pebweb-ct-iconbtn:active {
  transform: translateY(1px);
}

/* -----------------------------
   Help Video Button
----------------------------- */
.pebweb-ct-help {
  font-size: 13px;
  padding: 0 12px;
  height: 32px;
  opacity: 0.85;
}

.pebweb-ct-help:hover {
  opacity: 1;
}

/* -----------------------------
   Help Video Link beim ersten Start auf LANDING
----------------------------- */
.pebweb-ct-inline-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: rgba(255,255,255,0.86);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
}

.pebweb-ct-inline-link:hover {
  color: rgba(255,255,255,0.98);
}

/* -----------------------------
   Cards / Modals / Sheets
----------------------------- */
.pebweb-ct-card,
.pebweb-ct-modal,
.pebweb-ct-sheet {
  width: min(720px, calc(100vw - 28px));
  border-radius: var(--pebct-radius);
  background: var(--pebct-panel);
  border: 1px solid var(--pebct-border);
  box-shadow: var(--pebct-shadow);
  padding: var(--pebct-pad);
}

.pebweb-ct-modal {
  width: min(560px, calc(100vw - 28px));
}

.pebweb-ct-title {
  margin: 0 0 10px 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.pebweb-ct-text {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--pebct-muted);
}

.pebweb-ct-text:last-child {
  margin-bottom: 0;
}

.pebweb-ct-scale-hint {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.pebweb-ct-scale-side {
  max-width: 40%;
}

.pebweb-ct-scale-side-right {
  text-align: right;
}

.pebweb-ct-scale-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* -----------------------------
   Disclaimer checkbox row
----------------------------- */
.pebweb-ct-checkrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 14px 0;
  color: var(--pebct-muted);
  user-select: none;
}

.pebweb-ct-checkbox {
  margin-top: 3px;
}

/* -----------------------------
   Generator center + STOP button
----------------------------- */
.pebweb-ct-center {
  width: min(520px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pebweb-ct-stop {
  width: min(420px, calc(100vw - 60px));
  height: var(--pebct-stop-h);
	margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.95);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.pebweb-ct-stop:hover {
  background: rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.24);
}

.pebweb-ct-stop:active {
  transform: translateY(1px) scale(0.995);
}

.pebweb-ct-hint {
  width: 100%;
  text-align: center;
  font-size: 18px;
	font-weight: 600;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* -----------------------------
   Applying: keep it clean
----------------------------- */
.pebweb-ct-stage-applying {
  /* stage background will be set by JS */
}

/* Basic controls area (Bottom) */
.pebweb-ct-basic-controls {
  display: flex;
  justify-content: center;
}

/* -----------------------------
   Pro toolbar
----------------------------- */
.pebweb-ct-protoolbar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
}

.pebweb-ct-protoolbar-left,
.pebweb-ct-protoolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Segmented control */
.pebweb-ct-seg {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.pebweb-ct-segbtn {
  height: 34px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  font-weight: 700;
}

.pebweb-ct-segbtn.is-active {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
}

.pebweb-ct-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}

.pebweb-ct-timer-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  background-color: currentColor;
  mask: url("stop-clock.svg") center / contain no-repeat;
  -webkit-mask: url("stop-clock.svg") center / contain no-repeat;
}

span.pebweb-ct-timer-text {
    line-height: 1;
}

.pebweb-ct-settings-toggle {
  height: 34px;
  padding: 0 14px;
}

/* -----------------------------
   Settings panel
----------------------------- */
.pebweb-ct-settings {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  margin-top: 76px; /* space under topbar + toolbar */
  padding: var(--pebct-pad-sm);
  border-radius: var(--pebct-radius);
  /*background: rgba(12, 12, 12, 0.72);*/
  background: rgb(12 12 12);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--pebct-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.pebweb-ct-settings.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

/* Slider rows (Label left, Value right) */
.pebweb-ct-slider {
  padding: 10px 12px;
  border-radius: var(--pebct-radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 10px;
}

.pebweb-ct-slider:last-child {
  margin-bottom: 0;
}

.pebweb-ct-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pebweb-ct-slider-label {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}

.pebweb-ct-slider-value {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  min-width: 34px;
  text-align: right;
}

/* Range styling (approx to your screenshot) */
.pebweb-ct-range {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  outline: none;
}

.pebweb-ct-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(70, 170, 255, 0.95);
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  cursor: pointer;
  margin-top: -5px;
}

.pebweb-ct-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(70, 170, 255, 0.95);
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  cursor: pointer;
}

/* -----------------------------
   Toggle row + switch
----------------------------- */
.pebweb-ct-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--pebct-radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.pebweb-ct-toggle-label {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}

/* Simple switch */
.pebweb-ct-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.pebweb-ct-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pebweb-ct-switch-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.16);
  position: relative;
  transition: background 160ms ease;
}

.pebweb-ct-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.90);
  transition: transform 160ms ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.pebweb-ct-switch input:checked + .pebweb-ct-switch-ui {
  background: rgba(70, 170, 255, 0.35);
}

.pebweb-ct-switch input:checked + .pebweb-ct-switch-ui::after {
  transform: translateX(20px);
}

/* -----------------------------
   Rating scale 1..10
----------------------------- */
.pebweb-ct-scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 6px 0;
}

.pebweb-ct-scale-btn {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
}

.pebweb-ct-scale-btn:hover {
  background: rgba(255,255,255,0.12);
}

.pebweb-ct-scale-btn.is-active {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.26);
  color: rgba(255,255,255,0.98);
}

/* delta animation area */
.pebweb-ct-delta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.pebweb-ct-delta-label {
  font-size: 13px;
  color: rgba(255,255,255,0.74);
  margin-bottom: 10px;
}

.pebweb-ct-delta-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
}

.pebweb-ct-delta-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(0,0,0,0.25);
}

.pebweb-ct-delta-marker.is-after {
  background: rgba(70, 170, 255, 0.95);
  transition: left 700ms ease;
}

/* -----------------------------
   PRO hint at "COMLETED"
----------------------------- */
.pebweb-ct-probox {
  margin: 32px 0 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
}

.pebweb-ct-probox strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.92);
}

.pebweb-ct-probox ul {
  margin: 0 0 12px 18px;
  padding: 0;
  font-size: 13px;
}

.pebweb-ct-probox li {
  margin: 12px 0;
	line-height: 1;
}

.pebweb-ct-prolink {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* -----------------------------
   Afterglow list
----------------------------- */
.pebweb-ct-list {
  margin: 10px 0 0 0;
  padding: 0 0 0 18px;
  color: rgba(255,255,255,0.78);
}

.pebweb-ct-list li {
  margin: 6px 0;
}

.pebweb-ct-link {
  color: rgba(255,255,255,0.86);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pebweb-ct-link:hover {
  color: rgba(255,255,255,0.96);
}

/* -----------------------------
   History
----------------------------- */
.pebweb-ct-history-card {
  max-width: 920px;
	height: 100%;
	overflow-y: auto;
}
.pebweb-ct-history-top-actions {
  display: flex;
  justify-content: space-between;
	align-items: center;
  margin: 0 0 14px 0;
}

.pebweb-ct-history-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  margin: 10px 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.pebweb-ct-history-swatch {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
}

.pebweb-ct-history-value {
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
}

.pebweb-ct-history-date {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.pebweb-ct-history-note {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.9);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

/*.pebweb-ct-history-delete {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}*/
.pebweb-ct-history-delete {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pebweb-ct-history-delete::before {
  content: "";
  width: 30px;
  height: 30px;
  display: block;
  background-color: rgba(255,255,255,0.55);
  mask: url("trash.svg") center / contain no-repeat;
  -webkit-mask: url("trash.svg") center / contain no-repeat;
}

.pebweb-ct-history-delete:hover::before {
  background-color: rgba(255,120,120,0.92);
}

.pebweb-ct-history-delete:hover {
  color: rgba(255,120,120,0.92);
}

textarea.pebweb-ct-history-note::placeholder{
	color: rgba(255,255,255,0.55);
}

@media (max-width: 560px) {
  .pebweb-ct-history-row {
    grid-template-columns: 38px 1fr;
  }

  .pebweb-ct-history-row > button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* -----------------------------
   Screen-specific tweaks
----------------------------- */
.pebweb-ct-stage-landing .pebweb-ct-card,
.pebweb-ct-stage-rating .pebweb-ct-card,
.pebweb-ct-stage-completed .pebweb-ct-card,
.pebweb-ct-stage-afterglow .pebweb-ct-card,
.pebweb-ct-stage-progate .pebweb-ct-card {
  animation: pebctFadeUp 220ms ease both;
}

@keyframes pebctFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 560px) {
  :root { --pebct-stop-h: 84px; }

  .pebweb-ct-card,
  .pebweb-ct-modal,
  .pebweb-ct-sheet {
    padding: 14px;
    border-radius: 14px;
  }

  .pebweb-ct-title {
    font-size: 18px;
  }

  .pebweb-ct-scale {
    gap: 6px;
  }

  .pebweb-ct-scale-btn {
    height: 38px;
    border-radius: 12px;
    font-size: 14px;
  }

  .pebweb-ct-protoolbar {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 10px;
  }

  .pebweb-ct-settings {
    margin-top: 98px;
  }
}

/* Manual test section */
/*.pebweb-ct-manual {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--pebct-radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.pebweb-ct-manual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pebweb-ct-manual-title {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  font-weight: 700;
}

.pebweb-ct-manual-toggle {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
}

.pebweb-ct-manual-body {
  margin-top: 10px;
  display: none;
}

.pebweb-ct-manual-body.is-open {
  display: block;
}
*/
.pebweb-ct-segbtn { 
	padding: 0 8px;
}

@media (min-width: 561px) {
	.pebweb-ct-settings.is-open {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.pebweb-ct-segbtn { 
		padding: 0 10px; 
	}
	.pebweb-ct-secondary {
		min-width: 75px;
	}
}

/* Manual determine (Zoom) */
.pebweb-ct-manual-card { 
	max-width: 920px;
}

.pebweb-ct-manual-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
	padding: 5px 12px 7px;
  margin: 15px 0 5px 0;
	border-radius: 14px;
  color: rgba(255,255,255,0.78);
	background: #515151;
  font-size: 13px;
	line-height: 1;
}

.pebweb-ct-manual-hue{
	font-weight: 700;
	font-size: 14px;
}

.pebweb-ct-spectrum {
  position: relative;
  margin: 8px 0 18px 0;
}

.pebweb-ct-spectrum-bar {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(90deg,
    #ff0000 0%,
    #ffff00 16%,
    #00ff00 33%,
    #00ffff 50%,
    #0000ff 66%,
    #ff00ff 83%,
    #ff0000 100%
  );
	background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0% 0%;
  position: relative;
  overflow: hidden;
}

/* Highlight window for current working range */
.pebweb-ct-spectrum-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
  pointer-events: none;
}


/* 10-segment row */
.pebweb-ct-seg10 {
  position: absolute;
  inset: 0;

  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;

  padding: 4px;
}

.pebweb-ct-seg10-btn {
  align-self: stretch;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.12);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
	text-align: center;
  backdrop-filter: blur(2px);
}

.pebweb-ct-seg10-btn:hover {
  background: rgba(255,255,255,0.16);
}

/* Fine steps */
.pebweb-ct-fine {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.pebweb-ct-fine-label {
  color: rgba(255,255,255,0.74);
  font-size: 13px;
}

/* -----------------------------
   Stop impulse
----------------------------- */
.pebweb-ct-stage-generator {
  position: relative;
  overflow: hidden;
}

.pebweb-ct-stage-generator::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.pebweb-ct-stage-generator.pebweb-ct-stop-flash::after {
  animation: pebctStopFocus 360ms ease-out;
}

.pebweb-ct-stage-generator.pebweb-ct-stop-impulse .pebweb-ct-stop {
  animation: pebctStopPulse 320ms ease-out;
}

@keyframes pebctStopFocus {
  0% {
    opacity: 0;
    background:
      radial-gradient(circle at center,
        rgba(0,0,0,0.00) 0%,
        rgba(0,0,0,0.00) 26%,
        rgba(0,0,0,0.18) 52%,
        rgba(0,0,0,0.28) 100%);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background:
      radial-gradient(circle at center,
        rgba(0,0,0,0.00) 0%,
        rgba(0,0,0,0.00) 34%,
        rgba(0,0,0,0.10) 58%,
        rgba(0,0,0,0.00) 100%);
  }
}

@keyframes pebctStopPulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
  }
}
