.rightPanel {
  align-self: start;

  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
  background: color-mix(in srgb, var(--bg-card) 82%, white);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

.rightPanel__head {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: color-mix(in srgb, var(--color-text-primary) 85%, white);

  background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg-card) 55%, white) 0%,
      color-mix(in srgb, var(--color-surface-1) 55%, white) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 18px rgba(0, 0, 0, 0.06);
}

.rightPanel__inner {
  margin: 15px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
  background: color-mix(in srgb, var(--bg-card) 92%, white);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);

  padding: 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rightColorBtn {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
  background: color-mix(in srgb, var(--bg-card) 88%, white);
  box-shadow:
    0 16px 26px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.rightColorBtn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rightColorPreview {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  background: var(--color-primary);
}

.rightTools{
  width: 100%;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  background: color-mix(in srgb, var(--bg-card) 88%, white);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: 12px;
  display: grid;
  place-items: center;
}

.toolStack--right{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.rightToolsBox{
  width: fit-content;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  background: color-mix(in srgb, var(--bg-card) 90%, white);
  box-shadow:
    0 14px 26px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

.toolBtn{
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  background: color-mix(in srgb, var(--bg-card) 88%, white);
  cursor: pointer;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.70);
  font-weight: 900;
}

.toolBtn--active{
  outline: 3px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.toolStack--right .toolBtn{
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

.rightGrid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  justify-items: center;
}

.color-option {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  cursor: pointer;
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform .08s ease, filter .12s ease;
}

.color-option:hover { filter: brightness(1.03); }
.color-option:active { transform: translateY(1px); }

.rightSwatch {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

@media (max-width: 1020px) {
  .rightSwatch { width: 58px; height: 58px; }
}